diff --git a/dist/esm/index.bundle.js b/dist/esm/index.bundle.js index 4205b92..1dd2b14 100644 --- a/dist/esm/index.bundle.js +++ b/dist/esm/index.bundle.js @@ -7,23 +7,24 @@ function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */}var a=Symbol.for("react.element"),s=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function M(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||v}function A(){}function E(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||v}M.prototype.isReactComponent={},M.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},A.prototype=M.prototype;var T=E.prototype=new A;T.constructor=E,b(T,M.prototype),T.isPureReactComponent=!0;var N=Array.isArray,I=Object.prototype.hasOwnProperty,k={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var r,i={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)I.call(t,r)&&!L.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1e?`https://bscscan.com/tx/${e.id||e}`:t?`https://bscscan.com/token/${t}`:n?`https://bscscan.com/address/${n}`:void 0,endpoints:["https://bsc-dataseed.binance.org","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed3.defibit.io"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"BNB",name:"Binance Coin",decimals:18,logo:Q,type:"NATIVE"},{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",symbol:"WBNB",name:"Wrapped BNB",decimals:18,logo:"https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/smartchain/assets/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c/logo.png",type:"20"},{address:"0x55d398326f99059fF775485246999027B3197955",symbol:"USDT",name:"Tether USD",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x55d398326f99059fF775485246999027B3197955/logo.png",type:"20"},{address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",symbol:"USDC",name:"USD Coin",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d/logo.png",type:"20"},{address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8",symbol:"ETH",name:"Ethereum Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x2170Ed0880ac9A755fd29B2688956BD959F933F8/logo.png",type:"20"},{address:"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",symbol:"Cake",name:"PancakeSwap Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82/logo.png",type:"20"},{address:"0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",symbol:"BTCB",name:"BTCB Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c/logo.png",type:"20"},{address:"0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const F="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAADxdJREFUeJztXVtzFMcVplwuP8VVeYmf7HJ+RKqSl/AQP6X8H+yqXUEIjhMnQY5jO9oVCIzA5mowdzAYG4xAGAyWLC5G3IyDL8gOASUYKrarYGZWC7qi23b6692VV6uZ7e6ZnT3di07VV6JUaLfnnG+6z+lz+vScOXUoL6SzP52/2PtlQ9p7piHlLU2k3P2JJqcjkXLO8589/OdN/tPjvx8VEP8Wv+sp/J8O/A3+Fp+Bz8JnUj/XrPjIwjT7ybxm57fJlLsy2eR2cwPe4QZksYB/Nr4D34XvxHdTP/8DJ+k0e4S/lb9Jpr2WZJNzgRtjPDaDS4DvFmPgY8GYMDZq/dStNKQzv0qmnA1c6RkqgysQIoMxYqzU+qoLWZDO/jyZdl7lir1ObdwQZLiOseMZqPVonSTS7i+4AtsTTW6O2pDR4ebEs/Bnotar8dKw2Pk1n0I76Y0W16zgdOIZqfVsnCSbvaeEB2+AkWpCBEQS/Jmp9U4u3Fl6nIdWB6gNQgb+7NABtR1qLjxcejiZdhfxKXGA3AjUswHXAXQBnVDbpSbCPeO5fAr8hlrxpgE6gW6o7ROb5N96Z3l9ePZxgUcMXEd1NxssbMk8kWxyztEr2A5AV3XjGySb3acTSLYYoFjL4EF31PYLLXwaeyiZcltnp/woEJtIrdAltT21BEkR7tnuo1dgfQC6tCbRlGh1H02k3C5qpalg/bt3WdOGDPk4lACdct1S27eiLEgPPMbDmcvkylLAgiUOc/sm2LHuITavmX48KoBun1828DNqO/tKsiX7JF+zeqmVpIqPzg2xyckc++Sfw2ImoB6POtxe6Jra3tMEb75Nxv/Hmxk2MZGbIsCpz4bZn1d45OPSIQF0Tm13IViXbJn2i+i9NcYgRQIA+zsGy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ercontent.com/Uniswap/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png";var H={name:"ethereum",id:"0x1",networkId:"1",namespace:"eip155",platform:"evm",label:"Ethereum",fullName:"Ethereum Mainnet",logo:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDB7ZmlsbC1vcGFjaXR5Oi42MDJ9LnN0MCwuc3Qxe2ZpbGw6I2ZmZn08L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik01MTEuNCA3My4zdjMxNS41TDc3OCA1MDggNTExLjQgNzMuM3oiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNNTExLjQgNzMuMyAyNDQuNyA1MDhsMjY2LjYtMTE5LjJWNzMuM3oiLz48cGF0aCBjbGFzcz0ic3QwIiBkPSJNNTExLjQgNzEyLjN2MjE0LjVsMjY2LjgtMzY5LjEtMjY2LjggMTU0LjZ6Ii8+PHBhdGggY2xhc3M9InN0MSIgZD0iTTUxMS40IDkyNi43VjcxMi4zTDI0NC43IDU1Ny42bDI2Ni43IDM2OS4xeiIvPjxwYXRoIGQ9Ik01MTEuNCA2NjIuNyA3NzggNTA4IDUxMS40IDM4OC44djI3My45eiIgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIuMiIvPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Im0yNDQuNyA1MDggMjY2LjYgMTU0LjdWMzg4LjhMMjQ0LjcgNTA4eiIvPjwvc3ZnPgo=",logoBackgroundColor:"#5683ec",logoWhiteBackground:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGltYWdlLXJlbmRlcmluZz0ib3B0aW1pemVRdWFsaX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AC17F958D2ee523a2206206994597C13D831ec7"]},explorer:"https://etherscan.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://etherscan.io/tx/${e.id||e}`:t?`https://etherscan.io/token/${t}`:n?`https://etherscan.io/address/${n}`:void 0,endpoints:["https://rpc.ankr.com/eth","https://eth.llamarpc.com","https://ethereum.publicnode.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:F,type:"NATIVE"},{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:V,type:"20"},{address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c",symbol:"EUROC",name:"EURO Coin",decimals:6,logo:"https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/ethereum/assets/0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c/logo.png",type:"20"},{address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",symbol:"USDT",name:"Tether USD",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x853d955aCEf822Db058eb8505911ED77F175b99e",symbol:"FRAX",name:"Frax",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x853d955aCEf822Db058eb8505911ED77F175b99e/logo.png",type:"20"},{address:"0x956F47F50A910163D8BF957Cf5846D573E7f87CA",symbol:"FEI",name:"Fei USD",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x956F47F50A910163D8BF957Cf5846D573E7f87CA/logo.png",type:"20"},{address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",symbol:"WBTC",name:"Wrapped BTC",decimals:8,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",type:"20"},{address:"0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const G="https://assets.spooky.fi/tokens/wFTM.png";var q={name:"fantom",id:"0xfa",networkId:"250",namespace:"eip155",label:"Fantom",fullName:"Fantom Opera",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00NjcgMTM1LjVjMTgtOS4zIDQ1LjEtOS4zIDYzIDBsMTgzLjQgOTdjMTAuNyA2LjEgMTYuNiAxNCAxOCAyMy4zdjQ4Ni42YzAgOS4zLTYuMSAxOS4yLTE4IDI1LjJsLTE4My4yIDk3Yy0xOCA5LjMtNDUuMSA5LjMtNjMgMGwtMTgzLjMtOTdjLTExLjktNi4xLTE3LjItMTUuOS0xOC0yNS4yVjI1NS43Yy43LTguNyA2LjctMTcuMiAxNy4yLTIzLjNMNDY3IDEzNS41em0yMzUuOCAzODkuNy0xNzIuNiA5MC45Yy0xOCA5LjMtNDUuMSA5LjMtNjMgMGwtMTcxLjktOTAuM3YyM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Mi0yMi4yLTE0LjgtMzAuMS0zMS4yLTMwLjEtNjV2LTEuMWgyMS43em0xOTcuMi0yNjYuNGMtMS4xLjUtMi4xLjUtMy4yIDEuMWwtMTQ1LjkgNzcuMmgtLjUuNWwxNDUuOSA3Ny4yYzEuMS41IDIuMSAxLjEgMy4yIDEuMVY0MTguMXptMjMuMiAwdjE1Ny41YzEuMS0uNSAyLjEtLjUgMy4yLTEuMWwxNDUuOS03Ny4yaC41LS41bC0xNDUuOS03OC4yYy0xLjEtLjUtMi4xLTEtMy4yLTF6TTY2MS44IDMzM2wtMTMxLjEgNjguNyAxMzEuMSA2OC43VjMzM3ptLTMyNC42IDB2MTM4bDEzMS4xLTY4LjdjMC0uMS0xMzEuMS02OS4zLTEzMS4xLTY5LjN6bTE3Ny4xLTEwMi4xYy03LjQtNC4yLTIxLjEtNC4yLTI5LjEgMGwtMTQ1LjkgNzcuMmgtLjUuNWwxNDUuOSA3Ny4yYzcuNCA0LjIgMjEuMSA0LjIgMjkuMSAwbDE0NS45LTc3LjJoLjUtLjVsLTE0NS45LTc3LjJ6bTE2OS4xIDcuNCA5IDUuOCAxLjYgMS4xYzIuNiAxLjYgNC44IDMuMiA2LjkgNC4yIDIyLjIgMTQuOCAzMC4xIDMxLjIgMzAuMSA2NXYxLjFoLTIyLjdjMC0xNC44LTEuNi0yNC44LTUuMy0zMS43LTIuNi01LjgtNi45LTEwLTE0LjgtMTUuM2wtLjUtLjVjLTEuNi0xLjEtMy43LTIuMS01LjgtMy43bC0yLjYtMS42LTguNS00LjggMTIuNi0xOS42eiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",currency:{name:"Fantom",symbol:"FTM",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:"https://assets.spooky.fi/tokens/FTM.png"},wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",logo:G},stables:{usd:["0x28a92dde19D9989F39A49905d7C9C2FAc7799bDf","0x1B6382DBDEa11d97f24495C9A90b7c88469134a4"]},explorer:"https://ftmscan.com",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://ftmscan.com/tx/${e.id||e}`:t?`https://ftmscan.com/token/${t}`:n?`https://ftmscan.com/address/${n}`:void 0,endpoints:["https://rpc.ftm.tools","https://fantom.publicnode.com","https://rpc2.fantom.network"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"FTM",name:"Fantom",decimals:18,logo:"https://assets.spooky.fi/tokens/FTM.png",type:"NATIVE"},{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",symbol:"WFTM",name:"Wrapped Fantom",decimals:18,logo:G,type:"20"},{address:"0x28a92dde19D9989F39A49905d7C9C2FAc7799bDf",symbol:"lzUSDC",name:"LayerZero USDC",decimals:6,logo:"https://assets.spooky.fi/tokens/USDC.png",type:"20"},{address:"0x1B6382DBDEa11d97f24495C9A90b7c88469134a4",symbol:"axlUSDC",name:"Axelar Wrapped USDC",decimals:6,logo:"https://assets.spooky.fi/tokens/USDC.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Z="https://app.uniswap.org/static/media/matic-token-icon.da7b877d41122a55de4a43760bb4c8e5.svg",J="https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/polygon/assets/0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270/logo.png";var X={name:"polygon",id:"0x89",networkId:"137",namespace:"eip155",label:"Polygon (POS)",fullName:"Polygon (POS) Mainnet",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik0xMzEuNSA0NTkuM2MtMTQuNCA5LjYtMjQgMjQtMjQgNDMuMnYxOTQuNGMwIDE5Lj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TkuNC01MS42IDAtLjEuMS0xNzEuMiAxMDMuMi0xNzMuNSAxMDMuMnoiIGZpbGw9IiM4MjQ3ZTUiLz48L3N2Zz4=",currency:{name:"Polygon",symbol:"MATIC",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:Z},wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",logo:J},stables:{usd:["0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174","0xc2132D05D31c914a87C6611C10748AEb04B58e8F"]},explorer:"https://polygonscan.com",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://polygonscan.com/tx/${e.id||e}`:t?`https://polygonscan.com/token/${t}`:n?`https://polygonscan.com/address/${n}`:void 0,endpoints:["https://polygon-rpc.com","https://poly-rpc.gateway.pokt.network","https://polygon.llamarpc.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"MATIC",name:"Polygon",decimals:18,logo:Z,type:"NATIVE"},{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",symbol:"WMATIC",name:"Wrapped Matic",decimals:18,logo:J,type:"20"},{address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F",symbol:"USDT",name:"Tether USD",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",type:"20"},{address:"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",symbol:"WBTC",name:"Wrapped BTC",decimals:8,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",type:"20"},{address:"0xf6261529C6C2fBEB313aB25cDEcD243613b40EB5",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const K="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDF7ZmlsbDp1cmwoI1NWR0lEXzAwMDAwMDE5Njc2ODQzODE5NzI3MzAwODIwMDAwMDA1OTQ3NjMyODMzODYxMjM4OTE3Xyl9LnN0MntmaWxsOnVybCgjU1ZHSURfMDAwMDAwNjQzMjA1MjE4MTcxODM4NzM1NjAwMDAwMDMxNzkyNDIxNTkzMzkwODM5NjdfKX08L3N0eWxlPjxsaW5lYXJHcmFkaWVudCBpZD0iU1ZHSURfMV8iIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iODE1Ljg1NiIgeTE9IjcwLjgyNCIgeDI9IjM4OC4zMzYiIHkyPSItNzQ4LjA1MiIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxI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UwODE1NDQzMjY3MjY5NzYwNDQwMDAwMDEzNDYwODI0MzcwNDAzMTcyNTQzXykiLz48bGluZWFyR3JhZGllbnQgaWQ9IlNWR0lEXzAwMDAwMDA3NDA5ODc3MzYzMTA0OTgxNjMwMDAwMDE1MTMzNzA1NTcwNjgwMDk3NzA5XyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI3MjAuOTIzIiB5MT0iMTE1Ljg3IiB4Mj0iMjkzLjQwNiIgeTI9Ii03MDMuMDAzIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDAgMTkxLjQzNSkiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzAwZmZhMyIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2RjMWZmZiIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZD0iTTc2Mi4xIDQzMC4xYy00LjktNC45LTEyLjItNy4zLTE3LjEtNy4zSDEyNS4zYy0xMi4yIDAtMTcuMSAxNC43LTkuOCAyMkwyMzggNTY3LjNjNC45IDQuOSAxMi4yIDcuMyAxNy4xIDcuM2g2MTkuN2MxMi4yIDAgMTcuMS0xNC43IDkuOC0yMkw3NjIuMSA0MzAuMXoiIGZpbGw9InVybCgjU1ZHSURfMDAwMDAwMDc0MDk4NzczNjMxMDQ5ODE2MzAwMDAwMTUxMzM3MDU1NzA2ODAwOTc3MDlfKSIvPjwvc3ZnPgo=",$="https://img.raydium.io/icon/So11111111111111111111111111111111111111112.png";var ee={name:"solana",networkId:"solana",namespace:"solana",label:"Solana",fullName:"Solana Mainnet Beta",logo:K,logoBackgroundColor:"#000000",logoWhiteBackground:K,currency:{name:"Solana",symbol:"SOL",decimals:9,address:"11111111111111111111111111111111",logo:$},wrapped:{address:"So11111111111111111111111111111111111111112",logo:$},stables:{usd:["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"]},explorer:"https://solscan.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://solscan.io/tx/${e.id||e}`:t?`https://solscan.io/token/${t}`:n?`https://solscan.io/address/${n}`:void 0,endpoints:["https://solana-mainnet.phantom.app/YBPpkkN4g91xDiAnTE9r0RcMkjg0sKUIWvAfoFVJ","https://mainnet-beta.solflare.network","https://solana-mainnet.rpc.extrnode.com"],sockets:["wss://solana-mainnet.phantom.app/YBPpkkN4g91xDiAnTE9r0RcMkjg0sKUIWvAfoFVJ","wss://mainnet-beta.solflare.network"],tokens:[{address:"11111111111111111111111111111111",symbol:"SOL",name:"Solana",decimals:9,logo:$,type:"NATIVE"},{address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://img.raydium.io/icon/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png",type:"SPL"},{address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",symbol:"USDT",name:"USDT",decimals:6,logo:"https://img.raydium.io/icon/Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB.png",type:"SPL"},{address:"7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj",symbol:"stSOL",name:"Lido Staked SOL",decimals:9,logo:"https://img.raydium.io/icon/7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj.png",type:"SPL"},{address:"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",symbol:"BONK",name:"BONK",decimals:5,logo:"https://img.raydium.io/icon/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263.png",type:"SPL"},{address:"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",symbol:"SAMO",name:"Samoyed Coin",decimals:9,logo:"https://img.raydium.io/icon/7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU.png",type:"SPL"},{address:"DePay1miDBPWXs6PVQrdC5Vch2jemgEPaiyXLNLLa2NF",symbol:"DEPAY",name:"DePay",decimals:9,logo:"https://depay.com/favicon.png",type:"SPL"}],zero:"0",maxInt:"340282366920938463463374607431768211455"};const te="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDF7ZmlsbDojMjEzMTQ3fTwvc3R5bGU+PHBhdGggZD0iTTkyIDkyaDgxNnY4MTZIOTJWOTJ6IiBmaWxsPSJub25lIi8+PHBhdGggY2xhc3M9InN0MSIgZD0iTTE2NS44IDM0MC4xVjY2MGMwIDIwLjYgMTAuOCAzOS4yIDI4LjcgNDkuNmwyNzcuMSAxNTkuOWMxNy42IDEwLjEgMzkuNSAxMC4xIDU3LjEgMGwyNzcuMS0xNTkuOWMxNy42LTEwLjEgMjguNy0yOSAyOC43LTQ5LjZWMzQwLjFjMC0yMC42LTEwLjgtMzkuMi0yOC43LTQ5LjZsLTI3Ny4xLTE2MGMtMTcuNi0xMC4xLTM5LjUtMTAuMS01Ny4xIDBsLTI3Ny4xIDE2MGMtMTcuNiAxMC4xLTI4LjQgMjktMjguNCA0OS42aC0uM3oiLz48cGF0aCBkPSJtNTYwLjQgNTYyLTM5LjUgMTA4LjRjLTEgMi45LTEgNi4yIDAgOS41bDY3LjkgMTg2LjQgNzguNi00NS40LTk0LjMtMjU4LjhjLTIuMy02LTEwLjQtNi0xMi43LS4xem03OS4zLTE4Mi4xYy0yLjMtNS45LTEwLjQtNS45LTEyLjcgMGwtMzkuNSAxMDguNGMtMSAyLjktMSA2LjIgMCA5LjVMNjk4LjggODAzbDc4LjYtNDUuNC0xMzcuN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LjYtOS4xLTYuMi05LjF2LjN6IiBmaWxsPSIjZmZmIi8+PC9zdmc+Cg==";var ne={name:"arbitrum",id:"0xa4b1",networkId:"42161",namespace:"eip155",platform:"evm",label:"Arbitrum",fullName:"Arbitrum One",logo:te,logoBackgroundColor:"#2b354d",logoWhiteBackground:te,currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:H.currency.logo},wrapped:{address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",logo:H.wrapped.logo},stables:{usd:["0xaf88d065e77c8cC2239327C5EDb3A432268e5831","0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"]},explorer:"https://arbiscan.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://arbiscan.io/tx/${e.id||e}`:t?`https://arbiscan.io/token/${t}`:n?`https://arbiscan.io/address/${n}`:void 0,endpoints:["https://arbitrum.blockpi.network/v1/rpc/public","https://arbitrum-one.publicnode.com","https://endpoints.omniatech.io/v1/arbitrum/one/public"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:H.currency.logo,type:"NATIVE"},{address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:H.wrapped.logo,type:"20"},{address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8/logo.png",type:"20"},{address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9/logo.png",type:"20"},{address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1/logo.png",type:"20"},{address:"0x912CE59144191C1204E64559FE8253a0e49E6548",symbol:"ARB",name:"Arbitrum",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0x912CE59144191C1204E64559FE8253a0e49E6548/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const re="https://traderjoexyz.com/static/media/avalanche.7c81486190237e87e238c029fd746008.svg",ie="https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7/logo.png";var oe={name:"avalanche",id:"0xa86a",networkId:"43114",namespace:"eip155",platform:"evm",label:"Avalanche",fullName:"Avalanche C-Chain",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik0zNTkuMSA3NTEuMWgtOTUuM2MtMjAgMC0yOS45IDAtMzYtMy44LTYuNi00LjMtMTAuNC0xMS4zLTEwLjktMTguOS0uMy03LjEgNC42LTE1LjggMTQuNC0zM2wyMzUtNDE0LjNjMTAuMS0xNy42IDE1LjEtMjYuNCAyMS40LTI5LjYgNi45LTMuNSAxNS4xLTMuNSAyMS45IDAgNi40IDMuMyAxMS40IDEyIDIxLjQgMjkuNmw0OC40IDg0LjMuMi41YzEwLjggMTguOSAxNi4zIDI4LjUgMTguNiAzOC41IDIuNiAxMC45IDIuNiAyMi42IDAgMzMuNS0yLjQgMTAuMS03LjggMTkuOC0xOC44IDM4LjlMNDU2LjIgN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jOC43LTE1LjQgMTMuMS0yMyAxOC43LTI1LjkgNi0zIDEzLjEtMyAxOS4xIDAgNS42IDIuOCAxMCAxMC41IDE4LjcgMjUuOWw0Mi4yIDczLjYuMi40YzkuNCAxNi41IDE0LjIgMjQuOCAxNi4zIDMzLjYgMi4zIDkuNiAyLjMgMTkuNiAwIDI5LjItMi4xIDguOC02LjggMTcuMi0xNi40IDM0TDQ2My42IDYyMS4ybC0uMy41Yy05LjUgMTYuNi0xNC4zIDI1LTIxIDMxLjQtNy4zIDYuOS0xNiAxMi0yNS41IDE0LjgtOC43IDIuNC0xOC41IDIuNC0zOC4xIDIuNHptMjA5LjggMGgxMTljMTcuNiAwIDI2LjQgMCAzMS43LTMuNSA1LjctMy43IDkuMi05LjkgOS42LTE2LjYuMy02LTMuOS0xMy4zLTEyLjItMjcuNWwtLjktMS41LTU5LjYtMTAyLS43LTEuMWMtOC40LTE0LjItMTIuNi0yMS4zLTE4LTI0LjEtNi0zLTEzLjEtMy0xOSAwLTUuNSAyLjgtOS45IDEwLjMtMTguNiAyNS4zbC01OS40IDEwMi0uMi40Yy04LjcgMTUtMTMgMjIuNS0xMi43IDI4LjcuNCA2LjcgMy45IDEyLjkgOS42IDE2LjYgNSAzLjMgMTMuOCAzLjMgMzEuNCAzLjN6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI2U4NDE0MiIvPjwvc3ZnPg==",currency:{name:"Avalanche",symbol:"AVAX",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:re},wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",logo:ie},stables:{usd:["0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7","0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]},explorer:"https://snowtrace.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://snowtrace.io/tx/${e.id||e}`:t?`https://snowtrace.io/token/${t}`:n?`https://snowtrace.io/address/${n}`:void 0,endpoints:["https://avalanche.public-rpc.com","https://avalanche.blockpi.network/v1/rpc/public","https://avax.meowrpc.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"AVAX",name:"Avalanche",decimals:18,logo:re,type:"NATIVE"},{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",symbol:"WAVAX",name:"Wrapped AVAX",decimals:18,logo:ie,type:"20"},{address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7/logo.png",type:"20"},{address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E/logo.png",type:"20"},{address:"0xd586E7F844cEa2F87f50152665BCbc2C279D8d70",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xd586E7F844cEa2F87f50152665BCbc2C279D8d70/logo.png",type:"20"},{address:"0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD",symbol:"EUROC",name:"EURO Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALsAAAC7CAMAAAAKTh9YAAAAYFBMVEVHcEz////////////////////////////////////j++ma6qVj5nsl5lAK4zp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PApLXQg+H0B5Ti8EvDuiX6e/+pUVq2Kv5/ZFH3rZ0tW4m4l2COitbJ/NbYWlFdZ/9216wpkWeuKJRfvvJ7l4QzhDYhfOkNiFMyR24QyJXThDYhfOkNiFMyR24QyJXThDYhfOkNiFMyR24QyJXThDYhfOkNiFMyj2OQhhvzkPIeYhhO105zr28G0IYTsVfuRBYQZC2C7EjKdn7RK7sJ+HaQ+lKHaZtwu7lWhkn5mk0GV0Fzabps4r6+xh+AqEsNdx+k8l9gAnIFMZYaNQH0c682I0mFdip6lMGP4KQthGhdPxmyunCwSYhIzuwjZlvBC/uRK7jO7CNkqHPjM5F/9x9YlgNLqHcq6MsAB1fPrFiep3rY6dRncvPAYhuKvTsV/zQef+MYedDyr9GDAGITii6cvpyeO1727kwI9f048FRyEEK+EJnJl8rN7fNL54oxwco5NnIAQX1GsZDafhat0bj44PwlMn9UeNQgiTUehB+Mit01/qWv+yPLohfQKoExDCWHrq0iR0sv7IXu3g+ARC9TyEMEn0ZHT1EmPjD23FwfExBOplfathCJEnWken5cXTk9MbvUlrscdklBd5oWumPX2kv6QPgDaZtqzVXuxkdHwYvtLR42EZ6UXqOog81n7s1faPP6k/0xNyIEokigJX4Yx+/Up0GnqbkceSiT1GS5UFvUwZYEx/5n36ixzW/8SgjPyiqeicrHC+sgGAmtGRvx1dMtph4NW+AiZycfiu2QTRAAAAAElFTkSuQmCC";var ue={name:"gnosis",id:"0x64",networkId:"100",namespace:"eip155",label:"Gnosis",fullName:"Gnosis Chain",logo:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDB7ZmlsbDojZmZmfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTMzMS45IDU1Ni41YzI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CAxOTEuMWMtNS4xIDQuOC05LjkgOS42LTE0LjMgMTQuMy0xMC42IDExLjMtMjAuNSAyMi45LTMwIDM0LjhMNTAwIDU3OC44bDMzOC42LTMzOC42Yy05LjItMTIuMi0xOS41LTIzLjgtMzAtMzQuN3pNNTAwIDEyOWM5OS43IDAgMTkyLjUgMzguNiAyNjIuNSAxMDguNUw1MDAgNTAwIDIzNy41IDIzNy41QzMwNy4yIDE2Ny4yIDQwMC4zIDEyOSA1MDAgMTI5eiIvPjwvc3ZnPgo=",currency:{name:"xDAI",symbol:"xDAI",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:ae},wrapped:{address:"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",logo:se},stables:{usd:["0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE","0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83"]},explorer:"https://gnosisscan.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://gnosisscan.io/tx/${e.id||e}`:t?`https://gnosisscan.io/token/${t}`:n?`https://gnosisscan.io/address/${n}`:void 0,endpoints:["https://rpc.gnosis.gateway.fm","https://rpc.gnosischain.com","https://gnosis.blockpi.network/v1/rpc/public"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"xDAI",name:"xDAI",decimals:18,logo:ae,type:"NATIVE"},{address:"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",symbol:"WXDAI",name:"Wrapped XDAI",decimals:18,logo:se,type:"20"},{address:"0x4ECaBa5870353805a9F068101A40E0f32ed605C6",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",symbol:"GNO",name:"Gnosis",decimals:18,logo:"https://cdn.sushi.com/image/upload/f_auto,c_limit,w_16,q_auto/tokens/100/0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb.jpg",type:"20"},{address:"0xD057604A14982FE8D88c5fC25Aac3267eA142a08",symbol:"HOPR",name:"HOPR",decimals:18,logo:"https://hoprnet.org/assets/icons/hopr_icon.svg",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};var ce={name:"optimism",id:"0xa",networkId:"10",namespace:"eip155",label:"Optimism",fullName:"Optimism",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00ODcuMSAzOTUuN2MtNS4yLTE1LjgtMTMuMi0zMS43LTI2LjQtNDIuMi0xMy4yLTEwLjUtMjYuNC0yMS4yLTQ0LjktMjYuNC0xOC41LTUuMi0zNy04LTU4LjEtOC00Ny41IDAtODcuMSAxMC41LTExNi4xIDM0LjQtMjkgMjMuOC00Ny41IDU4LjEtNjAuNyAxMDIuOS0yLjYgMTUuOC04IDI5LTEwLjUgNDQuOS0yLjYgMTMuMi01LjIgMjktOCA0Mi4yLTIuNiAyMy44LTIuNiA0Mi4yIDIuNiA2MC43IDUuMiAxNS44IDEzLjIgMzEuNyAyNi40IDQyLjIgMTMuMiAxMC41IDI2LjQgMjEuMiA0NC45IDI2LjQgMTguNCA1LjIgMzcgOCA1OC4xIDggNDcuNSAwIDg3LjEtMTAuNSAxMTYuMS0zNC40czQ3LjUtNTguMSA2MC43LTEwMi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XAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI2ZmMDQyMCIvPjwvc3ZnPg==",currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:H.currency.logo},wrapped:{address:"0x4200000000000000000000000000000000000006",logo:H.wrapped.logo},stables:{usd:["0x94b008aA00579c1307B0EF2c499aD98a8ce58e58","0x7F5c764cBc14f9669B88837ca1490cCa17c31607"]},explorer:"https://optimistic.etherscan.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://optimistic.etherscan.io/tx/${e.id||e}`:t?`https://optimistic.etherscan.io/token/${t}`:n?`https://optimistic.etherscan.io/address/${n}`:void 0,endpoints:["https://optimism.blockpi.network/v1/rpc/public","https://optimism.meowrpc.com","https://optimism.publicnode.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:H.currency.logo,type:"NATIVE"},{address:"0x4200000000000000000000000000000000000006",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:H.wrapped.logo,type:"20"},{address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/optimism/assets/0x94b008aA00579c1307B0EF2c499aD98a8ce58e58/logo.png",type:"20"},{address:"0x7F5c764cBc14f9669B88837ca1490cCa17c31607",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/optimism/assets/0x7F5c764cBc14f9669B88837ca1490cCa17c31607/logo.png",type:"20"},{address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x4200000000000000000000000000000000000042",symbol:"OP",name:"Optimism",decimals:18,logo:"https://user-images.githubusercontent.com/1300064/219575413-d7990d69-1d21-44ef-a2b1-e9c682c79802.svg",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};var le={name:"base",id:"0x2105",networkId:"8453",namespace:"eip155",label:"Base",fullName:"Base",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00OTguNiA4NDJDNjg4IDg0MiA4NDIgNjg4LjkgODQyIDQ5OS41UzY4OCAxNTcgNDk4LjYgMTU3QzMxOSAxNTcgMTcxLjIgMjk1LjEgMTU3IDQ3MC4zaDQ1My4xdjU3LjVIMTU3QzE3MiA3MDMuOSAzMTkgODQyIDQ5OC42IDg0MnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",logoBackgroundColor:"#0052FF",logoWhiteBackground:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00OTguOSA4NDVDNjkwLjEgODQ1IDg0NSA2OTAuMyA4NDUgNDk5LjVTNjkwLjEgMTU0IDQ5OC45IDE1NEMzMTcuNiAxNTQgMTY4LjggMjkzLjMgMTU0IDQ3MC41aDQ1Ny40djU4LjFIMTU0QzE2OC44IDcwNS44IDMxNy42IDg0NSA0OTguOSA4NDV6IiBmaWxsPSIjMDA1MmZmIi8+PC9zdmc+",currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:H.currency.logo},wrapped:{address:"0x4200000000000000000000000000000000000006",logo:H.wrapped.logo},stables:{usd:["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA"]},explorer:"https://basescan.org",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://basescan.org/tx/${e.id||e}`:t?`https://basescan.org/token/${t}`:n?`https://basescan.org/address/${n}`:void 0,endpoints:["https://base.blockpi.network/v1/rpc/public","https://base.meowrpc.com","https://mainnet.base.org"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:H.currency.logo,type:"NATIVE"},{address:"0x4200000000000000000000000000000000000006",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:H.wrapped.logo,type:"20"},{address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://ethereum-optimism.github.io/data/USDC/logo.png",type:"20"},{address:"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",symbol:"USDbC",name:"USD Base Coin",decimals:6,logo:"https://ethereum-optimism.github.io/data/USDC/logo.png",type:"20"},{address:"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const de=[H,Y,X,ee,q,ne,oe,ue,ce,le];var he={ethereum:H,bsc:Y,polygon:X,solana:ee,fantom:q,arbitrum:ne,avalanche:oe,gnosis:ue,optimism:ce,base:le,all:de,findById:function(e){let t=e;return t.match("0x0")&&(t=t.replace(/0x0+/,"0x")),de.find((e=>e.id&&e.id.toLowerCase()==t.toLowerCase()))},findByNetworkId:function(e){return e=e.toString(),de.find((t=>t.networkId==e))},findByName:function(e){return de.find((t=>t.name==e))}},pe=function(e){var t,r,i="string"==typeof e.blockchains?JSON.parse(e.blockchains).map((function(e){return he[e]})):(e.blockchains||[]).map((function(e){return he[e]}));if((!i||0===i.length)&&(null!=e&&null!==(t=e.configuration)&&void 0!==t&&t.accept||null!=e&&null!==(r=e.configuration)&&void 0!==r&&r.sell))switch(e.widget){case"Payment":case"Donation":i=n(new Set(e.configuration.accept.map((function(e){return e.blockchain})))).map((function(e){return he[e]}));break;case"Sale":i=Object.keys(e.configuration.sell).map((function(e){return he[e]}))}return U.createElement("div",null,U.createElement("div",{className:"Row"},U.createElement("button",{onClick:e.onClick},e.label)),U.createElement("div",{className:"Row"},i.map((function(e){return U.createElement("div",{key:e.name,title:e.label,className:"SupportedBlockchain",style:{backgroundColor:e.logoBackgroundColor}},U.createElement("img",{src:e.logo}))}))))},fe=void 0!==fe?fe:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function ye(){throw new Error("setTimeout has not been defined")}function me(){throw new Error("clearTimeout has not been defined")}var ge=ye,ve=me;function be(e){if(ge===setTimeout)return setTimeout(e,0);if((ge===ye||!ge)&&setTimeout)return ge=setTimeout,setTimeout(e,0);try{return ge(e,0)}catch(t){try{return ge.call(null,e,0)}catch(t){return ge.call(this,e,0)}}}"function"==typeof fe.setTimeout&&(ge=setTimeout),"function"==typeof fe.clearTimeout&&(ve=clearTimeout);var we,Me=[],Ae=!1,Ee=-1;function Te(){Ae&&we&&(Ae=!1,we.length?Me=we.concat(Me):Ee=-1,Me.length&&Ne())}function Ne(){if(!Ae){var e=be(Te);Ae=!0;for(var t=Me.length;t;){for(we=Me,Me=[];++Ee1)for(var n=1;ne?`https://bscscan.com/tx/${e.id||e}`:t?`https://bscscan.com/token/${t}`:n?`https://bscscan.com/address/${n}`:void 0,endpoints:["https://bsc-dataseed.binance.org","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed3.defibit.io"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"BNB",name:"Binance Coin",decimals:18,logo:Q,type:"NATIVE"},{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",symbol:"WBNB",name:"Wrapped BNB",decimals:18,logo:"https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/smartchain/assets/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c/logo.png",type:"20"},{address:"0x55d398326f99059fF775485246999027B3197955",symbol:"USDT",name:"Tether USD",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x55d398326f99059fF775485246999027B3197955/logo.png",type:"20"},{address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",symbol:"USDC",name:"USD Coin",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d/logo.png",type:"20"},{address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8",symbol:"ETH",name:"Ethereum Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x2170Ed0880ac9A755fd29B2688956BD959F933F8/logo.png",type:"20"},{address:"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",symbol:"Cake",name:"PancakeSwap Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82/logo.png",type:"20"},{address:"0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",symbol:"BTCB",name:"BTCB Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c/logo.png",type:"20"},{address:"0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const F="data:image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rIooDAGM7fUXRABus6oYH5JOs4e5M/EN9UNpsF+0gq8WAd4zuLrH9/m5rWCzqhEAkkw7c23YIi4CmTl0EI1KAFHdY9UVsW4Otqqq8UtIsJz+AdWBJhNRCYD0M/Vz6AA2isX4kPxS4JyjfkgdVKoikhHgrfctC/m4bao+9ZfLwpbMEwlDGkupoFIVUSUCtJ80v7qnDB5sE6vxi5Jsdp+2yR9AFdCoTxVREAEwaxjTy08JfN3nNqmJ8adIkHJb6R9cHbt9qoiCCIBOJNTj1QFsUVPjQ/ha8xCPNfdRP7wOcFmUjAC7j9hR3TNlfG4D2KLmBCiQ4JFEyu2iVoIqyquIyglgT3VPAVz3gSXetZJEq/tossm9TK4MRbSWVBGVEwDtXqjHpwqhc657UuMXZUF64DHuiPRSK0UVOLJdTgCcPKIelzrcXuic2u7TJNmSfdIWEhSriIoEsKm6BzqGrqnt7StgpS3LAc7to+MIqntMvM/HD9CtcW9+uWBdssUxxDk+dPGiHocSoFNT1nyZiIOmloWIJqMQ6tF6+7oi9gnEZpE9O4bmwc1Bh2RxfjUkv21sT+7AIHg1396NS5CksC2LSAnoqmaJnVqJSCWLeoLZJSEYophjeewpXUpBtYpN5WW1AnQSWyWPaQKGc7Y32lRtHJvhhQ7cxrp+64NElJw3OW3URqB76522qpVu2yw4vWLTMbTohne7I5/YqUfBIUZbTiWHMjx/ttAHNR8kwVn2fJOKeogYxGZOu/b5/FnJt6vJ9yyyI8tYZvhejF25LcusVBa0N0OPO5ObWWJsGKO0FdushBckRdDqFP1u0fSYsss5vluMgY8FY7IuYVMPgrbn6H2PCxBEJBHn9Tf8s4UHz78L3zmj5fqsmCG4DAk3YiWbvGfFvYgpdz888EJL/J7Chdkerk8XEP8Wv+vJzyo8EsHf8L/FZ+Czpi5YqjP5P2ey0rAsl+yGAAAAAElFTkSuQmCC",V="https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png";var H={name:"ethereum",id:"0x1",networkId:"1",namespace:"eip155",platform:"evm",label:"Ethereum",fullName:"Ethereum Mainnet",logo:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDB7ZmlsbC1vcGFjaXR5Oi42MDJ9LnN0MCwuc3Qxe2ZpbGw6I2ZmZn08L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik01MTEuNCA3My4zdjMxNS41TDc3OCA1MDggNTExLjQgNzMuM3oiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNNTExLjQgNzMuMyAyNDQuNyA1MDhsMjY2LjYtMTE5LjJWNzMuM3oiLz48cGF0aCBjbGFzcz0ic3QwIiBkPSJNNTExLjQgNzEyLjN2MjE0LjVsMjY2LjgtMzY5LjEtMjY2LjggMTU0LjZ6Ii8+PHBhdGggY2xhc3M9InN0MSIgZD0iTTUxMS40IDkyNi43VjcxMi4zTDI0NC43IDU1Ny42bDI2Ni43IDM2OS4xeiIvPjxwYXRoIGQ9Ik01MTEuNCA2NjIuNyA3NzggNTA4IDUxMS40IDM4OC44djI3My45eiIgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIuMiIvPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Im0yNDQuNyA1MDggMjY2LjYgMTU0LjdWMzg4LjhMMjQ0LjcgNTA4eiIvPjwvc3ZnPgo=",logoBackgroundColor:"#5683ec",logoWhiteBackground:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGltYWdlLXJlbmRlcmluZz0ib3B0aW1pemVRdWFsaXR5IiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiIgdGV4dC1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4PSIwIiB5PSIwIiB2aWV3Qm94PSIwIDAgMTAwMCAxMDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0MXtmaWxsOiM4YzhjOGN9PC9zdHlsZT48cGF0aCBkPSJtNDk5LjggNzcuNS01LjUgMTl2NTU5LjFsNS41IDUuNSAyNTkuNy0xNTMuNUw0OTkuOCA3Ny41eiIgZmlsbD0iIzM0MzQzNCIvPjxwYXRoIGNsYXNzPSJzdDEiIGQ9Im00OTkuOCA3Ny41LTI1OS4zIDQzMEw0OTkuOCA2NjFWNzcuNXoiLz48cGF0aCBkPSJtNDk5LjggNzEwLjMtMi45IDR2MTk5LjFsMi45IDkuMSAyNTkuNy0zNjUuOC0yNTkuNyAxNTMuNnoiIGZpbGw9IiMzYzNjM2IiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNNDk5LjggOTIyLjVWNzEwLjNMMjQwLjUgNTU2LjdsMjU5LjMgMzY1Ljh6Ii8+PHBhdGggZD0ibTQ5OS44IDY2MSAyNTkuNy0xNTMuNS0yNTkuNy0xMTcuOFY2NjF6IiBmaWxsPSIjMTQxNDE0Ii8+PHBhdGggZD0iTTI0MC41IDUwNy41IDQ5OS44IDY2MVYzODkuN0wyNDAuNSA1MDcuNXoiIGZpbGw9IiMzOTM5MzkiLz48L3N2Zz4K",currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:F},wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",logo:V,logoBackgroundColor:"#FFFFFF"},stables:{usd:["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","0xdAC17F958D2ee523a2206206994597C13D831ec7"]},explorer:"https://etherscan.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://etherscan.io/tx/${e.id||e}`:t?`https://etherscan.io/token/${t}`:n?`https://etherscan.io/address/${n}`:void 0,endpoints:["https://rpc.ankr.com/eth","https://eth.llamarpc.com","https://ethereum.publicnode.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:F,type:"NATIVE"},{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:V,type:"20"},{address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c",symbol:"EUROC",name:"EURO Coin",decimals:6,logo:"https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/ethereum/assets/0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c/logo.png",type:"20"},{address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",symbol:"USDT",name:"Tether USD",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x853d955aCEf822Db058eb8505911ED77F175b99e",symbol:"FRAX",name:"Frax",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x853d955aCEf822Db058eb8505911ED77F175b99e/logo.png",type:"20"},{address:"0x956F47F50A910163D8BF957Cf5846D573E7f87CA",symbol:"FEI",name:"Fei USD",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x956F47F50A910163D8BF957Cf5846D573E7f87CA/logo.png",type:"20"},{address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",symbol:"WBTC",name:"Wrapped BTC",decimals:8,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",type:"20"},{address:"0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const G="https://assets.spooky.fi/tokens/wFTM.png";var q={name:"fantom",id:"0xfa",networkId:"250",namespace:"eip155",label:"Fantom",fullName:"Fantom Opera",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00NjcgMTM1LjVjMTgtOS4zIDQ1LjEtOS4zIDYzIDBsMTgzLjQgOTdjMTAuNyA2LjEgMTYuNiAxNCAxOCAyMy4zdjQ4Ni42YzAgOS4zLTYuMSAxOS4yLTE4IDI1LjJsLTE4My4yIDk3Yy0xOCA5LjMtNDUuMSA5LjMtNjMgMGwtMTgzLjMtOTdjLTExLjktNi4xLTE3LjItMTUuOS0xOC0yNS4yVjI1NS43Yy43LTguNyA2LjctMTcuMiAxNy4yLTIzLjNMNDY3IDEzNS41em0yMzUuOCAzODkuNy0xNzIuNiA5MC45Yy0xOCA5LjMtNDUuMSA5LjMtNjMgMGwtMTcxLjktOTAuM3YyMTQuNGwxNzEuOSA5MC4zYzEwIDUuMyAyMC42IDEwLjcgMzEuMiAxMS4zaC43YzEwIDAgMjAtNS4zI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LjUtMi4xLjUtMy4yIDEuMWwtMTQ1LjkgNzcuMmgtLjUuNWwxNDUuOSA3Ny4yYzEuMS41IDIuMSAxLjEgMy4yIDEuMVY0MTguMXptMjMuMiAwdjE1Ny41YzEuMS0uNSAyLjEtLjUgMy4yLTEuMWwxNDUuOS03Ny4yaC41LS41bC0xNDUuOS03OC4yYy0xLjEtLjUtMi4xLTEtMy4yLTF6TTY2MS44IDMzM2wtMTMxLjEgNjguNyAxMzEuMSA2OC43VjMzM3ptLTMyNC42IDB2MTM4bDEzMS4xLTY4LjdjMC0uMS0xMzEuMS02OS4zLTEzMS4xLTY5LjN6bTE3Ny4xLTEwMi4xYy03LjQtNC4yLTIxLjEtNC4yLTI5LjEgMGwtMTQ1LjkgNzcuMmgtLjUuNWwxNDUuOSA3Ny4yYzcuNCA0LjIgMjEuMSA0LjIgMjkuMSAwbDE0NS45LTc3LjJoLjUtLjVsLTE0NS45LTc3LjJ6bTE2OS4xIDcuNCA5IDUuOCAxLjYgMS4xYzIuNiAxLjYgNC44IDMuMiA2LjkgNC4yIDIyLjIgMTQuOCAzMC4xIDMxLjIgMzAuMSA2NXYxLjFoLTIyLjdjMC0xNC44LTEuNi0yNC44LTUuMy0zMS43LTIuNi01LjgtNi45LTEwLTE0LjgtMTUuM2wtLjUtLjVjLTEuNi0xLjEtMy43LTIuMS01LjgtMy43bC0yLjYtMS42LTguNS00LjggMTIuNi0xOS42eiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",currency:{name:"Fantom",symbol:"FTM",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:"https://assets.spooky.fi/tokens/FTM.png"},wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",logo:G},stables:{usd:["0x28a92dde19D9989F39A49905d7C9C2FAc7799bDf","0x1B6382DBDEa11d97f24495C9A90b7c88469134a4"]},explorer:"https://ftmscan.com",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://ftmscan.com/tx/${e.id||e}`:t?`https://ftmscan.com/token/${t}`:n?`https://ftmscan.com/address/${n}`:void 0,endpoints:["https://rpc.ftm.tools","https://fantom.publicnode.com","https://rpc2.fantom.network"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"FTM",name:"Fantom",decimals:18,logo:"https://assets.spooky.fi/tokens/FTM.png",type:"NATIVE"},{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",symbol:"WFTM",name:"Wrapped Fantom",decimals:18,logo:G,type:"20"},{address:"0x28a92dde19D9989F39A49905d7C9C2FAc7799bDf",symbol:"lzUSDC",name:"LayerZero USDC",decimals:6,logo:"https://assets.spooky.fi/tokens/USDC.png",type:"20"},{address:"0x1B6382DBDEa11d97f24495C9A90b7c88469134a4",symbol:"axlUSDC",name:"Axelar Wrapped USDC",decimals:6,logo:"https://assets.spooky.fi/tokens/USDC.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Z="https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/polygon/info/logo.png",J="https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/polygon/assets/0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270/logo.png";var X={name:"polygon",id:"0x89",networkId:"137",namespace:"eip155",label:"Polygon (POS)",fullName:"Polygon (POS) Mainnet",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik0xMzEuNSA0NTkuM2MtMTQuNCA5LjYtMjQgMjQtMjQgNDMuMnYxOTQuNGMwIDE5LjIgOS42IDM2IDI0IDQzLjJsMTY1LjYgOTZjMTQuNCA5LjYgMzMuNiA5LjYgNDggMGwxNjUuNi05NmMxNC40LTk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2Zz4=",currency:{name:"Polygon",symbol:"MATIC",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:Z},wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",logo:J},stables:{usd:["0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","0xc2132D05D31c914a87C6611C10748AEb04B58e8F"]},explorer:"https://polygonscan.com",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://polygonscan.com/tx/${e.id||e}`:t?`https://polygonscan.com/token/${t}`:n?`https://polygonscan.com/address/${n}`:void 0,endpoints:["https://polygon-rpc.com","https://polygon.meowrpc.com","https://polygon-bor.publicnode.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"MATIC",name:"Polygon",decimals:18,logo:Z,type:"NATIVE"},{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",symbol:"WMATIC",name:"Wrapped Matic",decimals:18,logo:J,type:"20"},{address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F",symbol:"USDT",name:"Tether USD",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",type:"20"},{address:"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",symbol:"WBTC",name:"Wrapped BTC",decimals:8,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",type:"20"},{address:"0xf6261529C6C2fBEB313aB25cDEcD243613b40EB5",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const K="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDF7ZmlsbDp1cmwoI1NWR0lEXzAwMDAwMDE5Njc2ODQzODE5NzI3MzAwODIwMDAwMDA1OTQ3NjMyODMzODYxMjM4OTE3Xyl9LnN0MntmaWxsOnVybCgjU1ZHSURfMDAwMDAwNjQzMjA1MjE4MTcxODM4NzM1NjAwMDAwMDMxNzkyNDIxNTkzMzkwODM5NjdfKX08L3N0eWxlPjxsaW5lYXJHcmFkaWVudCBpZD0iU1ZHSURfMV8iIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iODE1Ljg1NiIgeTE9IjcwLjgyNCIgeDI9IjM4OC4zMzYiIHkyPSItNzQ4LjA1MiIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDE5MS40MzUpIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiMwMGZmYTMiLz48c3RvcCBv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9IlNWR0lEXzAwMDAwMDA3NDA5ODc3MzYzMTA0OTgxNjMwMDAwMDE1MTMzNzA1NTcwNjgwMDk3NzA5XyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI3MjAuOTIzIiB5MT0iMTE1Ljg3IiB4Mj0iMjkzLjQwNiIgeTI9Ii03MDMuMDAzIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDAgMTkxLjQzNSkiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzAwZmZhMyIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2RjMWZmZiIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZD0iTTc2Mi4xIDQzMC4xYy00LjktNC45LTEyLjItNy4zLTE3LjEtNy4zSDEyNS4zYy0xMi4yIDAtMTcuMSAxNC43LTkuOCAyMkwyMzggNTY3LjNjNC45IDQuOSAxMi4yIDcuMyAxNy4xIDcuM2g2MTkuN2MxMi4yIDAgMTcuMS0xNC43IDkuOC0yMkw3NjIuMSA0MzAuMXoiIGZpbGw9InVybCgjU1ZHSURfMDAwMDAwMDc0MDk4NzczNjMxMDQ5ODE2MzAwMDAwMTUxMzM3MDU1NzA2ODAwOTc3MDlfKSIvPjwvc3ZnPgo=",$="https://img.raydium.io/icon/So11111111111111111111111111111111111111112.png";var ee={name:"solana",networkId:"solana",namespace:"solana",label:"Solana",fullName:"Solana Mainnet Beta",logo:K,logoBackgroundColor:"#000000",logoWhiteBackground:K,currency:{name:"Solana",symbol:"SOL",decimals:9,address:"11111111111111111111111111111111",logo:$},wrapped:{address:"So11111111111111111111111111111111111111112",logo:$},stables:{usd:["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"]},explorer:"https://solscan.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://solscan.io/tx/${e.id||e}`:t?`https://solscan.io/token/${t}`:n?`https://solscan.io/address/${n}`:void 0,endpoints:["https://solana-mainnet.phantom.app/YBPpkkN4g91xDiAnTE9r0RcMkjg0sKUIWvAfoFVJ","https://mainnet-beta.solflare.network","https://swr.xnftdata.com/rpc-proxy"],sockets:["wss://solana-mainnet.phantom.app/YBPpkkN4g91xDiAnTE9r0RcMkjg0sKUIWvAfoFVJ","wss://mainnet-beta.solflare.network"],tokens:[{address:"11111111111111111111111111111111",symbol:"SOL",name:"Solana",decimals:9,logo:$,type:"NATIVE"},{address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://img.raydium.io/icon/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png",type:"SPL"},{address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",symbol:"USDT",name:"USDT",decimals:6,logo:"https://img.raydium.io/icon/Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB.png",type:"SPL"},{address:"7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj",symbol:"stSOL",name:"Lido Staked SOL",decimals:9,logo:"https://img.raydium.io/icon/7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj.png",type:"SPL"},{address:"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",symbol:"BONK",name:"BONK",decimals:5,logo:"https://img.raydium.io/icon/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263.png",type:"SPL"},{address:"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",symbol:"SAMO",name:"Samoyed Coin",decimals:9,logo:"https://img.raydium.io/icon/7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU.png",type:"SPL"},{address:"DePay1miDBPWXs6PVQrdC5Vch2jemgEPaiyXLNLLa2NF",symbol:"DEPAY",name:"DePay",decimals:9,logo:"https://depay.com/favicon.png",type:"SPL"}],zero:"0",maxInt:"340282366920938463463374607431768211455"};const te="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDF7ZmlsbDojMjEzMTQ3fTwvc3R5bGU+PHBhdGggZD0iTTkyIDkyaDgxNnY4MTZIOTJWOTJ6IiBmaWxsPSJub25lIi8+PHBhdGggY2xhc3M9InN0MSIgZD0iTTE2NS44IDM0MC4xVjY2MGMwIDIwLjYgMTAuOCAzOS4yIDI4LjcgNDkuNmwyNzcuMSAxNTkuOWMxNy42IDEwLjEgMzkuNSAxMC4xIDU3LjEgMGwyNzcuMS0xNTkuOWMxNy42LTEwLjEgMjguNy0yOSAyOC43LTQ5LjZWMzQwLjFjMC0yMC42LTEwLjgtMzkuMi0yOC43LTQ5LjZsLTI3Ny4xLTE2MGMtMTcuNi0xMC4xLTM5LjUtMTAuMS01Ny4xIDBsLTI3Ny4xIDE2MGMtMTcuNiAxMC4xLTI4LjQgMjktMjguNCA0OS42aC0uM3oiLz48cGF0aCBkPSJtNTYwLjQgNTYyLTM5LjUgMTA4LjRjLTEgMi45LTEgNi4yIDAgOS41bDY3LjkgMTg2LjQgNzguNi00NS40LTk0LjMtMjU4LjhjLTIuMy02LTEwLjQtNi0xMi43LS4xem03OS4zLTE4Mi4xYy0yLjMtNS45LTEwLjQtNS45LTEyLjcgMGwtMzkuNSAxMDguNGMtMSAyLjktMSA2LjIgMCA5LjVMNjk4LjggODAzbDc4LjYtNDUuNC0xMzcuNy0zNzcuNHYtLjN6IiBmaWxsPSIjMTJhYWZmIi8+PHBhdGggZD0iTTUwMCAxNDIuNmMyIDAgMy45LjYgNS41IDEu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42161",namespace:"eip155",platform:"evm",label:"Arbitrum",fullName:"Arbitrum One",logo:te,logoBackgroundColor:"#2b354d",logoWhiteBackground:te,currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:H.currency.logo},wrapped:{address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",logo:H.wrapped.logo},stables:{usd:["0xaf88d065e77c8cC2239327C5EDb3A432268e5831","0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"]},explorer:"https://arbiscan.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://arbiscan.io/tx/${e.id||e}`:t?`https://arbiscan.io/token/${t}`:n?`https://arbiscan.io/address/${n}`:void 0,endpoints:["https://arbitrum.blockpi.network/v1/rpc/public","https://arbitrum-one.publicnode.com","https://endpoints.omniatech.io/v1/arbitrum/one/public"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:H.currency.logo,type:"NATIVE"},{address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:H.wrapped.logo,type:"20"},{address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8/logo.png",type:"20"},{address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9/logo.png",type:"20"},{address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1/logo.png",type:"20"},{address:"0x912CE59144191C1204E64559FE8253a0e49E6548",symbol:"ARB",name:"Arbitrum",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0x912CE59144191C1204E64559FE8253a0e49E6548/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const re="https://traderjoexyz.com/static/media/avalanche.7c81486190237e87e238c029fd746008.svg",ie="https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7/logo.png";var oe={name:"avalanche",id:"0xa86a",networkId:"43114",namespace:"eip155",platform:"evm",label:"Avalanche",fullName:"Avalanche C-Chain",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik0zNTkuMSA3NTEuMWgtOTUuM2MtMjAgMC0yOS45IDAtMzYtMy44LTYuNi00LjMtMTAuNC0xMS4zLTEwLjktMTguOS0uMy03LjEgNC42LTE1LjggMTQuNC0zM2wyMzUtNDE0LjNjMTAuMS0xNy42IDE1LjEtMjYuNCAyMS40LTI5LjYgNi45LTMuNSAxNS4xLTMuNSAyMS45IDAgNi40IDMuMyAxMS40IDEyIDIxLjQgMjkuNmw0OC40IDg0LjMuMi41YzEwLjggMTguOSAxNi4zIDI4LjUgMTguNiAzOC41IDIuNiAxMC45IDIuNiAyMi42IDAgMzMuNS0yLjQgMTAuMS03LjggMTkuOC0xOC44IDM4LjlMNDU2LjIgNjk0LjlsLS4zLjVjLTEwLjggMTktMTYuMyAyOC43LTI0LjEgMzYtOC4zIDgtMTguMyAxMy43LTI5LjMgMTYuOS05Ljk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gMjUuOWw0Mi4yIDczLjYuMi40YzkuNCAxNi41IDE0LjIgMjQuOCAxNi4zIDMzLjYgMi4zIDkuNiAyLjMgMTkuNiAwIDI5LjItMi4xIDguOC02LjggMTcuMi0xNi40IDM0TDQ2My42IDYyMS4ybC0uMy41Yy05LjUgMTYuNi0xNC4zIDI1LTIxIDMxLjQtNy4zIDYuOS0xNiAxMi0yNS41IDE0LjgtOC43IDIuNC0xOC41IDIuNC0zOC4xIDIuNHptMjA5LjggMGgxMTljMTcuNiAwIDI2LjQgMCAzMS43LTMuNSA1LjctMy43IDkuMi05LjkgOS42LTE2LjYuMy02LTMuOS0xMy4zLTEyLjItMjcuNWwtLjktMS41LTU5LjYtMTAyLS43LTEuMWMtOC40LTE0LjItMTIuNi0yMS4zLTE4LTI0LjEtNi0zLTEzLjEtMy0xOSAwLTUuNSAyLjgtOS45IDEwLjMtMTguNiAyNS4zbC01OS40IDEwMi0uMi40Yy04LjcgMTUtMTMgMjIuNS0xMi43IDI4LjcuNCA2LjcgMy45IDEyLjkgOS42IDE2LjYgNSAzLjMgMTMuOCAzLjMgMzEuNCAzLjN6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI2U4NDE0MiIvPjwvc3ZnPg==",currency:{name:"Avalanche",symbol:"AVAX",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:re},wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",logo:ie},stables:{usd:["0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7","0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]},explorer:"https://snowtrace.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://snowtrace.io/tx/${e.id||e}`:t?`https://snowtrace.io/token/${t}`:n?`https://snowtrace.io/address/${n}`:void 0,endpoints:["https://avalanche.public-rpc.com","https://avalanche.blockpi.network/v1/rpc/public","https://avax.meowrpc.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"AVAX",name:"Avalanche",decimals:18,logo:re,type:"NATIVE"},{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",symbol:"WAVAX",name:"Wrapped AVAX",decimals:18,logo:ie,type:"20"},{address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7/logo.png",type:"20"},{address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E/logo.png",type:"20"},{address:"0xd586E7F844cEa2F87f50152665BCbc2C279D8d70",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xd586E7F844cEa2F87f50152665BCbc2C279D8d70/logo.png",type:"20"},{address:"0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD",symbol:"EUROC",name:"EURO Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALsAAAC7CAMAAAAKTh9YAAAAYFBMVEVHcEz////////////////////////////////////j++ma6qVj5nsl5lAK4zpA6mXO79aD8Zyr87uCvq0J2TkItEkOhl4EeVsKzSwLrxMNtQpjsZG42dEeuxyF2oU6wzjPwJjeAAAACnRSTlMAEUB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l4QzhDYhfOkNiFMyR24QyJXThDYhfOkNiFMyR24QyJXThDYhfOkNiFMyR24QyJXThDYhfOkNiFMyj2OQhhvzkPIeYhhO105zr28G0IYTsVfuRBYQZC2C7EjKdn7RK7sJ+HaQ+lKHaZtwu7lWhkn5mk0GV0Fzabps4r6+xh+AqEsNdx+k8l9gAnIFMZYaNQH0c682I0mFdip6lMGP4KQthGhdPxmyunCwSYhIzuwjZlvBC/uRK7jO7CNkqHPjM5F/9x9YlgNLqHcq6MsAB1fPrFiep3rY6dRncvPAYhuKvTsV/zQef+MYedDyr9GDAGITii6cvpyeO1727kwI9f048FRyEEK+EJnJl8rN7fNL54oxwco5NnIAQX1GsZDafhat0bj44PwlMn9UeNQgiTUehB+Mit01/qWv+yPLohfQKoExDCWHrq0iR0sv7IXu3g+ARC9TyEMEn0ZHT1EmPjD23FwfExBOplfathCJEnWken5cXTk9MbvUlrscdklBd5oWumPX2kv6QPgDaZtqzVXuxkdHwYvtLR42EZ6UXqOog81n7s1faPP6k/0xNyIEokigJX4Yx+/Up0GnqbkceSiT1GS5UFvUwZYEx/5n36ixzW/8SgjPyiqeicrHC+sgGAmtGRvx1dMtph4NW+AiZycfiu2QTRAAAAAElFTkSuQmCC";var ue={name:"gnosis",id:"0x64",networkId:"100",namespace:"eip155",label:"Gnosis",fullName:"Gnosis Chain",logo:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDB7ZmlsbDojZmZmfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTMzMS45IDU1Ni41YzIzLjUgMCA0Ni40LTcuOCA2NS0yMi4yTDI0OCAzODUuNGMtMzUuOSA0Ni40LTI3LjQgMTEyLjkgMTguOSAxNDguOC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U3OC44bDMzOC42LTMzOC42Yy05LjItMTIuMi0xOS41LTIzLjgtMzAtMzQuN3pNNTAwIDEyOWM5OS43IDAgMTkyLjUgMzguNiAyNjIuNSAxMDguNUw1MDAgNTAwIDIzNy41IDIzNy41QzMwNy4yIDE2Ny4yIDQwMC4zIDEyOSA1MDAgMTI5eiIvPjwvc3ZnPgo=",currency:{name:"xDAI",symbol:"xDAI",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:ae},wrapped:{address:"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",logo:se},stables:{usd:["0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE","0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83"]},explorer:"https://gnosisscan.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://gnosisscan.io/tx/${e.id||e}`:t?`https://gnosisscan.io/token/${t}`:n?`https://gnosisscan.io/address/${n}`:void 0,endpoints:["https://rpc.gnosis.gateway.fm","https://rpc.gnosischain.com","https://gnosis.blockpi.network/v1/rpc/public"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"xDAI",name:"xDAI",decimals:18,logo:ae,type:"NATIVE"},{address:"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",symbol:"WXDAI",name:"Wrapped XDAI",decimals:18,logo:se,type:"20"},{address:"0x4ECaBa5870353805a9F068101A40E0f32ed605C6",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",symbol:"GNO",name:"Gnosis",decimals:18,logo:"https://cdn.sushi.com/image/upload/f_auto,c_limit,w_16,q_auto/tokens/100/0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb.jpg",type:"20"},{address:"0xD057604A14982FE8D88c5fC25Aac3267eA142a08",symbol:"HOPR",name:"HOPR",decimals:18,logo:"https://hoprnet.org/assets/icons/hopr_icon.svg",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};var ce={name:"optimism",id:"0xa",networkId:"10",namespace:"eip155",label:"Optimism",fullName:"Optimism",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00ODcuMSAzOTUuN2MtNS4yLTE1LjgtMTMuMi0zMS43LTI2LjQtNDIuMi0xMy4yLTEwLjUtMjYuNC0yMS4yLTQ0LjktMjYuNC0xOC41LTUuMi0zNy04LTU4LjEtOC00Ny41IDAtODcuMSAxMC41LTExNi4xIDM0LjQtMjkgMjMuOC00Ny41IDU4LjEtNjAuNyAxMDIuOS0yLjYgMTUuOC04IDI5LTEwLjUgNDQuOS0yLjYgMTMuMi01LjIgMjktOCA0Mi4yLTIuNiAyMy44LTIuNiA0Mi4yIDIuNiA2MC43IDUuMiAxNS44IDEzLjIgMzEuNyAyNi40IDQyLjIgMTMuMiAxMC41IDI2LjQgMjEuMiA0NC45IDI2LjQgMTguNCA1LjIgMzcgOCA1OC4xIDggNDcuNSAwIDg3LjEtMTAuNSAxMTYuMS0zNC40czQ3LjUtNTguMSA2MC43LTEwMi45YzIuNi0xMy4yIDUuMi0yOSAxMC41LTQyLjIgMi42LTEzLjIgNS4yLTI5IDgtNDQuOSAyLjgtMjMuOCAyLjgtN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:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:H.currency.logo},wrapped:{address:"0x4200000000000000000000000000000000000006",logo:H.wrapped.logo},stables:{usd:["0x94b008aA00579c1307B0EF2c499aD98a8ce58e58","0x7F5c764cBc14f9669B88837ca1490cCa17c31607"]},explorer:"https://optimistic.etherscan.io",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://optimistic.etherscan.io/tx/${e.id||e}`:t?`https://optimistic.etherscan.io/token/${t}`:n?`https://optimistic.etherscan.io/address/${n}`:void 0,endpoints:["https://optimism.blockpi.network/v1/rpc/public","https://optimism.meowrpc.com","https://optimism.publicnode.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:H.currency.logo,type:"NATIVE"},{address:"0x4200000000000000000000000000000000000006",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:H.wrapped.logo,type:"20"},{address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/optimism/assets/0x94b008aA00579c1307B0EF2c499aD98a8ce58e58/logo.png",type:"20"},{address:"0x7F5c764cBc14f9669B88837ca1490cCa17c31607",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/optimism/assets/0x7F5c764cBc14f9669B88837ca1490cCa17c31607/logo.png",type:"20"},{address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x4200000000000000000000000000000000000042",symbol:"OP",name:"Optimism",decimals:18,logo:"https://user-images.githubusercontent.com/1300064/219575413-d7990d69-1d21-44ef-a2b1-e9c682c79802.svg",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};var le={name:"base",id:"0x2105",networkId:"8453",namespace:"eip155",label:"Base",fullName:"Base",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00OTguNiA4NDJDNjg4IDg0MiA4NDIgNjg4LjkgODQyIDQ5OS41UzY4OCAxNTcgNDk4LjYgMTU3QzMxOSAxNTcgMTcxLjIgMjk1LjEgMTU3IDQ3MC4zaDQ1My4xdjU3LjVIMTU3QzE3MiA3MDMuOSAzMTkgODQyIDQ5OC42IDg0MnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",logoBackgroundColor:"#0052FF",logoWhiteBackground:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00OTguOSA4NDVDNjkwLjEgODQ1IDg0NSA2OTAuMyA4NDUgNDk5LjVTNjkwLjEgMTU0IDQ5OC45IDE1NEMzMTcuNiAxNTQgMTY4LjggMjkzLjMgMTU0IDQ3MC41aDQ1Ny40djU4LjFIMTU0QzE2OC44IDcwNS44IDMxNy42IDg0NSA0OTguOSA4NDV6IiBmaWxsPSIjMDA1MmZmIi8+PC9zdmc+",currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:H.currency.logo},wrapped:{address:"0x4200000000000000000000000000000000000006",logo:H.wrapped.logo},stables:{usd:["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA"]},explorer:"https://basescan.org",explorerUrlFor:({transaction:e,token:t,address:n})=>e?`https://basescan.org/tx/${e.id||e}`:t?`https://basescan.org/token/${t}`:n?`https://basescan.org/address/${n}`:void 0,endpoints:["https://base.blockpi.network/v1/rpc/public","https://base.meowrpc.com","https://mainnet.base.org"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:H.currency.logo,type:"NATIVE"},{address:"0x4200000000000000000000000000000000000006",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:H.wrapped.logo,type:"20"},{address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://ethereum-optimism.github.io/data/USDC/logo.png",type:"20"},{address:"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",symbol:"USDbC",name:"USD Base Coin",decimals:6,logo:"https://ethereum-optimism.github.io/data/USDC/logo.png",type:"20"},{address:"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const de=[H,Y,X,ee,q,ne,oe,ue,ce,le];var he={ethereum:H,bsc:Y,polygon:X,solana:ee,fantom:q,arbitrum:ne,avalanche:oe,gnosis:ue,optimism:ce,base:le,all:de,findById:function(e){let t=e;t.match("0x0")&&(t=t.replace(/0x0+/,"0x"));let n=de.find((e=>e.id&&e.id.toLowerCase()==t.toLowerCase()));return n},findByNetworkId:function(e){e=e.toString();let t=de.find((t=>t.networkId==e));return t},findByName:function(e){return de.find((t=>t.name==e))}},pe=function(e){var t,r,i="string"==typeof e.blockchains?JSON.parse(e.blockchains).map((function(e){return he[e]})):(e.blockchains||[]).map((function(e){return he[e]}));if((!i||0===i.length)&&(null!=e&&null!==(t=e.configuration)&&void 0!==t&&t.accept||null!=e&&null!==(r=e.configuration)&&void 0!==r&&r.sell))switch(e.widget){case"Payment":case"Donation":i=n(new Set(e.configuration.accept.map((function(e){return e.blockchain})))).map((function(e){return he[e]}));break;case"Sale":i=Object.keys(e.configuration.sell).map((function(e){return he[e]}))}return U.createElement("div",null,U.createElement("div",{className:"Row"},U.createElement("button",{onClick:e.onClick},e.label)),U.createElement("div",{className:"Row"},i.map((function(e){return U.createElement("div",{key:e.name,title:e.label,className:"SupportedBlockchain",style:{backgroundColor:e.logoBackgroundColor}},U.createElement("img",{src:e.logo}))}))))},fe=void 0!==fe?fe:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function ye(){throw new Error("setTimeout has not been defined")}function me(){throw new Error("clearTimeout has not been defined")}var ge=ye,ve=me;function be(e){if(ge===setTimeout)return setTimeout(e,0);if((ge===ye||!ge)&&setTimeout)return ge=setTimeout,setTimeout(e,0);try{return ge(e,0)}catch(t){try{return ge.call(null,e,0)}catch(t){return ge.call(this,e,0)}}}"function"==typeof fe.setTimeout&&(ge=setTimeout),"function"==typeof fe.clearTimeout&&(ve=clearTimeout);var we,Me=[],Ae=!1,Ee=-1;function Ne(){Ae&&we&&(Ae=!1,we.length?Me=we.concat(Me):Ee=-1,Me.length&&Te())}function Te(){if(!Ae){var e=be(Ne);Ae=!0;for(var t=Me.length;t;){for(we=Me,Me=[];++Ee1)for(var n=1;n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function He(e){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}function Ge(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function qe(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ge(o,r,i,a,s,"next",e)}function s(e){Ge(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function at(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function st(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return at(e)}function ut(e){var t=nt();return function(){var n,r=et(e);if(t){var i=et(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return st(this,n)}}function ct(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=et(e)););return e}function lt(){return lt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=ct(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},lt.apply(this,arguments)}function dt(e,t){return pt(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||yt(e,t)||gt()}function ht(e){return function(e){if(Array.isArray(e))return mt(e)}(e)||ft(e)||yt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(e){if(Array.isArray(e))return e}function ft(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function yt(e,t){if(e){if("string"==typeof e)return mt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(e,t):void 0}}function mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var bt={},wt=void 0!==fe?fe:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Mt=[],At=[],Et="undefined"!=typeof Uint8Array?Uint8Array:Array,Tt=!1;function Nt(){Tt=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+Mt[i>>12&63]+Mt[i>>6&63]+Mt[63&i]);return o.join("")}function kt(e){var t;Tt||Nt();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(t=e[n-1],i+=Mt[t>>2],i+=Mt[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Mt[t>>10],i+=Mt[t>>4&63],i+=Mt[t<<2&63],i+="="),o.push(i),o.join("")}function Lt(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)}function xt(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*y}var St={}.toString,jt=Array.isArray||function(e){return"[object Array]"==St.call(e)};zt.TYPED_ARRAY_SUPPORT=void 0===wt.TYPED_ARRAY_SUPPORT||wt.TYPED_ARRAY_SUPPORT;var Ct=Dt();function Dt(){return zt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ot(e,t){if(Dt()=Dt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Dt().toString(16)+" bytes");return 0|e}function Wt(e){return!(null==e||!e._isBuffer)}function Qt(e,t){if(Wt(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return yn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return mn(e).length;default:if(r)return yn(e).length;t=(""+t).toLowerCase(),r=!0}}function Yt(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return rn(this,t,n);case"utf8":case"utf-8":return en(this,t,n);case"ascii":return tn(this,t,n);case"latin1":case"binary":return nn(this,t,n);case"base64":return $t(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return on(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ft(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Vt(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=zt.from(t,r)),Wt(t))return 0===t.length?-1:Ht(e,t,n,r,i);if("number"==typeof t)return t&=255,zt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Ht(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Ht(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function $t(e,t,n){return 0===t&&n===e.length?kt(e):kt(e.slice(t,n))}function en(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},zt.prototype.compare=function(e,t,n,r,i){if(!Wt(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),l=0;li)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Gt(this,e,t,n);case"utf8":case"utf-8":return qt(this,e,t,n);case"ascii":return Zt(this,e,t,n);case"latin1":case"binary":return Jt(this,e,t,n);case"base64":return Xt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kt(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},zt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tn(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function sn(e,t,n,r,i,o){if(!Wt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function un(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function cn(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function ln(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function dn(e,t,n,r,i){return i||ln(e,0,n,4),xt(e,t,n,r,23,4),n+4}function hn(e,t,n,r,i){return i||ln(e,0,n,8),xt(e,t,n,r,52,8),n+8}zt.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},zt.prototype.readUInt8=function(e,t){return t||an(e,1,this.length),this[e]},zt.prototype.readUInt16LE=function(e,t){return t||an(e,2,this.length),this[e]|this[e+1]<<8},zt.prototype.readUInt16BE=function(e,t){return t||an(e,2,this.length),this[e]<<8|this[e+1]},zt.prototype.readUInt32LE=function(e,t){return t||an(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},zt.prototype.readUInt32BE=function(e,t){return t||an(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},zt.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||an(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},zt.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||an(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},zt.prototype.readInt8=function(e,t){return t||an(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},zt.prototype.readInt16LE=function(e,t){t||an(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},zt.prototype.readInt16BE=function(e,t){t||an(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},zt.prototype.readInt32LE=function(e,t){return t||an(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},zt.prototype.readInt32BE=function(e,t){return t||an(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},zt.prototype.readFloatLE=function(e,t){return t||an(e,4,this.length),Lt(this,e,!0,23,4)},zt.prototype.readFloatBE=function(e,t){return t||an(e,4,this.length),Lt(this,e,!1,23,4)},zt.prototype.readDoubleLE=function(e,t){return t||an(e,8,this.length),Lt(this,e,!0,52,8)},zt.prototype.readDoubleBE=function(e,t){return t||an(e,8,this.length),Lt(this,e,!1,52,8)},zt.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||sn(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},zt.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,1,255,0),zt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},zt.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,2,65535,0),zt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):un(this,e,t,!0),t+2},zt.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,2,65535,0),zt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):un(this,e,t,!1),t+2},zt.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,4,4294967295,0),zt.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):cn(this,e,t,!0),t+4},zt.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,4,4294967295,0),zt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cn(this,e,t,!1),t+4},zt.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);sn(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},zt.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);sn(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},zt.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,1,127,-128),zt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},zt.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,2,32767,-32768),zt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):un(this,e,t,!0),t+2},zt.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,2,32767,-32768),zt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):un(this,e,t,!1),t+2},zt.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,4,2147483647,-2147483648),zt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):cn(this,e,t,!0),t+4},zt.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),zt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cn(this,e,t,!1),t+4},zt.prototype.writeFloatLE=function(e,t,n){return dn(this,e,t,!0,n)},zt.prototype.writeFloatBE=function(e,t,n){return dn(this,e,t,!1,n)},zt.prototype.writeDoubleLE=function(e,t,n){return hn(this,e,t,!0,n)},zt.prototype.writeDoubleBE=function(e,t,n){return hn(this,e,t,!1,n)},zt.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!zt.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function mn(e){return function(e){var t,n,r,i,o,a;Tt||Nt();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Et(3*s/4-o),r=o>0?s-4:s;var u=0;for(t=0,n=0;t>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=At[e.charCodeAt(t)]<<2|At[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=At[e.charCodeAt(t)]<<10|At[e.charCodeAt(t+1)]<<4|At[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(pn,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function gn(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function vn(e){return null!=e&&(!!e._isBuffer||bn(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&bn(e.slice(0,0))}(e))}function bn(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var wn=Object.freeze({__proto__:null,Buffer:zt,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),zt.alloc(+e)},isBuffer:vn,kMaxLength:Ct});function Mn(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Wrong positive integer: ".concat(e))}function An(e){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&!n.includes(e.length))throw new TypeError("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}var En={number:Mn,bool:function(e){if("boolean"!=typeof e)throw new Error("Expected boolean, not ".concat(e))},bytes:An,hash:function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Mn(e.outputLen),Mn(e.blockLen)},exists:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},output:function(e,t){An(e);var n=t.outputLen;if(e.length>>t};if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function Ln(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new TypeError("utf8ToBytes expected string, got ".concat(He(e)));return(new TextEncoder).encode(e)}(e)),!(e instanceof Uint8Array))throw new TypeError("Expected input type is Uint8Array (got ".concat(He(e),")"));return e}Array.from({length:256},(function(e,t){return t.toString(16).padStart(2,"0")}));var xn=function(){function e(){Ze(this,e)}return Xe(e,[{key:"clone",value:function(){return this._cloneInto()}}]),e}();function Sn(e){var t=function(t){return e().update(Ln(t)).digest()},n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=function(){return e()},t}var jn=function(e){$e(n,xn);var t=ut(n);function n(e,r,i,o){var a;return Ze(this,n),(a=t.call(this)).blockLen=e,a.outputLen=r,a.padOffset=i,a.isLE=o,a.finished=!1,a.length=0,a.pos=0,a.destroyed=!1,a.buffer=new Uint8Array(e),a.view=In(a.buffer),a}return Xe(n,[{key:"update",value:function(e){Tn.exists(this);for(var t=this.view,n=this.buffer,r=this.blockLen,i=(e=Ln(e)).length,o=0;or-o&&(this.process(n,0),o=0);for(var a=o;a>i&o),s=Number(n&o),u=r?4:0,c=r?0:4;e.setUint32(t+u,a,r),e.setUint32(t+c,s,r)}(n,r-8,BigInt(8*this.length),i),this.process(n,0);var s=In(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var c=u/4,l=this.get();if(c>l.length)throw new Error("_sha2: outputLen bigger than state");for(var d=0;d1&&void 0!==arguments[1]&&arguments[1];return t?{h:Number(e&Cn),l:Number(e>>Dn&Cn)}:{h:0|Number(e>>Dn&Cn),l:0|Number(e&Cn)}}var zn={fromBig:On,split:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length),i=0;i>>0)<>>0)},shrSH:function(e,t,n){return e>>>n},shrSL:function(e,t,n){return e<<32-n|t>>>n},rotrSH:function(e,t,n){return e>>>n|t<<32-n},rotrSL:function(e,t,n){return e<<32-n|t>>>n},rotrBH:function(e,t,n){return e<<64-n|t>>>n-32},rotrBL:function(e,t,n){return e>>>n-32|t<<64-n},rotr32H:function(e,t){return t},rotr32L:function(e,t){return e},rotlSH:function(e,t,n){return e<>>32-n},rotlSL:function(e,t,n){return t<>>32-n},rotlBH:function(e,t,n){return t<>>64-n},rotlBL:function(e,t,n){return e<>>64-n},add:function(e,t,n,r){var i=(t>>>0)+(r>>>0);return{h:e+n+(i/Math.pow(2,32)|0)|0,l:0|i}},add3L:function(e,t,n){return(e>>>0)+(t>>>0)+(n>>>0)},add3H:function(e,t,n,r){return t+n+r+(e/Math.pow(2,32)|0)|0},add4L:function(e,t,n,r){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)},add4H:function(e,t,n,r,i){return t+n+r+i+(e/Math.pow(2,32)|0)|0},add5H:function(e,t,n,r,i,o){return t+n+r+i+o+(e/Math.pow(2,32)|0)|0},add5L:function(e,t,n,r,i){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0)}},_n=zn,Pn=_n.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((function(e){return BigInt(e)}))),Rn=dt(Pn,2),Bn=Rn[0],Un=Rn[1],Wn=new Uint32Array(80),Qn=new Uint32Array(80),Yn=function(e){$e(n,jn);var t=ut(n);function n(){var e;return Ze(this,n),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return Xe(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(e,t,n,r,i,o,a,s,u,c,l,d,h,p,f,y){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|u,this.El=0|c,this.Fh=0|l,this.Fl=0|d,this.Gh=0|h,this.Gl=0|p,this.Hh=0|f,this.Hl=0|y}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)Wn[n]=e.getUint32(t),Qn[n]=e.getUint32(t+=4);for(var r=16;r<80;r++){var i=0|Wn[r-15],o=0|Qn[r-15],a=_n.rotrSH(i,o,1)^_n.rotrSH(i,o,8)^_n.shrSH(i,o,7),s=_n.rotrSL(i,o,1)^_n.rotrSL(i,o,8)^_n.shrSL(i,o,7),u=0|Wn[r-2],c=0|Qn[r-2],l=_n.rotrSH(u,c,19)^_n.rotrBH(u,c,61)^_n.shrSH(u,c,6),d=_n.rotrSL(u,c,19)^_n.rotrBL(u,c,61)^_n.shrSL(u,c,6),h=_n.add4L(s,d,Qn[r-7],Qn[r-16]),p=_n.add4H(h,a,l,Wn[r-7],Wn[r-16]);Wn[r]=0|p,Qn[r]=0|h}for(var f=this.Ah,y=this.Al,m=this.Bh,g=this.Bl,v=this.Ch,b=this.Cl,w=this.Dh,M=this.Dl,A=this.Eh,E=this.El,T=this.Fh,N=this.Fl,I=this.Gh,k=this.Gl,L=this.Hh,x=this.Hl,S=0;S<80;S++){var j=_n.rotrSH(A,E,14)^_n.rotrSH(A,E,18)^_n.rotrBH(A,E,41),C=_n.rotrSL(A,E,14)^_n.rotrSL(A,E,18)^_n.rotrBL(A,E,41),D=A&T^~A&I,O=E&N^~E&k,z=_n.add5L(x,C,O,Un[S],Qn[S]),_=_n.add5H(z,L,j,D,Bn[S],Wn[S]),P=0|z,R=_n.rotrSH(f,y,28)^_n.rotrBH(f,y,34)^_n.rotrBH(f,y,39),B=_n.rotrSL(f,y,28)^_n.rotrBL(f,y,34)^_n.rotrBL(f,y,39),U=f&m^f&v^m&v,W=y&g^y&b^g&b;L=0|I,x=0|k,I=0|T,k=0|N,T=0|A,N=0|E;var Q=_n.add(0|w,0|M,0|_,0|P);A=Q.h,E=Q.l,w=0|v,M=0|b,v=0|m,b=0|g,m=0|f,g=0|y;var Y=_n.add3L(P,B,W);f=_n.add3H(Y,_,R,U),y=0|Y}var F=_n.add(0|this.Ah,0|this.Al,0|f,0|y);f=F.h,y=F.l;var V=_n.add(0|this.Bh,0|this.Bl,0|m,0|g);m=V.h,g=V.l;var H=_n.add(0|this.Ch,0|this.Cl,0|v,0|b);v=H.h,b=H.l;var G=_n.add(0|this.Dh,0|this.Dl,0|w,0|M);w=G.h,M=G.l;var q=_n.add(0|this.Eh,0|this.El,0|A,0|E);A=q.h,E=q.l;var Z=_n.add(0|this.Fh,0|this.Fl,0|T,0|N);T=Z.h,N=Z.l;var J=_n.add(0|this.Gh,0|this.Gl,0|I,0|k);I=J.h,k=J.l;var X=_n.add(0|this.Hh,0|this.Hl,0|L,0|x);L=X.h,x=X.l,this.set(f,y,m,g,v,b,w,M,A,E,T,N,I,k,L,x)}},{key:"roundClean",value:function(){Wn.fill(0),Qn.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(),Fn=function(e){$e(n,Yn);var t=ut(n);function n(){var e;return Ze(this,n),(e=t.call(this)).Ah=-1942145080,e.Al=424955298,e.Bh=1944164710,e.Bl=-1982016298,e.Ch=502970286,e.Cl=855612546,e.Dh=1738396948,e.Dl=1479516111,e.Eh=258812777,e.El=2077511080,e.Fh=2011393907,e.Fl=79989058,e.Gh=1067287976,e.Gl=1780299464,e.Hh=286451373,e.Hl=-1848208735,e.outputLen=28,e}return Xe(n)}(),Vn=function(e){$e(n,Yn);var t=ut(n);function n(){var e;return Ze(this,n),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return Xe(n)}(),Hn=function(e){$e(n,Yn);var t=ut(n);function n(){var e;return Ze(this,n),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return Xe(n)}(),Gn=Sn((function(){return new Yn}));Sn((function(){return new Fn})),Sn((function(){return new Vn})),Sn((function(){return new Hn}));var qn=Be.crypto,Zn=BigInt(0),Jn=BigInt(1),Xn=BigInt(2),Kn=BigInt(8),$n=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),er=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:$n,n:$n,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")}),tr=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),nr=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742");var rr=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),ir=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),or=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),ar=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),sr=function(){function e(t,n,r,i){Ze(this,e),this.x=t,this.y=n,this.z=r,this.t=i}return Xe(e,[{key:"equals",value:function(e){cr(e);var t=this.x,n=this.y,r=this.z,i=e.x,o=e.y,a=e.z,s=kr(t*a),u=kr(i*r),c=kr(n*a),l=kr(o*r);return s===u&&c===l}},{key:"negate",value:function(){return new e(kr(-this.x),this.y,this.z,kr(-this.t))}},{key:"double",value:function(){var t=this.x,n=this.y,r=this.z,i=er.a,o=kr(t*t),a=kr(n*n),s=kr(Xn*kr(r*r)),u=kr(i*o),c=t+n,l=kr(kr(c*c)-o-a),d=u+a,h=d-s,p=u-a,f=kr(l*h),y=kr(d*p),m=kr(l*p);return new e(f,y,kr(h*d),m)}},{key:"add",value:function(t){cr(t);var n=this.x,r=this.y,i=this.z,o=this.t,a=t.x,s=t.y,u=t.z,c=t.t,l=kr((r-n)*(s+a)),d=kr((r+n)*(s-a)),h=kr(d-l);if(h===Zn)return this.double();var p=kr(i*Xn*c),f=kr(o*Xn*u),y=f+p,m=d+l,g=f-p,v=kr(y*h),b=kr(m*g),w=kr(y*g);return new e(v,b,kr(h*m),w)}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"precomputeWindow",value:function(e){for(var t=1+256/e,n=[],r=this,i=r,o=0;o>=d,f>u&&(f-=l,t+=Jn);var y=p,m=p+Math.abs(f)-1,g=h%2!=0,v=f<0;0===f?a=a.add(ur(g,i[y])):o=o.add(ur(v,i[m]))}return e.normalizeZ([o,a])[0]}},{key:"multiply",value:function(e,t){return this.wNAF(Or(e,er.l),t)}},{key:"multiplyUnsafe",value:function(t){var n=Or(t,er.l,!1),r=e.BASE,i=e.ZERO;if(n===Zn)return i;if(this.equals(i)||n===Jn)return this;if(this.equals(r))return this.wNAF(n);for(var o=i,a=this;n>Zn;)n&Jn&&(o=o.add(a)),a=a.double(),n>>=Jn;return o}},{key:"isSmallOrder",value:function(){return this.multiplyUnsafe(er.h).equals(e.ZERO)}},{key:"isTorsionFree",value:function(){var t=this.multiplyUnsafe(er.l/Xn).double();return er.l%Xn&&(t=t.add(this)),t.equals(e.ZERO)}},{key:"toAffine",value:function(t){var n=this.x,r=this.y,i=this.z,o=this.equals(e.ZERO);null==t&&(t=o?Kn:Lr(i));var a=kr(n*t),s=kr(r*t),u=kr(i*t);if(o)return fr.ZERO;if(u!==Jn)throw new Error("invZ was invalid");return new fr(a,s)}},{key:"fromRistrettoBytes",value:function(){dr()}},{key:"toRistrettoBytes",value:function(){dr()}},{key:"fromRistrettoHash",value:function(){dr()}}],[{key:"fromAffine",value:function(t){if(!(t instanceof fr))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return t.equals(fr.ZERO)?e.ZERO:new e(t.x,t.y,Jn,kr(t.x*t.y))}},{key:"toAffineBatch",value:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er.P,n=new Array(e.length),r=e.reduce((function(e,r,i){return r===Zn?e:(n[i]=e,kr(e*r,t))}),Jn),i=Lr(r,t);return e.reduceRight((function(e,r,i){return r===Zn?e:(n[i]=kr(e*n[i],t),kr(e*r,t))}),i),n}(e.map((function(e){return e.z})));return e.map((function(e,n){return e.toAffine(t[n])}))}},{key:"normalizeZ",value:function(e){return this.toAffineBatch(e).map(this.fromAffine)}}]),e}();function ur(e,t){var n=t.negate();return e?n:t}function cr(e){if(!(e instanceof sr))throw new TypeError("ExtendedPoint expected")}function lr(e){if(!(e instanceof hr))throw new TypeError("RistrettoPoint expected")}function dr(){throw new Error("Legacy method: switch to RistrettoPoint")}sr.BASE=new sr(er.Gx,er.Gy,Jn,kr(er.Gx*er.Gy)),sr.ZERO=new sr(Zn,Jn,Jn,Zn);var hr=function(){function e(t){Ze(this,e),this.ep=t}return Xe(e,[{key:"toRawBytes",value:function(){var e,t=this.ep,n=t.x,r=t.y,i=t.z,o=t.t,a=kr(kr(i+r)*kr(i-r)),s=kr(n*r),u=kr(s*s),c=jr(kr(a*u)).value,l=kr(c*a),d=kr(c*s),h=kr(l*d*o);if(Ar(o*h)){var p=kr(r*nr),f=kr(n*nr);n=p,r=f,e=kr(l*ir)}else e=d;Ar(n*h)&&(r=kr(-r));var y=kr((i-r)*e);return Ar(y)&&(y=kr(-y)),Mr(y)}},{key:"toHex",value:function(){return vr(this.toRawBytes())}},{key:"toString",value:function(){return this.toHex()}},{key:"equals",value:function(e){lr(e);var t=this.ep,n=e.ep,r=kr(t.x*n.y)===kr(t.y*n.x),i=kr(t.y*n.y)===kr(t.x*n.x);return r||i}},{key:"add",value:function(t){return lr(t),new e(this.ep.add(t.ep))}},{key:"subtract",value:function(t){return lr(t),new e(this.ep.subtract(t.ep))}},{key:"multiply",value:function(t){return new e(this.ep.multiply(t))}},{key:"multiplyUnsafe",value:function(t){return new e(this.ep.multiplyUnsafe(t))}}],[{key:"calcElligatorRistrettoMap",value:function(e){var t=er.d,n=kr(nr*e*e),r=kr((n+Jn)*or),i=BigInt(-1),o=kr((i-t*n)*kr(n+t)),a=Sr(r,o),s=a.isValid,u=a.value,c=kr(u*e);Ar(c)||(c=kr(-c)),s||(u=c),s||(i=n);var l=kr(i*(n-Jn)*ar-o),d=u*u,h=kr((u+u)*o),p=kr(l*rr),f=kr(Jn-d),y=kr(Jn+d);return new sr(kr(h*y),kr(f*p),kr(p*y),kr(h*f))}},{key:"hashToCurve",value:function(t){var n=Ir((t=Dr(t,64)).slice(0,32)),r=this.calcElligatorRistrettoMap(n),i=Ir(t.slice(32,64)),o=this.calcElligatorRistrettoMap(i);return new e(r.add(o))}},{key:"fromHex",value:function(t){t=Dr(t,32);var n=er.a,r=er.d,i="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",o=Ir(t);if(!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&void 0!==arguments[1])||arguments[1],r=er.d,i=er.P,o=(t=Dr(t,32)).slice();o[31]=-129&t[31];var a=Er(o);if(n&&a>=i)throw new Error("Expected 0 < hex < P");if(!n&&a>=tr)throw new Error("Expected 0 < hex < 2**256");var s=kr(a*a),u=kr(s-Jn),c=kr(r*s+Jn),l=Sr(u,c),d=l.isValid,h=l.value;if(!d)throw new Error("Point.fromHex: invalid y coordinate");var p=(h&Jn)===Jn,f=0!=(128&t[31]);return f!==p&&(h=kr(-h)),new e(h,a)}},{key:"fromPrivateKey",value:(t=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Rr(t);case 2:return e.abrupt("return",e.sent.point);case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}();fr.BASE=new fr(er.Gx,er.Gy),fr.ZERO=new fr(Zn,Jn);var yr=function(){function e(t,n){Ze(this,e),this.r=t,this.s=n,this.assertValidity()}return Xe(e,[{key:"assertValidity",value:function(){var e=this.r,t=this.s;if(!(e instanceof fr))throw new Error("Expected Point instance");return Or(t,er.l,!1),this}},{key:"toRawBytes",value:function(){var e=new Uint8Array(64);return e.set(this.r.toRawBytes()),e.set(Mr(this.s),32),e}},{key:"toHex",value:function(){return vr(this.toRawBytes())}}],[{key:"fromHex",value:function(t){var n=Dr(t,64);return new e(fr.fromHex(n.slice(0,32),!1),Er(n.slice(32,64)))}}]),e}();function mr(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:er.P,n=e%t;return n>=Zn?n:t+n}function Lr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er.P;if(e===Zn||t<=Zn)throw new Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));for(var n=kr(e,t),r=t,i=Zn,o=Jn;n!==Zn;){var a=r/n,s=r%n,u=i-o*a;r=n,n=s,i=o,o=u}var c=r;if(c!==Jn)throw new Error("invert: does not exist");return kr(i,t)}function xr(e,t){for(var n=er.P,r=e;t-- >Zn;)r*=r,r%=n;return r}function Sr(e,t){var n=kr(t*t*t),r=function(e){var t=er.P,n=BigInt(5),r=BigInt(10),i=BigInt(20),o=BigInt(40),a=BigInt(80),s=e*e%t*e%t,u=xr(s,Xn)*s%t,c=xr(u,Jn)*e%t,l=xr(c,n)*c%t,d=xr(l,r)*l%t,h=xr(d,i)*d%t,p=xr(h,o)*h%t,f=xr(p,a)*p%t,y=xr(f,a)*p%t,m=xr(y,r)*l%t;return{pow_p_5_8:xr(m,Xn)*e%t,b2:s}}(e*kr(n*n*t)).pow_p_5_8,i=kr(e*n*r),o=kr(t*i*i),a=i,s=kr(i*nr),u=o===e,c=o===kr(-e),l=o===kr(-e*nr);return u&&(i=a),(c||l)&&(i=s),Ar(i)&&(i=kr(-i)),{isValid:u||c,value:i}}function jr(e){return Sr(Jn,e)}function Cr(e){return kr(Er(e),er.l)}function Dr(e,t){var n=e instanceof Uint8Array?Uint8Array.from(e):br(e);if("number"==typeof t&&n.length!==t)throw new Error("Expected ".concat(t," bytes"));return n}function Or(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t)throw new TypeError("Specify max value");if("number"==typeof e&&Number.isSafeInteger(e)&&(e=BigInt(e)),"bigint"==typeof e&&e1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return kr(Er(e),er.l-Jn)+Jn},randomBytes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(Yr.web)return Yr.web.getRandomValues(new Uint8Array(e));if(Yr.node){var t=Yr.node.randomBytes;return new Uint8Array(t(e).buffer)}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:function(){return Fr.randomBytes(32)},sha512:(Qr=qe(Ve().mark((function e(){var t,n,r=arguments;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=mr.apply(void 0,r),!Yr.web){e.next=8;break}return e.next=4,Yr.web.subtle.digest("SHA-512",t.buffer);case 4:return n=e.sent,e.abrupt("return",new Uint8Array(n));case 8:if(!Yr.node){e.next=12;break}return e.abrupt("return",Uint8Array.from(Yr.node.createHash("sha512").update(t).digest()));case 12:throw new Error("The environment doesn't have sha512 function");case 13:case"end":return e.stop()}}),e)}))),function(){return Qr.apply(this,arguments)}),precompute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fr.BASE,n=t.equals(fr.BASE)?t:new fr(t.x,t.y);return n._setWindowSize(e),n.multiply(Xn),n},sha512Sync:void 0};Object.defineProperties(Fr,{sha512Sync:{configurable:!1,get:function(){return Tr},set:function(e){Tr||(Tr=e)}}});var Vr={exports:{}},Hr=Qe(wn);!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"===He(e)?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Hr.Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"===He(e))return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var d=["","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"],h=[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],p=[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];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?d[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],l=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var y=f.modrn(l).toString(e);r=(f=f.idivn(l)).isZero()?y+r:d[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],f=8191&p,y=p>>>13,m=0|a[2],g=8191&m,v=m>>>13,b=0|a[3],w=8191&b,M=b>>>13,A=0|a[4],E=8191&A,T=A>>>13,N=0|a[5],I=8191&N,k=N>>>13,L=0|a[6],x=8191&L,S=L>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,_=O>>>13,P=0|a[9],R=8191&P,B=P>>>13,U=0|s[0],W=8191&U,Q=U>>>13,Y=0|s[1],F=8191&Y,V=Y>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,ee=K>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,he=le>>>13,pe=0|s[9],fe=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(c+(r=Math.imul(d,W))|0)+((8191&(i=(i=Math.imul(d,Q))+Math.imul(h,W)|0))<<13)|0;c=((o=Math.imul(h,Q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(f,W),i=(i=Math.imul(f,Q))+Math.imul(y,W)|0,o=Math.imul(y,Q);var ge=(c+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,F)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,W),i=(i=Math.imul(g,Q))+Math.imul(v,W)|0,o=Math.imul(v,Q),r=r+Math.imul(f,F)|0,i=(i=i+Math.imul(f,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,W),i=(i=Math.imul(w,Q))+Math.imul(M,W)|0,o=Math.imul(M,Q),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,W),i=(i=Math.imul(E,Q))+Math.imul(T,W)|0,o=Math.imul(T,Q),r=r+Math.imul(w,F)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,W),i=(i=Math.imul(I,Q))+Math.imul(k,W)|0,o=Math.imul(k,Q),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(T,F)|0,o=o+Math.imul(T,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0;var Me=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(x,W),i=(i=Math.imul(x,Q))+Math.imul(S,W)|0,o=Math.imul(S,Q),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0;var Ae=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,W),i=(i=Math.imul(C,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,X)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,Q))+Math.imul(_,W)|0,o=Math.imul(_,Q),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Te=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(R,W),i=(i=Math.imul(R,Q))+Math.imul(B,W)|0,o=Math.imul(B,Q),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(_,F)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Ne=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ye)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,ye)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(B,F)|0,o=Math.imul(B,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,he)|0;var Ie=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ye)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(R,G),i=(i=Math.imul(R,q))+Math.imul(B,G)|0,o=Math.imul(B,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var ke=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,ye)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,J),i=(i=Math.imul(R,X))+Math.imul(B,J)|0,o=Math.imul(B,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(T,de)|0,o=o+Math.imul(T,he)|0;var Le=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(M,fe)|0))<<13)|0;c=((o=o+Math.imul(M,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(R,$),i=(i=Math.imul(R,ee))+Math.imul(B,$)|0,o=Math.imul(B,ee),r=r+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var xe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(T,fe)|0))<<13)|0;c=((o=o+Math.imul(T,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,ne),i=(i=Math.imul(R,re))+Math.imul(B,ne)|0,o=Math.imul(B,re),r=r+Math.imul(z,oe)|0,i=(i=i+Math.imul(z,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,he)|0;var Se=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ye)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,ye)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(R,oe),i=(i=Math.imul(R,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),r=r+Math.imul(z,ue)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,he)|0;var je=(c+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,ye)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(R,ue),i=(i=Math.imul(R,ce))+Math.imul(B,ue)|0,o=Math.imul(B,ce),r=r+Math.imul(z,de)|0,i=(i=i+Math.imul(z,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Ce=(c+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ye)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(R,de),i=(i=Math.imul(R,he))+Math.imul(B,de)|0,o=Math.imul(B,he);var De=(c+(r=r+Math.imul(z,fe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ye)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(c+(r=Math.imul(R,fe))|0)+((8191&(i=(i=Math.imul(R,ye))+Math.imul(B,fe)|0))<<13)|0;return c=((o=Math.imul(B,ye))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,u[0]=me,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=Me,u[6]=Ae,u[7]=Ee,u[8]=Te,u[9]=Ne,u[10]=Ie,u[11]=ke,u[12]=Le,u[13]=xe,u[14]=Se,u[15]=je,u[16]=Ce,u[17]=De,u[18]=Oe,0!==c&&(u[19]=c,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(e,t,n){return m(e,t,n)}Math.imul||(y=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?f(this,e,t):n<1024?m(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-o|d>>>o,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var h=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(o,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var f=0,y=1;0==(r.words[0]&y)&&f<26;++f,y<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,h=1;0==(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new T(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function N(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new M;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},T.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},T.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,o),h=this.pow(e,o.addn(1).iushrn(1)),p=this.pow(e,o),f=a;0!==p.cmp(s);){for(var y=p,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new N(e)},r(N,T),N.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},N.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},N.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},N.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(Vr,Ue);var Gr=Vr.exports,qr={exports:{}}; +Ve=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l={};function d(){}function h(){}function p(){}var f={};s(f,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(N([])));m&&m!==t&&n.call(m,i)&&(f=m);var g=p.prototype=d.prototype=Object.create(f);function v(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,o,a,s){var u=c(e[i],e,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function N(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function He(e){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}function Ge(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function qe(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ge(o,r,i,a,s,"next",e)}function s(e){Ge(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function at(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function st(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return at(e)}function ut(e){var t=nt();return function(){var n,r=et(e);if(t){var i=et(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return st(this,n)}}function ct(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=et(e)););return e}function lt(){return lt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=ct(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},lt.apply(this,arguments)}function dt(e,t){return pt(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||yt(e,t)||gt()}function ht(e){return function(e){if(Array.isArray(e))return mt(e)}(e)||ft(e)||yt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(e){if(Array.isArray(e))return e}function ft(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function yt(e,t){if(e){if("string"==typeof e)return mt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(e,t):void 0}}function mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var bt={},wt=void 0!==fe?fe:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Mt=[],At=[],Et="undefined"!=typeof Uint8Array?Uint8Array:Array,Nt=!1;function Tt(){Nt=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+Mt[i>>12&63]+Mt[i>>6&63]+Mt[63&i]);return o.join("")}function kt(e){var t;Nt||Tt();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(t=e[n-1],i+=Mt[t>>2],i+=Mt[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Mt[t>>10],i+=Mt[t>>4&63],i+=Mt[t<<2&63],i+="="),o.push(i),o.join("")}function Lt(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)}function xt(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*y}var St={}.toString,jt=Array.isArray||function(e){return"[object Array]"==St.call(e)};zt.TYPED_ARRAY_SUPPORT=void 0===wt.TYPED_ARRAY_SUPPORT||wt.TYPED_ARRAY_SUPPORT;var Ct=Dt();function Dt(){return zt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ot(e,t){if(Dt()=Dt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Dt().toString(16)+" bytes");return 0|e}function Wt(e){return!(null==e||!e._isBuffer)}function Qt(e,t){if(Wt(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return yn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return mn(e).length;default:if(r)return yn(e).length;t=(""+t).toLowerCase(),r=!0}}function Yt(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return rn(this,t,n);case"utf8":case"utf-8":return en(this,t,n);case"ascii":return tn(this,t,n);case"latin1":case"binary":return nn(this,t,n);case"base64":return $t(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return on(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ft(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Vt(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=zt.from(t,r)),Wt(t))return 0===t.length?-1:Ht(e,t,n,r,i);if("number"==typeof t)return t&=255,zt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Ht(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Ht(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function $t(e,t,n){return 0===t&&n===e.length?kt(e):kt(e.slice(t,n))}function en(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},zt.prototype.compare=function(e,t,n,r,i){if(!Wt(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),l=0;li)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Gt(this,e,t,n);case"utf8":case"utf-8":return qt(this,e,t,n);case"ascii":return Zt(this,e,t,n);case"latin1":case"binary":return Jt(this,e,t,n);case"base64":return Xt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kt(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},zt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tn(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function sn(e,t,n,r,i,o){if(!Wt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function un(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function cn(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function ln(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function dn(e,t,n,r,i){return i||ln(e,0,n,4),xt(e,t,n,r,23,4),n+4}function hn(e,t,n,r,i){return i||ln(e,0,n,8),xt(e,t,n,r,52,8),n+8}zt.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},zt.prototype.readUInt8=function(e,t){return t||an(e,1,this.length),this[e]},zt.prototype.readUInt16LE=function(e,t){return t||an(e,2,this.length),this[e]|this[e+1]<<8},zt.prototype.readUInt16BE=function(e,t){return t||an(e,2,this.length),this[e]<<8|this[e+1]},zt.prototype.readUInt32LE=function(e,t){return t||an(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},zt.prototype.readUInt32BE=function(e,t){return t||an(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},zt.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||an(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},zt.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||an(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},zt.prototype.readInt8=function(e,t){return t||an(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},zt.prototype.readInt16LE=function(e,t){t||an(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},zt.prototype.readInt16BE=function(e,t){t||an(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},zt.prototype.readInt32LE=function(e,t){return t||an(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},zt.prototype.readInt32BE=function(e,t){return t||an(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},zt.prototype.readFloatLE=function(e,t){return t||an(e,4,this.length),Lt(this,e,!0,23,4)},zt.prototype.readFloatBE=function(e,t){return t||an(e,4,this.length),Lt(this,e,!1,23,4)},zt.prototype.readDoubleLE=function(e,t){return t||an(e,8,this.length),Lt(this,e,!0,52,8)},zt.prototype.readDoubleBE=function(e,t){return t||an(e,8,this.length),Lt(this,e,!1,52,8)},zt.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||sn(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},zt.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,1,255,0),zt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},zt.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,2,65535,0),zt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):un(this,e,t,!0),t+2},zt.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,2,65535,0),zt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):un(this,e,t,!1),t+2},zt.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,4,4294967295,0),zt.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):cn(this,e,t,!0),t+4},zt.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,4,4294967295,0),zt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cn(this,e,t,!1),t+4},zt.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);sn(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},zt.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);sn(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},zt.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,1,127,-128),zt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},zt.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,2,32767,-32768),zt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):un(this,e,t,!0),t+2},zt.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,2,32767,-32768),zt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):un(this,e,t,!1),t+2},zt.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,4,2147483647,-2147483648),zt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):cn(this,e,t,!0),t+4},zt.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||sn(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),zt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cn(this,e,t,!1),t+4},zt.prototype.writeFloatLE=function(e,t,n){return dn(this,e,t,!0,n)},zt.prototype.writeFloatBE=function(e,t,n){return dn(this,e,t,!1,n)},zt.prototype.writeDoubleLE=function(e,t,n){return hn(this,e,t,!0,n)},zt.prototype.writeDoubleBE=function(e,t,n){return hn(this,e,t,!1,n)},zt.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!zt.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function mn(e){return function(e){var t,n,r,i,o,a;Nt||Tt();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Et(3*s/4-o),r=o>0?s-4:s;var u=0;for(t=0,n=0;t>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=At[e.charCodeAt(t)]<<2|At[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=At[e.charCodeAt(t)]<<10|At[e.charCodeAt(t+1)]<<4|At[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(pn,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function gn(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function vn(e){return null!=e&&(!!e._isBuffer||bn(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&bn(e.slice(0,0))}(e))}function bn(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var wn=Object.freeze({__proto__:null,Buffer:zt,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),zt.alloc(+e)},isBuffer:vn,kMaxLength:Ct});function Mn(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Wrong positive integer: ".concat(e))}function An(e){return e instanceof Uint8Array||null!=e&&"object"===He(e)&&"Uint8Array"===e.constructor.name}function En(e){if(!An(e))throw new Error("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&!n.includes(e.length))throw new Error("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}function Nn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Tn(e,t){En(e);var n=t.outputLen;if(e.length>>t};if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function jn(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got ".concat(He(e)));return new Uint8Array((new TextEncoder).encode(e))}function Cn(e){if("string"==typeof e&&(e=jn(e)),!Ln(e))throw new Error("expected Uint8Array, got ".concat(He(e)));return e}function Dn(){for(var e=0,t=0;t0&&void 0!==arguments[0]?arguments[0]:32;if(In&&"function"==typeof In.getRandomValues)return In.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}var Pn=function(e){$e(n,On);var t=ut(n);function n(e,r,i,o){var a;return Ze(this,n),(a=t.call(this)).blockLen=e,a.outputLen=r,a.padOffset=i,a.isLE=o,a.finished=!1,a.length=0,a.pos=0,a.destroyed=!1,a.buffer=new Uint8Array(e),a.view=xn(a.buffer),a}return Xe(n,[{key:"update",value:function(e){Nn(this);for(var t=this.view,n=this.buffer,r=this.blockLen,i=(e=Cn(e)).length,o=0;or-o&&(this.process(n,0),o=0);for(var a=o;a>i&o),s=Number(n&o),u=r?4:0,c=r?0:4;e.setUint32(t+u,a,r),e.setUint32(t+c,s,r)}(n,r-8,BigInt(8*this.length),i),this.process(n,0);var s=xn(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var c=u/4,l=this.get();if(c>l.length)throw new Error("_sha2: outputLen bigger than state");for(var d=0;d1&&void 0!==arguments[1]&&arguments[1];return t?{h:Number(e&Bn),l:Number(e>>Rn&Bn)}:{h:0|Number(e>>Rn&Bn),l:0|Number(e&Bn)}}function Wn(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length),i=0;i>>32-n},Yn=function(e,t,n){return t<>>32-n},Fn=function(e,t,n){return t<>>64-n},Vn=function(e,t,n){return e<>>64-n};var Hn={fromBig:Un,split:Wn,toBig:function(e,t){return BigInt(e>>>0)<>>0)},shrSH:function(e,t,n){return e>>>n},shrSL:function(e,t,n){return e<<32-n|t>>>n},rotrSH:function(e,t,n){return e>>>n|t<<32-n},rotrSL:function(e,t,n){return e<<32-n|t>>>n},rotrBH:function(e,t,n){return e<<64-n|t>>>n-32},rotrBL:function(e,t,n){return e>>>n-32|t<<64-n},rotr32H:function(e,t){return t},rotr32L:function(e,t){return e},rotlSH:Qn,rotlSL:Yn,rotlBH:Fn,rotlBL:Vn,add:function(e,t,n,r){var i=(t>>>0)+(r>>>0);return{h:e+n+(i/Math.pow(2,32)|0)|0,l:0|i}},add3L:function(e,t,n){return(e>>>0)+(t>>>0)+(n>>>0)},add3H:function(e,t,n,r){return t+n+r+(e/Math.pow(2,32)|0)|0},add4L:function(e,t,n,r){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)},add4H:function(e,t,n,r,i){return t+n+r+i+(e/Math.pow(2,32)|0)|0},add5H:function(e,t,n,r,i,o){return t+n+r+i+o+(e/Math.pow(2,32)|0)|0},add5L:function(e,t,n,r,i){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0)}},Gn=Hn,qn=function(){return Gn.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((function(e){return BigInt(e)})))}(),Zn=dt(qn,2),Jn=Zn[0],Xn=Zn[1],Kn=new Uint32Array(80),$n=new Uint32Array(80),er=function(e){$e(n,Pn);var t=ut(n);function n(){var e;return Ze(this,n),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return Xe(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(e,t,n,r,i,o,a,s,u,c,l,d,h,p,f,y){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|u,this.El=0|c,this.Fh=0|l,this.Fl=0|d,this.Gh=0|h,this.Gl=0|p,this.Hh=0|f,this.Hl=0|y}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)Kn[n]=e.getUint32(t),$n[n]=e.getUint32(t+=4);for(var r=16;r<80;r++){var i=0|Kn[r-15],o=0|$n[r-15],a=Gn.rotrSH(i,o,1)^Gn.rotrSH(i,o,8)^Gn.shrSH(i,o,7),s=Gn.rotrSL(i,o,1)^Gn.rotrSL(i,o,8)^Gn.shrSL(i,o,7),u=0|Kn[r-2],c=0|$n[r-2],l=Gn.rotrSH(u,c,19)^Gn.rotrBH(u,c,61)^Gn.shrSH(u,c,6),d=Gn.rotrSL(u,c,19)^Gn.rotrBL(u,c,61)^Gn.shrSL(u,c,6),h=Gn.add4L(s,d,$n[r-7],$n[r-16]),p=Gn.add4H(h,a,l,Kn[r-7],Kn[r-16]);Kn[r]=0|p,$n[r]=0|h}for(var f=this.Ah,y=this.Al,m=this.Bh,g=this.Bl,v=this.Ch,b=this.Cl,w=this.Dh,M=this.Dl,A=this.Eh,E=this.El,N=this.Fh,T=this.Fl,I=this.Gh,k=this.Gl,L=this.Hh,x=this.Hl,S=0;S<80;S++){var j=Gn.rotrSH(A,E,14)^Gn.rotrSH(A,E,18)^Gn.rotrBH(A,E,41),C=Gn.rotrSL(A,E,14)^Gn.rotrSL(A,E,18)^Gn.rotrBL(A,E,41),D=A&N^~A&I,O=E&T^~E&k,z=Gn.add5L(x,C,O,Xn[S],$n[S]),_=Gn.add5H(z,L,j,D,Jn[S],Kn[S]),P=0|z,B=Gn.rotrSH(f,y,28)^Gn.rotrBH(f,y,34)^Gn.rotrBH(f,y,39),R=Gn.rotrSL(f,y,28)^Gn.rotrBL(f,y,34)^Gn.rotrBL(f,y,39),U=f&m^f&v^m&v,W=y&g^y&b^g&b;L=0|I,x=0|k,I=0|N,k=0|T,N=0|A,T=0|E;var Q=Gn.add(0|w,0|M,0|_,0|P);A=Q.h,E=Q.l,w=0|v,M=0|b,v=0|m,b=0|g,m=0|f,g=0|y;var Y=Gn.add3L(P,R,W);f=Gn.add3H(Y,_,B,U),y=0|Y}var F=Gn.add(0|this.Ah,0|this.Al,0|f,0|y);f=F.h,y=F.l;var V=Gn.add(0|this.Bh,0|this.Bl,0|m,0|g);m=V.h,g=V.l;var H=Gn.add(0|this.Ch,0|this.Cl,0|v,0|b);v=H.h,b=H.l;var G=Gn.add(0|this.Dh,0|this.Dl,0|w,0|M);w=G.h,M=G.l;var q=Gn.add(0|this.Eh,0|this.El,0|A,0|E);A=q.h,E=q.l;var Z=Gn.add(0|this.Fh,0|this.Fl,0|N,0|T);N=Z.h,T=Z.l;var J=Gn.add(0|this.Gh,0|this.Gl,0|I,0|k);I=J.h,k=J.l;var X=Gn.add(0|this.Hh,0|this.Hl,0|L,0|x);L=X.h,x=X.l,this.set(f,y,m,g,v,b,w,M,A,E,N,T,I,k,L,x)}},{key:"roundClean",value:function(){Kn.fill(0),$n.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(),tr=zn((function(){return new er})),nr=BigInt(0),rr=BigInt(1),ir=BigInt(2);function or(e){return e instanceof Uint8Array||null!=e&&"object"===He(e)&&"Uint8Array"===e.constructor.name}var ar=Array.from({length:256},(function(e,t){return t.toString(16).padStart(2,"0")}));function sr(e){if(!or(e))throw new Error("Uint8Array expected");for(var t="",n=0;n=lr&&e<=dr?e-lr:e>=hr&&e<=pr?e-(hr-10):e>=fr&&e<=yr?e-(fr-10):void 0}function gr(e){if("string"!=typeof e)throw new Error("hex string expected, got "+He(e));var t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);for(var r=new Uint8Array(n),i=0,o=0;i0&&void 0!==arguments[0]?arguments[0]:Tr();i=s(Ir([0]),e),r=s(),0!==e.length&&(i=s(Ir([1]),e),r=s())},c=function(){if(o++>=1e3)throw new Error("drbg: tried 1000 values");for(var e=0,n=[];e2&&void 0!==arguments[2]?arguments[2]:{},r=function(t,n,r){var i=Lr[n];if("function"!=typeof i)throw new Error('Invalid validator "'.concat(n,'", expected function'));var o=e[t];if(!(r&&void 0===o||i(o,e)))throw new Error("Invalid param ".concat(String(t),"=").concat(o," (").concat(He(o),"), expected ").concat(n))},i=0,o=Object.entries(t);inr;e>>=rr,t+=1);return t},bitGet:function(e,t){return e>>BigInt(t)&rr},bitSet:function(e,t,n){return e|(n?rr:nr)<=jr?n:t+n}function Rr(e,t,n){if(n<=jr||t 0");if(n===Cr)return jr;for(var r=Cr;t>jr;)t&Cr&&(r=r*e%n),e=e*e%n,t>>=Cr;return r}function Ur(e,t,n){for(var r=e;t-- >jr;)r*=r,r%=n;return r}function Wr(e,t){if(e===jr||t<=jr)throw new Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));for(var n=Br(e,t),r=t,i=jr,o=Cr;n!==jr;){var a=r%n,s=i-o*(r/n);r=n,n=a,i=o,o=s}if(r!==Cr)throw new Error("invert: does not exist");return Br(i,t)}function Qr(e){if(e%zr===Or){var t=(e+Cr)/zr;return function(e,n){var r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}if(e%Pr===_r){var n=(e-_r)/Pr;return function(e,t){var r=e.mul(t,Dr),i=e.pow(r,n),o=e.mul(t,i),a=e.mul(e.mul(o,Dr),i),s=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),t))throw new Error("Cannot find square root");return s}}return function(e){var t,n,r,i=(e-Cr)/Dr;for(t=e-Cr,n=0;t%Dr===jr;t/=Dr,n++);for(r=Dr;r 0");if(n===jr)return e.ONE;if(n===Cr)return t;for(var r=e.ONE,i=t;n>jr;)n&Cr&&(r=e.mul(r,i)),i=e.sqr(i),n>>=Cr;return r}function Vr(e,t){var n=new Array(t.length),r=t.reduce((function(t,r,i){return e.is0(r)?t:(n[i]=t,e.mul(t,r))}),e.ONE),i=e.inv(r);return t.reduceRight((function(t,r,i){return e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r))}),i),n}function Hr(e,t){var n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function Gr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=jr)throw new Error("Expected Field ORDER > 0, got ".concat(e));var i=Hr(e,t),o=i.nBitLength,a=i.nByteLength;if(a>2048)throw new Error("Field lengths over 2048 bytes are not supported");var s=Qr(e),u=Object.freeze({ORDER:e,BITS:o,BYTES:a,MASK:Nr(o),ZERO:jr,ONE:Cr,create:function(t){return Br(t,e)},isValid:function(t){if("bigint"!=typeof t)throw new Error("Invalid field element: expected bigint, got ".concat(He(t)));return jr<=t&&tJr;)n&Xr&&(r=r.add(i)),i=i.double(),n>>=Xr;return r},precomputeWindow:function(e,t){for(var n=r(t),i=n.windows,o=n.windowSize,a=[],s=e,u=s,c=0;c>=p,m>u&&(m-=h,o+=Xr);var g=y,v=y+Math.abs(m)-1,b=f%2!=0,w=m<0;0===m?l=l.add(n(b,i[g])):c=c.add(n(w,i[v]))}return{p:c,f:l}},wNAFCached:function(e,t,n,r){var i=e._WINDOW_SIZE||1,o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,r(o))),this.wNAF(i,o,n)}}}function $r(e){return xr(e.Fp,Yr.reduce((function(e,t){return e[t]="function",e}),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),xr(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze(Fe(Fe(Fe({},Hr(e.n,e.nBitLength)),e),{p:e.Fp.ORDER}))}var ei=BigInt(0),ti=BigInt(1),ni=BigInt(2),ri=BigInt(8),ii={zip215:!0};function oi(e){var t,n,r=(n=$r(t=e),xr(t,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze(Fe({},n))),i=r.Fp,o=r.n,a=r.prehash,s=r.hash,u=r.randomBytes,c=r.nByteLength,l=r.h,d=ni<1&&void 0!==arguments[1]&&arguments[1],o=r.d,a=r.a,s=i.BYTES,u=(t=Ar("pointHex",t,s)).slice(),c=t[s-1];u[s-1]=-129&c;var l=br(u);l===ei||b(l,n?d:i.ORDER);var f=h(l*l),y=h(f-ti),m=h(o*f-a),g=p(y,m),v=g.isValid,w=g.value;if(!v)throw new Error("Point.fromHex: invalid y coordinate");var M=(w&ti)===ti,A=0!=(128&c);if(!n&&w===ei&&A)throw new Error("Point.fromHex: x=0 and x_0=1");return A!==M&&(w=h(-w)),e.fromAffine({x:w,y:l})}},{key:"fromPrivateKey",value:function(e){return x(e).point}}]),e}();E.BASE=new E(r.Gx,r.Gy,ti,h(r.Gx*r.Gy)),E.ZERO=new E(ei,ti,ti,ei);var N=E.BASE,T=E.ZERO,I=Kr(E,8*c);function k(e){return Br(e,o)}function L(e){return k(br(e))}function x(e){var t=c;e=Ar("private key",e,t);var n=Ar("hashed private key",s(e),2*t),r=f(n.slice(0,t)),i=n.slice(t,2*t),o=L(r),a=N.multiply(o),u=a.toRawBytes();return{head:r,prefix:i,scalar:o,point:a,pointBytes:u}}function S(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array,t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}};return{CURVE:r,getPublicKey:function(e){return x(e).pointBytes},sign:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=Ar("message",e),a&&(e=a(e));var r=x(t),o=r.prefix,s=r.scalar,u=r.pointBytes,l=S(n.context,o,e),d=N.multiply(l).toRawBytes(),h=S(n.context,d,u,e),p=k(l+h*s);w(p);var f=Er(d,Mr(p,i.BYTES));return Ar("result",f,2*c)},verify:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,o=r.context,s=r.zip215,u=i.BYTES;e=Ar("signature",e,2*u),t=Ar("message",t),a&&(t=a(t));var c,l,d,h=br(e.slice(u,2*u));try{c=E.fromHex(n,s),l=E.fromHex(e.slice(0,u),s),d=N.multiplyUnsafe(h)}catch(e){return!1}if(!s&&c.isSmallOrder())return!1;var p=S(o,l.toRawBytes(),c.toRawBytes(),t),f=l.add(c.multiplyUnsafe(p));return f.subtract(d).clearCofactor().equals(E.ZERO)},ExtendedPoint:E,utils:C}}var ai=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),si=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);var ui=BigInt(1),ci=BigInt(2),li=BigInt(5),di=BigInt(10),hi=BigInt(20),pi=BigInt(40),fi=BigInt(80);var yi=Gr(ai,void 0,!0),mi={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:yi,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:tr,randomBytes:_n,adjustScalarBytes:function(e){return e[0]&=248,e[31]&=127,e[31]|=64,e},uvRatio:function(e,t){var n=ai,r=Br(t*t*t,n),i=function(e){var t=ai,n=e*e%t*e%t,r=Ur(n,ci,t)*n%t,i=Ur(r,ui,t)*e%t,o=Ur(i,li,t)*i%t,a=Ur(o,di,t)*o%t,s=Ur(a,hi,t)*a%t,u=Ur(s,pi,t)*s%t,c=Ur(u,fi,t)*u%t,l=Ur(c,fi,t)*u%t,d=Ur(l,di,t)*o%t;return{pow_p_5_8:Ur(d,ci,t)*e%t,b2:n}}(e*Br(r*r*t,n)).pow_p_5_8,o=Br(e*r*i,n),a=Br(t*o*o,n),s=o,u=Br(o*si,n),c=a===e,l=a===Br(-e,n),d=a===Br(-e*si,n);return c&&(o=s),(l||d)&&(o=u),(Br(o,n)&Cr)===Cr&&(o=Br(-o,n)),{isValid:c||l,value:o}}},gi=oi(mi);function vi(e,t,n){if(t.length>255)throw new Error("Context is too big");return Dn(jn("SigEd25519 no Ed25519 collisions"),new Uint8Array([n?1:0,t.length]),t,e)}Fe(Fe({},mi),{},{domain:vi}),Fe(Fe({},mi),{},{domain:vi,prehash:tr});var bi=(yi.ORDER+BigInt(3))/BigInt(8);yi.pow(ci,bi),yi.sqrt(yi.neg(yi.ONE)),yi.ORDER,BigInt(5),BigInt(8),BigInt(486662),function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");var n=e.sqrt(t);e.isOdd(n)&&e.neg(n)}(yi,yi.neg(BigInt(486664))),BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var wi={exports:{}},Mi=Qe(wn);!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"===He(e)?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Mi.Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"===He(e))return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var d=["","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"],h=[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],p=[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];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],l=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var y=f.modrn(l).toString(e);r=(f=f.idivn(l)).isZero()?y+r:d[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],f=8191&p,y=p>>>13,m=0|a[2],g=8191&m,v=m>>>13,b=0|a[3],w=8191&b,M=b>>>13,A=0|a[4],E=8191&A,N=A>>>13,T=0|a[5],I=8191&T,k=T>>>13,L=0|a[6],x=8191&L,S=L>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,_=O>>>13,P=0|a[9],B=8191&P,R=P>>>13,U=0|s[0],W=8191&U,Q=U>>>13,Y=0|s[1],F=8191&Y,V=Y>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,ee=K>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,he=le>>>13,pe=0|s[9],fe=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(c+(r=Math.imul(d,W))|0)+((8191&(i=(i=Math.imul(d,Q))+Math.imul(h,W)|0))<<13)|0;c=((o=Math.imul(h,Q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(f,W),i=(i=Math.imul(f,Q))+Math.imul(y,W)|0,o=Math.imul(y,Q);var ge=(c+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,F)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,W),i=(i=Math.imul(g,Q))+Math.imul(v,W)|0,o=Math.imul(v,Q),r=r+Math.imul(f,F)|0,i=(i=i+Math.imul(f,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,W),i=(i=Math.imul(w,Q))+Math.imul(M,W)|0,o=Math.imul(M,Q),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,W),i=(i=Math.imul(E,Q))+Math.imul(N,W)|0,o=Math.imul(N,Q),r=r+Math.imul(w,F)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,W),i=(i=Math.imul(I,Q))+Math.imul(k,W)|0,o=Math.imul(k,Q),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0;var Me=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(x,W),i=(i=Math.imul(x,Q))+Math.imul(S,W)|0,o=Math.imul(S,Q),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0;var Ae=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,W),i=(i=Math.imul(C,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,Q))+Math.imul(_,W)|0,o=Math.imul(_,Q),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Ne=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,Q))+Math.imul(R,W)|0,o=Math.imul(R,Q),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(_,F)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Te=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ye)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,ye)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,he)|0;var Ie=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ye)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var ke=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,ye)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,he)|0;var Le=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(M,fe)|0))<<13)|0;c=((o=o+Math.imul(M,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,ee))+Math.imul(R,$)|0,o=Math.imul(R,ee),r=r+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var xe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(N,fe)|0))<<13)|0;c=((o=o+Math.imul(N,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,ne),i=(i=Math.imul(B,re))+Math.imul(R,ne)|0,o=Math.imul(R,re),r=r+Math.imul(z,oe)|0,i=(i=i+Math.imul(z,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,he)|0;var Se=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ye)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,ye)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(R,oe)|0,o=Math.imul(R,ae),r=r+Math.imul(z,ue)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,he)|0;var je=(c+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,ye)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,ue),i=(i=Math.imul(B,ce))+Math.imul(R,ue)|0,o=Math.imul(R,ce),r=r+Math.imul(z,de)|0,i=(i=i+Math.imul(z,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Ce=(c+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ye)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,de),i=(i=Math.imul(B,he))+Math.imul(R,de)|0,o=Math.imul(R,he);var De=(c+(r=r+Math.imul(z,fe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ye)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(c+(r=Math.imul(B,fe))|0)+((8191&(i=(i=Math.imul(B,ye))+Math.imul(R,fe)|0))<<13)|0;return c=((o=Math.imul(R,ye))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,u[0]=me,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=Me,u[6]=Ae,u[7]=Ee,u[8]=Ne,u[9]=Te,u[10]=Ie,u[11]=ke,u[12]=Le,u[13]=xe,u[14]=Se,u[15]=je,u[16]=Ce,u[17]=De,u[18]=Oe,0!==c&&(u[19]=c,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(e,t,n){return m(e,t,n)}Math.imul||(y=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?f(this,e,t):n<1024?m(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-o|d>>>o,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var h=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(o,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var f=0,y=1;0==(r.words[0]&y)&&f<26;++f,y<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,h=1;0==(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new N(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){N.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new M;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},N.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},N.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},N.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},N.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},N.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},N.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},N.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},N.prototype.isqr=function(e){return this.imul(e,e.clone())},N.prototype.sqr=function(e){return this.mul(e,e)},N.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,o),h=this.pow(e,o.addn(1).iushrn(1)),p=this.pow(e,o),f=a;0!==p.cmp(s);){for(var y=p,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},N.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new T(e)},r(T,N),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(wi,Ue);var Ai=wi.exports,Ei={exports:{}}; /*! safe-buffer. MIT License. Feross Aboukhadijeh */ -!function(e,t){var n=Hr,r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(qr,qr.exports);var Zr=qr.exports.Buffer;var Jr=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);e[n];){var l=t[e.charCodeAt(n)];if(255===l)return;for(var d=0,h=o-1;(0!==l||d>>0,c[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,n++}for(var p=o-i;p!==o&&0===c[p];)p++;var f=Zr.allocUnsafe(r+(o-p));f.fill(0,0,r);for(var y=r;p!==o;)f[y++]=c[p++];return f}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=Zr.from(t)),!Zr.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var d=t[i],h=0,p=u-1;(0!==d||h>>0,l[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=u-r;f!==u&&0===l[f];)f++;for(var y=s.repeat(n);f>>3,s=kn(o,17)^kn(o,19)^o>>>10;ti[r]=s+ti[r-7]+a+ti[r-16]|0}for(var u,c=this.A,l=this.B,d=this.C,h=this.D,p=this.E,f=this.F,y=this.G,m=this.H,g=0;g<64;g++){var v=m+(kn(p,6)^kn(p,11)^kn(p,25))+((u=p)&f^~u&y)+$r[g]+ti[g]|0,b=(kn(c,2)^kn(c,13)^kn(c,22))+Kr(c,l,d)|0;m=y,y=f,f=p,p=h+v|0,h=d,d=l,l=c,c=v+b|0}c=c+this.A|0,l=l+this.B|0,d=d+this.C|0,h=h+this.D|0,p=p+this.E|0,f=f+this.F|0,y=y+this.G|0,m=m+this.H|0,this.set(c,l,d,h,p,f,y,m)}},{key:"roundClean",value:function(){ti.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(),ri=function(e){$e(n,ni);var t=ut(n);function n(){var e;return Ze(this,n),(e=t.call(this)).A=-1056596264,e.B=914150663,e.C=812702999,e.D=-150054599,e.E=-4191439,e.F=1750603025,e.G=1694076839,e.H=-1090891868,e.outputLen=28,e}return Xe(n)}(),ii=Sn((function(){return new ni}));Sn((function(){return new ri}));var oi={},ai={exports:{}}; -/*! safe-buffer. MIT License. Feross Aboukhadijeh */ -!function(e,t){var n=Hr,r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(ai,ai.exports);var si=ai.exports.Buffer;var ui=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);e[n];){var l=t[e.charCodeAt(n)];if(255===l)return;for(var d=0,h=o-1;(0!==l||d>>0,c[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,n++}for(var p=o-i;p!==o&&0===c[p];)p++;var f=si.allocUnsafe(r+(o-p));f.fill(0,0,r);for(var y=r;p!==o;)f[y++]=c[p++];return f}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=si.from(t)),!si.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var d=t[i],h=0,p=u-1;(0!==d||h>>0,l[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=u-r;f!==u&&0===l[f];)f++;for(var y=s.repeat(n);f>6*n)+r];n>0;){var o=t>>6*(n-1);i.push(128|63&o),n-=1}return i}}fi.prototype={decode:function(e,t){var n;n="object"===He(e)&&e instanceof ArrayBuffer?new Uint8Array(e):"object"===He(e)&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=di(t),this._streaming||(this._decoder=new mi({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(t.stream);for(var r,i=new hi(n),o=[];!i.endOfStream()&&-1!==(r=this._decoder.handler(i,i.read()));)null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));if(!this._streaming){do{if(-1===(r=this._decoder.handler(i,i.read())))break;null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r))}while(!i.endOfStream());this._decoder=null}return o.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===o[0]?(this._BOMseen=!0,o.shift()):this._BOMseen=!0)),function(e){for(var t="",n=0;n>10),56320+(1023&r)))}return t}(o)}},yi.prototype={encode:function(e,t){e=e?String(e):"",t=di(t),this._streaming||(this._encoder=new gi(this._options)),this._streaming=Boolean(t.stream);for(var n,r=[],i=new hi(function(e){for(var t=String(e),n=t.length,r=0,i=[];r57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var a=e.charCodeAt(r+1);if(56320<=a&&a<=57343){var s=1023&o,u=1023&a;i.push(65536+(s<<10)+u),r+=1}else i.push(65533)}r+=1}return i}(e));!i.endOfStream()&&-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this._streaming){for(;-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);this._encoder=null}return new Uint8Array(r)}};var vi=Qe(Object.freeze({__proto__:null,TextEncoder:yi,TextDecoder:fi})),bi=Ue&&Ue.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),wi=Ue&&Ue.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Mi=Ue&&Ue.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":He(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ai=Ue&&Ue.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&bi(t,e,n);return wi(t,e),t},Ei=Ue&&Ue.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oi,"__esModule",{value:!0});var Ti=oi.deserializeUnchecked=Bi=oi.deserialize=_i=oi.serialize=oi.BinaryReader=oi.BinaryWriter=oi.BorshError=oi.baseDecode=oi.baseEncode=void 0,Ni=Ei(Vr.exports),Ii=Ei(ci),ki=Ai(vi),Li=new("function"!=typeof TextDecoder?ki.TextDecoder:TextDecoder)("utf-8",{fatal:!0});oi.baseEncode=function(e){return"string"==typeof e&&(e=zt.from(e,"utf8")),Ii.default.encode(zt.from(e))},oi.baseDecode=function(e){return zt.from(Ii.default.decode(e))};var xi=function(e){$e(n,it(Error));var t=ut(n);function n(e){var r;return Ze(this,n),(r=t.call(this,e)).fieldPath=[],r.originalMessage=e,r}return Xe(n,[{key:"addToFieldPath",value:function(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}]),n}();oi.BorshError=xi;var Si=function(){function e(){Ze(this,e),this.buf=zt.alloc(1024),this.length=0}return Xe(e,[{key:"maybeResize",value:function(){this.buf.length<16+this.length&&(this.buf=zt.concat([this.buf,zt.alloc(1024)]))}},{key:"writeU8",value:function(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}},{key:"writeU16",value:function(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}},{key:"writeU32",value:function(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}},{key:"writeU64",value:function(e){this.maybeResize(),this.writeBuffer(zt.from(new Ni.default(e).toArray("le",8)))}},{key:"writeU128",value:function(e){this.maybeResize(),this.writeBuffer(zt.from(new Ni.default(e).toArray("le",16)))}},{key:"writeU256",value:function(e){this.maybeResize(),this.writeBuffer(zt.from(new Ni.default(e).toArray("le",32)))}},{key:"writeU512",value:function(e){this.maybeResize(),this.writeBuffer(zt.from(new Ni.default(e).toArray("le",64)))}},{key:"writeBuffer",value:function(e){this.buf=zt.concat([zt.from(this.buf.subarray(0,this.length)),e,zt.alloc(1024)]),this.length+=e.length}},{key:"writeString",value:function(e){this.maybeResize();var t=zt.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}},{key:"writeFixedArray",value:function(e){this.writeBuffer(zt.from(e))}},{key:"writeArray",value:function(e,t){this.maybeResize(),this.writeU32(e.length);var n,r=vt(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.maybeResize(),t(i)}}catch(e){r.e(e)}finally{r.f()}}},{key:"toArray",value:function(){return this.buf.subarray(0,this.length)}}]),e}();function ji(e,t,n){var r=n.value;n.value=function(){try{for(var e=arguments.length,t=new Array(e),n=0;n=0)throw new xi("Reached the end of buffer when deserializing")}throw e}}}oi.BinaryWriter=Si;var Ci=function(){function e(t){Ze(this,e),this.buf=t,this.offset=0}return Xe(e,[{key:"readU8",value:function(){var e=this.buf.readUInt8(this.offset);return this.offset+=1,e}},{key:"readU16",value:function(){var e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}},{key:"readU32",value:function(){var e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}},{key:"readU64",value:function(){var e=this.readBuffer(8);return new Ni.default(e,"le")}},{key:"readU128",value:function(){var e=this.readBuffer(16);return new Ni.default(e,"le")}},{key:"readU256",value:function(){var e=this.readBuffer(32);return new Ni.default(e,"le")}},{key:"readU512",value:function(){var e=this.readBuffer(64);return new Ni.default(e,"le")}},{key:"readBuffer",value:function(e){if(this.offset+e>this.buf.length)throw new xi("Expected buffer length ".concat(e," isn't within bounds"));var t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}},{key:"readString",value:function(){var e=this.readU32(),t=this.readBuffer(e);try{return Li.decode(t)}catch(e){throw new xi("Error decoding UTF-8 string: ".concat(e))}}},{key:"readFixedArray",value:function(e){return new Uint8Array(this.readBuffer(e))}},{key:"readArray",value:function(e){for(var t=this.readU32(),n=Array(),r=0;r2&&void 0!==arguments[2]?arguments[2]:Si,r=new n;return zi(e,t,r),r.toArray()};function Pi(e,t,n,r){try{if("string"==typeof n)return r["read".concat(Di(n))]();if(n instanceof Array){if("number"==typeof n[0])return r.readFixedArray(n[0]);if("number"==typeof n[1]){for(var i=[],o=0;o=r.values.length)throw new xi("Enum index: ".concat(l," is out of range"));var d=dt(r.values[l],2),h=d[0];return new t(Ke({},h,Pi(e,h,d[1],n)))}throw new xi("Unexpected schema kind: ".concat(r.kind," for ").concat(t.constructor.name))}var Bi=oi.deserialize=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ci,i=new r(n),o=Ri(e,t,i);if(i.offset3&&void 0!==arguments[3]?arguments[3]:Ci,i=new r(n);return Ri(e,t,i)};var Ui={};Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.s16=Ui.s8=Ui.nu64be=Ui.u48be=Ui.u40be=Ui.u32be=Ui.u24be=Ui.u16be=xo=Ui.nu64=Ui.u48=Ui.u40=Lo=Ui.u32=Ui.u24=ko=Ui.u16=Io=Ui.u8=No=Ui.offset=Ui.greedy=Ui.Constant=Ui.UTF8=Ui.CString=Ui.Blob=Ui.Boolean=Ui.BitField=Ui.BitStructure=Ui.VariantLayout=Ui.Union=Ui.UnionLayoutDiscriminator=Ui.UnionDiscriminator=Ui.Structure=Ui.Sequence=Ui.DoubleBE=Ui.Double=Ui.FloatBE=Ui.Float=Ui.NearInt64BE=Ui.NearInt64=Ui.NearUInt64BE=Ui.NearUInt64=Ui.IntBE=Ui.Int=Ui.UIntBE=Ui.UInt=Ui.OffsetLayout=Ui.GreedyCount=Ui.ExternalLayout=Ui.bindConstructorLayout=Ui.nameWithProperty=Ui.Layout=Ui.uint8ArrayToBuffer=Ui.checkUint8Array=void 0,Ui.constant=Ui.utf8=Ui.cstr=Do=Ui.blob=Ui.unionLayoutDiscriminator=Ui.union=Co=Ui.seq=Ui.bits=jo=Ui.struct=Ui.f64be=Ui.f64=Ui.f32be=Ui.f32=Ui.ns64be=Ui.s48be=Ui.s40be=Ui.s32be=Ui.s24be=Ui.s16be=So=Ui.ns64=Ui.s48=Ui.s40=Ui.s32=Ui.s24=void 0;var Wi=Hr;function Qi(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function Yi(e){return Qi(e),Wi.Buffer.from(e.buffer,e.byteOffset,e.length)}Ui.checkUint8Array=Qi,Ui.uint8ArrayToBuffer=Yi;var Fi=function(){function e(t,n){if(Ze(this,e),!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=n}return Xe(e,[{key:"makeDestinationObject",value:function(){return{}}},{key:"getSpan",value:function(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}();function Vi(e,t){return t.property?e+"["+t.property+"]":e}Ui.Layout=Fi,Ui.nameWithProperty=Vi,Ui.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(e,"layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof Fi))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(t,"boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=function(){return new e},Object.defineProperty(e.prototype,"encode",{value:function(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,n){return t.decode(e,n)},writable:!0})};var Hi=function(e){$e(n,Fi);var t=ut(n);function n(){return Ze(this,n),t.apply(this,arguments)}return Xe(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}();Ui.ExternalLayout=Hi;var Gi=function(e){$e(n,Hi);var t=ut(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1?arguments[1]:void 0;if(Ze(this,n),!Number.isInteger(r)||0>=r)throw new TypeError("elementSpan must be a (positive) integer");return(e=t.call(this,-1,i)).elementSpan=r,e}return Xe(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Qi(e);var n=e.length-t;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(e,t,n){return 0}}]),n}();Ui.GreedyCount=Gi;var qi=function(e){$e(n,Hi);var t=ut(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;if(Ze(this,n),!(e instanceof Fi))throw new TypeError("layout must be a Layout");if(!Number.isInteger(i))throw new TypeError("offset must be integer or undefined");return(r=t.call(this,e.span,o||e.property)).layout=e,r.offset=i,r}return Xe(n,[{key:"isCount",value:function(){return this.layout instanceof Zi||this.layout instanceof Ji}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.layout.encode(e,t,n+this.offset)}}]),n}();Ui.OffsetLayout=qi;var Zi=function(e){$e(n,Fi);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yi(e).readUIntLE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Yi(t).writeUIntLE(e,n,this.span),this.span}}]),n}();Ui.UInt=Zi;var Ji=function(e){$e(n,Fi);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yi(e).readUIntBE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Yi(t).writeUIntBE(e,n,this.span),this.span}}]),n}();Ui.UIntBE=Ji;var Xi=function(e){$e(n,Fi);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yi(e).readIntLE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Yi(t).writeIntLE(e,n,this.span),this.span}}]),n}();Ui.Int=Xi;var Ki=function(e){$e(n,Fi);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yi(e).readIntBE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Yi(t).writeIntBE(e,n,this.span),this.span}}]),n}();Ui.IntBE=Ki;var $i=Math.pow(2,32);function eo(e){var t=Math.floor(e/$i);return{hi32:t,lo32:e-t*$i}}function to(e,t){return e*$i+t}var no=function(e){$e(n,Fi);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Yi(e),r=n.readUInt32LE(t),i=n.readUInt32LE(t+4);return to(i,r)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=eo(e),i=Yi(t);return i.writeUInt32LE(r.lo32,n),i.writeUInt32LE(r.hi32,n+4),8}}]),n}();Ui.NearUInt64=no;var ro=function(e){$e(n,Fi);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Yi(e),r=n.readUInt32BE(t),i=n.readUInt32BE(t+4);return to(r,i)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=eo(e),i=Yi(t);return i.writeUInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}]),n}();Ui.NearUInt64BE=ro;var io=function(e){$e(n,Fi);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Yi(e),r=n.readUInt32LE(t),i=n.readInt32LE(t+4);return to(i,r)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=eo(e),i=Yi(t);return i.writeUInt32LE(r.lo32,n),i.writeInt32LE(r.hi32,n+4),8}}]),n}();Ui.NearInt64=io;var oo=function(e){$e(n,Fi);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Yi(e),r=n.readInt32BE(t),i=n.readUInt32BE(t+4);return to(r,i)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=eo(e),i=Yi(t);return i.writeInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}]),n}();Ui.NearInt64BE=oo;var ao=function(e){$e(n,Fi);var t=ut(n);function n(e){return Ze(this,n),t.call(this,4,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yi(e).readFloatLE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Yi(t).writeFloatLE(e,n),4}}]),n}();Ui.Float=ao;var so=function(e){$e(n,Fi);var t=ut(n);function n(e){return Ze(this,n),t.call(this,4,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yi(e).readFloatBE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Yi(t).writeFloatBE(e,n),4}}]),n}();Ui.FloatBE=so;var uo=function(e){$e(n,Fi);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yi(e).readDoubleLE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Yi(t).writeDoubleLE(e,n),8}}]),n}();Ui.Double=uo;var co=function(e){$e(n,Fi);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yi(e).readDoubleBE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Yi(t).writeDoubleBE(e,n),8}}]),n}();Ui.DoubleBE=co;var lo=function(e){$e(n,Fi);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!(e instanceof Fi))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof Hi&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var a=-1;return!(r instanceof Hi)&&01&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0,r=this.count;if(r instanceof Hi&&(r=r.decode(e,t)),01&&void 0!==arguments[1]?arguments[1]:0,n=[],r=0,i=this.count;for(i instanceof Hi&&(i=i.decode(e,t));r2&&void 0!==arguments[2]?arguments[2]:0,r=this.elementLayout,i=e.reduce((function(e,i){return e+r.encode(i,t,n+e)}),0);return this.count instanceof Hi&&this.count.encode(e.length,t,n),i}}]),n}();Ui.Sequence=lo;var ho=function(e){$e(n,Fi);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!Array.isArray(e)||!e.reduce((function(e,t){return e&&t instanceof Fi}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof r&&void 0===i&&(i=r,r=void 0);var a,s=vt(e);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(0>u.span&&void 0===u.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){s.e(e)}finally{s.f()}var c=-1;try{c=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(o=t.call(this,c,r)).fields=e,o.decodePrefixes=!!i,o}return Xe(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;try{n=this.fields.reduce((function(n,r){var i=r.getSpan(e,t);return t+=i,n+i}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Qi(e);var n,r=this.makeDestinationObject(),i=vt(this.fields);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(void 0!==o.property&&(r[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"encode",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=r,o=0,a=0,s=vt(this.fields);try{for(s.s();!(n=s.n()).done;){var u=n.value,c=u.span;if(a=0c&&(c=u.getSpan(t,r)))}o=r,r+=c}}catch(e){s.e(e)}finally{s.f()}return o+a-i}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),r=vt(this.fields);try{for(r.s();!(t=r.n()).done;){var i=t.value;void 0!==i.property&&0i.span?n=-1:0<=n&&(n+=i.span)}}catch(e){r.e(e)}finally{r.f()}}}]),n}();Ui.Structure=ho;var po=function(){function e(t){Ze(this,e),this.property=t}return Xe(e,[{key:"decode",value:function(e,t){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(e,t,n){throw new Error("UnionDiscriminator is abstract")}}]),e}();Ui.UnionDiscriminator=po;var fo=function(e){$e(n,po);var t=ut(n);function n(e,r){var i;if(Ze(this,n),!(e instanceof Hi&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(i=t.call(this,r||e.property||"variant")).layout=e,i}return Xe(n,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,n){return this.layout.encode(e,t,n)}}]),n}();Ui.UnionLayoutDiscriminator=fo;var yo=function(e){$e(n,Fi);var t=ut(n);function n(e,r,i){var o,a;if(Ze(this,n),e instanceof Zi||e instanceof Ji)a=new fo(new qi(e));else if(e instanceof Hi&&e.isCount())a=new fo(e);else{if(!(e instanceof po))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");a=e}if(void 0===r&&(r=null),!(null===r||r instanceof Fi))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var s=-1;r&&0<=(s=r.span)&&(e instanceof Zi||e instanceof Ji)&&(s+=a.layout.span),(o=t.call(this,s,i)).discriminator=a,o.usesPrefixDiscriminator=e instanceof Zi||e instanceof Ji,o.defaultLayout=r,o.registry={};var u=o.defaultGetSourceVariant.bind(at(o));return o.getSourceVariant=function(e){return u(e)},o.configGetSourceVariant=function(e){u=e.bind(this)},o}return Xe(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(var n in this.registry){var r=this.registry[n];if(r.property&&Object.prototype.hasOwnProperty.call(e,r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.discriminator,i=r.decode(e,n),o=this.registry[i];if(void 0===o){var a=this.defaultLayout,s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),(t=this.makeDestinationObject())[r.property]=i,t[a.property]=a.decode(e,n+s)}else t=o.decode(e,n);return t}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getSourceVariant(e);if(void 0===r){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(e[i.property],t,n),a+o.encode(e[o.property],t,n+a)}return r.encode(e,t,n)}},{key:"addVariant",value:function(e,t,n){var r=new mo(this,e,t,n);return this.registry[e]=r,r}},{key:"getVariant",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=e instanceof Uint8Array?this.discriminator.decode(e,n):e,this.registry[t]}}]),n}();Ui.Union=yo;var mo=function(e){$e(n,Fi);var t=ut(n);function n(e,r,i,o){var a;if(Ze(this,n),!(e instanceof yo))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof i&&void 0===o&&(o=i,i=null),i){if(!(i instanceof Fi))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=i.span&&i.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=i?i.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(a=t.call(this,s,o)).union=e,a.variant=r,a.layout=i||null,a}return Xe(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var r=0;return this.layout&&(r=this.layout.getSpan(e,t+n)),n+r}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);var i=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),i+=this.layout.getSpan(t,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),n}();function go(e){return 0>e&&(e+=4294967296),e}Ui.VariantLayout=mo;var vo=function(e){$e(n,Fi);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!(e instanceof Zi||e instanceof Ji))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===i&&(i=r,r=!1),41&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject(),r=this.word.decode(e,t);this._packedSetValue(r);var i,o=vt(this.fields);try{for(o.s();!(i=o.n()).done;){var a=i.value;void 0!==a.property&&(n[a.property]=a.decode(e))}}catch(e){o.e(e)}finally{o.f()}return n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.word.decode(t,n);this._packedSetValue(r);var i,o=vt(this.fields);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(void 0!==a.property){var s=e[a.property];void 0!==s&&a.encode(s)}}}catch(e){o.e(e)}finally{o.f()}return this.word.encode(this._packedGetValue(),t,n)}},{key:"addField",value:function(e,t){var n=new bo(this,e,t);return this.fields.push(n),n}},{key:"addBoolean",value:function(e){var t=new wo(this,e);return this.fields.push(t),t}},{key:"fieldFor",value:function(e){if("string"!=typeof e)throw new TypeError("property must be string");var t,n=vt(this.fields);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.property===e)return r}}catch(e){n.e(e)}finally{n.f()}}}]),n}();Ui.BitStructure=vo;var bo=function(){function e(t,n,r){if(Ze(this,e),!(t instanceof vo))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(n)||0>=n)throw new TypeError("bits must be positive integer");var i=8*t.span,o=t.fields.reduce((function(e,t){return e+t.bits}),0);if(n+o>i)throw new Error("bits too long for span remainder ("+(i-o)+" of "+i+" remain)");this.container=t,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(e){if("number"!=typeof e||!Number.isInteger(e)||e!==go(e&this.valueMask))throw new TypeError(Vi("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var t=this.container._packedGetValue(),n=go(e<n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.span;return 0>n&&(n=this.length.decode(e,t)),Yi(e).slice(t,t+n)}},{key:"encode",value:function(e,t,n){var r=this.length;if(this.length instanceof Hi&&(r=e.length),!(e instanceof Uint8Array&&r===e.length))throw new TypeError(Vi("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>t.length)throw new RangeError("encoding overruns Uint8Array");var i=Yi(e);return Yi(t).write(i.toString("hex"),n,r,"hex"),this.length instanceof Hi&&this.length.encode(r,t,n),r}}]),n}();Ui.Blob=Mo;var Ao=function(e){$e(n,Fi);var t=ut(n);function n(e){return Ze(this,n),t.call(this,-1,e)}return Xe(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Qi(e);for(var n=t;n1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(e,t);return Yi(e).slice(t,t+n-1).toString("utf-8")}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof e&&(e=String(e));var r=Wi.Buffer.from(e,"utf8"),i=r.length;if(n+i>t.length)throw new RangeError("encoding overruns Buffer");var o=Yi(t);return r.copy(o,n),o[n+i]=0,i+1}}]),n}();Ui.CString=Ao;var Eo=function(e){$e(n,Fi);var t=ut(n);function n(e,r){var i;if(Ze(this,n),"string"==typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(i=t.call(this,-1,r)).maxSpan=e,i}return Xe(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Qi(e),e.length-t}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpan2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof e&&(e=String(e));var r=Wi.Buffer.from(e,"utf8"),i=r.length;if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return r.copy(Yi(t),n),i}}]),n}();Ui.UTF8=Eo;var To=function(e){$e(n,Fi);var t=ut(n);function n(e,r){var i;return Ze(this,n),(i=t.call(this,0,r)).value=e,i}return Xe(n,[{key:"decode",value:function(e,t){return this.value}},{key:"encode",value:function(e,t,n){return 0}}]),n}();Ui.Constant=To,Ui.greedy=function(e,t){return new Gi(e,t)};var No=Ui.offset=function(e,t,n){return new qi(e,t,n)},Io=Ui.u8=function(e){return new Zi(1,e)},ko=Ui.u16=function(e){return new Zi(2,e)};Ui.u24=function(e){return new Zi(3,e)};var Lo=Ui.u32=function(e){return new Zi(4,e)};Ui.u40=function(e){return new Zi(5,e)},Ui.u48=function(e){return new Zi(6,e)};var xo=Ui.nu64=function(e){return new no(e)};Ui.u16be=function(e){return new Ji(2,e)},Ui.u24be=function(e){return new Ji(3,e)},Ui.u32be=function(e){return new Ji(4,e)},Ui.u40be=function(e){return new Ji(5,e)},Ui.u48be=function(e){return new Ji(6,e)},Ui.nu64be=function(e){return new ro(e)},Ui.s8=function(e){return new Xi(1,e)},Ui.s16=function(e){return new Xi(2,e)},Ui.s24=function(e){return new Xi(3,e)},Ui.s32=function(e){return new Xi(4,e)},Ui.s40=function(e){return new Xi(5,e)},Ui.s48=function(e){return new Xi(6,e)};var So=Ui.ns64=function(e){return new io(e)};Ui.s16be=function(e){return new Ki(2,e)},Ui.s24be=function(e){return new Ki(3,e)},Ui.s32be=function(e){return new Ki(4,e)},Ui.s40be=function(e){return new Ki(5,e)},Ui.s48be=function(e){return new Ki(6,e)},Ui.ns64be=function(e){return new oo(e)},Ui.f32=function(e){return new ao(e)},Ui.f32be=function(e){return new so(e)},Ui.f64=function(e){return new uo(e)},Ui.f64be=function(e){return new co(e)};var jo=Ui.struct=function(e,t,n){return new ho(e,t,n)};Ui.bits=function(e,t,n){return new vo(e,t,n)};var Co=Ui.seq=function(e,t,n){return new lo(e,t,n)};Ui.union=function(e,t,n){return new yo(e,t,n)},Ui.unionLayoutDiscriminator=function(e,t){return new fo(e,t)};var Do=Ui.blob=function(e,t){return new Mo(e,t)};Ui.cstr=function(e){return new Ao(e)},Ui.utf8=function(e,t){return new Eo(e,t)},Ui.constant=function(e,t){return new To(e,t)};var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});var zo=Oo.toBigIntLE=function(e){var t=zt.from(e);t.reverse();var n=t.toString("hex");return 0===n.length?BigInt(0):BigInt("0x".concat(n))};Oo.toBigIntBE=function(e){var t=e.toString("hex");return 0===t.length?BigInt(0):BigInt("0x".concat(t))};var _o=Oo.toBufferLE=function(e,t){var n=e.toString(16),r=zt.from(n.padStart(2*t,"0").slice(0,2*t),"hex");return r.reverse(),r};Oo.toBufferBE=function(e,t){var n=e.toString(16);return zt.from(n.padStart(2*t,"0").slice(0,2*t),"hex")};var Po=["message"],Ro=Ve().mark(Vo),Bo=function(e){$e(n,it(TypeError));var t=ut(n);function n(e,r){var i,o;Ze(this,n);var a=e.message,s=ot(e,Po),u=e.path,c=0===u.length?a:"At path: "+u.join(".")+" -- "+a;return i=t.call(this,c),Object.assign(at(i),s),i.name=i.constructor.name,i.failures=function(){var t;return null!=(t=o)?t:o=[e].concat(ht(r()))},i}return Xe(n)}();function Uo(e){return Wo(e)&&"function"==typeof e[Symbol.iterator]}function Wo(e){return"object"===He(e)&&null!=e}function Qo(e){return"string"==typeof e?JSON.stringify(e):""+e}function Yo(e){var t=e.next(),n=t.done,r=t.value;return n?void 0:r}function Fo(e,t,n,r){if(!0!==e){!1===e?e={}:"string"==typeof e&&(e={message:e});var i=t.path,o=t.branch,a=n.type,s=e,u=s.refinement,c=s.message,l=void 0===c?"Expected a value of type `"+a+"`"+(u?" with refinement `"+u+"`":"")+", but received: `"+Qo(r)+"`":c;return Fe(Fe({value:r,type:a,refinement:u,key:i[i.length-1],path:i,branch:o},e),{},{message:l})}}function Vo(e,t,n,r){var i,o,a,s;return Ve().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:Uo(e)||(e=[e]),i=vt(e),u.prev=2,i.s();case 4:if((o=i.n()).done){u.next=12;break}if(a=o.value,!(s=Fo(a,t,n,r))){u.next=10;break}return u.next=10,s;case 10:u.next=4;break;case 12:u.next=17;break;case 14:u.prev=14,u.t0=u.catch(2),i.e(u.t0);case 17:return u.prev=17,i.f(),u.finish(17);case 20:case"end":return u.stop()}}),Ro,null,[[2,14,17,20]])}function Ho(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ve().mark((function r(){var i,o,a,s,u,c,l,d,h,p,f,y,m,g,v,b,w,M,A,E,T,N,I,k,L,x,S;return Ve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=n.path,o=void 0===i?[]:i,a=n.branch,s=void 0===a?[e]:a,u=n.coerce,c=void 0!==u&&u,l=n.mask,d=void 0!==l&&l,h={path:o,branch:s},c&&(e=t.coercer(e,h),d&&"type"!==t.type&&Wo(t.schema)&&Wo(e)&&!Array.isArray(e)))for(p in e)void 0===t.schema[p]&&delete e[p];f=!0,y=vt(t.validator(e,h)),r.prev=5,y.s();case 7:if((m=y.n()).done){r.next=14;break}return g=m.value,f=!1,r.next=12,[g,void 0];case 12:r.next=7;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(5),y.e(r.t0);case 19:return r.prev=19,y.f(),r.finish(19);case 22:v=vt(t.entries(e,h)),r.prev=23,v.s();case 25:if((b=v.n()).done){r.next=52;break}w=dt(b.value,3),M=w[0],A=w[1],E=w[2],T=Ho(A,E,{path:void 0===M?o:[].concat(ht(o),[M]),branch:void 0===M?s:[].concat(ht(s),[A]),coerce:c,mask:d}),N=vt(T),r.prev=29,N.s();case 31:if((I=N.n()).done){r.next=42;break}if(!(k=I.value)[0]){r.next=39;break}return f=!1,r.next=37,[k[0],void 0];case 37:r.next=40;break;case 39:c&&(A=k[1],void 0===M?e=A:e instanceof Map?e.set(M,A):e instanceof Set?e.add(A):Wo(e)&&(e[M]=A));case 40:r.next=31;break;case 42:r.next=47;break;case 44:r.prev=44,r.t1=r.catch(29),N.e(r.t1);case 47:return r.prev=47,N.f(),r.finish(47);case 50:r.next=25;break;case 52:r.next=57;break;case 54:r.prev=54,r.t2=r.catch(23),v.e(r.t2);case 57:return r.prev=57,v.f(),r.finish(57);case 60:if(!f){r.next=79;break}L=vt(t.refiner(e,h)),r.prev=62,L.s();case 64:if((x=L.n()).done){r.next=71;break}return S=x.value,f=!1,r.next=69,[S,void 0];case 69:r.next=64;break;case 71:r.next=76;break;case 73:r.prev=73,r.t3=r.catch(62),L.e(r.t3);case 76:return r.prev=76,L.f(),r.finish(76);case 79:if(!f){r.next=82;break}return r.next=82,[void 0,e];case 82:case"end":return r.stop()}}),r,null,[[5,16,19,22],[23,54,57,60],[29,44,47,50],[62,73,76,79]])}))()}var Go,qo=function(){function e(t){var n=this;Ze(this,e);var r=t.type,i=t.schema,o=t.validator,a=t.refiner,s=t.coercer,u=void 0===s?function(e){return e}:s,c=t.entries,l=void 0===c?Ve().mark((function e(){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})):c;this.type=r,this.schema=i,this.entries=l,this.coercer=u,this.validator=o?function(e,t){return Vo(o(e,t),t,n,e)}:function(){return[]},this.refiner=a?function(e,t){return Vo(a(e,t),t,n,e)}:function(){return[]}}return Xe(e,[{key:"assert",value:function(e){return Zo(e,this)}},{key:"create",value:function(e){return Jo(e,this)}},{key:"is",value:function(e){return Xo(e,this)}},{key:"mask",value:function(e){return function(e,t){var n=Ko(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(e,this)}},{key:"validate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ko(e,this,t)}}]),e}();function Zo(e,t){var n=Ko(e,t);if(n[0])throw n[0]}function Jo(e,t){var n=Ko(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function Xo(e,t){return!Ko(e,t)[0]}function Ko(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ho(e,t,n),i=Yo(r);if(i[0]){var o=new Bo(i[0],Ve().mark((function e(){var t,n,i;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=vt(r),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=10;break}if(!(i=n.value)[0]){e.next=8;break}return e.next=8,i[0];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])})));return[o,void 0]}var a=i[1];return[void 0,a]}function $o(e,t){return new qo({type:e,schema:null,validator:t})}function ea(e){return new qo({type:"array",schema:e,entries:Ve().mark((function t(n){var r,i,o,a,s;return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e||!Array.isArray(n)){t.next=18;break}r=vt(n.entries()),t.prev=2,r.s();case 4:if((i=r.n()).done){t.next=10;break}return o=dt(i.value,2),a=o[0],s=o[1],t.next=8,[a,s,e];case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),r.e(t.t0);case 15:return t.prev=15,r.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})),coercer:function(e){return Array.isArray(e)?e.slice():e},validator:function(e){return Array.isArray(e)||"Expected an array value, but received: "+Qo(e)}})}function ta(){return $o("boolean",(function(e){return"boolean"==typeof e}))}function na(e){return $o("instance",(function(t){return t instanceof e||"Expected a `"+e.name+"` instance, but received: "+Qo(t)}))}function ra(e){var t=Qo(e),n=He(e);return new qo({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:function(n){return n===e||"Expected the literal `"+t+"`, but received: "+Qo(n)}})}function ia(e){return new qo(Fe(Fe({},e),{},{validator:function(t,n){return null===t||e.validator(t,n)},refiner:function(t,n){return null===t||e.refiner(t,n)}}))}function oa(){return $o("number",(function(e){return"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+Qo(e)}))}function aa(e){return new qo(Fe(Fe({},e),{},{validator:function(t,n){return void 0===t||e.validator(t,n)},refiner:function(t,n){return void 0===t||e.refiner(t,n)}}))}function sa(e,t){return new qo({type:"record",schema:null,entries:Ve().mark((function n(r){var i,o;return Ve().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Wo(r)){n.next=11;break}n.t0=Ve().keys(r);case 2:if((n.t1=n.t0()).done){n.next=11;break}return i=n.t1.value,o=r[i],n.next=7,[i,i,e];case 7:return n.next=9,[i,o,t];case 9:n.next=2;break;case 11:case"end":return n.stop()}}),n)})),validator:function(e){return Wo(e)||"Expected an object, but received: "+Qo(e)}})}function ua(){return $o("string",(function(e){return"string"==typeof e||"Expected a string, but received: "+Qo(e)}))}function ca(e){var t=$o("never",(function(){return!1}));return new qo({type:"tuple",schema:null,entries:Ve().mark((function n(r){var i,o;return Ve().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(r)){n.next=9;break}i=Math.max(e.length,r.length),o=0;case 3:if(!(o1&&void 0!==arguments[1]?arguments[1]:0,n=(wa[e[t+0]]+wa[e[t+1]]+wa[e[t+2]]+wa[e[t+3]]+"-"+wa[e[t+4]]+wa[e[t+5]]+"-"+wa[e[t+6]]+wa[e[t+7]]+"-"+wa[e[t+8]]+wa[e[t+9]]+"-"+wa[e[t+10]]+wa[e[t+11]]+wa[e[t+12]]+wa[e[t+13]]+wa[e[t+14]]+wa[e[t+15]]).toLowerCase();if(!ga(n))throw TypeError("Stringified UUID is invalid");return n}var Ea=0,Ta=0;function Na(e){if(!ga(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Ia(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>>9<<4)+1}function La(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function xa(e,t,n,r,i,o){return La((a=La(La(t,e),La(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function Sa(e,t,n,r,i,o,a){return xa(t&n|~t&r,e,t,i,o,a)}function ja(e,t,n,r,i,o,a){return xa(t&r|n&~r,e,t,i,o,a)}function Ca(e,t,n,r,i,o,a){return xa(t^n^r,e,t,i,o,a)}function Da(e,t,n,r,i,o,a){return xa(n^(t|~r),e,t,i,o,a)}var Oa=Ia("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[r/8])<>>32-t}var Ra=Ia("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i>>0;b=v,v=g,g=Pa(m,30)>>>0,m=y,y=A}n[0]=n[0]+y>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+v>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),Ba=Ra;var Ua=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||va,a=void 0!==e.clockseq?e.clockseq:ba;if(null==o||null==a){var s=e.random||(e.rng||ya)();null==o&&(o=va=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=ba=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:Ta+1,l=u-Ea+(c-Ta)/1e4;if(l<0&&void 0===e.clockseq&&(a=a+1&16383),(l<0||u>Ea)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ea=u,Ta=c,ba=a;var d=(1e4*(268435455&(u+=122192928e5))+c)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=255&d;var h=u/4294967296*1e4&268435455;i[r++]=h>>>8&255,i[r++]=255&h,i[r++]=h>>>24&15|16,i[r++]=h>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var p=0;p<6;++p)i[r+p]=o[p];return t||Aa(i)},v3:za,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||ya)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Aa(r)},v5:Ba,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!ga(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:ga,stringify:Aa,parse:Na}),Wa=Qe(Ua),Qa=Wa.v4,Ya=function(e,t,n,r){if("string"!=typeof e)throw new TypeError(e+" must be a string");var i="number"==typeof(r=r||{}).version?r.version:2;if(1!==i&&2!==i)throw new TypeError(i+" must be 1 or 2");var o={method:e};if(2===i&&(o.jsonrpc="2.0"),t){if("object"!==He(t)&&!Array.isArray(t))throw new TypeError(t+" must be an object, array or omitted");o.params=t}if(void 0===n){var a="function"==typeof r.generator?r.generator:function(){return Qa()};o.id=a(o,r)}else 2===i&&null===n?r.notificationIdNull&&(o.id=null):o.id=n;return o},Fa=Wa.v4,Va=Ya,Ha=function e(t,n){if(!(this instanceof e))return new e(t,n);n||(n={}),this.options={reviver:void 0!==n.reviver?n.reviver:null,replacer:void 0!==n.replacer?n.replacer:null,generator:void 0!==n.generator?n.generator:function(){return Fa()},version:void 0!==n.version?n.version:2,notificationIdNull:"boolean"==typeof n.notificationIdNull&&n.notificationIdNull},this.callServer=t},Ga=Ha;Ha.prototype.request=function(e,t,n,r){var i=this,o=null,a=Array.isArray(e)&&"function"==typeof t;if(1===this.options.version&&a)throw new TypeError("JSON-RPC 1.0 does not support batching");var s,u=!a&&e&&"object"===He(e)&&"function"==typeof t;if(a||u)r=t,o=e;else{"function"==typeof n&&(r=n,n=void 0);var c="function"==typeof r;try{o=Va(e,t,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(e){if(c)return r(e);throw e}if(!c)return o}try{s=JSON.stringify(o,this.options.replacer)}catch(e){return r(e)}return this.callServer(s,(function(e,t){i._parseResponse(e,t,r)})),o},Ha.prototype._parseResponse=function(e,t,n){if(e)n(e);else{if(!t)return n();var r;try{r=JSON.parse(t,this.options.reviver)}catch(e){return n(e)}if(3===n.length){if(Array.isArray(r)){var i=function(e){return void 0!==e.error};return n(null,r.filter(i),r.filter((function(e){return!i(e)})))}return n(null,r.error,r.result)}n(null,r)}};var qa,Za=Ga,Ja={},Xa={exports:{}};(qa=Xa).exports=function(e){return e&&e.__esModule?e:{default:e}},qa.exports.__esModule=!0,qa.exports.default=qa.exports;var Ka,$a,es,ts,ns={exports:{}},rs={exports:{}};function is(){return Ka||(Ka=1,function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(rs)),rs.exports}function os(){return $a||($a=1,function(e){var t=is().default;function n(){ +!function(e,t){var n=Mi,r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(Ei,Ei.exports);var Ni=Ei.exports.Buffer;var Ti=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);e[n];){var l=t[e.charCodeAt(n)];if(255===l)return;for(var d=0,h=o-1;(0!==l||d>>0,c[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,n++}for(var p=o-i;p!==o&&0===c[p];)p++;var f=Ni.allocUnsafe(r+(o-p));f.fill(0,0,r);for(var y=r;p!==o;)f[y++]=c[p++];return f}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=Ni.from(t)),!Ni.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var d=t[i],h=0,p=u-1;(0!==d||h>>0,l[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=u-r;f!==u&&0===l[f];)f++;for(var y=s.repeat(n);f>>3,s=Sn(o,17)^Sn(o,19)^o>>>10;Si[r]=s+Si[r-7]+a+Si[r-16]|0}for(var u,c=this.A,l=this.B,d=this.C,h=this.D,p=this.E,f=this.F,y=this.G,m=this.H,g=0;g<64;g++){var v=m+(Sn(p,6)^Sn(p,11)^Sn(p,25))+((u=p)&f^~u&y)+Li[g]+Si[g]|0,b=(Sn(c,2)^Sn(c,13)^Sn(c,22))+ki(c,l,d)|0;m=y,y=f,f=p,p=h+v|0,h=d,d=l,l=c,c=v+b|0}c=c+this.A|0,l=l+this.B|0,d=d+this.C|0,h=h+this.D|0,p=p+this.E|0,f=f+this.F|0,y=y+this.G|0,m=m+this.H|0,this.set(c,l,d,h,p,f,y,m)}},{key:"roundClean",value:function(){Si.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(),Ci=zn((function(){return new ji})),Di={},Oi={exports:{}};!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"===He(e)?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Mi.Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"===He(e))return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var d=["","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"],h=[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],p=[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];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?d[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],l=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var y=f.modrn(l).toString(e);r=(f=f.idivn(l)).isZero()?y+r:d[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],f=8191&p,y=p>>>13,m=0|a[2],g=8191&m,v=m>>>13,b=0|a[3],w=8191&b,M=b>>>13,A=0|a[4],E=8191&A,N=A>>>13,T=0|a[5],I=8191&T,k=T>>>13,L=0|a[6],x=8191&L,S=L>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,_=O>>>13,P=0|a[9],B=8191&P,R=P>>>13,U=0|s[0],W=8191&U,Q=U>>>13,Y=0|s[1],F=8191&Y,V=Y>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,ee=K>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,he=le>>>13,pe=0|s[9],fe=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(c+(r=Math.imul(d,W))|0)+((8191&(i=(i=Math.imul(d,Q))+Math.imul(h,W)|0))<<13)|0;c=((o=Math.imul(h,Q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(f,W),i=(i=Math.imul(f,Q))+Math.imul(y,W)|0,o=Math.imul(y,Q);var ge=(c+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,F)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,W),i=(i=Math.imul(g,Q))+Math.imul(v,W)|0,o=Math.imul(v,Q),r=r+Math.imul(f,F)|0,i=(i=i+Math.imul(f,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,W),i=(i=Math.imul(w,Q))+Math.imul(M,W)|0,o=Math.imul(M,Q),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,W),i=(i=Math.imul(E,Q))+Math.imul(N,W)|0,o=Math.imul(N,Q),r=r+Math.imul(w,F)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,W),i=(i=Math.imul(I,Q))+Math.imul(k,W)|0,o=Math.imul(k,Q),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0;var Me=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(x,W),i=(i=Math.imul(x,Q))+Math.imul(S,W)|0,o=Math.imul(S,Q),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0;var Ae=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,W),i=(i=Math.imul(C,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,Q))+Math.imul(_,W)|0,o=Math.imul(_,Q),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Ne=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,Q))+Math.imul(R,W)|0,o=Math.imul(R,Q),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(_,F)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Te=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ye)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,ye)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,he)|0;var Ie=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ye)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var ke=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,ye)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,he)|0;var Le=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(M,fe)|0))<<13)|0;c=((o=o+Math.imul(M,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,ee))+Math.imul(R,$)|0,o=Math.imul(R,ee),r=r+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var xe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(N,fe)|0))<<13)|0;c=((o=o+Math.imul(N,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,ne),i=(i=Math.imul(B,re))+Math.imul(R,ne)|0,o=Math.imul(R,re),r=r+Math.imul(z,oe)|0,i=(i=i+Math.imul(z,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,he)|0;var Se=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ye)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,ye)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(R,oe)|0,o=Math.imul(R,ae),r=r+Math.imul(z,ue)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,he)|0;var je=(c+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,ye)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,ue),i=(i=Math.imul(B,ce))+Math.imul(R,ue)|0,o=Math.imul(R,ce),r=r+Math.imul(z,de)|0,i=(i=i+Math.imul(z,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Ce=(c+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ye)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,de),i=(i=Math.imul(B,he))+Math.imul(R,de)|0,o=Math.imul(R,he);var De=(c+(r=r+Math.imul(z,fe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ye)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(c+(r=Math.imul(B,fe))|0)+((8191&(i=(i=Math.imul(B,ye))+Math.imul(R,fe)|0))<<13)|0;return c=((o=Math.imul(R,ye))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,u[0]=me,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=Me,u[6]=Ae,u[7]=Ee,u[8]=Ne,u[9]=Te,u[10]=Ie,u[11]=ke,u[12]=Le,u[13]=xe,u[14]=Se,u[15]=je,u[16]=Ce,u[17]=De,u[18]=Oe,0!==c&&(u[19]=c,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(e,t,n){return m(e,t,n)}Math.imul||(y=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?f(this,e,t):n<1024?m(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-o|d>>>o,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var h=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(o,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var f=0,y=1;0==(r.words[0]&y)&&f<26;++f,y<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,h=1;0==(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new N(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){N.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new M;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},N.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},N.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},N.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},N.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},N.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},N.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},N.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},N.prototype.isqr=function(e){return this.imul(e,e.clone())},N.prototype.sqr=function(e){return this.mul(e,e)},N.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,o),h=this.pow(e,o.addn(1).iushrn(1)),p=this.pow(e,o),f=a;0!==p.cmp(s);){for(var y=p,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},N.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new T(e)},r(T,N),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(Oi,Ue);var zi={exports:{}}; +/*! safe-buffer. MIT License. Feross Aboukhadijeh */!function(e,t){var n=Mi,r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(zi,zi.exports);var _i=zi.exports.Buffer;var Pi=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);e[n];){var l=t[e.charCodeAt(n)];if(255===l)return;for(var d=0,h=o-1;(0!==l||d>>0,c[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,n++}for(var p=o-i;p!==o&&0===c[p];)p++;var f=_i.allocUnsafe(r+(o-p));f.fill(0,0,r);for(var y=r;p!==o;)f[y++]=c[p++];return f}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=_i.from(t)),!_i.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var d=t[i],h=0,p=u-1;(0!==d||h>>0,l[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=u-r;f!==u&&0===l[f];)f++;for(var y=s.repeat(n);f>6*n)+r];n>0;){var o=t>>6*(n-1);i.push(128|63&o),n-=1}return i}}Yi.prototype={decode:function(e,t){var n;n="object"===He(e)&&e instanceof ArrayBuffer?new Uint8Array(e):"object"===He(e)&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=Ui(t),this._streaming||(this._decoder=new Vi({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(t.stream);for(var r,i=new Wi(n),o=[];!i.endOfStream()&&-1!==(r=this._decoder.handler(i,i.read()));)null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));if(!this._streaming){do{if(-1===(r=this._decoder.handler(i,i.read())))break;null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r))}while(!i.endOfStream());this._decoder=null}return o.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===o[0]?(this._BOMseen=!0,o.shift()):this._BOMseen=!0)),function(e){for(var t="",n=0;n>10),56320+(1023&r)))}return t}(o)}},Fi.prototype={encode:function(e,t){e=e?String(e):"",t=Ui(t),this._streaming||(this._encoder=new Hi(this._options)),this._streaming=Boolean(t.stream);for(var n,r=[],i=new Wi(function(e){for(var t=String(e),n=t.length,r=0,i=[];r57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var a=e.charCodeAt(r+1);if(56320<=a&&a<=57343){var s=1023&o,u=1023&a;i.push(65536+(s<<10)+u),r+=1}else i.push(65533)}r+=1}return i}(e));!i.endOfStream()&&-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this._streaming){for(;-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);this._encoder=null}return new Uint8Array(r)}};var Gi=Qe(Object.freeze({__proto__:null,TextEncoder:Fi,TextDecoder:Yi})),qi=Ue&&Ue.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),Zi=Ue&&Ue.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Ji=Ue&&Ue.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":He(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Xi=Ue&&Ue.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&qi(t,e,n);return Zi(t,e),t},Ki=Ue&&Ue.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Di,"__esModule",{value:!0});var $i=Di.deserializeUnchecked=yo=Di.deserialize=ho=Di.serialize=Di.BinaryReader=Di.BinaryWriter=Di.BorshError=Di.baseDecode=Di.baseEncode=void 0,eo=Ki(Oi.exports),to=Ki(Bi),no=Xi(Gi),ro=new("function"!=typeof TextDecoder?no.TextDecoder:TextDecoder)("utf-8",{fatal:!0});Di.baseEncode=function(e){return"string"==typeof e&&(e=zt.from(e,"utf8")),to.default.encode(zt.from(e))},Di.baseDecode=function(e){return zt.from(to.default.decode(e))};var io=function(e){$e(n,it(Error));var t=ut(n);function n(e){var r;return Ze(this,n),(r=t.call(this,e)).fieldPath=[],r.originalMessage=e,r}return Xe(n,[{key:"addToFieldPath",value:function(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}]),n}();Di.BorshError=io;var oo=function(){function e(){Ze(this,e),this.buf=zt.alloc(1024),this.length=0}return Xe(e,[{key:"maybeResize",value:function(){this.buf.length<16+this.length&&(this.buf=zt.concat([this.buf,zt.alloc(1024)]))}},{key:"writeU8",value:function(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}},{key:"writeU16",value:function(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}},{key:"writeU32",value:function(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}},{key:"writeU64",value:function(e){this.maybeResize(),this.writeBuffer(zt.from(new eo.default(e).toArray("le",8)))}},{key:"writeU128",value:function(e){this.maybeResize(),this.writeBuffer(zt.from(new eo.default(e).toArray("le",16)))}},{key:"writeU256",value:function(e){this.maybeResize(),this.writeBuffer(zt.from(new eo.default(e).toArray("le",32)))}},{key:"writeU512",value:function(e){this.maybeResize(),this.writeBuffer(zt.from(new eo.default(e).toArray("le",64)))}},{key:"writeBuffer",value:function(e){this.buf=zt.concat([zt.from(this.buf.subarray(0,this.length)),e,zt.alloc(1024)]),this.length+=e.length}},{key:"writeString",value:function(e){this.maybeResize();var t=zt.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}},{key:"writeFixedArray",value:function(e){this.writeBuffer(zt.from(e))}},{key:"writeArray",value:function(e,t){this.maybeResize(),this.writeU32(e.length);var n,r=vt(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.maybeResize(),t(i)}}catch(e){r.e(e)}finally{r.f()}}},{key:"toArray",value:function(){return this.buf.subarray(0,this.length)}}]),e}();function ao(e,t,n){var r=n.value;n.value=function(){try{for(var e=arguments.length,t=new Array(e),n=0;n=0)throw new io("Reached the end of buffer when deserializing")}throw e}}}Di.BinaryWriter=oo;var so=function(){function e(t){Ze(this,e),this.buf=t,this.offset=0}return Xe(e,[{key:"readU8",value:function(){var e=this.buf.readUInt8(this.offset);return this.offset+=1,e}},{key:"readU16",value:function(){var e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}},{key:"readU32",value:function(){var e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}},{key:"readU64",value:function(){var e=this.readBuffer(8);return new eo.default(e,"le")}},{key:"readU128",value:function(){var e=this.readBuffer(16);return new eo.default(e,"le")}},{key:"readU256",value:function(){var e=this.readBuffer(32);return new eo.default(e,"le")}},{key:"readU512",value:function(){var e=this.readBuffer(64);return new eo.default(e,"le")}},{key:"readBuffer",value:function(e){if(this.offset+e>this.buf.length)throw new io("Expected buffer length ".concat(e," isn't within bounds"));var t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}},{key:"readString",value:function(){var e=this.readU32(),t=this.readBuffer(e);try{return ro.decode(t)}catch(e){throw new io("Error decoding UTF-8 string: ".concat(e))}}},{key:"readFixedArray",value:function(e){return new Uint8Array(this.readBuffer(e))}},{key:"readArray",value:function(e){for(var t=this.readU32(),n=Array(),r=0;r2&&void 0!==arguments[2]?arguments[2]:oo,r=new n;return lo(e,t,r),r.toArray()};function po(e,t,n,r){try{if("string"==typeof n)return r["read".concat(uo(n))]();if(n instanceof Array){if("number"==typeof n[0])return r.readFixedArray(n[0]);if("number"==typeof n[1]){for(var i=[],o=0;o=r.values.length)throw new io("Enum index: ".concat(l," is out of range"));var d=dt(r.values[l],2),h=d[0];return new t(Ke({},h,po(e,h,d[1],n)))}throw new io("Unexpected schema kind: ".concat(r.kind," for ").concat(t.constructor.name))}var yo=Di.deserialize=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:so,i=new r(n),o=fo(e,t,i);if(i.offset3&&void 0!==arguments[3]?arguments[3]:so,i=new r(n);return fo(e,t,i)};var mo={};Object.defineProperty(mo,"__esModule",{value:!0}),mo.s16=mo.s8=mo.nu64be=mo.u48be=mo.u40be=mo.u32be=mo.u24be=mo.u16be=ia=mo.nu64=mo.u48=mo.u40=ra=mo.u32=mo.u24=na=mo.u16=ta=mo.u8=ea=mo.offset=mo.greedy=mo.Constant=mo.UTF8=mo.CString=mo.Blob=mo.Boolean=mo.BitField=mo.BitStructure=mo.VariantLayout=mo.Union=mo.UnionLayoutDiscriminator=mo.UnionDiscriminator=mo.Structure=mo.Sequence=mo.DoubleBE=mo.Double=mo.FloatBE=mo.Float=mo.NearInt64BE=mo.NearInt64=mo.NearUInt64BE=mo.NearUInt64=mo.IntBE=mo.Int=mo.UIntBE=mo.UInt=mo.OffsetLayout=mo.GreedyCount=mo.ExternalLayout=mo.bindConstructorLayout=mo.nameWithProperty=mo.Layout=mo.uint8ArrayToBuffer=mo.checkUint8Array=void 0,mo.constant=mo.utf8=mo.cstr=ua=mo.blob=mo.unionLayoutDiscriminator=mo.union=sa=mo.seq=mo.bits=aa=mo.struct=mo.f64be=mo.f64=mo.f32be=mo.f32=mo.ns64be=mo.s48be=mo.s40be=mo.s32be=mo.s24be=mo.s16be=oa=mo.ns64=mo.s48=mo.s40=mo.s32=mo.s24=void 0;var go=Mi;function vo(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function bo(e){return vo(e),go.Buffer.from(e.buffer,e.byteOffset,e.length)}mo.checkUint8Array=vo,mo.uint8ArrayToBuffer=bo;var wo=function(){function e(t,n){if(Ze(this,e),!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=n}return Xe(e,[{key:"makeDestinationObject",value:function(){return{}}},{key:"getSpan",value:function(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}();function Mo(e,t){return t.property?e+"["+t.property+"]":e}mo.Layout=wo,mo.nameWithProperty=Mo,mo.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(e,"layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof wo))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(t,"boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=function(){return new e},Object.defineProperty(e.prototype,"encode",{value:function(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,n){return t.decode(e,n)},writable:!0})};var Ao=function(e){$e(n,wo);var t=ut(n);function n(){return Ze(this,n),t.apply(this,arguments)}return Xe(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}();mo.ExternalLayout=Ao;var Eo=function(e){$e(n,Ao);var t=ut(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1?arguments[1]:void 0;if(Ze(this,n),!Number.isInteger(r)||0>=r)throw new TypeError("elementSpan must be a (positive) integer");return(e=t.call(this,-1,i)).elementSpan=r,e}return Xe(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;vo(e);var n=e.length-t;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(e,t,n){return 0}}]),n}();mo.GreedyCount=Eo;var No=function(e){$e(n,Ao);var t=ut(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;if(Ze(this,n),!(e instanceof wo))throw new TypeError("layout must be a Layout");if(!Number.isInteger(i))throw new TypeError("offset must be integer or undefined");return(r=t.call(this,e.span,o||e.property)).layout=e,r.offset=i,r}return Xe(n,[{key:"isCount",value:function(){return this.layout instanceof To||this.layout instanceof Io}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.layout.encode(e,t,n+this.offset)}}]),n}();mo.OffsetLayout=No;var To=function(e){$e(n,wo);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return bo(e).readUIntLE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return bo(t).writeUIntLE(e,n,this.span),this.span}}]),n}();mo.UInt=To;var Io=function(e){$e(n,wo);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return bo(e).readUIntBE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return bo(t).writeUIntBE(e,n,this.span),this.span}}]),n}();mo.UIntBE=Io;var ko=function(e){$e(n,wo);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return bo(e).readIntLE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return bo(t).writeIntLE(e,n,this.span),this.span}}]),n}();mo.Int=ko;var Lo=function(e){$e(n,wo);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return bo(e).readIntBE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return bo(t).writeIntBE(e,n,this.span),this.span}}]),n}();mo.IntBE=Lo;var xo=Math.pow(2,32);function So(e){var t=Math.floor(e/xo);return{hi32:t,lo32:e-t*xo}}function jo(e,t){return e*xo+t}var Co=function(e){$e(n,wo);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=bo(e),r=n.readUInt32LE(t),i=n.readUInt32LE(t+4);return jo(i,r)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=So(e),i=bo(t);return i.writeUInt32LE(r.lo32,n),i.writeUInt32LE(r.hi32,n+4),8}}]),n}();mo.NearUInt64=Co;var Do=function(e){$e(n,wo);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=bo(e),r=n.readUInt32BE(t),i=n.readUInt32BE(t+4);return jo(r,i)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=So(e),i=bo(t);return i.writeUInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}]),n}();mo.NearUInt64BE=Do;var Oo=function(e){$e(n,wo);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=bo(e),r=n.readUInt32LE(t),i=n.readInt32LE(t+4);return jo(i,r)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=So(e),i=bo(t);return i.writeUInt32LE(r.lo32,n),i.writeInt32LE(r.hi32,n+4),8}}]),n}();mo.NearInt64=Oo;var zo=function(e){$e(n,wo);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=bo(e),r=n.readInt32BE(t),i=n.readUInt32BE(t+4);return jo(r,i)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=So(e),i=bo(t);return i.writeInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}]),n}();mo.NearInt64BE=zo;var _o=function(e){$e(n,wo);var t=ut(n);function n(e){return Ze(this,n),t.call(this,4,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return bo(e).readFloatLE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return bo(t).writeFloatLE(e,n),4}}]),n}();mo.Float=_o;var Po=function(e){$e(n,wo);var t=ut(n);function n(e){return Ze(this,n),t.call(this,4,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return bo(e).readFloatBE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return bo(t).writeFloatBE(e,n),4}}]),n}();mo.FloatBE=Po;var Bo=function(e){$e(n,wo);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return bo(e).readDoubleLE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return bo(t).writeDoubleLE(e,n),8}}]),n}();mo.Double=Bo;var Ro=function(e){$e(n,wo);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return bo(e).readDoubleBE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return bo(t).writeDoubleBE(e,n),8}}]),n}();mo.DoubleBE=Ro;var Uo=function(e){$e(n,wo);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!(e instanceof wo))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof Ao&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var a=-1;return!(r instanceof Ao)&&01&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0,r=this.count;if(r instanceof Ao&&(r=r.decode(e,t)),01&&void 0!==arguments[1]?arguments[1]:0,n=[],r=0,i=this.count;for(i instanceof Ao&&(i=i.decode(e,t));r2&&void 0!==arguments[2]?arguments[2]:0,r=this.elementLayout,i=e.reduce((function(e,i){return e+r.encode(i,t,n+e)}),0);return this.count instanceof Ao&&this.count.encode(e.length,t,n),i}}]),n}();mo.Sequence=Uo;var Wo=function(e){$e(n,wo);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!Array.isArray(e)||!e.reduce((function(e,t){return e&&t instanceof wo}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof r&&void 0===i&&(i=r,r=void 0);var a,s=vt(e);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(0>u.span&&void 0===u.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){s.e(e)}finally{s.f()}var c=-1;try{c=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(o=t.call(this,c,r)).fields=e,o.decodePrefixes=!!i,o}return Xe(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;try{n=this.fields.reduce((function(n,r){var i=r.getSpan(e,t);return t+=i,n+i}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;vo(e);var n,r=this.makeDestinationObject(),i=vt(this.fields);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(void 0!==o.property&&(r[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"encode",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=r,o=0,a=0,s=vt(this.fields);try{for(s.s();!(n=s.n()).done;){var u=n.value,c=u.span;if(a=0c&&(c=u.getSpan(t,r)))}o=r,r+=c}}catch(e){s.e(e)}finally{s.f()}return o+a-i}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),r=vt(this.fields);try{for(r.s();!(t=r.n()).done;){var i=t.value;void 0!==i.property&&0i.span?n=-1:0<=n&&(n+=i.span)}}catch(e){r.e(e)}finally{r.f()}}}]),n}();mo.Structure=Wo;var Qo=function(){function e(t){Ze(this,e),this.property=t}return Xe(e,[{key:"decode",value:function(e,t){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(e,t,n){throw new Error("UnionDiscriminator is abstract")}}]),e}();mo.UnionDiscriminator=Qo;var Yo=function(e){$e(n,Qo);var t=ut(n);function n(e,r){var i;if(Ze(this,n),!(e instanceof Ao&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(i=t.call(this,r||e.property||"variant")).layout=e,i}return Xe(n,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,n){return this.layout.encode(e,t,n)}}]),n}();mo.UnionLayoutDiscriminator=Yo;var Fo=function(e){$e(n,wo);var t=ut(n);function n(e,r,i){var o,a;if(Ze(this,n),e instanceof To||e instanceof Io)a=new Yo(new No(e));else if(e instanceof Ao&&e.isCount())a=new Yo(e);else{if(!(e instanceof Qo))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");a=e}if(void 0===r&&(r=null),!(null===r||r instanceof wo))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var s=-1;r&&0<=(s=r.span)&&(e instanceof To||e instanceof Io)&&(s+=a.layout.span),(o=t.call(this,s,i)).discriminator=a,o.usesPrefixDiscriminator=e instanceof To||e instanceof Io,o.defaultLayout=r,o.registry={};var u=o.defaultGetSourceVariant.bind(at(o));return o.getSourceVariant=function(e){return u(e)},o.configGetSourceVariant=function(e){u=e.bind(this)},o}return Xe(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(var n in this.registry){var r=this.registry[n];if(r.property&&Object.prototype.hasOwnProperty.call(e,r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.discriminator,i=r.decode(e,n),o=this.registry[i];if(void 0===o){var a=this.defaultLayout,s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),(t=this.makeDestinationObject())[r.property]=i,t[a.property]=a.decode(e,n+s)}else t=o.decode(e,n);return t}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getSourceVariant(e);if(void 0===r){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(e[i.property],t,n),a+o.encode(e[o.property],t,n+a)}return r.encode(e,t,n)}},{key:"addVariant",value:function(e,t,n){var r=new Vo(this,e,t,n);return this.registry[e]=r,r}},{key:"getVariant",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=e instanceof Uint8Array?this.discriminator.decode(e,n):e,this.registry[t]}}]),n}();mo.Union=Fo;var Vo=function(e){$e(n,wo);var t=ut(n);function n(e,r,i,o){var a;if(Ze(this,n),!(e instanceof Fo))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof i&&void 0===o&&(o=i,i=null),i){if(!(i instanceof wo))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=i.span&&i.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=i?i.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(a=t.call(this,s,o)).union=e,a.variant=r,a.layout=i||null,a}return Xe(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var r=0;return this.layout&&(r=this.layout.getSpan(e,t+n)),n+r}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);var i=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),i+=this.layout.getSpan(t,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),n}();function Ho(e){return 0>e&&(e+=4294967296),e}mo.VariantLayout=Vo;var Go=function(e){$e(n,wo);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!(e instanceof To||e instanceof Io))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===i&&(i=r,r=!1),41&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject(),r=this.word.decode(e,t);this._packedSetValue(r);var i,o=vt(this.fields);try{for(o.s();!(i=o.n()).done;){var a=i.value;void 0!==a.property&&(n[a.property]=a.decode(e))}}catch(e){o.e(e)}finally{o.f()}return n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.word.decode(t,n);this._packedSetValue(r);var i,o=vt(this.fields);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(void 0!==a.property){var s=e[a.property];void 0!==s&&a.encode(s)}}}catch(e){o.e(e)}finally{o.f()}return this.word.encode(this._packedGetValue(),t,n)}},{key:"addField",value:function(e,t){var n=new qo(this,e,t);return this.fields.push(n),n}},{key:"addBoolean",value:function(e){var t=new Zo(this,e);return this.fields.push(t),t}},{key:"fieldFor",value:function(e){if("string"!=typeof e)throw new TypeError("property must be string");var t,n=vt(this.fields);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.property===e)return r}}catch(e){n.e(e)}finally{n.f()}}}]),n}();mo.BitStructure=Go;var qo=function(){function e(t,n,r){if(Ze(this,e),!(t instanceof Go))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(n)||0>=n)throw new TypeError("bits must be positive integer");var i=8*t.span,o=t.fields.reduce((function(e,t){return e+t.bits}),0);if(n+o>i)throw new Error("bits too long for span remainder ("+(i-o)+" of "+i+" remain)");this.container=t,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(e){if("number"!=typeof e||!Number.isInteger(e)||e!==Ho(e&this.valueMask))throw new TypeError(Mo("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var t=this.container._packedGetValue(),n=Ho(e<n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.span;return 0>n&&(n=this.length.decode(e,t)),bo(e).slice(t,t+n)}},{key:"encode",value:function(e,t,n){var r=this.length;if(this.length instanceof Ao&&(r=e.length),!(e instanceof Uint8Array&&r===e.length))throw new TypeError(Mo("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>t.length)throw new RangeError("encoding overruns Uint8Array");var i=bo(e);return bo(t).write(i.toString("hex"),n,r,"hex"),this.length instanceof Ao&&this.length.encode(r,t,n),r}}]),n}();mo.Blob=Jo;var Xo=function(e){$e(n,wo);var t=ut(n);function n(e){return Ze(this,n),t.call(this,-1,e)}return Xe(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;vo(e);for(var n=t;n1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(e,t);return bo(e).slice(t,t+n-1).toString("utf-8")}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof e&&(e=String(e));var r=go.Buffer.from(e,"utf8"),i=r.length;if(n+i>t.length)throw new RangeError("encoding overruns Buffer");var o=bo(t);return r.copy(o,n),o[n+i]=0,i+1}}]),n}();mo.CString=Xo;var Ko=function(e){$e(n,wo);var t=ut(n);function n(e,r){var i;if(Ze(this,n),"string"==typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(i=t.call(this,-1,r)).maxSpan=e,i}return Xe(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return vo(e),e.length-t}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpan2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof e&&(e=String(e));var r=go.Buffer.from(e,"utf8"),i=r.length;if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return r.copy(bo(t),n),i}}]),n}();mo.UTF8=Ko;var $o=function(e){$e(n,wo);var t=ut(n);function n(e,r){var i;return Ze(this,n),(i=t.call(this,0,r)).value=e,i}return Xe(n,[{key:"decode",value:function(e,t){return this.value}},{key:"encode",value:function(e,t,n){return 0}}]),n}();mo.Constant=$o,mo.greedy=function(e,t){return new Eo(e,t)};var ea=mo.offset=function(e,t,n){return new No(e,t,n)},ta=mo.u8=function(e){return new To(1,e)},na=mo.u16=function(e){return new To(2,e)};mo.u24=function(e){return new To(3,e)};var ra=mo.u32=function(e){return new To(4,e)};mo.u40=function(e){return new To(5,e)},mo.u48=function(e){return new To(6,e)};var ia=mo.nu64=function(e){return new Co(e)};mo.u16be=function(e){return new Io(2,e)},mo.u24be=function(e){return new Io(3,e)},mo.u32be=function(e){return new Io(4,e)},mo.u40be=function(e){return new Io(5,e)},mo.u48be=function(e){return new Io(6,e)},mo.nu64be=function(e){return new Do(e)},mo.s8=function(e){return new ko(1,e)},mo.s16=function(e){return new ko(2,e)},mo.s24=function(e){return new ko(3,e)},mo.s32=function(e){return new ko(4,e)},mo.s40=function(e){return new ko(5,e)},mo.s48=function(e){return new ko(6,e)};var oa=mo.ns64=function(e){return new Oo(e)};mo.s16be=function(e){return new Lo(2,e)},mo.s24be=function(e){return new Lo(3,e)},mo.s32be=function(e){return new Lo(4,e)},mo.s40be=function(e){return new Lo(5,e)},mo.s48be=function(e){return new Lo(6,e)},mo.ns64be=function(e){return new zo(e)},mo.f32=function(e){return new _o(e)},mo.f32be=function(e){return new Po(e)},mo.f64=function(e){return new Bo(e)},mo.f64be=function(e){return new Ro(e)};var aa=mo.struct=function(e,t,n){return new Wo(e,t,n)};mo.bits=function(e,t,n){return new Go(e,t,n)};var sa=mo.seq=function(e,t,n){return new Uo(e,t,n)};mo.union=function(e,t,n){return new Fo(e,t,n)},mo.unionLayoutDiscriminator=function(e,t){return new Yo(e,t)};var ua=mo.blob=function(e,t){return new Jo(e,t)};mo.cstr=function(e){return new Xo(e)},mo.utf8=function(e,t){return new Ko(e,t)},mo.constant=function(e,t){return new $o(e,t)};var ca={};Object.defineProperty(ca,"__esModule",{value:!0});var la=ca.toBigIntLE=function(e){var t=zt.from(e);t.reverse();var n=t.toString("hex");return 0===n.length?BigInt(0):BigInt("0x".concat(n))};ca.toBigIntBE=function(e){var t=e.toString("hex");return 0===t.length?BigInt(0):BigInt("0x".concat(t))};var da=ca.toBufferLE=function(e,t){var n=e.toString(16),r=zt.from(n.padStart(2*t,"0").slice(0,2*t),"hex");return r.reverse(),r};ca.toBufferBE=function(e,t){var n=e.toString(16);return zt.from(n.padStart(2*t,"0").slice(0,2*t),"hex")};var ha=["message"],pa=Ve().mark(wa),fa=function(e){$e(n,it(TypeError));var t=ut(n);function n(e,r){var i,o;Ze(this,n);var a=e.message,s=ot(e,ha),u=e.path,c=0===u.length?a:"At path: "+u.join(".")+" -- "+a;return i=t.call(this,c),Object.assign(at(i),s),i.name=i.constructor.name,i.failures=function(){var t;return null!=(t=o)?t:o=[e].concat(ht(r()))},i}return Xe(n)}();function ya(e){return ma(e)&&"function"==typeof e[Symbol.iterator]}function ma(e){return"object"===He(e)&&null!=e}function ga(e){return"string"==typeof e?JSON.stringify(e):""+e}function va(e){var t=e.next(),n=t.done,r=t.value;return n?void 0:r}function ba(e,t,n,r){if(!0!==e){!1===e?e={}:"string"==typeof e&&(e={message:e});var i=t.path,o=t.branch,a=n.type,s=e,u=s.refinement,c=s.message,l=void 0===c?"Expected a value of type `"+a+"`"+(u?" with refinement `"+u+"`":"")+", but received: `"+ga(r)+"`":c;return Fe(Fe({value:r,type:a,refinement:u,key:i[i.length-1],path:i,branch:o},e),{},{message:l})}}function wa(e,t,n,r){var i,o,a,s;return Ve().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:ya(e)||(e=[e]),i=vt(e),u.prev=2,i.s();case 4:if((o=i.n()).done){u.next=12;break}if(a=o.value,!(s=ba(a,t,n,r))){u.next=10;break}return u.next=10,s;case 10:u.next=4;break;case 12:u.next=17;break;case 14:u.prev=14,u.t0=u.catch(2),i.e(u.t0);case 17:return u.prev=17,i.f(),u.finish(17);case 20:case"end":return u.stop()}}),pa,null,[[2,14,17,20]])}function Ma(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ve().mark((function r(){var i,o,a,s,u,c,l,d,h,p,f,y,m,g,v,b,w,M,A,E,N,T,I,k,L,x,S;return Ve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=n.path,o=void 0===i?[]:i,a=n.branch,s=void 0===a?[e]:a,u=n.coerce,c=void 0!==u&&u,l=n.mask,d=void 0!==l&&l,h={path:o,branch:s},c&&(e=t.coercer(e,h),d&&"type"!==t.type&&ma(t.schema)&&ma(e)&&!Array.isArray(e)))for(p in e)void 0===t.schema[p]&&delete e[p];f=!0,y=vt(t.validator(e,h)),r.prev=5,y.s();case 7:if((m=y.n()).done){r.next=14;break}return g=m.value,f=!1,r.next=12,[g,void 0];case 12:r.next=7;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(5),y.e(r.t0);case 19:return r.prev=19,y.f(),r.finish(19);case 22:v=vt(t.entries(e,h)),r.prev=23,v.s();case 25:if((b=v.n()).done){r.next=52;break}w=dt(b.value,3),M=w[0],A=w[1],E=w[2],N=Ma(A,E,{path:void 0===M?o:[].concat(ht(o),[M]),branch:void 0===M?s:[].concat(ht(s),[A]),coerce:c,mask:d}),T=vt(N),r.prev=29,T.s();case 31:if((I=T.n()).done){r.next=42;break}if(!(k=I.value)[0]){r.next=39;break}return f=!1,r.next=37,[k[0],void 0];case 37:r.next=40;break;case 39:c&&(A=k[1],void 0===M?e=A:e instanceof Map?e.set(M,A):e instanceof Set?e.add(A):ma(e)&&(e[M]=A));case 40:r.next=31;break;case 42:r.next=47;break;case 44:r.prev=44,r.t1=r.catch(29),T.e(r.t1);case 47:return r.prev=47,T.f(),r.finish(47);case 50:r.next=25;break;case 52:r.next=57;break;case 54:r.prev=54,r.t2=r.catch(23),v.e(r.t2);case 57:return r.prev=57,v.f(),r.finish(57);case 60:if(!f){r.next=79;break}L=vt(t.refiner(e,h)),r.prev=62,L.s();case 64:if((x=L.n()).done){r.next=71;break}return S=x.value,f=!1,r.next=69,[S,void 0];case 69:r.next=64;break;case 71:r.next=76;break;case 73:r.prev=73,r.t3=r.catch(62),L.e(r.t3);case 76:return r.prev=76,L.f(),r.finish(76);case 79:if(!f){r.next=82;break}return r.next=82,[void 0,e];case 82:case"end":return r.stop()}}),r,null,[[5,16,19,22],[23,54,57,60],[29,44,47,50],[62,73,76,79]])}))()}var Aa,Ea=function(){function e(t){var n=this;Ze(this,e);var r=t.type,i=t.schema,o=t.validator,a=t.refiner,s=t.coercer,u=void 0===s?function(e){return e}:s,c=t.entries,l=void 0===c?Ve().mark((function e(){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})):c;this.type=r,this.schema=i,this.entries=l,this.coercer=u,this.validator=o?function(e,t){return wa(o(e,t),t,n,e)}:function(){return[]},this.refiner=a?function(e,t){return wa(a(e,t),t,n,e)}:function(){return[]}}return Xe(e,[{key:"assert",value:function(e){return Na(e,this)}},{key:"create",value:function(e){return Ta(e,this)}},{key:"is",value:function(e){return Ia(e,this)}},{key:"mask",value:function(e){return function(e,t){var n=ka(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(e,this)}},{key:"validate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ka(e,this,t)}}]),e}();function Na(e,t){var n=ka(e,t);if(n[0])throw n[0]}function Ta(e,t){var n=ka(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function Ia(e,t){return!ka(e,t)[0]}function ka(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ma(e,t,n),i=va(r);if(i[0]){var o=new fa(i[0],Ve().mark((function e(){var t,n,i;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=vt(r),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=10;break}if(!(i=n.value)[0]){e.next=8;break}return e.next=8,i[0];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])})));return[o,void 0]}var a=i[1];return[void 0,a]}function La(e,t){return new Ea({type:e,schema:null,validator:t})}function xa(e){return new Ea({type:"array",schema:e,entries:Ve().mark((function t(n){var r,i,o,a,s;return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e||!Array.isArray(n)){t.next=18;break}r=vt(n.entries()),t.prev=2,r.s();case 4:if((i=r.n()).done){t.next=10;break}return o=dt(i.value,2),a=o[0],s=o[1],t.next=8,[a,s,e];case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),r.e(t.t0);case 15:return t.prev=15,r.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})),coercer:function(e){return Array.isArray(e)?e.slice():e},validator:function(e){return Array.isArray(e)||"Expected an array value, but received: "+ga(e)}})}function Sa(){return La("boolean",(function(e){return"boolean"==typeof e}))}function ja(e){return La("instance",(function(t){return t instanceof e||"Expected a `"+e.name+"` instance, but received: "+ga(t)}))}function Ca(e){var t=ga(e),n=He(e);return new Ea({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:function(n){return n===e||"Expected the literal `"+t+"`, but received: "+ga(n)}})}function Da(e){return new Ea(Fe(Fe({},e),{},{validator:function(t,n){return null===t||e.validator(t,n)},refiner:function(t,n){return null===t||e.refiner(t,n)}}))}function Oa(){return La("number",(function(e){return"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+ga(e)}))}function za(e){return new Ea(Fe(Fe({},e),{},{validator:function(t,n){return void 0===t||e.validator(t,n)},refiner:function(t,n){return void 0===t||e.refiner(t,n)}}))}function _a(e,t){return new Ea({type:"record",schema:null,entries:Ve().mark((function n(r){var i,o;return Ve().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!ma(r)){n.next=11;break}n.t0=Ve().keys(r);case 2:if((n.t1=n.t0()).done){n.next=11;break}return i=n.t1.value,o=r[i],n.next=7,[i,i,e];case 7:return n.next=9,[i,o,t];case 9:n.next=2;break;case 11:case"end":return n.stop()}}),n)})),validator:function(e){return ma(e)||"Expected an object, but received: "+ga(e)}})}function Pa(){return La("string",(function(e){return"string"==typeof e||"Expected a string, but received: "+ga(e)}))}function Ba(e){var t=La("never",(function(){return!1}));return new Ea({type:"tuple",schema:null,entries:Ve().mark((function n(r){var i,o;return Ve().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(r)){n.next=9;break}i=Math.max(e.length,r.length),o=0;case 3:if(!(o1&&void 0!==arguments[1]?arguments[1]:0,n=(Za[e[t+0]]+Za[e[t+1]]+Za[e[t+2]]+Za[e[t+3]]+"-"+Za[e[t+4]]+Za[e[t+5]]+"-"+Za[e[t+6]]+Za[e[t+7]]+"-"+Za[e[t+8]]+Za[e[t+9]]+"-"+Za[e[t+10]]+Za[e[t+11]]+Za[e[t+12]]+Za[e[t+13]]+Za[e[t+14]]+Za[e[t+15]]).toLowerCase();if(!Ha(n))throw TypeError("Stringified UUID is invalid");return n}var Ka=0,$a=0;function es(e){if(!Ha(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function ts(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>>9<<4)+1}function rs(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function is(e,t,n,r,i,o){return rs((a=rs(rs(t,e),rs(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function os(e,t,n,r,i,o,a){return is(t&n|~t&r,e,t,i,o,a)}function as(e,t,n,r,i,o,a){return is(t&r|n&~r,e,t,i,o,a)}function ss(e,t,n,r,i,o,a){return is(t^n^r,e,t,i,o,a)}function us(e,t,n,r,i,o,a){return is(n^(t|~r),e,t,i,o,a)}var cs=ts("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[r/8])<>>32-t}var ps=ts("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i>>0;b=v,v=g,g=hs(m,30)>>>0,m=y,y=A}n[0]=n[0]+y>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+v>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),fs=ps;var ys=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||Ga,a=void 0!==e.clockseq?e.clockseq:qa;if(null==o||null==a){var s=e.random||(e.rng||Fa)();null==o&&(o=Ga=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=qa=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:$a+1,l=u-Ka+(c-$a)/1e4;if(l<0&&void 0===e.clockseq&&(a=a+1&16383),(l<0||u>Ka)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ka=u,$a=c,qa=a;var d=(1e4*(268435455&(u+=122192928e5))+c)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=255&d;var h=u/4294967296*1e4&268435455;i[r++]=h>>>8&255,i[r++]=255&h,i[r++]=h>>>24&15|16,i[r++]=h>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var p=0;p<6;++p)i[r+p]=o[p];return t||Xa(i)},v3:ls,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||Fa)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Xa(r)},v5:fs,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!Ha(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:Ha,stringify:Xa,parse:es}),ms=Qe(ys),gs=ms.v4,vs=function(e,t,n,r){if("string"!=typeof e)throw new TypeError(e+" must be a string");var i="number"==typeof(r=r||{}).version?r.version:2;if(1!==i&&2!==i)throw new TypeError(i+" must be 1 or 2");var o={method:e};if(2===i&&(o.jsonrpc="2.0"),t){if("object"!==He(t)&&!Array.isArray(t))throw new TypeError(t+" must be an object, array or omitted");o.params=t}if(void 0===n){var a="function"==typeof r.generator?r.generator:function(){return gs()};o.id=a(o,r)}else 2===i&&null===n?r.notificationIdNull&&(o.id=null):o.id=n;return o},bs=ms.v4,ws=vs,Ms=function e(t,n){if(!(this instanceof e))return new e(t,n);n||(n={}),this.options={reviver:void 0!==n.reviver?n.reviver:null,replacer:void 0!==n.replacer?n.replacer:null,generator:void 0!==n.generator?n.generator:function(){return bs()},version:void 0!==n.version?n.version:2,notificationIdNull:"boolean"==typeof n.notificationIdNull&&n.notificationIdNull},this.callServer=t},As=Ms;Ms.prototype.request=function(e,t,n,r){var i=this,o=null,a=Array.isArray(e)&&"function"==typeof t;if(1===this.options.version&&a)throw new TypeError("JSON-RPC 1.0 does not support batching");var s,u=!a&&e&&"object"===He(e)&&"function"==typeof t;if(a||u)r=t,o=e;else{"function"==typeof n&&(r=n,n=void 0);var c="function"==typeof r;try{o=ws(e,t,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(e){if(c)return r(e);throw e}if(!c)return o}try{s=JSON.stringify(o,this.options.replacer)}catch(e){return r(e)}return this.callServer(s,(function(e,t){i._parseResponse(e,t,r)})),o},Ms.prototype._parseResponse=function(e,t,n){if(e)n(e);else{if(!t)return n();var r;try{r=JSON.parse(t,this.options.reviver)}catch(e){return n(e)}if(3===n.length){if(Array.isArray(r)){var i=function(e){return void 0!==e.error};return n(null,r.filter(i),r.filter((function(e){return!i(e)})))}return n(null,r.error,r.result)}n(null,r)}};var Es,Ns=As,Ts={},Is={exports:{}};(Es=Is).exports=function(e){return e&&e.__esModule?e:{default:e}},Es.exports.__esModule=!0,Es.exports.default=Es.exports;var ks,Ls,xs,Ss,js={exports:{}},Cs={exports:{}};function Ds(){return ks||(ks=1,function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Cs)),Cs.exports}function Os(){return Ls||(Ls=1,function(e){var t=Ds().default;function n(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ -e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},i=Object.prototype,o=i.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=h(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var p={};function f(){}function y(){}function m(){}var g={};l(g,s,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(k([])));b&&b!==i&&o.call(b,s)&&(g=b);var w=m.prototype=f.prototype=Object.create(g);function M(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,n){function r(i,a,s,u){var c=h(e[i],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==t(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):n.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var i;this._invoke=function(e,t){function o(){return new n((function(n,i){r(e,t,n,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=h(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function k(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;N(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(ns)),ns.exports}var as,ss={exports:{}};var us,cs={exports:{}};function ls(){return us||(us=1,function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}(cs)),cs.exports}var ds,hs={exports:{}};function ps(){return ds||(ds=1,function(e){function t(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;(0,o.default)(this,f);var a=r.autoconnect,s=void 0===a||a,u=r.reconnect,c=void 0===u||u,l=r.reconnect_interval,d=void 0===l?1e3:l,y=r.max_reconnects,m=void 0===y?5:y,g=h(r,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return(t=p.call(this)).webSocketFactory=e,t.queue={},t.rpc_id=0,t.address=n,t.autoconnect=s,t.ready=!1,t.reconnect=c,t.reconnect_timer_id=void 0,t.reconnect_interval=d,t.max_reconnects=m,t.rest_options=g,t.current_reconnects=0,t.generate_request_id=i||function(){return++t.rpc_id},t.autoconnect&&t._connect(t.address,Object.assign({autoconnect:t.autoconnect,reconnect:t.reconnect,reconnect_interval:t.reconnect_interval,max_reconnects:t.max_reconnects},t.rest_options)),t}return(0,a.default)(f,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(e,t,n,r){var o=this;return r||"object"!==(0,i.default)(n)||(r=n,n=null),new Promise((function(i,a){if(!o.ready)return a(new Error("socket not ready"));var s=o.generate_request_id(e,t),u={jsonrpc:"2.0",method:e,params:t||null,id:s};o.socket.send(JSON.stringify(u),r,(function(e){if(e)return a(e);o.queue[s]={promise:[i,a]},n&&(o.queue[s].timeout=setTimeout((function(){delete o.queue[s],a(new Error("reply timeout"))}),n))}))}))}},{key:"login",value:(l=(0,r.default)(n.default.mark((function e(t){var r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.call("rpc.login",t);case 2:if(r=e.sent){e.next=5;break}throw new Error("authentication failed");case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"listMethods",value:(c=(0,r.default)(n.default.mark((function e(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.call("__listMethods");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"notify",value:function(e,t){var n=this;return new Promise((function(r,i){if(!n.ready)return i(new Error("socket not ready"));var o={jsonrpc:"2.0",method:e,params:t||null};n.socket.send(JSON.stringify(o),(function(e){if(e)return i(e);r()}))}))}},{key:"subscribe",value:(u=(0,r.default)(n.default.mark((function e(t){var r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"string"==typeof t&&(t=[t]),e.next=3,this.call("rpc.on",t);case 3:if(r=e.sent,"string"!=typeof t||"ok"===r[t]){e.next=6;break}throw new Error("Failed subscribing to an event '"+t+"' with: "+r[t]);case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"unsubscribe",value:(t=(0,r.default)(n.default.mark((function e(t){var r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"string"==typeof t&&(t=[t]),e.next=3,this.call("rpc.off",t);case 3:if(r=e.sent,"string"!=typeof t||"ok"===r[t]){e.next=6;break}throw new Error("Failed unsubscribing from an event with: "+r);case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"close",value:function(e,t){this.socket.close(e||1e3,t)}},{key:"_connect",value:function(e,t){var n=this;clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(e,t),this.socket.addEventListener("open",(function(){n.ready=!0,n.emit("open"),n.current_reconnects=0})),this.socket.addEventListener("message",(function(e){var t=e.data;t instanceof ArrayBuffer&&(t=zt.from(t).toString());try{t=JSON.parse(t)}catch(e){return}if(t.notification&&n.listeners(t.notification).length){if(!Object.keys(t.params).length)return n.emit(t.notification);var r=[t.notification];if(t.params.constructor===Object)r.push(t.params);else for(var i=0;in.current_reconnects||0===n.max_reconnects)&&(n.reconnect_timer_id=setTimeout((function(){return n._connect(e,t)}),n.reconnect_interval)))}))}}]),f}(l.EventEmitter);e.default=p}(Ja);var Cs=We(Ja),Ds={};!function(e){var t=Xa.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){return new u(e,t)};var n=t(ls()),r=t(ps()),i=t(bs()),o=t(Ns()),a=t(Ls());function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,a.default)(e);if(t){var i=(0,a.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,o.default)(this,n)}}var u=function(e){(0,i.default)(o,e);var t=s(o);function o(e,r,i){var a;return(0,n.default)(this,o),(a=t.call(this)).socket=new window.WebSocket(e,i),a.socket.onopen=function(){return a.emit("open")},a.socket.onmessage=function(e){return a.emit("message",e.data)},a.socket.onerror=function(e){return a.emit("error",e)},a.socket.onclose=function(e){a.emit("close",e.code,e.reason)},a}return(0,r.default)(o,[{key:"send",value:function(e,t,n){var r=n||t;try{this.socket.send(e),r()}catch(e){r(e)}}},{key:"close",value:function(e,t){this.socket.close(e,t)}},{key:"addEventListener",value:function(e,t,n){this.socket.addEventListener(e,t,n)}}]),o}(js().EventEmitter)}(Ds);for(var Os=We(Ds),zs=[],_s=[],Ps=[],Rs=BigInt(0),Bs=BigInt(1),Us=BigInt(2),Ws=BigInt(7),Qs=BigInt(256),Ys=BigInt(113),Fs=0,Vs=Bs,Hs=1,Gs=0;Fs<24;Fs++){var qs=[Gs,(2*Hs+3*Gs)%5];Hs=qs[0],Gs=qs[1],zs.push(2*(5*Gs+Hs)),_s.push((Fs+1)*(Fs+2)/2%64);for(var Zs=Rs,Js=0;Js<7;Js++)(Vs=(Vs<>Ws)*Ys)%Qs)&Us&&(Zs^=Bs<<(Bs<32?_n.rotlBH(e,t,n):_n.rotlSH(e,t,n)},tu=function(e,t,n){return n>32?_n.rotlBL(e,t,n):_n.rotlSL(e,t,n)};var nu=function(e){$e(n,xn);var t=ut(n);function n(e,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(Ze(this,n),(o=t.call(this)).blockLen=e,o.suffix=r,o.outputLen=i,o.enableXOF=a,o.rounds=s,o.pos=0,o.posOut=0,o.finished=!1,o.destroyed=!1,Tn.number(i),0>=o.blockLen||o.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return o.state=new Uint8Array(200),o.state32=Nn(o.state),o}return Xe(n,[{key:"keccak",value:function(){!function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=new Uint32Array(10),r=24-t;r<24;r++){for(var i=0;i<10;i++)n[i]=e[i]^e[i+10]^e[i+20]^e[i+30]^e[i+40];for(var o=0;o<10;o+=2)for(var a=(o+8)%10,s=(o+2)%10,u=n[s],c=n[s+1],l=eu(u,c,1)^n[a],d=tu(u,c,1)^n[a+1],h=0;h<50;h+=10)e[o+h]^=l,e[o+h+1]^=d;for(var p=e[2],f=e[3],y=0;y<24;y++){var m=_s[y],g=eu(p,f,m),v=tu(p,f,m),b=zs[y];p=e[b],f=e[b+1],e[b]=g,e[b+1]=v}for(var w=0;w<50;w+=10){for(var M=0;M<10;M++)n[M]=e[w+M];for(var A=0;A<10;A++)e[w+A]^=~n[(A+2)%10]&n[(A+4)%10]}e[0]^=Ks[r],e[1]^=$s[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){Tn.exists(this);for(var t=this.blockLen,n=this.state,r=(e=Ln(e)).length,i=0;i=n&&this.keccak();var o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return Tn.number(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(Tn.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){var t=this.blockLen,r=this.suffix,i=this.outputLen,o=this.rounds,a=this.enableXOF;return e||(e=new n(t,r,i,a,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=r,e.outputLen=i,e.enableXOF=a,e.destroyed=this.destroyed,e}}]),n}(),ru=function(e,t,n){return Sn((function(){return new nu(t,e,n)}))};ru(6,144,28),ru(6,136,32),ru(6,104,48),ru(6,72,64),ru(1,144,28);var iu=ru(1,136,32);ru(1,104,48),ru(1,72,64);var ou=function(e,t,n){return r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new nu(t,e,void 0===r.dkLen?n:r.dkLen,!0)},i=function(e,t){return r(t).update(Ln(e)).digest()},o=r({}),i.outputLen=o.outputLen,i.blockLen=o.blockLen,i.create=function(e){return r(e)},i;var r,i,o};ou(31,168,16),ou(31,136,32);var au=function(e){$e(n,xn);var t=ut(n);function n(e,r){var i;Ze(this,n),(i=t.call(this)).finished=!1,i.destroyed=!1,Tn.hash(e);var o=Ln(r);if(i.iHash=e.create(),"function"!=typeof i.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");i.blockLen=i.iHash.blockLen,i.outputLen=i.iHash.outputLen;var a=i.blockLen,s=new Uint8Array(a);s.set(o.length>a?e.create().update(o).digest():o);for(var u=0;ua,h=l>a;if(d&&(c=t-c),h&&(l=t-l),c>a||l>a)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:d,k1:c,k2neg:h,k2:l}};function gu(e){var t=pu.a,n=pu.b,r=Qu(e*e),i=Qu(r*e);return Qu(i+t*e+n)}var vu=pu.a===uu,bu=function(e){$e(n,it(Error));var t=ut(n);function n(e){return Ze(this,n),t.call(this,e)}return Xe(n)}();function wu(e){if(!(e instanceof Mu))throw new TypeError("JacobianPoint expected")}var Mu=function(){function e(t,n,r){Ze(this,e),this.x=t,this.y=n,this.z=r}return Xe(e,[{key:"equals",value:function(e){wu(e);var t=this.x,n=this.y,r=this.z,i=e.x,o=e.y,a=e.z,s=Qu(r*r),u=Qu(a*a),c=Qu(t*u),l=Qu(i*s),d=Qu(Qu(n*a)*u),h=Qu(Qu(o*r)*s);return c===l&&d===h}},{key:"negate",value:function(){return new e(this.x,Qu(-this.y),this.z)}},{key:"double",value:function(){var t=this.x,n=this.y,r=this.z,i=Qu(t*t),o=Qu(n*n),a=Qu(o*o),s=t+o,u=Qu(lu*(Qu(s*s)-i-a)),c=Qu(du*i),l=Qu(c*c),d=Qu(l-lu*u);return new e(d,Qu(c*(u-d)-hu*a),Qu(lu*n*r))}},{key:"add",value:function(t){wu(t);var n=this.x,r=this.y,i=this.z,o=t.x,a=t.y,s=t.z;if(o===uu||a===uu)return this;if(n===uu||r===uu)return t;var u=Qu(i*i),c=Qu(s*s),l=Qu(n*c),d=Qu(o*u),h=Qu(Qu(r*s)*c),p=Qu(Qu(a*i)*u),f=Qu(d-l),y=Qu(p-h);if(f===uu)return y===uu?this.double():e.ZERO;var m=Qu(f*f),g=Qu(f*m),v=Qu(l*m),b=Qu(y*y-g-lu*v);return new e(b,Qu(y*(v-b)-h*g),Qu(i*s*f))}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiplyUnsafe",value:function(t){var n=e.ZERO;if("bigint"==typeof t&&t===uu)return n;var r=Wu(t);if(r===cu)return this;if(!vu){for(var i=n,o=this;r>uu;)r&cu&&(i=i.add(o)),o=o.double(),r>>=cu;return i}for(var a=mu(r),s=a.k1neg,u=a.k1,c=a.k2neg,l=a.k2,d=n,h=n,p=this;u>uu||l>uu;)u&cu&&(d=d.add(p)),l&cu&&(h=h.add(p)),p=p.double(),u>>=cu,l>>=cu;return s&&(d=d.negate()),c&&(h=h.negate()),h=new e(Qu(h.x*yu),h.y,h.z),d.add(h)}},{key:"precomputeWindow",value:function(e){for(var t=vu?128/e+1:256/e+1,n=[],r=this,i=r,o=0;o>=d,f>u&&(f-=l,t+=cu);var y=p,m=p+Math.abs(f)-1,g=h%2!=0,v=f<0;0===f?a=a.add(Au(g,i[y])):o=o.add(Au(v,i[m]))}return{p:o,f:a}}},{key:"multiply",value:function(t,n){var r,i,o=Wu(t);if(vu){var a=mu(o),s=a.k1neg,u=a.k1,c=a.k2neg,l=a.k2,d=this.wNAF(u,n),h=d.p,p=d.f,f=this.wNAF(l,n),y=f.p,m=f.f;h=Au(s,h),y=new e(Qu((y=Au(c,y)).x*yu),y.y,y.z),r=h.add(y),i=p.add(m)}else{var g=this.wNAF(o,n);r=g.p,i=g.f}return e.normalizeZ([r,i])[0]}},{key:"toAffine",value:function(t){var n=this.x,r=this.y,i=this.z,o=this.equals(e.ZERO);null==t&&(t=o?hu:Fu(i));var a=t,s=Qu(a*a),u=Qu(s*a),c=Qu(n*s),l=Qu(r*u),d=Qu(i*a);if(o)return Tu.ZERO;if(d!==cu)throw new Error("invZ was invalid");return new Tu(c,l)}}],[{key:"fromAffine",value:function(t){if(!(t instanceof Tu))throw new TypeError("JacobianPoint#fromAffine: expected Point");return t.equals(Tu.ZERO)?e.ZERO:new e(t.x,t.y,cu)}},{key:"toAffineBatch",value:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pu.P,n=new Array(e.length),r=e.reduce((function(e,r,i){return r===uu?e:(n[i]=e,Qu(e*r,t))}),cu),i=Fu(r,t);return e.reduceRight((function(e,r,i){return r===uu?e:(n[i]=Qu(e*n[i],t),Qu(e*r,t))}),i),n}(e.map((function(e){return e.z})));return e.map((function(e,n){return e.toAffine(t[n])}))}},{key:"normalizeZ",value:function(t){return e.toAffineBatch(t).map(e.fromAffine)}}]),e}();function Au(e,t){var n=t.negate();return e?n:t}Mu.BASE=new Mu(pu.Gx,pu.Gy,cu),Mu.ZERO=new Mu(uu,cu,uu);var Eu=new WeakMap,Tu=function(){function e(t,n){Ze(this,e),this.x=t,this.y=n}return Xe(e,[{key:"_setWindowSize",value:function(e){this._WINDOW_SIZE=e,Eu.delete(this)}},{key:"hasEvenY",value:function(){return this.y%lu===uu}},{key:"toRawBytes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Ru(this.toHex(e))}},{key:"toHex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Ou(this.x);if(e){var n=this.hasEvenY()?"02":"03";return"".concat(n).concat(t)}return"04".concat(t).concat(Ou(this.y))}},{key:"toHexX",value:function(){return this.toHex(!0).slice(2)}},{key:"toRawX",value:function(){return this.toRawBytes(!0).slice(1)}},{key:"assertValidity",value:function(){var e="Point is not on elliptic curve",t=this.x,n=this.y;if(!Zu(t)||!Zu(n))throw new Error(e);var r=Qu(n*n);if(Qu(r-gu(t))!==uu)throw new Error(e)}},{key:"equals",value:function(e){return this.x===e.x&&this.y===e.y}},{key:"negate",value:function(){return new e(this.x,Qu(-this.y))}},{key:"double",value:function(){return Mu.fromAffine(this).double().toAffine()}},{key:"add",value:function(e){return Mu.fromAffine(this).add(Mu.fromAffine(e)).toAffine()}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiply",value:function(e){return Mu.fromAffine(this).multiply(e,this).toAffine()}},{key:"multiplyAndAddUnsafe",value:function(t,n,r){var i=Mu.fromAffine(this),o=n===uu||n===cu||this!==e.BASE?i.multiplyUnsafe(n):i.multiply(n),a=Mu.fromAffine(t).multiplyUnsafe(r),s=o.add(a);return s.equals(Mu.ZERO)?void 0:s.toAffine()}}],[{key:"fromCompressedHex",value:function(t){var n=32===t.length,r=Bu(n?t:t.subarray(1));if(!Zu(r))throw new Error("Point is not on curve");var i=function(e){var t=pu.P,n=BigInt(6),r=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),s=BigInt(88),u=e*e*e%t,c=u*u*e%t,l=Yu(c,du)*c%t,d=Yu(l,du)*c%t,h=Yu(d,lu)*u%t,p=Yu(h,r)*h%t,f=Yu(p,i)*p%t,y=Yu(f,a)*f%t,m=Yu(y,s)*y%t,g=Yu(m,a)*f%t,v=Yu(g,du)*c%t,b=Yu(v,o)*p%t,w=Yu(b,n)*u%t,M=Yu(w,lu);if(M*M%t!==e)throw new Error("Cannot find square root");return M}(gu(r)),o=(i&cu)===cu;n?o&&(i=Qu(-i)):1==(1&t[0])!==o&&(i=Qu(-i));var a=new e(r,i);return a.assertValidity(),a}},{key:"fromUncompressedHex",value:function(t){var n=new e(Bu(t.subarray(1,33)),Bu(t.subarray(33,65)));return n.assertValidity(),n}},{key:"fromHex",value:function(e){var t=Uu(e),n=t.length,r=t[0];if(32===n)return this.fromCompressedHex(t);if(33===n&&(2===r||3===r))return this.fromCompressedHex(t);if(65===n&&4===r)return this.fromUncompressedHex(t);throw new Error("Point.fromHex: received invalid point. Expected 32-".concat(33," compressed bytes or ").concat(65," uncompressed bytes, not ").concat(n))}},{key:"fromPrivateKey",value:function(t){return e.BASE.multiply(Xu(t))}},{key:"fromSignature",value:function(t,n,r){var i=function(e){if(e instanceof ku)return e.assertValidity(),e;try{return ku.fromDER(e)}catch(t){return ku.fromCompact(e)}}(n),o=i.r,a=i.s;if(![0,1,2,3].includes(r))throw new Error("Cannot recover: invalid recovery bit");var s=Hu(Uu(t)),u=pu.n,c=2===r||3===r?o+u:o,l=Fu(c,u),d=Qu(-s*l,u),h=Qu(a*l,u),p=1&r?"03":"02",f=e.fromHex(p+Ou(c)),y=e.BASE.multiplyAndAddUnsafe(f,d,h);if(!y)throw new Error("Cannot recover signature: point at infinify");return y.assertValidity(),y}}]),e}();function Nu(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function Iu(e){if(e.length<2||2!==e[0])throw new Error("Invalid signature integer tag: ".concat(Su(e)));var t=e[1],n=e.subarray(2,t+2);if(!t||n.length!==t)throw new Error("Invalid signature integer: wrong length");if(0===n[0]&&n[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:Bu(n),left:e.subarray(t+2)}}Tu.BASE=new Tu(pu.Gx,pu.Gy),Tu.ZERO=new Tu(uu,uu);var ku=function(){function e(t,n){Ze(this,e),this.r=t,this.s=n,this.assertValidity()}return Xe(e,[{key:"assertValidity",value:function(){var e=this.r,t=this.s;if(!qu(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!qu(t))throw new Error("Invalid Signature: s must be 0 < s < n")}},{key:"hasHighS",value:function(){var e=pu.n>>cu;return this.s>e}},{key:"normalizeS",value:function(){return this.hasHighS()?new e(this.r,Qu(-this.s,pu.n)):this}},{key:"toDERRawBytes",value:function(){return Ru(this.toDERHex())}},{key:"toDERHex",value:function(){var e=Nu(_u(this.s)),t=Nu(_u(this.r)),n=e.length/2,r=t.length/2,i=_u(n),o=_u(r),a=_u(r+n+4);return"30".concat(a,"02").concat(o).concat(t,"02").concat(i).concat(e)}},{key:"toRawBytes",value:function(){return this.toDERRawBytes()}},{key:"toHex",value:function(){return this.toDERHex()}},{key:"toCompactRawBytes",value:function(){return Ru(this.toCompactHex())}},{key:"toCompactHex",value:function(){return Ou(this.r)+Ou(this.s)}}],[{key:"fromCompact",value:function(t){var n=t instanceof Uint8Array,r="Signature.fromCompact";if("string"!=typeof t&&!n)throw new TypeError("".concat(r,": Expected string or Uint8Array"));var i=n?Su(t):t;if(128!==i.length)throw new Error("".concat(r,": Expected 64-byte hex"));return new e(Pu(i.slice(0,64)),Pu(i.slice(64,128)))}},{key:"fromDER",value:function(t){var n=t instanceof Uint8Array;if("string"!=typeof t&&!n)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");var r=function(e){if(e.length<2||48!=e[0])throw new Error("Invalid signature tag: ".concat(Su(e)));if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");var t=Iu(e.subarray(2)),n=t.data,r=Iu(t.left),i=r.data,o=r.left;if(o.length)throw new Error("Invalid signature: left bytes after parsing: ".concat(Su(o)));return{r:n,s:i}}(n?t:Ru(t));return new e(r.r,r.s)}},{key:"fromHex",value:function(e){return this.fromDER(e)}}]),e}();function Lu(){for(var e=arguments.length,t=new Array(e),n=0;n0)return BigInt(e);if("bigint"==typeof e&&qu(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function Qu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pu.P,n=e%t;return n>=uu?n:t+n}function Yu(e,t){for(var n=pu.P,r=e;t-- >uu;)r*=r,r%=n;return r}function Fu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pu.P;if(e===uu||t<=uu)throw new Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));for(var n=Qu(e,t),r=t,i=uu,o=cu;n!==uu;){var a=r/n,s=r%n,u=i-o*a;r=n,n=s,i=o,o=u}var c=r;if(c!==cu)throw new Error("invert: does not exist");return Qu(i,t)}function Vu(e){var t=8*e.length-256,n=Bu(e);return t>0?n>>BigInt(t):n}function Hu(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Vu(e);if(t)return n;var r=pu.n;return n>=r?n-r:n}var Gu=function(){function e(t,n){if(Ze(this,e),this.hashLen=t,this.qByteLen=n,"number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof n||n<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(t).fill(1),this.k=new Uint8Array(t).fill(0),this.counter=0}var t,n;return Xe(e,[{key:"hmac",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}},{key:"reseed",value:(n=qe(Ve().mark((function e(){var t,n=arguments;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:new Uint8Array,e.next=3,this.hmac(this.v,Uint8Array.from([0]),t);case 3:return this.k=e.sent,e.next=6,this.hmac(this.v);case 6:if(this.v=e.sent,0!==t.length){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,this.hmac(this.v,Uint8Array.from([1]),t);case 11:return this.k=e.sent,e.next=14,this.hmac(this.v);case 14:this.v=e.sent;case 15:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reseedSync",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),0!==e.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}},{key:"generate",value:(t=qe(Ve().mark((function e(){var t,n,r;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.incr(),t=0,n=[];case 3:if(!(t3&&void 0!==arguments[3])||arguments[3],i=pu.n,o=Hu(e,!0);if(qu(o)){var a=Fu(o,i),s=Tu.BASE.multiply(o),u=Qu(s.x,i);if(u!==uu){var c=Qu(a*Qu(t+n*u,i),i);if(c!==uu){var l=new ku(u,c),d=(s.x===l.r?0:2)|Number(s.y&cu);return r&&l.hasHighS()&&(l=l.normalizeS(),d^=1),{sig:l,recovery:d}}}}}function Xu(e){var t;if("bigint"==typeof e)t=e;else if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)t=BigInt(e);else if("string"==typeof e){if(64!==e.length)throw new Error("Expected 32 bytes of private key");t=Pu(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private key");if(32!==e.length)throw new Error("Expected 32 bytes of private key");t=Bu(e)}if(!qu(t))throw new Error("Expected private key: 0 < key < n");return t}function Ku(e){return Bu(e.length>32?e.slice(0,32):e)}function $u(e){var t=Ku(e),n=Qu(t,pu.n);return ec(n1024)throw new Error("Expected valid bytes of private key as per FIPS 186");return zu(Qu(Bu(e),pu.n-cu)+cu)},randomBytes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(oc.web)return oc.web.getRandomValues(new Uint8Array(e));if(oc.node){var t=oc.node.randomBytes;return Uint8Array.from(t(e))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:function(){return sc.hashToPrivateKey(sc.randomBytes(40))},precompute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tu.BASE,n=t===Tu.BASE?t:new Tu(t.x,t.y);return n._setWindowSize(e),n.multiply(du),n},sha256:function(){var e=qe(Ve().mark((function e(){var t,n,r,i,o,a,s=arguments;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=s.length,n=new Array(t),r=0;r1?n-1:0),i=1;i1?i-1:0),a=1;a1?r-1:0),o=1;o32)throw new Error("Invalid public key input")}return t}return Xe(a,[{key:"equals",value:function(e){return this._bn.eq(e._bn)}},{key:"toBase58",value:function(){return Xr.encode(this.toBytes())}},{key:"toJSON",value:function(){return this.toBase58()}},{key:"toBytes",value:function(){var e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}},{key:"toBuffer",value:function(){var e=this._bn.toArrayLike(zt);if(32===e.length)return e;var t=zt.alloc(32);return e.copy(t,32-e.length),t}},{key:t,get:function(){return"PublicKey(".concat(this.toString(),")")}},{key:"toString",value:function(){return this.toBase58()}}],[{key:"unique",value:function(){var e=new a(Ac);return Ac+=1,new a(e.toBuffer())}},{key:"createWithSeed",value:(i=qe(Ve().mark((function e(t,n,r){var i,o;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=zt.concat([t.toBuffer(),zt.from(n),r.toBuffer()]),o=ii(i),e.abrupt("return",new a(o));case 3:case"end":return e.stop()}}),e)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"createProgramAddressSync",value:function(e,t){var n=zt.alloc(0);e.forEach((function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");n=zt.concat([n,vc(e)])})),n=zt.concat([n,t.toBuffer(),zt.from("ProgramDerivedAddress")]);var r=ii(n);if(yc(r))throw new Error("Invalid seeds, address must fall off the curve");return new a(r)}},{key:"createProgramAddress",value:(r=qe(Ve().mark((function e(t,n){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.createProgramAddressSync(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"findProgramAddressSync",value:function(e,t){for(var n,r=255;0!=r;){try{var i=e.concat(zt.from([r]));n=this.createProgramAddressSync(i,t)}catch(e){if(e instanceof TypeError)throw e;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}},{key:"findProgramAddress",value:(n=qe(Ve().mark((function e(t,n){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.findProgramAddressSync(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"isOnCurve",value:function(e){return yc(new a(e).toBytes())}}]),a}(0,Symbol.toStringTag);Ec.default=new Ec("11111111111111111111111111111111"),Mc.set(Ec,{kind:"struct",fields:[["_bn","u256"]]});var Tc=function(){function e(t){if(Ze(this,e),this._publicKey=void 0,this._secretKey=void 0,t){var n=vc(t);if(64!==t.length)throw new Error("bad secret key size");this._publicKey=n.slice(32,64),this._secretKey=n.slice(0,32)}else this._secretKey=vc(hc()),this._publicKey=vc(fc(this._secretKey))}return Xe(e,[{key:"publicKey",get:function(){return new Ec(this._publicKey)}},{key:"secretKey",get:function(){return zt.concat([this._secretKey,this._publicKey],64)}}]),e}(),Nc=new Ec("BPFLoader1111111111111111111111111111111111"),Ic=function(e){$e(n,it(Error));var t=ut(n);function n(e){var r;return Ze(this,n),(r=t.call(this,"Signature ".concat(e," has expired: block height exceeded."))).signature=void 0,r.signature=e,r}return Xe(n)}();Object.defineProperty(Ic.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});var kc=function(e){$e(n,it(Error));var t=ut(n);function n(e,r){var i;return Ze(this,n),(i=t.call(this,"Transaction was not confirmed in ".concat(r.toFixed(2)," seconds. It is ")+"unknown if it succeeded or failed. Check signature "+"".concat(e," using the Solana Explorer or CLI tools."))).signature=void 0,i.signature=e,i}return Xe(n)}();Object.defineProperty(kc.prototype,"name",{value:"TransactionExpiredTimeoutError"});var Lc=function(e){$e(n,it(Error));var t=ut(n);function n(e){var r;return Ze(this,n),(r=t.call(this,"Signature ".concat(e," has expired: the nonce is no longer valid."))).signature=void 0,r.signature=e,r}return Xe(n)}();Object.defineProperty(Lc.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});var xc=function(){function e(t,n){Ze(this,e),this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=n}return Xe(e,[{key:"keySegments",value:function(){var e=[this.staticAccountKeys];return this.accountKeysFromLookups&&(e.push(this.accountKeysFromLookups.writable),e.push(this.accountKeysFromLookups.readonly)),e}},{key:"get",value:function(e){var t,n=vt(this.keySegments());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e256)throw new Error("Account index overflow encountered during compilation");var t=new Map;this.keySegments().flat().forEach((function(e,n){t.set(e.toBase58(),n)}));var n=function(e){var n=t.get(e.toBase58());if(void 0===n)throw new Error("Encountered an unknown instruction account key during compilation");return n};return e.map((function(e){return{programIdIndex:n(e.programId),accountKeyIndexes:e.keys.map((function(e){return n(e.pubkey)})),data:e.data}}))}}]),e}(),Sc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return Do(32,e)},jc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"signature";return Do(64,e)},Cc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",t=jo([Lo("length"),Lo("lengthPadding"),Do(No(Lo(),-8),"chars")],e),n=t.decode.bind(t),r=t.encode.bind(t),i=t;return i.decode=function(e,t){return n(e,t).chars.toString()},i.encode=function(e,t,n){var i={chars:zt.from(e,"utf8")};return r(i,t,n)},i.alloc=function(e){return Lo().span+Lo().span+zt.from(e,"utf8").length},i};function Dc(e,t){var n=function e(n){if(n.span>=0)return n.span;if("function"==typeof n.alloc)return n.alloc(t[n.property]);if("count"in n&&"elementLayout"in n){var r=t[n.property];if(Array.isArray(r))return r.length*e(n.elementLayout)}else if("fields"in n)return Dc({layout:n},t[n.property]);return 0},r=0;return e.layout.fields.forEach((function(e){r+=n(e)})),r}function Oc(e){for(var t=0,n=0;;){var r=e.shift();if(t|=(127&r)<<7*n,n+=1,0==(128&r))break}return t}function zc(e,t){for(var n=t;;){var r=127&n;if(0==(n>>=7)){e.push(r);break}r|=128,e.push(r)}}function _c(e,t){if(!e)throw new Error(t||"Assertion failed")}var Pc,Rc=function(){function e(t,n){Ze(this,e),this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=n}return Xe(e,[{key:"getMessageComponents",value:function(){var e=ht(this.keyMetaMap.entries());_c(e.length<=256,"Max static account keys length exceeded");var t=e.filter((function(e){var t=dt(e,2)[1];return t.isSigner&&t.isWritable})),n=e.filter((function(e){var t=dt(e,2)[1];return t.isSigner&&!t.isWritable})),r=e.filter((function(e){var t=dt(e,2)[1];return!t.isSigner&&t.isWritable})),i=e.filter((function(e){var t=dt(e,2)[1];return!t.isSigner&&!t.isWritable})),o={numRequiredSignatures:t.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:i.length};return _c(t.length>0,"Expected at least one writable signer key"),_c(dt(t[0],1)[0]===this.payer.toBase58(),"Expected first writable signer key to be the fee payer"),[o,[].concat(ht(t.map((function(e){var t=dt(e,1)[0];return new Ec(t)}))),ht(n.map((function(e){var t=dt(e,1)[0];return new Ec(t)}))),ht(r.map((function(e){var t=dt(e,1)[0];return new Ec(t)}))),ht(i.map((function(e){var t=dt(e,1)[0];return new Ec(t)}))))]}},{key:"extractTableLookup",value:function(e){var t=dt(this.drainKeysFoundInLookupTable(e.state.addresses,(function(e){return!e.isSigner&&!e.isInvoked&&e.isWritable})),2),n=t[0],r=t[1],i=dt(this.drainKeysFoundInLookupTable(e.state.addresses,(function(e){return!e.isSigner&&!e.isInvoked&&!e.isWritable})),2),o=i[0],a=i[1];if(0!==n.length||0!==o.length)return[{accountKey:e.key,writableIndexes:n,readonlyIndexes:o},{writable:r,readonly:a}]}},{key:"drainKeysFoundInLookupTable",value:function(e,t){var n,r=this,i=new Array,o=new Array,a=vt(this.keyMetaMap.entries());try{var s=function(){var a=dt(n.value,2),s=a[0],u=a[1];if(t(u)){var c=new Ec(s),l=e.findIndex((function(e){return e.equals(c)}));l>=0&&(_c(l<256,"Max lookup table index exceeded"),i.push(l),o.push(c),r.keyMetaMap.delete(s))}};for(a.s();!(n=a.n()).done;)s()}catch(e){a.e(e)}finally{a.f()}return[i,o]}}],[{key:"compile",value:function(t,n){var r=new Map,i=function(e){var t=e.toBase58(),n=r.get(t);return void 0===n&&(n={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(t,n)),n},o=i(n);o.isSigner=!0,o.isWritable=!0;var a,s=vt(t);try{for(s.s();!(a=s.n()).done;){var u=a.value;i(u.programId).isInvoked=!0;var c,l=vt(u.keys);try{for(l.s();!(c=l.n()).done;){var d=c.value,h=i(d.pubkey);h.isSigner||(h.isSigner=d.isSigner),h.isWritable||(h.isWritable=d.isWritable)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){s.e(e)}finally{s.f()}return new e(n,r)}}]),e}(),Bc=function(){function e(t){var n=this;Ze(this,e),this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map((function(e){return new Ec(e)})),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach((function(e){return n.indexToProgramIds.set(e.programIdIndex,n.accountKeys[e.programIdIndex])}))}return Xe(e,[{key:"version",get:function(){return"legacy"}},{key:"staticAccountKeys",get:function(){return this.accountKeys}},{key:"compiledInstructions",get:function(){return this.instructions.map((function(e){return{programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:Xr.decode(e.data)}}))}},{key:"addressTableLookups",get:function(){return[]}},{key:"getAccountKeys",value:function(){return new xc(this.staticAccountKeys)}},{key:"isAccountSigner",value:function(e){return e=this.header.numRequiredSignatures?e-t0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new xc(this.staticAccountKeys,t)}},{key:"isAccountSigner",value:function(e){return e=n){var r=e-n,i=this.addressTableLookups.reduce((function(e,t){return e+t.writableIndexes.length}),0);return r=this.header.numRequiredSignatures?e-t0?this.signatures[0].signature:null}},{key:"toJSON",value:function(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((function(e){return e.toJSON()})),signers:this.signatures.map((function(e){return e.publicKey.toJSON()}))}}},{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(var r=0;r-1?(a[n].isWritable=a[n].isWritable||e.isWritable,a[n].isSigner=a[n].isSigner||e.isSigner):a.push(e)})),a.sort((function(e,t){return e.isSigner!==t.isSigner?e.isSigner?-1:1:e.isWritable!==t.isWritable?e.isWritable?-1:1:e.pubkey.toBase58().localeCompare(t.pubkey.toBase58())}));var s=a.findIndex((function(e){return e.pubkey.equals(n)}));if(s>-1){var u=dt(a.splice(s,1),1)[0];u.isSigner=!0,u.isWritable=!0,a.unshift(u)}else a.unshift({pubkey:n,isSigner:!0,isWritable:!0});var c,l=vt(this.signatures);try{var d=function(){var e=c.value,t=a.findIndex((function(t){return t.pubkey.equals(e.publicKey)}));if(!(t>-1))throw new Error("unknown signer: ".concat(e.publicKey.toString()));a[t].isSigner||(a[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))};for(l.s();!(c=l.n()).done;)d()}catch(e){l.e(e)}finally{l.f()}var h=0,p=0,f=0,y=[],m=[];a.forEach((function(e){var t=e.pubkey,n=e.isSigner,r=e.isWritable;n?(y.push(t.toString()),h+=1,r||(p+=1)):(m.push(t.toString()),r||(f+=1))}));var g=y.concat(m),v=t.map((function(e){var t=e.data,n=e.programId;return{programIdIndex:g.indexOf(n.toString()),accounts:e.keys.map((function(e){return g.indexOf(e.pubkey.toString())})),data:Xr.encode(t)}}));return v.forEach((function(e){_c(e.programIdIndex>=0),e.accounts.forEach((function(e){return _c(e>=0)}))})),new Bc({header:{numRequiredSignatures:h,numReadonlySignedAccounts:p,numReadonlyUnsignedAccounts:f},accountKeys:g,recentBlockhash:e,instructions:v})}},{key:"_compile",value:function(){var e=this.compileMessage(),t=e.accountKeys.slice(0,e.header.numRequiredSignatures);if(this.signatures.length===t.length){var n=this.signatures.every((function(e,n){return t[n].equals(e.publicKey)}));if(n)return e}return this.signatures=t.map((function(e){return{signature:null,publicKey:e}})),e}},{key:"serializeMessage",value:function(){return this._compile().serialize()}},{key:"getEstimatedFee",value:(t=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFeeForMessage(this.compileMessage());case 2:return e.abrupt("return",e.sent.value);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"setSigners",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),o=1;o ").concat(1232)),i}},{key:"keys",get:function(){return _c(1===this.instructions.length),this.instructions[0].keys.map((function(e){return e.pubkey}))}},{key:"programId",get:function(){return _c(1===this.instructions.length),this.instructions[0].programId}},{key:"data",get:function(){return _c(1===this.instructions.length),this.instructions[0].data}}],[{key:"from",value:function(t){for(var n=ht(t),r=Oc(n),i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:[],r=new e;return r.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(r.feePayer=t.accountKeys[0]),n.forEach((function(e,n){var i={signature:e==Xr.encode(Qc)?null:Xr.decode(e),publicKey:t.accountKeys[n]};r.signatures.push(i)})),t.instructions.forEach((function(e){var n=e.accounts.map((function(e){var n=t.accountKeys[e];return{pubkey:n,isSigner:r.signatures.some((function(e){return e.publicKey.toString()===n.toString()}))||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}}));r.instructions.push(new Yc({keys:n,programId:t.accountKeys[e.programIdIndex],data:Xr.decode(e.data)}))})),r._message=t,r._json=r.toJSON(),r}}]),e}(),Vc=function(){function e(t){Ze(this,e),this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=t.payerKey,this.instructions=t.instructions,this.recentBlockhash=t.recentBlockhash}return Xe(e,[{key:"compileToLegacyMessage",value:function(){return Bc.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}},{key:"compileToV0Message",value:function(e){return Uc.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:e})}}],[{key:"decompile",value:function(t,n){var r=t.header,i=t.compiledInstructions,o=t.recentBlockhash,a=r.numRequiredSignatures,s=r.numReadonlySignedAccounts,u=r.numReadonlyUnsignedAccounts,c=a-s;_c(c>0,"Message header is invalid");var l=t.staticAccountKeys.length-a-u;_c(l>=0,"Message header is invalid");var d=t.getAccountKeys(n),h=d.get(0);if(void 0===h)throw new Error("Failed to decompile message because no account keys were found");var p,f=[],y=vt(i);try{for(y.s();!(p=y.n()).done;){var m,g=p.value,v=[],b=vt(g.accountKeyIndexes);try{for(b.s();!(m=b.n()).done;){var w=m.value,M=d.get(w);if(void 0===M)throw new Error("Failed to find key for account key index ".concat(w));var A=void 0;A=w=0,"Cannot sign with non signer key ".concat(e.publicKey.toBase58())),n.signatures[o]=mc(r,e.secretKey)};for(o.s();!(t=o.n()).done;)a()}catch(e){o.e(e)}finally{o.f()}}},{key:"addSignature",value:function(e,t){_c(64===t.byteLength,"Signature must be 64 bytes long");var n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex((function(t){return t.equals(e)}));_c(n>=0,"Can not add signature; `".concat(e.toBase58(),"` is not required to sign this transaction")),this.signatures[n]=t}}],[{key:"deserialize",value:function(t){for(var n=ht(t),r=[],i=Oc(n),o=0;o=0?e.layout.span:Dc(e,t),r=zt.alloc(n),i=Object.assign({instruction:e.index},t);return e.layout.encode(i,r),r}function al(e,t){var n;try{n=e.layout.decode(t)}catch(e){throw new Error("invalid instruction; "+e)}if(n.instruction!==e.index)throw new Error("invalid instruction; instruction index mismatch ".concat(n.instruction," != ").concat(e.index));return n}var sl,ul=xo("lamportsPerSignature"),cl=jo([Lo("version"),Lo("state"),Sc("authorizedPubkey"),Sc("nonce"),jo([ul],"feeCalculator")]),ll=cl.span,dl=function(){function e(t){Ze(this,e),this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}return Xe(e,null,[{key:"fromAccountData",value:function(t){var n=cl.decode(vc(t),0);return new e({authorizedPubkey:new Ec(n.authorizedPubkey),nonce:new Ec(n.nonce).toString(),feeCalculator:n.feeCalculator})}}]),e}(),hl=(sl=8,function(e){var t=Do(sl,e),n=function(e){return{decode:e.decode.bind(e),encode:e.encode.bind(e)}}(t),r=n.encode,i=n.decode,o=t;return o.decode=function(e,t){var n=i(e,t);return zo(zt.from(n))},o.encode=function(e,t,n){var i=_o(e,sl);return r(i,t,n)},o}),pl=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=Lo("instruction").decode(e.data),r=0,i=Object.entries(fl);r0?s:1,space:a.length,programId:o}));case 17:if(null===c){t.next=20;break}return t.next=20,nl(n,c,[r,i],{commitment:"confirmed"});case 20:l=jo([Lo("instruction"),Lo("offset"),Lo("bytesLength"),Lo("bytesLengthPadding"),Co(Io("byte"),No(Lo(),-8),"bytes")]),d=e.chunkSize,h=0,p=a,f=[];case 25:if(!(p.length>0)){t.next=39;break}if(y=p.slice(0,d),m=zt.alloc(d+16),l.encode({instruction:0,offset:h,bytes:y,bytesLength:0,bytesLengthPadding:0},m),g=(new Fc).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:m}),f.push(nl(n,g,[r,i],{commitment:"confirmed"})),!n._rpcEndpoint.includes("solana.com")){t.next=35;break}return t.next=35,il(250);case 35:h+=d,p=p.slice(d),t.next=25;break;case 39:return t.next=41,Promise.all(f);case 41:return v=jo([Lo("instruction")]),b=zt.alloc(v.span),v.encode({instruction:1},b),w=(new Fc).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0},{pubkey:Xc,isSigner:!1,isWritable:!1}],programId:o,data:b}),t.next=47,nl(n,w,[r,i],{commitment:"confirmed"});case 47:return t.abrupt("return",!0);case 48:case"end":return t.stop()}}),t)}))),function(e,n,r,i,o){return t.apply(this,arguments)})}]),e}();ml.chunkSize=932;var gl=new Ec("BPFLoader2111111111111111111111111111111111"),vl=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"getMinNumSignatures",value:function(e){return ml.getMinNumSignatures(e)}},{key:"load",value:function(e,t,n,r,i){return ml.load(e,t,n,i,r)}}]),e}(),bl=Object.prototype.toString,wl=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function Ml(e,t){var n,r,i,o,a,s,u;if(!0===e)return"true";if(!1===e)return"false";switch(He(e)){case"object":if(null===e)return null;if(e.toJSON&&"function"==typeof e.toJSON)return Ml(e.toJSON(),t);if("[object Array]"===(u=bl.call(e))){for(i="[",r=e.length-1,n=0;n-1&&(i+=Ml(e[n],!0)),i+"]"}if("[object Object]"===u){for(r=(o=wl(e).sort()).length,i="",n=0;n1;)e/=2,t++;return t}var Tl=function(){function e(t,n,r,i,o){Ze(this,e),this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=n,this.warmup=r,this.firstNormalEpoch=i,this.firstNormalSlot=o}return Xe(e,[{key:"getEpoch",value:function(e){return this.getEpochAndSlotIndex(e)[0]}},{key:"getEpochAndSlotIndex",value:function(e){if(e>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,1+(e|=e>>32))}(e+32+1))-El(32)-1;return[t,e-(this.getSlotsInEpoch(t)-32)]}var n=e-this.firstNormalSlot,r=Math.floor(n/this.slotsPerEpoch);return[this.firstNormalEpoch+r,n%this.slotsPerEpoch]}},{key:"getFirstSlotInEpoch",value:function(e){return e<=this.firstNormalEpoch?32*(Math.pow(2,e)-1):(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}},{key:"getLastSlotInEpoch",value:function(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}},{key:"getSlotsInEpoch",value:function(e){return e0&&(i.until=a.signatures[a.signatures.length-1].toString()),e.next=22;break;case 15:if(e.prev=15,e.t0=e.catch(8),!(e.t0 instanceof Error&&e.t0.message.includes("skipped"))){e.next=21;break}return e.abrupt("continue",4);case 21:throw e.t0;case 22:e.next=4;break;case 24:return e.next=26,this.getSlot("finalized");case 26:s=e.sent;case 27:if("before"in i){e.next=47;break}if(!(++r>s)){e.next=31;break}return e.abrupt("break",47);case 31:return e.prev=31,e.next=34,this.getConfirmedBlockSignatures(r);case 34:(u=e.sent).signatures.length>0&&(i.before=u.signatures[u.signatures.length-1].toString()),e.next=45;break;case 38:if(e.prev=38,e.t1=e.catch(31),!(e.t1 instanceof Error&&e.t1.message.includes("skipped"))){e.next=44;break}return e.abrupt("continue",27);case 44:throw e.t1;case 45:e.next=27;break;case 47:return e.next=49,this.getConfirmedSignaturesForAddress2(t,i);case 49:return c=e.sent,e.abrupt("return",c.map((function(e){return e.signature})));case 51:case"end":return e.stop()}}),e,this,[[8,15],[31,38]])}))),function(e,t,n){return E.apply(this,arguments)})},{key:"getConfirmedSignaturesForAddress2",value:(A=qe(Ve().mark((function e(t,n,r){var i,o,a;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._buildArgsAtLeastConfirmed([t.toBase58()],r,void 0,n),e.next=3,this._rpcRequest("getConfirmedSignaturesForAddress2",i);case 3:if(o=e.sent,!("error"in(a=Jo(o,Md)))){e.next=7;break}throw new Il(a.error,"failed to get confirmed signatures for address");case 7:return e.abrupt("return",a.result);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return A.apply(this,arguments)})},{key:"getSignaturesForAddress",value:(M=qe(Ve().mark((function e(t,n,r){var i,o,a;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._buildArgsAtLeastConfirmed([t.toBase58()],r,void 0,n),e.next=3,this._rpcRequest("getSignaturesForAddress",i);case 3:if(o=e.sent,!("error"in(a=Jo(o,Ad)))){e.next=7;break}throw new Il(a.error,"failed to get signatures for address");case 7:return e.abrupt("return",a.result);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return M.apply(this,arguments)})},{key:"getAddressLookupTable",value:(w=qe(Ve().mark((function e(t,n){var r,i,o,a;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfoAndContext(t,n);case 2:return r=e.sent,i=r.context,o=r.value,a=null,null!==o&&(a=new xl({key:t,state:xl.deserialize(o.data)})),e.abrupt("return",{context:i,value:a});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return w.apply(this,arguments)})},{key:"getNonceAndContext",value:(b=qe(Ve().mark((function e(t,n){var r,i,o,a;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfoAndContext(t,n);case 2:return r=e.sent,i=r.context,o=r.value,a=null,null!==o&&(a=dl.fromAccountData(o.data)),e.abrupt("return",{context:i,value:a});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return b.apply(this,arguments)})},{key:"getNonce",value:(v=qe(Ve().mark((function e(t,n){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNonceAndContext(t,n).then((function(e){return e.value})).catch((function(e){throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"requestAirdrop",value:(g=qe(Ve().mark((function e(t,n){var r,i;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("requestAirdrop",[t.toBase58(),n]);case 2:if(r=e.sent,!("error"in(i=Jo(r,ph)))){e.next=6;break}throw new Il(i.error,"airdrop to ".concat(t.toBase58()," failed"));case 6:return e.abrupt("return",i.result);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"_blockhashWithExpiryBlockHeight",value:(m=qe(Ve().mark((function e(t){var n,r;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=10;break}case 1:if(!this._pollingBlockhash){e.next=6;break}return e.next=4,il(100);case 4:e.next=1;break;case 6:if(n=Date.now()-this._blockhashInfo.lastFetch,r=n>=3e4,null===this._blockhashInfo.latestBlockhash||r){e.next=10;break}return e.abrupt("return",this._blockhashInfo.latestBlockhash);case 10:return e.next=12,this._pollNewBlockhash();case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"_pollNewBlockhash",value:(y=qe(Ve().mark((function e(){var t,n,r,i,o;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._pollingBlockhash=!0,e.prev=1,t=Date.now(),n=this._blockhashInfo.latestBlockhash,r=n?n.blockhash:null,i=0;case 6:if(!(i<50)){e.next=18;break}return e.next=9,this.getLatestBlockhash("finalized");case 9:if(o=e.sent,r===o.blockhash){e.next=13;break}return this._blockhashInfo={latestBlockhash:o,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},e.abrupt("return",o);case 13:return e.next=15,il(200);case 15:i++,e.next=6;break;case 18:throw new Error("Unable to obtain a new blockhash after ".concat(Date.now()-t,"ms"));case 19:return e.prev=19,this._pollingBlockhash=!1,e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[1,,19,22]])}))),function(){return y.apply(this,arguments)})},{key:"getStakeMinimumDelegation",value:(f=qe(Ve().mark((function e(t){var n,r,i,o,a,s;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=zl(t),r=n.commitment,i=n.config,o=this._buildArgs([],r,"base64",i),e.next=4,this._rpcRequest("getStakeMinimumDelegation",o);case 4:if(a=e.sent,!("error"in(s=Jo(a,Bl(oa()))))){e.next=8;break}throw new Il(s.error,"failed to get stake minimum delegation");case 8:return e.abrupt("return",s.result);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"simulateTransaction",value:(p=qe(Ve().mark((function e(t,n,r){var i,o,a,s,u,c,l,d,h,p,f,y,m,g,v,b,w,M,A,E,T,N,I,k,L,x;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("message"in t)){e.next=17;break}if(i=t.serialize(),o=zt.from(i).toString("base64"),!Array.isArray(n)&&void 0===r){e.next=6;break}throw new Error("Invalid arguments");case 6:return(a=n||{}).encoding="base64","commitment"in a||(a.commitment=this.commitment),s=[o,a],e.next=12,this._rpcRequest("simulateTransaction",s);case 12:if(u=e.sent,!("error"in(c=Jo(u,$l)))){e.next=16;break}throw new Error("failed to simulate transaction: "+c.error.message);case 16:return e.abrupt("return",c.result);case 17:if(t instanceof Fc?(d=t,(l=new Fc).feePayer=d.feePayer,l.instructions=t.instructions,l.nonceInfo=d.nonceInfo,l.signatures=d.signatures):(l=Fc.populate(t))._message=l._json=void 0,void 0===n||Array.isArray(n)){e.next=20;break}throw new Error("Invalid arguments");case 20:if(h=n,!l.nonceInfo||!h){e.next=25;break}(p=l).sign.apply(p,ht(h)),e.next=45;break;case 25:f=this._disableBlockhashCaching;case 26:return e.next=28,this._blockhashWithExpiryBlockHeight(f);case 28:if(m=e.sent,l.lastValidBlockHeight=m.lastValidBlockHeight,l.recentBlockhash=m.blockhash,h){e.next=33;break}return e.abrupt("break",45);case 33:if((y=l).sign.apply(y,ht(h)),l.signature){e.next=36;break}throw new Error("!signature");case 36:if(g=l.signature.toString("base64"),this._blockhashInfo.simulatedSignatures.includes(g)||this._blockhashInfo.transactionSignatures.includes(g)){e.next=42;break}return this._blockhashInfo.simulatedSignatures.push(g),e.abrupt("break",45);case 42:f=!0;case 43:e.next=26;break;case 45:return v=l._compile(),b=v.serialize(),w=l._serialize(b),M=w.toString("base64"),A={encoding:"base64",commitment:this.commitment},r&&(E=(Array.isArray(r)?r:v.nonProgramIds()).map((function(e){return e.toBase58()})),A.accounts={encoding:"base64",addresses:E}),h&&(A.sigVerify=!0),T=[M,A],e.next=55,this._rpcRequest("simulateTransaction",T);case 55:if(N=e.sent,!("error"in(I=Jo(N,$l)))){e.next=60;break}throw"data"in I.error&&(k=I.error.data.logs)&&Array.isArray(k)&&(x=(L="\n ")+k.join(L),console.error(I.error.message,x)),new Nl("failed to simulate transaction: "+I.error.message,k);case 60:return e.abrupt("return",I.result);case 61:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return p.apply(this,arguments)})},{key:"sendTransaction",value:(h=qe(Ve().mark((function e(t,n,r){var i,o,a,s,u,c;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("version"in t)){e.next=7;break}if(!n||!Array.isArray(n)){e.next=3;break}throw new Error("Invalid arguments");case 3:return i=t.serialize(),e.next=6,this.sendRawTransaction(i,n);case 6:return e.abrupt("return",e.sent);case 7:if(void 0!==n&&Array.isArray(n)){e.next=9;break}throw new Error("Invalid arguments");case 9:if(o=n,!t.nonceInfo){e.next=14;break}t.sign.apply(t,ht(o)),e.next=32;break;case 14:a=this._disableBlockhashCaching;case 15:return e.next=17,this._blockhashWithExpiryBlockHeight(a);case 17:if(s=e.sent,t.lastValidBlockHeight=s.lastValidBlockHeight,t.recentBlockhash=s.blockhash,t.sign.apply(t,ht(o)),t.signature){e.next=23;break}throw new Error("!signature");case 23:if(u=t.signature.toString("base64"),this._blockhashInfo.transactionSignatures.includes(u)){e.next=29;break}return this._blockhashInfo.transactionSignatures.push(u),e.abrupt("break",32);case 29:a=!0;case 30:e.next=15;break;case 32:return c=t.serialize(),e.next=35,this.sendRawTransaction(c,r);case 35:return e.abrupt("return",e.sent);case 36:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return h.apply(this,arguments)})},{key:"sendRawTransaction",value:(d=qe(Ve().mark((function e(t,n){var r,i;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=vc(t).toString("base64"),e.next=3,this.sendEncodedTransaction(r,n);case 3:return i=e.sent,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"sendEncodedTransaction",value:(l=qe(Ve().mark((function e(t,n){var r,i,o,a,s,u,c;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={encoding:"base64"},i=n&&n.skipPreflight,o=n&&n.preflightCommitment||this.commitment,n&&null!=n.maxRetries&&(r.maxRetries=n.maxRetries),n&&null!=n.minContextSlot&&(r.minContextSlot=n.minContextSlot),i&&(r.skipPreflight=i),o&&(r.preflightCommitment=o),a=[t,r],e.next=10,this._rpcRequest("sendTransaction",a);case 10:if(s=e.sent,!("error"in(u=Jo(s,fh)))){e.next=15;break}throw"data"in u.error&&(c=u.error.data.logs),new Nl("failed to send transaction: "+u.error.message,c);case 15:return e.abrupt("return",u.result);case 16:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"_wsOnOpen",value:function(){var e=this;this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((function(){qe(Ve().mark((function t(){return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._rpcWebSocket.notify("ping");case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])})))()}),5e3),this._updateSubscriptions()}},{key:"_wsOnError",value:function(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}},{key:"_wsOnClose",value:function(e){var t=this;this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==e?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((function(e){var n=dt(e,2),r=n[0],i=n[1];t._setSubscription(r,Fe(Fe({},i),{},{state:"pending"}))}))):this._updateSubscriptions()}},{key:"_setSubscription",value:function(e,t){var n,r=null===(n=this._subscriptionsByHash[e])||void 0===n?void 0:n.state;if(this._subscriptionsByHash[e]=t,r!==t.state){var i=this._subscriptionStateChangeCallbacksByHash[e];i&&i.forEach((function(e){try{e(t.state)}catch(e){}}))}}},{key:"_onSubscriptionStateChange",value:function(e,t){var n,r=this,i=this._subscriptionHashByClientSubscriptionId[e];if(null==i)return function(){};var o=(n=this._subscriptionStateChangeCallbacksByHash)[i]||(n[i]=new Set);return o.add(t),function(){o.delete(t),0===o.size&&delete r._subscriptionStateChangeCallbacksByHash[i]}}},{key:"_updateSubscriptions",value:(c=qe(Ve().mark((function e(){var t,n,r=this;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==Object.keys(this._subscriptionsByHash).length){e.next=3;break}return this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((function(){r._rpcWebSocketIdleTimeout=null;try{r._rpcWebSocket.close()}catch(e){e instanceof Error&&console.log("Error when closing socket connection: ".concat(e.message))}}),500)),e.abrupt("return");case 3:if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),this._rpcWebSocketConnected){e.next=7;break}return this._rpcWebSocket.connect(),e.abrupt("return");case 7:return t=this._rpcWebSocketGeneration,n=function(){return t===r._rpcWebSocketGeneration},e.next=11,Promise.all(Object.keys(this._subscriptionsByHash).map(function(){var e=qe(Ve().mark((function e(t){var i;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(i=r._subscriptionsByHash[t])){e.next=3;break}return e.abrupt("return");case 3:e.t0=i.state,e.next="pending"===e.t0||"unsubscribed"===e.t0?6:"subscribed"===e.t0?15:19;break;case 6:if(0!==i.callbacks.size){e.next=12;break}return delete r._subscriptionsByHash[t],"unsubscribed"===i.state&&delete r._subscriptionCallbacksByServerSubscriptionId[i.serverSubscriptionId],e.next=11,r._updateSubscriptions();case 11:return e.abrupt("return");case 12:return e.next=14,qe(Ve().mark((function e(){var o,a,s;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=i.args,a=i.method,e.prev=1,r._setSubscription(t,Fe(Fe({},i),{},{state:"subscribing"})),e.next=5,r._rpcWebSocket.call(a,o);case 5:return s=e.sent,r._setSubscription(t,Fe(Fe({},i),{},{serverSubscriptionId:s,state:"subscribed"})),r._subscriptionCallbacksByServerSubscriptionId[s]=i.callbacks,e.next=10,r._updateSubscriptions();case 10:e.next=20;break;case 12:if(e.prev=12,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("".concat(a," error for argument"),o,e.t0.message),n()){e.next=17;break}return e.abrupt("return");case 17:return r._setSubscription(t,Fe(Fe({},i),{},{state:"pending"})),e.next=20,r._updateSubscriptions();case 20:case"end":return e.stop()}}),e,null,[[1,12]])})))();case 14:case 18:return e.abrupt("break",19);case 15:if(0!==i.callbacks.size){e.next=18;break}return e.next=18,qe(Ve().mark((function e(){var o,a;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=i.serverSubscriptionId,a=i.unsubscribeMethod,!r._subscriptionsAutoDisposedByRpc.has(o)){e.next=5;break}r._subscriptionsAutoDisposedByRpc.delete(o),e.next=21;break;case 5:return r._setSubscription(t,Fe(Fe({},i),{},{state:"unsubscribing"})),r._setSubscription(t,Fe(Fe({},i),{},{state:"unsubscribing"})),e.prev=7,e.next=10,r._rpcWebSocket.call(a,[o]);case 10:e.next=21;break;case 12:if(e.prev=12,e.t0=e.catch(7),e.t0 instanceof Error&&console.error("".concat(a," error:"),e.t0.message),n()){e.next=17;break}return e.abrupt("return");case 17:return r._setSubscription(t,Fe(Fe({},i),{},{state:"subscribed"})),e.next=20,r._updateSubscriptions();case 20:return e.abrupt("return");case 21:return r._setSubscription(t,Fe(Fe({},i),{},{state:"unsubscribed"})),e.next=24,r._updateSubscriptions();case 24:case"end":return e.stop()}}),e,null,[[7,12]])})))();case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 11:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"_handleServerNotification",value:function(e,t){var n=this._subscriptionCallbacksByServerSubscriptionId[e];void 0!==n&&n.forEach((function(e){try{e.apply(void 0,ht(t))}catch(e){console.error(e)}}))}},{key:"_wsOnAccountNotification",value:function(e){var t=Jo(e,Ed),n=t.result,r=t.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_makeSubscription",value:function(e,t){var n=this,r=this._nextClientSubscriptionId++,i=Al([e.method,t]),o=this._subscriptionsByHash[i];return void 0===o?this._subscriptionsByHash[i]=Fe(Fe({},e),{},{args:t,callbacks:new Set([e.callback]),state:"pending"}):o.callbacks.add(e.callback),this._subscriptionHashByClientSubscriptionId[r]=i,this._subscriptionDisposeFunctionsByClientSubscriptionId[r]=qe(Ve().mark((function t(){var o;return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete n._subscriptionDisposeFunctionsByClientSubscriptionId[r],delete n._subscriptionHashByClientSubscriptionId[r],_c(void 0!==(o=n._subscriptionsByHash[i]),"Could not find a `Subscription` when tearing down client subscription #".concat(r)),o.callbacks.delete(e.callback),t.next=7,n._updateSubscriptions();case 7:case"end":return t.stop()}}),t)}))),this._updateSubscriptions(),r}},{key:"onAccountChange",value:function(e,t,n){var r=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:t,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}},{key:"removeAccountChangeListener",value:(u=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"account change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"_wsOnProgramAccountNotification",value:function(e){var t=Jo(e,Nd),n=t.result,r=t.subscription;this._handleServerNotification(r,[{accountId:n.value.pubkey,accountInfo:n.value.account},n.context])}},{key:"onProgramAccountChange",value:function(e,t,n,r){var i=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:t,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},i)}},{key:"removeProgramAccountChangeListener",value:(s=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"program account change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"onLogs",value:function(e,t,n){var r=this._buildArgs(["object"===He(e)?{mentions:[e.toString()]}:e],n||this._commitment||"finalized");return this._makeSubscription({callback:t,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}},{key:"removeOnLogsListener",value:(a=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"logs");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"_wsOnLogsNotification",value:function(e){var t=Jo(e,mh),n=t.result,r=t.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_wsOnSlotNotification",value:function(e){var t=Jo(e,kd),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotChange",value:function(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}},{key:"removeSlotChangeListener",value:(o=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"_wsOnSlotUpdatesNotification",value:function(e){var t=Jo(e,xd),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotUpdate",value:function(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}},{key:"removeSlotUpdateListener",value:(i=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot update");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"_unsubscribeClientSubscription",value:(r=qe(Ve().mark((function e(t,n){var r;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._subscriptionDisposeFunctionsByClientSubscriptionId[t])){e.next=6;break}return e.next=4,r();case 4:e.next=7;break;case 6:console.warn("Ignored unsubscribe request because an active subscription with id "+"`".concat(t,"` for '").concat(n,"' events ")+"could not be found.");case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"_buildArgs",value:function(e,t,n,r){var i=t||this._commitment;if(i||n||r){var o={};n&&(o.encoding=n),i&&(o.commitment=i),r&&(o=Object.assign(o,r)),e.push(o)}return e}},{key:"_buildArgsAtLeastConfirmed",value:function(e,t,n,r){var i=t||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,t,n,r)}},{key:"_wsOnSignatureNotification",value:function(e){var t=Jo(e,Sd),n=t.result,r=t.subscription;"receivedSignature"!==n.value&&this._subscriptionsAutoDisposedByRpc.add(r),this._handleServerNotification(r,"receivedSignature"===n.value?[{type:"received"},n.context]:[{type:"status",result:n.value},n.context])}},{key:"onSignature",value:function(e,t,n){var r=this,i=this._buildArgs([e],n||this._commitment||"finalized"),o=this._makeSubscription({callback:function(e,n){if("status"===e.type){t(e.result,n);try{r.removeSignatureListener(o)}catch(e){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},i);return o}},{key:"onSignatureWithOptions",value:function(e,t,n){var r=this,i=Fe(Fe({},n),{},{commitment:n&&n.commitment||this._commitment||"finalized"}),o=i.commitment,a=ot(i,dc),s=this._buildArgs([e],o,void 0,a),u=this._makeSubscription({callback:function(e,n){t(e,n);try{r.removeSignatureListener(u)}catch(e){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},s);return u}},{key:"removeSignatureListener",value:(n=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"signature result");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_wsOnRootNotification",value:function(e){var t=Jo(e,jd),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onRootChange",value:function(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}},{key:"removeRootChangeListener",value:(t=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"root change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),bh=function(){function e(t){Ze(this,e),this._keypair=void 0,this._keypair=null!=t?t:pc()}return Xe(e,[{key:"publicKey",get:function(){return new Ec(this._keypair.publicKey)}},{key:"secretKey",get:function(){return new Uint8Array(this._keypair.secretKey)}}],[{key:"generate",value:function(){return new e(pc())}},{key:"fromSecretKey",value:function(t,n){if(64!==t.byteLength)throw new Error("bad secret key size");var r=t.slice(32,64);if(!n||!n.skipValidation)for(var i=t.slice(0,32),o=fc(i),a=0;a<32;a++)if(r[a]!==o[a])throw new Error("provided secretKey is invalid");return new e({publicKey:r,secretKey:t})}},{key:"fromSeed",value:function(t){var n=fc(t),r=new Uint8Array(64);return r.set(t),r.set(n,32),new e({publicKey:n,secretKey:r})}}]),e}(),wh=Object.freeze({CreateLookupTable:{index:0,layout:jo([Lo("instruction"),hl("recentSlot"),Io("bumpSeed")])},FreezeLookupTable:{index:1,layout:jo([Lo("instruction")])},ExtendLookupTable:{index:2,layout:jo([Lo("instruction"),hl(),Co(Sc(),No(Lo(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:jo([Lo("instruction")])},CloseLookupTable:{index:4,layout:jo([Lo("instruction")])}}),Mh=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=Lo("instruction").decode(e.data),r=0,i=Object.entries(wh);r2?e.keys[2].pubkey:void 0,addresses:t.map((function(e){return new Ec(e)}))}}},{key:"decodeCloseLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,3),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,recipient:e.keys[2].pubkey}}},{key:"decodeFreezeLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}},{key:"decodeDeactivateLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}},{key:"checkProgramId",value:function(e){if(!e.equals(Ah.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}},{key:"checkKeysLength",value:function(e,t){if(e.length1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:{},i=tc(e,t,r.extraEntropy),o=i.seed,a=i.m,s=i.d,u=new Gu(32,32);for(u.reseedSync(o);!(n=Ju(u.generateSync(),a,s,r.canonical));)u.reseedSync();return nc(n,r)}(e,t,{der:!1,recovered:!0})},xh=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Tu.fromPrivateKey(e).toRawBytes(t)},Sh=jo([Io("numSignatures"),ko("signatureOffset"),Io("signatureInstructionIndex"),ko("ethAddressOffset"),Io("ethAddressInstructionIndex"),ko("messageDataOffset"),ko("messageDataSize"),Io("messageInstructionIndex"),Do(20,"ethAddress"),Do(64,"signature"),Io("recoveryId")]),jh=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"publicKeyToEthAddress",value:function(e){_c(64===e.length,"Public key must be ".concat(64," bytes but received ").concat(e.length," bytes"));try{return zt.from(iu(vc(e))).slice(-20)}catch(e){throw new Error("Error constructing Ethereum address: ".concat(e))}}},{key:"createInstructionWithPublicKey",value:function(t){var n=t.publicKey,r=t.message,i=t.signature,o=t.recoveryId,a=t.instructionIndex;return e.createInstructionWithEthAddress({ethAddress:e.publicKeyToEthAddress(n),message:r,signature:i,recoveryId:o,instructionIndex:a})}},{key:"createInstructionWithEthAddress",value:function(t){var n,r=t.ethAddress,i=t.message,o=t.signature,a=t.recoveryId,s=t.instructionIndex,u=void 0===s?0:s;_c(20===(n="string"==typeof r?r.startsWith("0x")?zt.from(r.substr(2),"hex"):zt.from(r,"hex"):r).length,"Address must be ".concat(20," bytes but received ").concat(n.length," bytes"));var c=12+n.length,l=c+o.length+1,d=zt.alloc(Sh.span+i.length);return Sh.encode({numSignatures:1,signatureOffset:c,signatureInstructionIndex:u,ethAddressOffset:12,ethAddressInstructionIndex:u,messageDataOffset:l,messageDataSize:i.length,messageInstructionIndex:u,signature:vc(o),ethAddress:vc(n),recoveryId:a},d),d.fill(vc(i),Sh.span),new Yc({keys:[],programId:e.programId,data:d})}},{key:"createInstructionWithPrivateKey",value:function(e){var t=e.privateKey,n=e.message,r=e.instructionIndex;_c(32===t.length,"Private key must be ".concat(32," bytes but received ").concat(t.length," bytes"));try{var i=vc(t),o=xh(i,!1).slice(1),a=zt.from(iu(vc(n))),s=dt(Lh(a,i),2),u=s[0],c=s[1];return this.createInstructionWithPublicKey({publicKey:o,message:n,signature:u,recoveryId:c,instructionIndex:r})}catch(e){throw new Error("Error creating instruction; ".concat(e))}}}]),e}();jh.programId=new Ec("KeccakSecp256k11111111111111111111111111111");var Ch=new Ec("StakeConfig11111111111111111111111111111111"),Dh=Xe((function e(t,n){Ze(this,e),this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=n})),Oh=Xe((function e(t,n,r){Ze(this,e),this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=n,this.custodian=r}));Oh.default=new Oh(0,0,Ec.default);var zh=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=Lo("instruction").decode(e.data),r=0,i=Object.entries(_h);r3&&(i.custodianPubkey=e.keys[3].pubkey),i}},{key:"decodeAuthorizeWithSeed",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);var t=al(_h.AuthorizeWithSeed,e.data),n=t.newAuthorized,r=t.stakeAuthorizationType,i=t.authoritySeed,o=t.authorityOwner,a={stakePubkey:e.keys[0].pubkey,authorityBase:e.keys[1].pubkey,authoritySeed:i,authorityOwner:new Ec(o),newAuthorizedPubkey:new Ec(n),stakeAuthorizationType:{index:r}};return e.keys.length>3&&(a.custodianPubkey=e.keys[3].pubkey),a}},{key:"decodeSplit",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);var t=al(_h.Split,e.data).lamports;return{stakePubkey:e.keys[0].pubkey,splitStakePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[2].pubkey,lamports:t}}},{key:"decodeMerge",value:function(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),al(_h.Merge,e.data),{stakePubkey:e.keys[0].pubkey,sourceStakePubKey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey}}},{key:"decodeWithdraw",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);var t=al(_h.Withdraw,e.data).lamports,n={stakePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:t};return e.keys.length>5&&(n.custodianPubkey=e.keys[5].pubkey),n}},{key:"decodeDeactivate",value:function(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),al(_h.Deactivate,e.data),{stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}},{key:"checkProgramId",value:function(e){if(!e.equals(Rh.programId))throw new Error("invalid instruction; programId is not StakeProgram")}},{key:"checkKeyLength",value:function(e,t){if(e.length0&&void 0!==arguments[0]?arguments[0]:"authorized";return jo([Sc("staker"),Sc("withdrawer")],e)}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return jo([So("unixTimestamp"),So("epoch"),Sc("custodian")],e)}()])},Authorize:{index:1,layout:jo([Lo("instruction"),Sc("newAuthorized"),Lo("stakeAuthorizationType")])},Delegate:{index:2,layout:jo([Lo("instruction")])},Split:{index:3,layout:jo([Lo("instruction"),So("lamports")])},Withdraw:{index:4,layout:jo([Lo("instruction"),So("lamports")])},Deactivate:{index:5,layout:jo([Lo("instruction")])},Merge:{index:7,layout:jo([Lo("instruction")])},AuthorizeWithSeed:{index:8,layout:jo([Lo("instruction"),Sc("newAuthorized"),Lo("stakeAuthorizationType"),Cc("authoritySeed"),Sc("authorityOwner")])}}),Ph=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),Rh=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"initialize",value:function(e){var t=e.stakePubkey,n=e.authorized,r=e.lockup||Oh.default,i=ol(_h.Initialize,{authorized:{staker:vc(n.staker.toBuffer()),withdrawer:vc(n.withdrawer.toBuffer())},lockup:{unixTimestamp:r.unixTimestamp,epoch:r.epoch,custodian:vc(r.custodian.toBuffer())}}),o={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Xc,isSigner:!1,isWritable:!1}],programId:this.programId,data:i};return new Yc(o)}},{key:"createAccountWithSeed",value:function(e){var t=new Fc;t.add(yl.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));var n=e.stakePubkey,r=e.authorized,i=e.lockup;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}},{key:"createAccount",value:function(e){var t=new Fc;t.add(yl.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));var n=e.stakePubkey,r=e.authorized,i=e.lockup;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}},{key:"delegate",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.votePubkey,i=ol(_h.Delegate);return(new Fc).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:Gc,isSigner:!1,isWritable:!1},{pubkey:tl,isSigner:!1,isWritable:!1},{pubkey:Ch,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"authorize",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.newAuthorizedPubkey,i=e.stakeAuthorizationType,o=e.custodianPubkey,a=ol(_h.Authorize,{newAuthorized:vc(r.toBuffer()),stakeAuthorizationType:i.index}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Gc,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new Fc).add({keys:s,programId:this.programId,data:a})}},{key:"authorizeWithSeed",value:function(e){var t=e.stakePubkey,n=e.authorityBase,r=e.authoritySeed,i=e.authorityOwner,o=e.newAuthorizedPubkey,a=e.stakeAuthorizationType,s=e.custodianPubkey,u=ol(_h.AuthorizeWithSeed,{newAuthorized:vc(o.toBuffer()),stakeAuthorizationType:a.index,authoritySeed:r,authorityOwner:vc(i.toBuffer())}),c=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:Gc,isSigner:!1,isWritable:!1}];return s&&c.push({pubkey:s,isSigner:!1,isWritable:!1}),(new Fc).add({keys:c,programId:this.programId,data:u})}},{key:"splitInstruction",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.splitStakePubkey,i=e.lamports,o=ol(_h.Split,{lamports:i});return new Yc({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}},{key:"split",value:function(e){var t=new Fc;return t.add(yl.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),t.add(this.splitInstruction(e))}},{key:"splitWithSeed",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.splitStakePubkey,i=e.basePubkey,o=e.seed,a=e.lamports,s=new Fc;return s.add(yl.allocate({accountPubkey:r,basePubkey:i,seed:o,space:this.space,programId:this.programId})),s.add(this.splitInstruction({stakePubkey:t,authorizedPubkey:n,splitStakePubkey:r,lamports:a}))}},{key:"merge",value:function(e){var t=e.stakePubkey,n=e.sourceStakePubKey,r=e.authorizedPubkey,i=ol(_h.Merge);return(new Fc).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:Gc,isSigner:!1,isWritable:!1},{pubkey:tl,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"withdraw",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.toPubkey,i=e.lamports,o=e.custodianPubkey,a=ol(_h.Withdraw,{lamports:i}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:Gc,isSigner:!1,isWritable:!1},{pubkey:tl,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new Fc).add({keys:s,programId:this.programId,data:a})}},{key:"deactivate",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=ol(_h.Deactivate);return(new Fc).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Gc,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}]),e}();Rh.programId=new Ec("Stake11111111111111111111111111111111111111"),Rh.space=200;var Bh=Xe((function e(t,n,r,i){Ze(this,e),this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=n,this.authorizedWithdrawer=r,this.commission=i})),Uh=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=Lo("instruction").decode(e.data),r=0,i=Object.entries(Wh);r0&&void 0!==arguments[0]?arguments[0]:"voteInit";return jo([Sc("nodePubkey"),Sc("authorizedVoter"),Sc("authorizedWithdrawer"),Io("commission")],e)}()])},Authorize:{index:1,layout:jo([Lo("instruction"),Sc("newAuthorized"),Lo("voteAuthorizationType")])},Withdraw:{index:3,layout:jo([Lo("instruction"),So("lamports")])},AuthorizeWithSeed:{index:10,layout:jo([Lo("instruction"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteAuthorizeWithSeedArgs";return jo([Lo("voteAuthorizationType"),Sc("currentAuthorityDerivedKeyOwnerPubkey"),Cc("currentAuthorityDerivedKeySeed"),Sc("newAuthorized")],e)}()])}}),Qh=Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),Yh=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"initializeAccount",value:function(e){var t=e.votePubkey,n=e.nodePubkey,r=e.voteInit,i=ol(Wh.InitializeAccount,{voteInit:{nodePubkey:vc(r.nodePubkey.toBuffer()),authorizedVoter:vc(r.authorizedVoter.toBuffer()),authorizedWithdrawer:vc(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),o={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Xc,isSigner:!1,isWritable:!1},{pubkey:Gc,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};return new Yc(o)}},{key:"createAccount",value:function(e){var t=new Fc;return t.add(yl.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),t.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}},{key:"authorize",value:function(e){var t=e.votePubkey,n=e.authorizedPubkey,r=e.newAuthorizedPubkey,i=e.voteAuthorizationType,o=ol(Wh.Authorize,{newAuthorized:vc(r.toBuffer()),voteAuthorizationType:i.index}),a=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Gc,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new Fc).add({keys:a,programId:this.programId,data:o})}},{key:"authorizeWithSeed",value:function(e){var t=e.currentAuthorityDerivedKeyBasePubkey,n=e.currentAuthorityDerivedKeyOwnerPubkey,r=e.currentAuthorityDerivedKeySeed,i=e.newAuthorizedPubkey,o=e.voteAuthorizationType,a=e.votePubkey,s=ol(Wh.AuthorizeWithSeed,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:vc(n.toBuffer()),currentAuthorityDerivedKeySeed:r,newAuthorized:vc(i.toBuffer()),voteAuthorizationType:o.index}}),u=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:Gc,isSigner:!1,isWritable:!1},{pubkey:t,isSigner:!0,isWritable:!1}];return(new Fc).add({keys:u,programId:this.programId,data:s})}},{key:"withdraw",value:function(e){var t=e.votePubkey,n=e.authorizedWithdrawerPubkey,r=e.lamports,i=e.toPubkey,o=ol(Wh.Withdraw,{lamports:r}),a=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new Fc).add({keys:a,programId:this.programId,data:o})}},{key:"safeWithdraw",value:function(t,n,r){if(t.lamports>n-r)throw new Error("Withdraw will leave vote account with insuffcient funds.");return e.withdraw(t)}}]),e}();Yh.programId=new Ec("Vote111111111111111111111111111111111111111"),Yh.space=3731;var Fh=new Ec("Va1idator1nfo111111111111111111111111111111"),Vh=la({name:ua(),website:aa(ua()),details:aa(ua()),keybaseUsername:aa(ua())}),Hh=function(){function e(t,n){Ze(this,e),this.key=void 0,this.info=void 0,this.key=t,this.info=n}return Xe(e,null,[{key:"fromConfigData",value:function(t){var n=ht(t);if(2!==Oc(n))return null;for(var r=[],i=0;i<2;i++){var o=new Ec(n.slice(0,32)),a=1===(n=n.slice(32)).slice(0,1)[0];n=n.slice(1),r.push({publicKey:o,isSigner:a})}if(r[0].publicKey.equals(Fh)&&r[1].isSigner){var s=Cc().decode(zt.from(n)),u=JSON.parse(s);return Zo(u,Vh),new e(r[1].publicKey,u)}return null}}]),e}(),Gh=new Ec("Vote111111111111111111111111111111111111111"),qh=jo([Sc("nodePubkey"),Sc("authorizedWithdrawer"),Io("commission"),xo(),Co(jo([xo("slot"),Lo("confirmationCount")]),No(Lo(),-8),"votes"),Io("rootSlotValid"),xo("rootSlot"),xo(),Co(jo([xo("epoch"),Sc("authorizedVoter")]),No(Lo(),-8),"authorizedVoters"),jo([Co(jo([Sc("authorizedPubkey"),xo("epochOfLastAuthorizedSwitch"),xo("targetEpoch")]),32,"buf"),xo("idx"),Io("isEmpty")],"priorVoters"),xo(),Co(jo([xo("epoch"),xo("credits"),xo("prevCredits")]),No(Lo(),-8),"epochCredits"),jo([xo("slot"),xo("timestamp")],"lastTimestamp")]),Zh=function(){function e(t){Ze(this,e),this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}return Xe(e,null,[{key:"fromAccountData",value:function(t){var n=qh.decode(vc(t),4),r=n.rootSlot;return n.rootSlotValid||(r=null),new e({nodePubkey:new Ec(n.nodePubkey),authorizedWithdrawer:new Ec(n.authorizedWithdrawer),commission:n.commission,votes:n.votes,rootSlot:r,authorizedVoters:n.authorizedVoters.map(Jh),priorVoters:Kh(n.priorVoters),epochCredits:n.epochCredits,lastTimestamp:n.lastTimestamp})}}]),e}();function Jh(e){var t=e.authorizedVoter;return{epoch:e.epoch,authorizedVoter:new Ec(t)}}function Xh(e){var t=e.authorizedPubkey,n=e.epochOfLastAuthorizedSwitch,r=e.targetEpoch;return{authorizedPubkey:new Ec(t),epochOfLastAuthorizedSwitch:n,targetEpoch:r}}function Kh(e){var t=e.buf,n=e.idx;return e.isEmpty?[]:[].concat(ht(t.slice(n+1).map(Xh)),ht(t.slice(0,n).map(Xh)))}var $h={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function ep(){return ep=qe(Ve().mark((function e(t,n,r,i){var o,a,s,u,c,l,d;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(o=r,a=i):a=r,s=a&&{skipPreflight:a.skipPreflight,preflightCommitment:a.preflightCommitment||a.commitment,minContextSlot:a.minContextSlot},e.next=4,t.sendRawTransaction(n,s);case 4:return u=e.sent,c=a&&a.commitment,l=o?t.confirmTransaction(o,c):t.confirmTransaction(u,c),e.next=9,l;case 9:if(!(d=e.sent.value).err){e.next=12;break}throw new Error("Raw transaction ".concat(u," failed (").concat(JSON.stringify(d),")"));case 12:return e.abrupt("return",u);case 13:case"end":return e.stop()}}),e)}))),ep.apply(this,arguments)}var tp=Object.freeze({__proto__:null,Account:Tc,AddressLookupTableAccount:xl,AddressLookupTableInstruction:Mh,AddressLookupTableProgram:Ah,Authorized:Dh,BLOCKHASH_CACHE_TIMEOUT_MS:3e4,BPF_LOADER_DEPRECATED_PROGRAM_ID:Nc,BPF_LOADER_PROGRAM_ID:gl,BpfLoader:vl,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:Th,ComputeBudgetInstruction:Eh,ComputeBudgetProgram:Nh,Connection:vh,Ed25519Program:kh,Enum:wc,EpochSchedule:Tl,FeeCalculatorLayout:ul,Keypair:bh,LAMPORTS_PER_SOL:1e9,LOOKUP_TABLE_INSTRUCTION_LAYOUTS:wh,Loader:ml,Lockup:Oh,MAX_SEED_LENGTH:32,Message:Bc,MessageAccountKeys:xc,MessageV0:Uc,NONCE_ACCOUNT_LENGTH:ll,NonceAccount:dl,PACKET_DATA_SIZE:1232,PUBLIC_KEY_LENGTH:32,PublicKey:Ec,SIGNATURE_LENGTH_IN_BYTES:64,SOLANA_SCHEMA:Mc,STAKE_CONFIG_ID:Ch,STAKE_INSTRUCTION_LAYOUTS:_h,SYSTEM_INSTRUCTION_LAYOUTS:fl,SYSVAR_CLOCK_PUBKEY:Gc,SYSVAR_EPOCH_SCHEDULE_PUBKEY:qc,SYSVAR_INSTRUCTIONS_PUBKEY:Zc,SYSVAR_RECENT_BLOCKHASHES_PUBKEY:Jc,SYSVAR_RENT_PUBKEY:Xc,SYSVAR_REWARDS_PUBKEY:Kc,SYSVAR_SLOT_HASHES_PUBKEY:$c,SYSVAR_SLOT_HISTORY_PUBKEY:el,SYSVAR_STAKE_HISTORY_PUBKEY:tl,Secp256k1Program:jh,SendTransactionError:Nl,SolanaJSONRPCError:Il,SolanaJSONRPCErrorCode:{JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016},StakeAuthorizationLayout:Ph,StakeInstruction:zh,StakeProgram:Rh,Struct:bc,SystemInstruction:pl,SystemProgram:yl,Transaction:Fc,TransactionExpiredBlockheightExceededError:Ic,TransactionExpiredNonceInvalidError:Lc,TransactionExpiredTimeoutError:kc,TransactionInstruction:Yc,TransactionMessage:Vc,get TransactionStatus(){return Pc},VALIDATOR_INFO_KEY:Fh,VERSION_PREFIX_MASK:127,VOTE_PROGRAM_ID:Gh,ValidatorInfo:Hh,VersionedMessage:Wc,VersionedTransaction:Hc,VoteAccount:Zh,VoteAuthorizationLayout:Qh,VoteInit:Bh,VoteInstruction:Uh,VoteProgram:Yh,clusterApiUrl:function(e,t){var n=!1===t?"http":"https";if(!e)return $h[n].devnet;var r=$h[n][e];if(!r)throw new Error("Unknown ".concat(n," cluster: ").concat(e));return r},sendAndConfirmRawTransaction:function(e,t,n,r){return ep.apply(this,arguments)},sendAndConfirmTransaction:nl}),np=Qe(tp),rp={};Object.defineProperty(rp,"__esModule",{value:!0});var ip={ERROR_ASSOCIATION_PORT_OUT_OF_RANGE:"ERROR_ASSOCIATION_PORT_OUT_OF_RANGE",ERROR_FORBIDDEN_WALLET_BASE_URL:"ERROR_FORBIDDEN_WALLET_BASE_URL",ERROR_SECURE_CONTEXT_REQUIRED:"ERROR_SECURE_CONTEXT_REQUIRED",ERROR_SESSION_CLOSED:"ERROR_SESSION_CLOSED",ERROR_SESSION_TIMEOUT:"ERROR_SESSION_TIMEOUT",ERROR_WALLET_NOT_FOUND:"ERROR_WALLET_NOT_FOUND"},op=function(e){$e(n,it(Error));var t=ut(n);function n(){var e;Ze(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=4294967296)throw new Error("Outbound sequence number overflow. The maximum sequence number is 32-bytes.");var t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e,!1),new Uint8Array(t)}function lp(){return sp(this,void 0,void 0,Ve().mark((function e(){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign"]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}function dp(){return sp(this,void 0,void 0,Ve().mark((function e(){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}var hp;function pp(e,t){return sp(this,void 0,void 0,Ve().mark((function n(){var r,i,o,a,s;return Ve().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=JSON.stringify(e),i=cp(e.id),o=new Uint8Array(12),crypto.getRandomValues(o),n.next=6,crypto.subtle.encrypt(yp(i,o),t,(new TextEncoder).encode(r));case 6:return a=n.sent,(s=new Uint8Array(i.byteLength+o.byteLength+a.byteLength)).set(new Uint8Array(i),0),s.set(new Uint8Array(o),i.byteLength),s.set(new Uint8Array(a),i.byteLength+o.byteLength),n.abrupt("return",s);case 12:case"end":return n.stop()}}),n)})))}function fp(e,t){return sp(this,void 0,void 0,Ve().mark((function n(){var r,i,o,a,s,u;return Ve().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.slice(0,4),i=e.slice(4,16),o=e.slice(16),n.next=5,crypto.subtle.decrypt(yp(r,i),t,o);case 5:if(a=n.sent,s=mp().decode(a),u=JSON.parse(s),!Object.hasOwnProperty.call(u,"error")){n.next=10;break}throw new ap(u.id,u.error.code,u.error.message);case 10:return n.abrupt("return",u);case 11:case"end":return n.stop()}}),n)})))}function yp(e,t){return{additionalData:e,iv:t,name:"AES-GCM",tagLength:128}}function mp(){return void 0===hp&&(hp=new TextDecoder("utf-8")),hp}function gp(e,t,n){return sp(this,void 0,void 0,Ve().mark((function r(){var i,o,a,s,u,c,l;return Ve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([crypto.subtle.exportKey("raw",t),crypto.subtle.importKey("raw",e,{name:"ECDH",namedCurve:"P-256"},!1,[])]);case 2:return i=r.sent,o=dt(i,2),a=o[0],s=o[1],r.next=8,crypto.subtle.deriveBits({name:"ECDH",public:s},n,256);case 8:return u=r.sent,r.next=11,crypto.subtle.importKey("raw",u,"HKDF",!1,["deriveKey"]);case 11:return c=r.sent,r.next=14,crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(a),info:new Uint8Array},c,{name:"AES-GCM",length:128},!1,["encrypt","decrypt"]);case 14:return l=r.sent,r.abrupt("return",l);case 16:case"end":return r.stop()}}),r)})))}function vp(e){if(e<49152||e>65535)throw new op(ip.ERROR_ASSOCIATION_PORT_OUT_OF_RANGE,"Association port number must be between 49152 and 65535. ".concat(e," given."),{port:e});return e}function bp(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=0;i1?e.shift():e[0]}}(),u=1,c=0,l={__type:"disconnected"},n.abrupt("return",new Promise((function(t,n){var h,p,f,y={},m=function e(){return sp(d,void 0,void 0,Ve().mark((function t(){var n,r;return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("connecting"===l.__type){t.next=3;break}return console.warn("Expected adapter state to be `connecting` at the moment the websocket opens. "+"Got `".concat(l.__type,"`.")),t.abrupt("return");case 3:return n=l.associationKeypair,h.removeEventListener("open",e),t.next=7,dp();case 7:return r=t.sent,t.t0=h,t.next=11,up(r.publicKey,n.privateKey);case 11:t.t1=t.sent,t.t0.send.call(t.t0,t.t1),l={__type:"hello_req_sent",associationPublicKey:n.publicKey,ecdhPrivateKey:r.privateKey};case 14:case"end":return t.stop()}}),t)})))},g=function(e){e.wasClean?l={__type:"disconnected"}:n(new op(ip.ERROR_SESSION_CLOSED,"The wallet session dropped unexpectedly (".concat(e.code,": ").concat(e.reason,")."),{closeEvent:e})),p()},v=function(e){return sp(d,void 0,void 0,Ve().mark((function e(){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p(),!(Date.now()-a>=Lp)){e.next=5;break}n(new op(ip.ERROR_SESSION_TIMEOUT,"Failed to connect to the wallet websocket on port ".concat(i,"."))),e.next=8;break;case 5:return e.next=7,new Promise((function(e){var t=s();f=window.setTimeout(e,t)}));case 7:w();case 8:case"end":return e.stop()}}),e)})))},b=function(r){return sp(d,void 0,void 0,Ve().mark((function i(){var o,a,s,d,f,m,g,v;return Ve().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r.data.arrayBuffer();case 2:o=i.sent,i.t0=l.__type,i.next="connected"===i.t0?6:"hello_req_sent"===i.t0?30:51;break;case 6:if(i.prev=6,a=o.slice(0,4),(s=new DataView(a).getUint32(0,!1))===c+1){i.next=11;break}throw new Error("Encrypted message has invalid sequence number");case 11:return c=s,i.next=14,fp(o,l.sharedSecret);case 14:d=i.sent,f=y[d.id],delete y[d.id],f.resolve(d.result),i.next=29;break;case 20:if(i.prev=20,i.t1=i.catch(6),!(i.t1 instanceof ap)){i.next=28;break}m=y[i.t1.jsonRpcMessageId],delete y[i.t1.jsonRpcMessageId],m.reject(i.t1),i.next=29;break;case 28:throw i.t1;case 29:return i.abrupt("break",51);case 30:return i.next=32,gp(o,l.associationPublicKey,l.ecdhPrivateKey);case 32:return g=i.sent,l={__type:"connected",sharedSecret:g},v=new Proxy({},{get:function(e,t){if(null==e[t]){var n=t.toString().replace(/[A-Z]/g,(function(e){return"_".concat(e.toLowerCase())})).toLowerCase();e[t]=function(e){return sp(this,void 0,void 0,Ve().mark((function r(){var i;return Ve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=u++,r.t0=h,r.next=4,pp({id:i,jsonrpc:"2.0",method:n,params:null!=e?e:{}},g);case 4:return r.t1=r.sent,r.t0.send.call(r.t0,r.t1),r.abrupt("return",new Promise((function(e,n){y[i]={resolve:function(r){switch(t){case"authorize":case"reauthorize":var i=r.wallet_uri_base;if(null!=i)try{Sp(i)}catch(e){return void n(e)}}e(r)},reject:n}})));case 7:case"end":return r.stop()}}),r)})))}}return e[t]},defineProperty:function(){return!1},deleteProperty:function(){return!1}}),i.prev=35,i.t2=t,i.next=39,e(v);case 39:i.t3=i.sent,(0,i.t2)(i.t3),i.next=46;break;case 43:i.prev=43,i.t4=i.catch(35),n(i.t4);case 46:return i.prev=46,p(),h.close(),i.finish(46);case 50:return i.abrupt("break",51);case 51:case"end":return i.stop()}}),i,null,[[6,20],[35,43,46,50]])})))},w=function(){p&&p(),l={__type:"connecting",associationKeypair:r},void 0===a&&(a=Date.now()),(h=new WebSocket(o,["com.solana.mobilewalletadapter.v1"])).addEventListener("open",m),h.addEventListener("close",g),h.addEventListener("error",v),h.addEventListener("message",b),p=function(){window.clearTimeout(f),h.removeEventListener("open",m),h.removeEventListener("close",g),h.removeEventListener("error",v),h.removeEventListener("message",b)}};w()})));case 13:case"end":return n.stop()}}),n)})))};var jp=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);e[n];){var l=t[e.charCodeAt(n)];if(255===l)return;for(var d=0,h=o-1;(0!==l||d>>0,c[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,n++}for(var p=o-i;p!==o&&0===c[p];)p++;for(var f=new Uint8Array(r+(o-p)),y=r;p!==o;)f[y++]=c[p++];return f}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var d=t[i],h=0,p=u-1;(0!==d||h>>0,l[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=u-r;f!==u&&0===l[f];)f++;for(var y=s.repeat(n);fthis.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}();function Vp(e,t){return t.property?e+"["+t.property+"]":e}Yp.Layout=Fp,Yp.nameWithProperty=Vp,Yp.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(e.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof Fp))throw new TypeError("layout must be a Layout");if(t.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=function(){return new e},Object.defineProperty(e.prototype,"encode",{value:function(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,n){return t.decode(e,n)},writable:!0})};var Hp=function(e){$e(n,Fp);var t=ut(n);function n(){return Ze(this,n),t.apply(this,arguments)}return Xe(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(),Gp=function(e){$e(n,Hp);var t=ut(n);function n(e,r){var i;if(Ze(this,n),void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");return(i=t.call(this,-1,r)).elementSpan=e,i}return Xe(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.length-t;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(e,t,n){return 0}}]),n}(),qp=function(e){$e(n,Hp);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!(e instanceof Fp))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(o=t.call(this,e.span,i||e.property)).layout=e,o.offset=r,o}return Xe(n,[{key:"isCount",value:function(){return this.layout instanceof Zp||this.layout instanceof Jp}},{key:"decode",value:function(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),this.layout.encode(e,t,n+this.offset)}}]),n}(),Zp=function(e){$e(n,Fp);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntLE(e,n,this.span),this.span}}]),n}(),Jp=function(e){$e(n,Fp);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntBE(e,n,this.span),this.span}}]),n}(),Xp=function(e){$e(n,Fp);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeIntLE(e,n,this.span),this.span}}]),n}(),Kp=function(e){$e(n,Fp);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeIntBE(e,n,this.span),this.span}}]),n}(),$p=Math.pow(2,32);function ef(e){var t=Math.floor(e/$p);return{hi32:t,lo32:e-t*$p}}function tf(e,t){return e*$p+t}var nf=function(e){$e(n,Fp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return tf(e.readUInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=ef(e);return t.writeUInt32LE(r.lo32,n),t.writeUInt32LE(r.hi32,n+4),8}}]),n}(),rf=function(e){$e(n,Fp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),tf(e.readUInt32BE(t),e.readUInt32BE(t+4))}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=ef(e);return t.writeUInt32BE(r.hi32,n),t.writeUInt32BE(r.lo32,n+4),8}}]),n}(),of=function(e){$e(n,Fp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return tf(e.readInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=ef(e);return t.writeUInt32LE(r.lo32,n),t.writeInt32LE(r.hi32,n+4),8}}]),n}(),af=function(e){$e(n,Fp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),tf(e.readInt32BE(t),e.readUInt32BE(t+4))}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=ef(e);return t.writeInt32BE(r.hi32,n),t.writeUInt32BE(r.lo32,n+4),8}}]),n}(),sf=function(e){$e(n,Fp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,4,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readFloatLE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeFloatLE(e,n),4}}]),n}(),uf=function(e){$e(n,Fp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,4,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readFloatBE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeFloatBE(e,n),4}}]),n}(),cf=function(e){$e(n,Fp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readDoubleLE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeDoubleLE(e,n),8}}]),n}(),lf=function(e){$e(n,Fp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readDoubleBE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeDoubleBE(e,n),8}}]),n}(),df=function(e){$e(n,Fp);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!(e instanceof Fp))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof Hp&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var a=-1;return!(r instanceof Hp)&&0u.span&&void 0===u.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){s.e(e)}finally{s.f()}var c=-1;try{c=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(o=t.call(this,c,r)).fields=e,o.decodePrefixes=!!i,o}return Xe(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;try{n=this.fields.reduce((function(n,r){var i=r.getSpan(e,t);return t+=i,n+i}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n,r=this.makeDestinationObject(),i=vt(this.fields);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(void 0!==o.property&&(r[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r,i=n,o=0,a=0,s=vt(this.fields);try{for(s.s();!(r=s.n()).done;){var u=r.value,c=u.span;if(a=0c&&(c=u.getSpan(t,n)))}o=n,n+=c}}catch(e){s.e(e)}finally{s.f()}return o+a-i}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),r=vt(this.fields);try{for(r.s();!(t=r.n()).done;){var i=t.value;void 0!==i.property&&0i.span?n=-1:0<=n&&(n+=i.span)}}catch(e){r.e(e)}finally{r.f()}}}]),n}(),pf=function(){function e(t){Ze(this,e),this.property=t}return Xe(e,[{key:"decode",value:function(){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(){throw new Error("UnionDiscriminator is abstract")}}]),e}(),ff=function(e){$e(n,pf);var t=ut(n);function n(e,r){var i;if(Ze(this,n),!(e instanceof Hp&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(i=t.call(this,r||e.property||"variant")).layout=e,i}return Xe(n,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,n){return this.layout.encode(e,t,n)}}]),n}(),yf=function(e){$e(n,Fp);var t=ut(n);function n(e,r,i){var o;Ze(this,n);var a=e instanceof Zp||e instanceof Jp;if(a)e=new ff(new qp(e));else if(e instanceof Hp&&e.isCount())e=new ff(e);else if(!(e instanceof pf))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===r&&(r=null),!(null===r||r instanceof Fp))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var s=-1;r&&0<=(s=r.span)&&a&&(s+=e.layout.span),(o=t.call(this,s,i)).discriminator=e,o.usesPrefixDiscriminator=a,o.defaultLayout=r,o.registry={};var u=o.defaultGetSourceVariant.bind(at(o));return o.getSourceVariant=function(e){return u(e)},o.configGetSourceVariant=function(e){u=e.bind(this)},o}return Xe(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(var n in this.registry){var r=this.registry[n];if(e.hasOwnProperty(r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e,t){var n;void 0===t&&(t=0);var r=this.discriminator,i=r.decode(e,t),o=this.registry[i];if(void 0===o){var a=0;o=this.defaultLayout,this.usesPrefixDiscriminator&&(a=r.layout.span),(n=this.makeDestinationObject())[r.property]=i,n[o.property]=this.defaultLayout.decode(e,t+a)}else n=o.decode(e,t);return n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=this.getSourceVariant(e);if(void 0===r){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(e[i.property],t,n),a+o.encode(e[o.property],t,n+a)}return r.encode(e,t,n)}},{key:"addVariant",value:function(e,t,n){var r=new mf(this,e,t,n);return this.registry[e]=r,r}},{key:"getVariant",value:function(e,t){var n=e;return zt.isBuffer(e)&&(void 0===t&&(t=0),n=this.discriminator.decode(e,t)),this.registry[n]}}]),n}(),mf=function(e){$e(n,Fp);var t=ut(n);function n(e,r,i,o){var a;if(Ze(this,n),!(e instanceof yf))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof i&&void 0===o&&(o=i,i=null),i){if(!(i instanceof Fp))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=i.span&&i.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=i?i.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(a=t.call(this,s,o)).union=e,a.variant=r,a.layout=i||null,a}return Xe(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),n+this.layout.getSpan(e,t+n)}},{key:"decode",value:function(e,t){var n=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);var i=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),i+=this.layout.getSpan(t,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),n}();function gf(e){return 0>e&&(e+=4294967296),e}var vf=function(e){$e(n,Fp);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!(e instanceof Zp||e instanceof Jp))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===i&&(i=r,r=void 0),4=n)throw new TypeError("bits must be positive integer");var i=8*t.span,o=t.fields.reduce((function(e,t){return e+t.bits}),0);if(n+o>i)throw new Error("bits too long for span remainder ("+(i-o)+" of "+i+" remain)");this.container=t,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(e){if(!Number.isInteger(e)||e!==gf(e&this.valueMask))throw new TypeError(Vp("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var t=this.container._packedGetValue(),n=gf(e<n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=this.span;return 0>n&&(n=this.length.decode(e,t)),e.slice(t,t+n)}},{key:"encode",value:function(e,t,n){var r=this.length;if(this.length instanceof Hp&&(r=e.length),!zt.isBuffer(e)||r!==e.length)throw new TypeError(Vp("Blob.encode",this)+" requires (length "+r+") Buffer as src");if(n+r>t.length)throw new RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),n,r,"hex"),this.length instanceof Hp&&this.length.encode(r,t,n),r}}]),n}(),Af=function(e){$e(n,Fp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,-1,e)}return Xe(n,[{key:"getSpan",value:function(e,t){if(!zt.isBuffer(e))throw new TypeError("b must be a Buffer");void 0===t&&(t=0);for(var n=t;nt.length)throw new RangeError("encoding overruns Buffer");return r.copy(t,n),t[n+i]=0,i+1}}]),n}(),Ef=function(e){$e(n,Fp);var t=ut(n);function n(e,r){var i;if(Ze(this,n),"string"==typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(i=t.call(this,-1,r)).maxSpan=e,i}return Xe(n,[{key:"getSpan",value:function(e,t){if(!zt.isBuffer(e))throw new TypeError("b must be a Buffer");return void 0===t&&(t=0),e.length-t}},{key:"decode",value:function(e,t,n){void 0===t&&(t=0);var r=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return r.copy(t,n),i}}]),n}(),Tf=function(e){$e(n,Fp);var t=ut(n);function n(e,r){var i;return Ze(this,n),(i=t.call(this,0,r)).value=e,i}return Xe(n,[{key:"decode",value:function(e,t,n){return this.value}},{key:"encode",value:function(e,t,n){return 0}}]),n}();Yp.ExternalLayout=Hp,Yp.GreedyCount=Gp,Yp.OffsetLayout=qp,Yp.UInt=Zp,Yp.UIntBE=Jp,Yp.Int=Xp,Yp.IntBE=Kp,Yp.Float=sf,Yp.FloatBE=uf,Yp.Double=cf,Yp.DoubleBE=lf,Yp.Sequence=df,Yp.Structure=hf,Yp.UnionDiscriminator=pf,Yp.UnionLayoutDiscriminator=ff,Yp.Union=yf,Yp.VariantLayout=mf,Yp.BitStructure=vf,Yp.BitField=bf,Yp.Boolean=wf,Yp.Blob=Mf,Yp.CString=Af,Yp.UTF8=Ef,Yp.Constant=Tf,Yp.greedy=function(e,t){return new Gp(e,t)};Yp.offset=function(e,t,n){return new qp(e,t,n)};Yp.u8=function(e){return new Zp(1,e)},Yp.u16=function(e){return new Zp(2,e)},Yp.u24=function(e){return new Zp(3,e)},Yp.u32=function(e){return new Zp(4,e)},Yp.u40=function(e){return new Zp(5,e)},Yp.u48=function(e){return new Zp(6,e)};Yp.nu64=function(e){return new nf(e)};Yp.u16be=function(e){return new Jp(2,e)},Yp.u24be=function(e){return new Jp(3,e)},Yp.u32be=function(e){return new Jp(4,e)},Yp.u40be=function(e){return new Jp(5,e)},Yp.u48be=function(e){return new Jp(6,e)},Yp.nu64be=function(e){return new rf(e)},Yp.s8=function(e){return new Xp(1,e)},Yp.s16=function(e){return new Xp(2,e)},Yp.s24=function(e){return new Xp(3,e)},Yp.s32=function(e){return new Xp(4,e)},Yp.s40=function(e){return new Xp(5,e)},Yp.s48=function(e){return new Xp(6,e)},Yp.ns64=function(e){return new of(e)},Yp.s16be=function(e){return new Kp(2,e)},Yp.s24be=function(e){return new Kp(3,e)},Yp.s32be=function(e){return new Kp(4,e)},Yp.s40be=function(e){return new Kp(5,e)},Yp.s48be=function(e){return new Kp(6,e)},Yp.ns64be=function(e){return new af(e)},Yp.f32=function(e){return new sf(e)},Yp.f32be=function(e){return new uf(e)},Yp.f64=function(e){return new cf(e)},Yp.f64be=function(e){return new lf(e)},Yp.struct=function(e,t,n){return new hf(e,t,n)},Yp.bits=function(e,t,n){return new vf(e,t,n)};var Nf=Yp.seq=function(e,t,n){return new df(e,t,n)};Yp.union=function(e,t,n){return new yf(e,t,n)},Yp.unionLayoutDiscriminator=function(e,t){return new ff(e,t)};Yp.blob=function(e,t){return new Mf(e,t)};Yp.cstr=function(e){return new Af(e)},Yp.utf8=function(e,t){return new Ef(e,t)},Yp.const=function(e,t){return new Tf(e,t)};var If={},kf={exports:{}};!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"===He(e)?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Hr.Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"===He(e))return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var d=["","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"],h=[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],p=[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];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],l=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var y=f.modrn(l).toString(e);r=(f=f.idivn(l)).isZero()?y+r:d[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],f=8191&p,y=p>>>13,m=0|a[2],g=8191&m,v=m>>>13,b=0|a[3],w=8191&b,M=b>>>13,A=0|a[4],E=8191&A,T=A>>>13,N=0|a[5],I=8191&N,k=N>>>13,L=0|a[6],x=8191&L,S=L>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,_=O>>>13,P=0|a[9],R=8191&P,B=P>>>13,U=0|s[0],W=8191&U,Q=U>>>13,Y=0|s[1],F=8191&Y,V=Y>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,ee=K>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,he=le>>>13,pe=0|s[9],fe=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(c+(r=Math.imul(d,W))|0)+((8191&(i=(i=Math.imul(d,Q))+Math.imul(h,W)|0))<<13)|0;c=((o=Math.imul(h,Q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(f,W),i=(i=Math.imul(f,Q))+Math.imul(y,W)|0,o=Math.imul(y,Q);var ge=(c+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,F)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,W),i=(i=Math.imul(g,Q))+Math.imul(v,W)|0,o=Math.imul(v,Q),r=r+Math.imul(f,F)|0,i=(i=i+Math.imul(f,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,W),i=(i=Math.imul(w,Q))+Math.imul(M,W)|0,o=Math.imul(M,Q),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,W),i=(i=Math.imul(E,Q))+Math.imul(T,W)|0,o=Math.imul(T,Q),r=r+Math.imul(w,F)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,W),i=(i=Math.imul(I,Q))+Math.imul(k,W)|0,o=Math.imul(k,Q),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(T,F)|0,o=o+Math.imul(T,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0;var Me=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(x,W),i=(i=Math.imul(x,Q))+Math.imul(S,W)|0,o=Math.imul(S,Q),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0;var Ae=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,W),i=(i=Math.imul(C,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,X)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,Q))+Math.imul(_,W)|0,o=Math.imul(_,Q),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Te=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(R,W),i=(i=Math.imul(R,Q))+Math.imul(B,W)|0,o=Math.imul(B,Q),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(_,F)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Ne=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ye)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,ye)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(B,F)|0,o=Math.imul(B,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,he)|0;var Ie=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ye)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(R,G),i=(i=Math.imul(R,q))+Math.imul(B,G)|0,o=Math.imul(B,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var ke=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,ye)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,J),i=(i=Math.imul(R,X))+Math.imul(B,J)|0,o=Math.imul(B,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(T,de)|0,o=o+Math.imul(T,he)|0;var Le=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(M,fe)|0))<<13)|0;c=((o=o+Math.imul(M,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(R,$),i=(i=Math.imul(R,ee))+Math.imul(B,$)|0,o=Math.imul(B,ee),r=r+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var xe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(T,fe)|0))<<13)|0;c=((o=o+Math.imul(T,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,ne),i=(i=Math.imul(R,re))+Math.imul(B,ne)|0,o=Math.imul(B,re),r=r+Math.imul(z,oe)|0,i=(i=i+Math.imul(z,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,he)|0;var Se=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ye)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,ye)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(R,oe),i=(i=Math.imul(R,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),r=r+Math.imul(z,ue)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,he)|0;var je=(c+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,ye)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(R,ue),i=(i=Math.imul(R,ce))+Math.imul(B,ue)|0,o=Math.imul(B,ce),r=r+Math.imul(z,de)|0,i=(i=i+Math.imul(z,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Ce=(c+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ye)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(R,de),i=(i=Math.imul(R,he))+Math.imul(B,de)|0,o=Math.imul(B,he);var De=(c+(r=r+Math.imul(z,fe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ye)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(c+(r=Math.imul(R,fe))|0)+((8191&(i=(i=Math.imul(R,ye))+Math.imul(B,fe)|0))<<13)|0;return c=((o=Math.imul(B,ye))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,u[0]=me,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=Me,u[6]=Ae,u[7]=Ee,u[8]=Te,u[9]=Ne,u[10]=Ie,u[11]=ke,u[12]=Le,u[13]=xe,u[14]=Se,u[15]=je,u[16]=Ce,u[17]=De,u[18]=Oe,0!==c&&(u[19]=c,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(e,t,n){return m(e,t,n)}Math.imul||(y=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?f(this,e,t):n<1024?m(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-o|d>>>o,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var h=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(o,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var f=0,y=1;0==(r.words[0]&y)&&f<26;++f,y<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,h=1;0==(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new T(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function N(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new M;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},T.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},T.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,o),h=this.pow(e,o.addn(1).iushrn(1)),p=this.pow(e,o),f=a;0!==p.cmp(s);){for(var y=p,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new N(e)},r(N,T),N.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},N.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},N.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},N.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(kf,Ue),function(e){var t=Ue&&Ue.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.map=e.array=e.rustEnum=e.str=e.vecU8=e.tagged=e.vec=e.bool=e.option=e.publicKey=e.i128=e.u128=e.i64=e.u64=e.struct=e.f64=e.f32=e.i32=e.u32=e.i16=e.u16=e.i8=e.u8=void 0;var n=Yp,r=np,i=t(kf.exports),o=Yp;Object.defineProperty(e,"u8",{enumerable:!0,get:function(){return o.u8}}),Object.defineProperty(e,"i8",{enumerable:!0,get:function(){return o.s8}}),Object.defineProperty(e,"u16",{enumerable:!0,get:function(){return o.u16}}),Object.defineProperty(e,"i16",{enumerable:!0,get:function(){return o.s16}}),Object.defineProperty(e,"u32",{enumerable:!0,get:function(){return o.u32}}),Object.defineProperty(e,"i32",{enumerable:!0,get:function(){return o.s32}}),Object.defineProperty(e,"f32",{enumerable:!0,get:function(){return o.f32}}),Object.defineProperty(e,"f64",{enumerable:!0,get:function(){return o.f64}}),Object.defineProperty(e,"struct",{enumerable:!0,get:function(){return o.struct}});var a=function(e){$e(r,e);var t=ut(r);function r(e,i,o){var a;return Ze(this,r),(a=t.call(this,e,o)).blob=n.blob(e),a.signed=i,a}return Xe(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new i.default(this.blob.decode(e,t),10,"le");return this.signed?n.fromTwos(8*this.span).clone():n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.signed&&(e=e.toTwos(8*this.span)),this.blob.encode(e.toArrayLike(zt,"le",this.span),t,n)}}]),r}(n.Layout);function s(e){return new a(8,!1,e)}e.u64=s,e.i64=function(e){return new a(8,!0,e)},e.u128=function(e){return new a(16,!1,e)},e.i128=function(e){return new a(16,!0,e)};var u=function(e){$e(n,e);var t=ut(n);function n(e,r,i,o){var a;return Ze(this,n),(a=t.call(this,e.span,o)).layout=e,a.decoder=r,a.encoder=i,a}return Xe(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(n.Layout);e.publicKey=function(e){return new u(n.blob(32),(function(e){return new r.PublicKey(e)}),(function(e){return e.toBuffer()}),e)};var c=function(e){$e(r,e);var t=ut(r);function r(e,i){var o;return Ze(this,r),(o=t.call(this,-1,i)).layout=e,o.discriminator=n.u8(),o}return Xe(r,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==e?this.discriminator.encode(0,t,n):(this.discriminator.encode(1,t,n),this.layout.encode(e,t,n+1)+1)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return null;if(1===n)return this.layout.decode(e,t+1);throw new Error("Invalid option "+this.property)}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return 1;if(1===n)return this.layout.getSpan(e,t+1)+1;throw new Error("Invalid option "+this.property)}}]),r}(n.Layout);function l(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}function d(e){return e?1:0}function h(e){var t=n.u32("length"),r=n.struct([t,n.blob(n.offset(t,-t.span),"data")]);return new u(r,(function(e){return e.data}),(function(e){return{data:e}}),e)}e.option=function(e,t){return new c(e,t)},e.bool=function(e){return new u(n.u8(),l,d,e)},e.vec=function(e,t){var r=n.u32("length"),i=n.struct([r,n.seq(e,n.offset(r,-r.span),"values")]);return new u(i,(function(e){return e.values}),(function(e){return{values:e}}),t)},e.tagged=function(e,t,r){var i=n.struct([s("tag"),t.replicate("data")]);return new u(i,(function(t){var n=t.tag,r=t.data;if(!n.eq(e))throw new Error("Invalid tag, expected: "+e.toString("hex")+", got: "+n.toString("hex"));return r}),(function(t){return{tag:e,data:t}}),r)},e.vecU8=h,e.str=function(e){return new u(h(),(function(e){return e.toString("utf-8")}),(function(e){return zt.from(e,"utf-8")}),e)},e.rustEnum=function(e,t,r){var i=n.union(null!=r?r:n.u8(),t);return e.forEach((function(e,t){return i.addVariant(t,e,e.property)})),i},e.array=function(e,t,r){var i=n.struct([n.seq(e,t,"values")]);return new u(i,(function(e){return e.values}),(function(e){return{values:e}}),r)};var p=function(e){$e(n,e);var t=ut(n);function n(e,r,i){var o;return Ze(this,n),(o=t.call(this,e.span+r.span,i)).keyLayout=e,o.valueLayout=r,o}return Xe(n,[{key:"decode",value:function(e,t){return t=t||0,[this.keyLayout.decode(e,t),this.valueLayout.decode(e,t+this.keyLayout.getSpan(e,t))]}},{key:"encode",value:function(e,t,n){n=n||0;var r=this.keyLayout.encode(e[0],t,n);return r+this.valueLayout.encode(e[1],t,n+r)}},{key:"getSpan",value:function(e,t){return this.keyLayout.getSpan(e,t)+this.valueLayout.getSpan(e,t)}}]),n}(n.Layout);e.map=function(e,t,r){var i=n.u32("length"),o=n.struct([i,n.seq(new p(e,t),n.offset(i,-i.span),"values")]);return new u(o,(function(e){var t=e.values;return new Map(t)}),(function(e){return{values:Array.from(e.entries())}}),r)}}(If);for(var Lf=bt.transact,xf=Hr.Buffer,Sf=Vr.exports,jf=If.struct([If.publicKey("mint"),If.publicKey("owner"),If.u64("amount"),If.u32("delegateOption"),If.publicKey("delegate"),If.u8("state"),If.u32("isNativeOption"),If.u64("isNative"),If.u64("delegatedAmount"),If.u32("closeAuthorityOption"),If.publicKey("closeAuthority")]),Cf=If.bool,Df=If.i128,Of=If.i32,zf=If.i64,_f=If.option,Pf=If.publicKey,Rf=If.rustEnum,Bf=If.str,Uf=If.struct,Wf=If.u128,Qf=If.u16,Yf=If.u32,Ff=If.u64,Vf=If.u8,Hf=If.vec,Gf=function(e){var t=ny(e),n=t[0],r=t[1];return 3*(n+r)/4-r},qf=function(e){var t,n,r=ny(e),i=r[0],o=r[1],a=new Kf(function(e,t,n){return 3*(t+n)/4-n}(0,i,o)),s=0,u=o>0?i-4:i;for(n=0;n>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=Xf[e.charCodeAt(n)]<<2|Xf[e.charCodeAt(n+1)]>>4,a[s++]=255&t);1===o&&(t=Xf[e.charCodeAt(n)]<<10|Xf[e.charCodeAt(n+1)]<<4|Xf[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},Zf=function(e){for(var t,n=e.length,r=n%3,i=[],o=16383,a=0,s=n-r;as?s:a+o));1===r?(t=e[n-1],i.push(Jf[t>>2]+Jf[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(Jf[t>>10]+Jf[t>>4&63]+Jf[t<<2&63]+"="));return i.join("")},Jf=[],Xf=[],Kf="undefined"!=typeof Uint8Array?Uint8Array:Array,$f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ey=0,ty=$f.length;ey0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function ry(e,t,n){for(var r,i,o=[],a=t;a>18&63]+Jf[i>>12&63]+Jf[i>>6&63]+Jf[63&i]);return o.join("")}Xf["-".charCodeAt(0)]=62,Xf["_".charCodeAt(0)]=63;var iy={byteLength:Gf,toByteArray:qf,fromByteArray:Zf},oy=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},ay=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*y},sy=o((function(e,t){const n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=function(e){+e!=e&&(e=0);return o.alloc(+e)},t.INSPECT_MAX_BYTES=50;const r=2147483647;function i(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|h(e,t);let r=i(n);const a=r.write(e,t);a!==n&&(r=r.slice(0,a));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){const t=new Uint8Array(e);return l(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return l(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return l(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return o.from(r,t,n);const a=function(e){if(o.isBuffer(e)){const t=0|d(e.length),n=i(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||G(e.length)?i(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return s(e),i(e<0?0:0|d(e))}function c(e){const t=e.length<0?0:0|d(e.length),n=i(t);for(let r=0;r=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function h(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(i)return r?-1:Y(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function f(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),G(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){let o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?iy.fromByteArray(e):iy.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(u=(31&t)<<6|63&n,u>127&&(o=u));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(u=(15&t)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!o.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},o.byteLength=h,o.prototype._isBuffer=!0,o.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(e,t,n,r,i){if(H(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let a=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const u=Math.min(a,s),c=this.slice(r,i),l=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":case"latin1":case"binary":return b(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function N(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function S(e,t,n,r,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i){B(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function C(e,t,n,r,i){B(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,4),ay(e,t,n,r,23,4),n+4}function z(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,8),ay(e,t,n,r,52,8),n+8}o.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||x(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||x(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=Z((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||x(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=Z((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||x(e,4,this.length),oy(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),oy(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),oy(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),oy(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){S(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){S(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigUInt64LE=Z((function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeBigUInt64BE=Z((function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);S(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);S(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=Z((function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeBigInt64BE=Z((function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeFloatLE=function(e,t,n){return O(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return O(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function B(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new _.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,i,o)}function U(e,t){if("number"!=typeof e)throw new _.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new _.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new _.ERR_BUFFER_OUT_OF_BOUNDS;throw new _.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}P("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),P("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),P("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=R(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=R(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const Q=/[^+/0-9A-Za-z-_]/g;function Y(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(e){return iy.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function G(e){return e!=e}const q=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Z(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}})),uy=o((function(e){!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:sy.Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var d=["","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"],h=[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],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],l=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var y=f.modrn(l).toString(e);r=(f=f.idivn(l)).isZero()?y+r:d[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],f=8191&p,y=p>>>13,m=0|a[2],g=8191&m,v=m>>>13,b=0|a[3],w=8191&b,M=b>>>13,A=0|a[4],E=8191&A,T=A>>>13,N=0|a[5],I=8191&N,k=N>>>13,L=0|a[6],x=8191&L,S=L>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,_=O>>>13,P=0|a[9],R=8191&P,B=P>>>13,U=0|s[0],W=8191&U,Q=U>>>13,Y=0|s[1],F=8191&Y,V=Y>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,ee=K>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,he=le>>>13,pe=0|s[9],fe=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(c+(r=Math.imul(d,W))|0)+((8191&(i=(i=Math.imul(d,Q))+Math.imul(h,W)|0))<<13)|0;c=((o=Math.imul(h,Q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(f,W),i=(i=Math.imul(f,Q))+Math.imul(y,W)|0,o=Math.imul(y,Q);var ge=(c+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,F)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,W),i=(i=Math.imul(g,Q))+Math.imul(v,W)|0,o=Math.imul(v,Q),r=r+Math.imul(f,F)|0,i=(i=i+Math.imul(f,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,W),i=(i=Math.imul(w,Q))+Math.imul(M,W)|0,o=Math.imul(M,Q),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,W),i=(i=Math.imul(E,Q))+Math.imul(T,W)|0,o=Math.imul(T,Q),r=r+Math.imul(w,F)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,W),i=(i=Math.imul(I,Q))+Math.imul(k,W)|0,o=Math.imul(k,Q),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(T,F)|0,o=o+Math.imul(T,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0;var Me=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(x,W),i=(i=Math.imul(x,Q))+Math.imul(S,W)|0,o=Math.imul(S,Q),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0;var Ae=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,W),i=(i=Math.imul(C,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,X)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,Q))+Math.imul(_,W)|0,o=Math.imul(_,Q),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Te=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(R,W),i=(i=Math.imul(R,Q))+Math.imul(B,W)|0,o=Math.imul(B,Q),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(_,F)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Ne=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ye)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,ye)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(B,F)|0,o=Math.imul(B,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,he)|0;var Ie=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ye)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(R,G),i=(i=Math.imul(R,q))+Math.imul(B,G)|0,o=Math.imul(B,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var ke=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,ye)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,J),i=(i=Math.imul(R,X))+Math.imul(B,J)|0,o=Math.imul(B,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(T,de)|0,o=o+Math.imul(T,he)|0;var Le=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(M,fe)|0))<<13)|0;c=((o=o+Math.imul(M,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(R,$),i=(i=Math.imul(R,ee))+Math.imul(B,$)|0,o=Math.imul(B,ee),r=r+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var xe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(T,fe)|0))<<13)|0;c=((o=o+Math.imul(T,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,ne),i=(i=Math.imul(R,re))+Math.imul(B,ne)|0,o=Math.imul(B,re),r=r+Math.imul(z,oe)|0,i=(i=i+Math.imul(z,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,he)|0;var Se=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ye)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,ye)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(R,oe),i=(i=Math.imul(R,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),r=r+Math.imul(z,ue)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,he)|0;var je=(c+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,ye)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(R,ue),i=(i=Math.imul(R,ce))+Math.imul(B,ue)|0,o=Math.imul(B,ce),r=r+Math.imul(z,de)|0,i=(i=i+Math.imul(z,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Ce=(c+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ye)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(R,de),i=(i=Math.imul(R,he))+Math.imul(B,de)|0,o=Math.imul(B,he);var De=(c+(r=r+Math.imul(z,fe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ye)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(c+(r=Math.imul(R,fe))|0)+((8191&(i=(i=Math.imul(R,ye))+Math.imul(B,fe)|0))<<13)|0;return c=((o=Math.imul(B,ye))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,u[0]=me,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=Me,u[6]=Ae,u[7]=Ee,u[8]=Te,u[9]=Ne,u[10]=Ie,u[11]=ke,u[12]=Le,u[13]=xe,u[14]=Se,u[15]=je,u[16]=Ce,u[17]=De,u[18]=Oe,0!==c&&(u[19]=c,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(e,t,n){return m(e,t,n)}Math.imul||(y=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?f(this,e,t):n<1024?m(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-o|d>>>o,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var h=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(o,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var f=0,y=1;0==(r.words[0]&y)&&f<26;++f,y<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,h=1;0==(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new T(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function N(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new M;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},T.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},T.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,o),h=this.pow(e,o.addn(1).iushrn(1)),p=this.pow(e,o),f=a;0!==p.cmp(s);){for(var y=p,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new N(e)},r(N,T),N.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},N.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},N.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},N.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,r)})); -/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */let cy=!1,ly=!1;const dy={debug:1,default:2,info:2,warning:3,error:4,off:5};let hy=dy.default,py=null;const fy=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(n){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var yy,my;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(yy||(yy={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(my||(my={}));const gy="0123456789abcdef";class vy{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const n=e.toLowerCase();null==dy[n]&&this.throwArgumentError("invalid log level name","logLevel",e),hy>dy[n]||console.log.apply(console,t)}debug(...e){this._log(vy.levels.DEBUG,e)}info(...e){this._log(vy.levels.INFO,e)}warn(...e){this._log(vy.levels.WARNING,e)}makeError(e,t,n){if(ly)return this.makeError("censored error",t,{});t||(t=vy.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach((e=>{const t=n[e];try{if(t instanceof Uint8Array){let n="";for(let e=0;e>4],n+=gy[15&t[e]];r.push(e+"=Uint8Array(0x"+n+")")}else r.push(e+"="+JSON.stringify(t))}catch(t){r.push(e+"="+JSON.stringify(n[e].toString()))}})),r.push(`code=${t}`),r.push(`version=${this.version}`);const i=e;let o="";switch(t){case my.NUMERIC_FAULT:{o="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":o+="-"+t;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case my.CALL_EXCEPTION:case my.INSUFFICIENT_FUNDS:case my.MISSING_NEW:case my.NONCE_EXPIRED:case my.REPLACEMENT_UNDERPRICED:case my.TRANSACTION_REPLACED:case my.UNPREDICTABLE_GAS_LIMIT:o=t}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),r.length&&(e+=" ("+r.join(", ")+")");const a=new Error(e);return a.reason=i,a.code=t,Object.keys(n).forEach((function(e){a[e]=n[e]})),a}throwError(e,t,n){throw this.makeError(e,t,n)}throwArgumentError(e,t,n){return this.throwError(e,vy.errors.INVALID_ARGUMENT,{argument:t,value:n})}assert(e,t,n,r){e||this.throwError(t,n,r)}assertArgument(e,t,n,r){e||this.throwArgumentError(t,n,r)}checkNormalize(e){fy&&this.throwError("platform missing String.prototype.normalize",vy.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:fy})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,vy.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,vy.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,n){n=n?": "+n:"",et&&this.throwError("too many arguments"+n,vy.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",vy.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",vy.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",vy.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return py||(py=new vy("logger/5.7.0")),py}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",vy.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),cy){if(!e)return;this.globalLogger().throwError("error censorship permanent",vy.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ly=!!e,cy=!!t}static setLogLevel(e){const t=dy[e.toLowerCase()];null!=t?hy=t:vy.globalLogger().warn("invalid log level - "+e)}static from(e){return new vy(e)}}vy.errors=my,vy.levels=yy;const by=new vy("bytes/5.7.0");function wy(e){return!!e.toHexString}function My(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return My(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Ay(e){return xy(e)&&!(e.length%2)||Ty(e)}function Ey(e){return"number"==typeof e&&e==e&&e%1==0}function Ty(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!Ey(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function Ny(e,t){if(t||(t={}),"number"==typeof e){by.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),My(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),wy(e)&&(e=e.toHexString()),xy(e)){let n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0"+n:"right"===t.hexPad?n+="0":by.throwArgumentError("hex data is odd-length","value",e));const r=[];for(let e=0;eNy(e))),n=t.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(n);return t.reduce(((e,t)=>(r.set(t,e),e+t.length)),0),My(r)}function ky(e){let t=Ny(e);if(0===t.length)return t;let n=0;for(;nt&&by.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(t);return n.set(e,t-e.length),My(n)}function xy(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function Sy(e,t){if(t||(t={}),"number"==typeof e){by.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t="0123456789abcdef"[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),wy(e))return e.toHexString();if(xy(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":by.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(Ty(e)){let t="0x";for(let n=0;n>4]+"0123456789abcdef"[15&r]}return t}return by.throwArgumentError("invalid hexlify value","value",e)}function jy(e){if("string"!=typeof e)e=Sy(e);else if(!xy(e)||e.length%2)return null;return(e.length-2)/2}function Cy(e,t,n){return"string"!=typeof e?e=Sy(e):(!xy(e)||e.length%2)&&by.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function Dy(e){let t="0x";return e.forEach((e=>{t+=Sy(e).substring(2)})),t}function Oy(e){const t=function(e){"string"!=typeof e&&(e=Sy(e));xy(e)||by.throwArgumentError("invalid hex string","value",e);e=e.substring(2);let t=0;for(;t2*t+2&&by.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function _y(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Ay(e)){let n=Ny(e);64===n.length?(t.v=27+(n[32]>>7),n[32]&=127,t.r=Sy(n.slice(0,32)),t.s=Sy(n.slice(32,64))):65===n.length?(t.r=Sy(n.slice(0,32)),t.s=Sy(n.slice(32,64)),t.v=n[64]):by.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:by.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=Sy(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const n=Ly(Ny(t._vs),32);t._vs=Sy(n);const r=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=r:t.recoveryParam!==r&&by.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;const i=Sy(n);null==t.s?t.s=i:t.s!==i&&by.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?by.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const n=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==n&&by.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&xy(t.r)?t.r=zy(t.r,32):by.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&xy(t.s)?t.s=zy(t.s,32):by.throwArgumentError("signature missing or invalid s","signature",e);const n=Ny(t.s);n[0]>=128&&by.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(n[0]|=128);const r=Sy(n);t._vs&&(xy(t._vs)||by.throwArgumentError("signature invalid _vs","signature",e),t._vs=zy(t._vs,32)),null==t._vs?t._vs=r:t._vs!==r&&by.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}var Py=uy.BN;const Ry=new vy("bignumber/5.7.0"),By={};let Uy=!1;class Wy{constructor(e,t){e!==By&&Ry.throwError("cannot call constructor directly; use BigNumber.from",vy.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Yy(Fy(this).fromTwos(e))}toTwos(e){return Yy(Fy(this).toTwos(e))}abs(){return"-"===this._hex[0]?Wy.from(this._hex.substring(1)):this}add(e){return Yy(Fy(this).add(Fy(e)))}sub(e){return Yy(Fy(this).sub(Fy(e)))}div(e){return Wy.from(e).isZero()&&Vy("division-by-zero","div"),Yy(Fy(this).div(Fy(e)))}mul(e){return Yy(Fy(this).mul(Fy(e)))}mod(e){const t=Fy(e);return t.isNeg()&&Vy("division-by-zero","mod"),Yy(Fy(this).umod(t))}pow(e){const t=Fy(e);return t.isNeg()&&Vy("negative-power","pow"),Yy(Fy(this).pow(t))}and(e){const t=Fy(e);return(this.isNegative()||t.isNeg())&&Vy("unbound-bitwise-result","and"),Yy(Fy(this).and(t))}or(e){const t=Fy(e);return(this.isNegative()||t.isNeg())&&Vy("unbound-bitwise-result","or"),Yy(Fy(this).or(t))}xor(e){const t=Fy(e);return(this.isNegative()||t.isNeg())&&Vy("unbound-bitwise-result","xor"),Yy(Fy(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&Vy("negative-width","mask"),Yy(Fy(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Vy("negative-width","shl"),Yy(Fy(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Vy("negative-width","shr"),Yy(Fy(this).shrn(e))}eq(e){return Fy(this).eq(Fy(e))}lt(e){return Fy(this).lt(Fy(e))}lte(e){return Fy(this).lte(Fy(e))}gt(e){return Fy(this).gt(Fy(e))}gte(e){return Fy(this).gte(Fy(e))}isNegative(){return"-"===this._hex[0]}isZero(){return Fy(this).isZero()}toNumber(){try{return Fy(this).toNumber()}catch(e){Vy("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return Ry.throwError("this platform does not support BigInt",vy.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Uy||(Uy=!0,Ry.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Ry.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",vy.errors.UNEXPECTED_ARGUMENT,{}):Ry.throwError("BigNumber.toString does not accept parameters",vy.errors.UNEXPECTED_ARGUMENT,{})),Fy(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof Wy)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new Wy(By,Qy(e)):e.match(/^-?[0-9]+$/)?new Wy(By,Qy(new Py(e))):Ry.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&Vy("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&Vy("overflow","BigNumber.from",e),Wy.from(String(e));const t=e;if("bigint"==typeof t)return Wy.from(t.toString());if(Ty(t))return Wy.from(Sy(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return Wy.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(xy(e)||"-"===e[0]&&xy(e.substring(1))))return Wy.from(e)}return Ry.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function Qy(e){if("string"!=typeof e)return Qy(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&Ry.throwArgumentError("invalid hex","value",e),"0x00"===(e=Qy(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function Yy(e){return Wy.from(Qy(e))}function Fy(e){const t=Wy.from(e).toHexString();return"-"===t[0]?new Py("-"+t.substring(3),16):new Py(t.substring(2),16)}function Vy(e,t,n){const r={fault:e,operation:t};return null!=n&&(r.value=n),Ry.throwError(e,vy.errors.NUMERIC_FAULT,r)}const Hy=new vy("bignumber/5.7.0"),Gy={},qy=Wy.from(0),Zy=Wy.from(-1);function Jy(e,t,n,r){const i={fault:t,operation:n};return void 0!==r&&(i.value=r),Hy.throwError(e,vy.errors.NUMERIC_FAULT,i)}let Xy="0";for(;Xy.length<256;)Xy+=Xy;function Ky(e){if("number"!=typeof e)try{e=Wy.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+Xy.substring(0,e):Hy.throwArgumentError("invalid decimal size","decimals",e)}function $y(e,t){null==t&&(t=0);const n=Ky(t),r=(e=Wy.from(e)).lt(qy);r&&(e=e.mul(Zy));let i=e.mod(n).toString();for(;i.length2&&Hy.throwArgumentError("too many decimal points","value",e);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>n.length-1&&Jy("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.lengthnull==e[t]?r:(typeof e[t]!==n&&Hy.throwArgumentError("invalid fixed format ("+t+" not "+n+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),n=i("width","number",n),r=i("decimals","number",r)}return n%8&&Hy.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),r>80&&Hy.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",r),new tm(Gy,t,n,r)}}class nm{constructor(e,t,n,r){e!==Gy&&Hy.throwError("cannot use FixedNumber constructor; use FixedNumber.from",vy.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=r,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&Hy.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=em(this._value,this.format.decimals),n=em(e._value,e.format.decimals);return nm.fromValue(t.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=em(this._value,this.format.decimals),n=em(e._value,e.format.decimals);return nm.fromValue(t.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=em(this._value,this.format.decimals),n=em(e._value,e.format.decimals);return nm.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=em(this._value,this.format.decimals),n=em(e._value,e.format.decimals);return nm.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=nm.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(rm.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=nm.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(rm.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&Hy.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const n=nm.from("1"+Xy.substring(0,e),this.format),r=im.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(r).floor().divUnsafe(n)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&Hy.throwArgumentError("invalid byte width","width",e);return zy(Wy.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return nm.fromString(this._value,e)}static fromValue(e,t,n){return null!=n||null==t||function(e){return null!=e&&(Wy.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||xy(e)||"bigint"==typeof e||Ty(e))}(t)||(n=t,t=null),null==t&&(t=0),null==n&&(n="fixed"),nm.fromString($y(e,t),tm.from(n))}static fromString(e,t){null==t&&(t="fixed");const n=tm.from(t),r=em(e,n.decimals);!n.signed&&r.lt(qy)&&Jy("unsigned value cannot be negative","overflow","value",e);let i=null;n.signed?i=r.toTwos(n.width).toHexString():(i=r.toHexString(),i=zy(i,n.width/8));const o=$y(r,n.decimals);return new nm(Gy,i,o,n)}static fromBytes(e,t){null==t&&(t="fixed");const n=tm.from(t);if(Ny(e).length>n.width/8)throw new Error("overflow");let r=Wy.from(e);n.signed&&(r=r.fromTwos(n.width));const i=r.toTwos((n.signed?0:1)+n.width).toHexString(),o=$y(r,n.decimals);return new nm(Gy,i,o,n)}static from(e,t){if("string"==typeof e)return nm.fromString(e,t);if(Ty(e))return nm.fromBytes(e,t);try{return nm.fromValue(e,0,t)}catch(e){if(e.code!==vy.errors.INVALID_ARGUMENT)throw e}return Hy.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const rm=nm.from(1),im=nm.from("0.5");var om=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const am=new vy("properties/5.7.0");function sm(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}function um(e,t){for(let n=0;n<32;n++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function cm(e){return om(this,void 0,void 0,(function*(){const t=Object.keys(e).map((t=>{const n=e[t];return Promise.resolve(n).then((e=>({key:t,value:e})))}));return(yield Promise.all(t)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function lm(e){const t={};for(const n in e)t[n]=e[n];return t}const dm={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function hm(e){if(null==e||dm[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;const t=Object.keys(e);for(let n=0;nfm(e))));if("object"==typeof e){const t={};for(const n in e){const r=e[n];void 0!==r&&sm(t,n,fm(r))}return t}return am.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function fm(e){return pm(e)}class ym{constructor(e){for(const t in e)this[t]=fm(e[t])}}const mm=new vy("abi/5.7.0"),gm={};let vm={calldata:!0,memory:!0,storage:!0},bm={calldata:!0,memory:!0};function wm(e,t){if("bytes"===e||"string"===e){if(vm[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&bm[t])return!0;return(vm[t]||"payable"===t)&&mm.throwArgumentError("invalid modifier","name",t),!1}function Mm(e,t){for(let n in t)sm(e,n,t[n])}const Am=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),Em=new RegExp(/^(.*)\[([0-9]*)\]$/);class Tm{constructor(e,t){e!==gm&&mm.throwError("use fromString",vy.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Mm(this,t);let n=this.type.match(Em);Mm(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:Tm.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=Am.sighash),Am[e]||mm.throwArgumentError("invalid format type","format",e),e===Am.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==Am.sighash&&(t+=this.type),t+="("+this.components.map((t=>t.format(e))).join(e===Am.full?", ":",")+")"):t+=this.type,e!==Am.sighash&&(!0===this.indexed&&(t+=" indexed"),e===Am.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?Tm.fromString(e,t):Tm.fromObject(e)}static fromObject(e){return Tm.isParamType(e)?e:new Tm(gm,{name:e.name||null,type:zm(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(Tm.fromObject):null})}static fromString(e,t){return n=function(e,t){let n=e;function r(t){mm.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},a=o;for(let n=0;nTm.fromString(e,t)))}class Im{constructor(e,t){e!==gm&&mm.throwError("use a static from method",vy.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Mm(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return Im.isFragment(e)?e:"string"==typeof e?Im.fromString(e):Im.fromObject(e)}static fromObject(e){if(Im.isFragment(e))return e;switch(e.type){case"function":return Cm.fromObject(e);case"event":return km.fromObject(e);case"constructor":return jm.fromObject(e);case"error":return Om.fromObject(e);case"fallback":case"receive":return null}return mm.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?km.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?Cm.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?jm.fromString(e.trim()):"error"===e.split(" ")[0]?Om.fromString(e.substring(5).trim()):mm.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class km extends Im{format(e){if(e||(e=Am.sighash),Am[e]||mm.throwArgumentError("invalid format type","format",e),e===Am.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==Am.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===Am.full?", ":",")+") ",e!==Am.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?km.fromString(e):km.fromObject(e)}static fromObject(e){if(km.isEventFragment(e))return e;"event"!==e.type&&mm.throwArgumentError("invalid event object","value",e);const t={name:Pm(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(Tm.fromObject):[],type:"event"};return new km(gm,t)}static fromString(e){let t=e.match(Rm);t||mm.throwArgumentError("invalid event string","value",e);let n=!1;return t[3].split(" ").forEach((e=>{switch(e.trim()){case"anonymous":n=!0;break;case"":break;default:mm.warn("unknown modifier: "+e)}})),km.fromObject({name:t[1].trim(),anonymous:n,inputs:Nm(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function Lm(e,t){t.gas=null;let n=e.split("@");return 1!==n.length?(n.length>2&&mm.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||mm.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=Wy.from(n[1]),n[0]):e}function xm(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function Sm(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&mm.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&mm.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||mm.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&mm.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&mm.throwArgumentError("unable to determine stateMutability","value",e),t}class jm extends Im{format(e){if(e||(e=Am.sighash),Am[e]||mm.throwArgumentError("invalid format type","format",e),e===Am.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});e===Am.sighash&&mm.throwError("cannot format a constructor for sighash",vy.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((t=>t.format(e))).join(e===Am.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?jm.fromString(e):jm.fromObject(e)}static fromObject(e){if(jm.isConstructorFragment(e))return e;"constructor"!==e.type&&mm.throwArgumentError("invalid constructor object","value",e);let t=Sm(e);t.constant&&mm.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(Tm.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?Wy.from(e.gas):null};return new jm(gm,n)}static fromString(e){let t={type:"constructor"},n=(e=Lm(e,t)).match(Rm);return n&&"constructor"===n[1].trim()||mm.throwArgumentError("invalid constructor string","value",e),t.inputs=Nm(n[2].trim(),!1),xm(n[3].trim(),t),jm.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class Cm extends jm{format(e){if(e||(e=Am.sighash),Am[e]||mm.throwArgumentError("invalid format type","format",e),e===Am.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==Am.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===Am.full?", ":",")+") ",e!==Am.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((t=>t.format(e))).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?Cm.fromString(e):Cm.fromObject(e)}static fromObject(e){if(Cm.isFunctionFragment(e))return e;"function"!==e.type&&mm.throwArgumentError("invalid function object","value",e);let t=Sm(e);const n={type:e.type,name:Pm(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(Tm.fromObject):[],outputs:e.outputs?e.outputs.map(Tm.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?Wy.from(e.gas):null};return new Cm(gm,n)}static fromString(e){let t={type:"function"},n=(e=Lm(e,t)).split(" returns ");n.length>2&&mm.throwArgumentError("invalid function string","value",e);let r=n[0].match(Rm);if(r||mm.throwArgumentError("invalid function signature","value",e),t.name=r[1].trim(),t.name&&Pm(t.name),t.inputs=Nm(r[2],!1),xm(r[3].trim(),t),n.length>1){let r=n[1].match(Rm);""==r[1].trim()&&""==r[3].trim()||mm.throwArgumentError("unexpected tokens","value",e),t.outputs=Nm(r[2],!1)}else t.outputs=[];return Cm.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function Dm(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||mm.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class Om extends Im{format(e){if(e||(e=Am.sighash),Am[e]||mm.throwArgumentError("invalid format type","format",e),e===Am.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==Am.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===Am.full?", ":",")+") ",t.trim()}static from(e){return"string"==typeof e?Om.fromString(e):Om.fromObject(e)}static fromObject(e){if(Om.isErrorFragment(e))return e;"error"!==e.type&&mm.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:Pm(e.name),inputs:e.inputs?e.inputs.map(Tm.fromObject):[]};return Dm(new Om(gm,t))}static fromString(e){let t={type:"error"},n=e.match(Rm);return n||mm.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&Pm(t.name),t.inputs=Nm(n[2],!1),Dm(Om.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function zm(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const _m=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Pm(e){return e&&e.match(_m)||mm.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const Rm=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const Bm=new vy("abi/5.7.0");class Um{constructor(e,t,n,r){this.name=e,this.type=t,this.localName=n,this.dynamic=r}_throwError(e,t){Bm.throwArgumentError(e,this.localName,t)}}class Wm{constructor(e){sm(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return Dy(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(Iy(e._data))}writeBytes(e){let t=Ny(e);const n=t.length%this.wordSize;return n&&(t=Iy([t,this._padding.slice(n)])),this._writeData(t)}_getValue(e){let t=Ny(Wy.from(e));return t.length>this.wordSize&&Bm.throwError("value out-of-bounds",vy.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Iy([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class Qm{constructor(e,t,n,r){sm(this,"_data",Ny(e)),sm(this,"wordSize",t||32),sm(this,"_coerceFunc",n),sm(this,"allowLoose",r),this._offset=0}get data(){return Sy(this._data)}get consumed(){return this._offset}static coerce(e,t){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):Qm.coerce(e,t)}_peekBytes(e,t,n){let r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:Bm.throwError("data out-of-bounds",vy.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}subReader(e){return new Qm(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}readValue(){return Wy.from(this.readBytes(this.wordSize))}}var Ym=o((function(e){!function(){var t="input is invalid type",n="object"==typeof window,i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var o=!n&&"object"==typeof self;!i.JS_SHA3_NO_NODE_JS&&"object"==typeof Re&&Re.versions&&Re.versions.node?i=r:o&&(i=self);var a=!i.JS_SHA3_NO_COMMON_JS&&e.exports,s=!i.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),c=[4,1024,262144,67108864],l=[0,8,16,24],d=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],h=[224,256,384,512],p=[128,256],f=["hex","buffer","arrayBuffer","array","digest"],y={128:168,256:136};!i.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!s||!i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var m=function(e,t,n){return function(r){return new j(e,t,e).update(r)[n]()}},g=function(e,t,n){return function(r,i){return new j(e,t,i).update(r)[n]()}},v=function(e,t,n){return function(t,r,i,o){return E["cshake"+e].update(t,r,i,o)[n]()}},b=function(e,t,n){return function(t,r,i,o){return E["kmac"+e].update(t,r,i,o)[n]()}},w=function(e,t,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function C(e,t,n){j.call(this,e,t,n)}j.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var n,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(t);if(null===e)throw new Error(t);if(s&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||s&&ArrayBuffer.isView(e)))throw new Error(t);n=!0}for(var i,o,a=this.blocks,u=this.byteCount,c=e.length,d=this.blockCount,h=0,p=this.s;h>2]|=e[h]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(a[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=u){for(this.start=i-u,this.block=a[d],i=0;i>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},j.prototype.encodeString=function(e){var n,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(t);if(null===e)throw new Error(t);if(s&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||s&&ArrayBuffer.isView(e)))throw new Error(t);n=!0}var i=0,o=e.length;if(n)i=o;else for(var a=0;a=57344?i+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++a)),i+=4)}return i+=this.encode(8*i),this.update(e),i},j.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+u[15&e]+u[e>>12&15]+u[e>>8&15]+u[e>>20&15]+u[e>>16&15]+u[e>>28&15]+u[e>>24&15];a%t==0&&(D(n),o=0)}return i&&(e=n[o],s+=u[e>>4&15]+u[15&e],i>1&&(s+=u[e>>12&15]+u[e>>8&15]),i>2&&(s+=u[e>>20&15]+u[e>>16&15])),s},j.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%n==0&&D(r)}return o&&(e=s<<2,t=r[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},C.prototype=new j,C.prototype.finalize=function(){return this.encode(this.outputBits,!0),j.prototype.finalize.call(this)};var D=function(e){var t,n,r,i,o,a,s,u,c,l,h,p,f,y,m,g,v,b,w,M,A,E,T,N,I,k,L,x,S,j,C,D,O,z,_,P,R,B,U,W,Q,Y,F,V,H,G,q,Z,J,X,K,$,ee,te,ne,re,ie,oe,ae,se,ue,ce,le;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(f=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(u<<1|c>>>31),n=o^(c<<1|u>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(l<<1|h>>>31),n=s^(h<<1|l>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=u^(p<<1|f>>>31),n=c^(f<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=l^(i<<1|o>>>31),n=h^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,y=e[0],m=e[1],G=e[11]<<4|e[10]>>>28,q=e[10]<<4|e[11]>>>28,x=e[20]<<3|e[21]>>>29,S=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,Y=e[40]<<18|e[41]>>>14,F=e[41]<<18|e[40]>>>14,z=e[2]<<1|e[3]>>>31,_=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,j=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,P=e[14]<<6|e[15]>>>26,R=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,K=e[35]<<15|e[34]>>>17,D=e[45]<<29|e[44]>>>3,O=e[44]<<29|e[45]>>>3,N=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,B=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,M=e[36]<<21|e[37]>>>11,A=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,H=e[9]<<27|e[8]>>>5,k=e[18]<<20|e[19]>>>12,L=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,W=e[38]<<8|e[39]>>>24,Q=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,T=e[49]<<14|e[48]>>>18,e[0]=y^~g&b,e[1]=m^~v&w,e[10]=N^~k&x,e[11]=I^~L&S,e[20]=z^~P&B,e[21]=_^~R&U,e[30]=V^~G&Z,e[31]=H^~q&J,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=g^~b&M,e[3]=v^~w&A,e[12]=k^~x&j,e[13]=L^~S&C,e[22]=P^~B&W,e[23]=R^~U&Q,e[32]=G^~Z&X,e[33]=q^~J&K,e[42]=re^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~M&E,e[5]=w^~A&T,e[14]=x^~j&D,e[15]=S^~C&O,e[24]=B^~W&Y,e[25]=U^~Q&F,e[34]=Z^~X&$,e[35]=J^~K&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=M^~E&y,e[7]=A^~T&m,e[16]=j^~D&N,e[17]=C^~O&I,e[26]=W^~Y&z,e[27]=Q^~F&_,e[36]=X^~$&V,e[37]=K^~ee&H,e[46]=se^~ce&te,e[47]=ue^~le&ne,e[8]=E^~y&g,e[9]=T^~m&v,e[18]=D^~N&k,e[19]=O^~I&L,e[28]=Y^~z&P,e[29]=F^~_&R,e[38]=$^~V&G,e[39]=ee^~H&q,e[48]=ce^~te&re,e[49]=le^~ne&ie,e[0]^=d[r],e[1]^=d[r+1]};if(a)e.exports=E;else for(N=0;N>=8;return t}function Gm(e,t,n){let r=0;for(let i=0;it+1+r&&Vm.throwError("child data too short",vy.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:i}}function Xm(e,t){if(0===e.length&&Vm.throwError("data too short",vy.errors.BUFFER_OVERRUN,{}),e[t]>=248){const n=e[t]-247;t+1+n>e.length&&Vm.throwError("data short segment too short",vy.errors.BUFFER_OVERRUN,{});const r=Gm(e,t+1,n);return t+1+n+r>e.length&&Vm.throwError("data long segment too short",vy.errors.BUFFER_OVERRUN,{}),Jm(e,t,t+1+n,n+r)}if(e[t]>=192){const n=e[t]-192;return t+1+n>e.length&&Vm.throwError("data array too short",vy.errors.BUFFER_OVERRUN,{}),Jm(e,t,t+1,n)}if(e[t]>=184){const n=e[t]-183;t+1+n>e.length&&Vm.throwError("data array too short",vy.errors.BUFFER_OVERRUN,{});const r=Gm(e,t+1,n);t+1+n+r>e.length&&Vm.throwError("data array too short",vy.errors.BUFFER_OVERRUN,{});return{consumed:1+n+r,result:Sy(e.slice(t+1+n,t+1+n+r))}}if(e[t]>=128){const n=e[t]-128;t+1+n>e.length&&Vm.throwError("data too short",vy.errors.BUFFER_OVERRUN,{});return{consumed:1+n,result:Sy(e.slice(t+1,t+1+n))}}return{consumed:1,result:Sy(e[t])}}function Km(e){const t=Ny(e),n=Xm(t,0);return n.consumed!==t.length&&Vm.throwArgumentError("invalid rlp data","data",e),n.result}const $m=new vy("address/5.7.0");function eg(e){xy(e,20)||$m.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let e=0;e<40;e++)n[e]=t[e].charCodeAt(0);const r=Ny(Fm(n));for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&r[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const tg={};for(let e=0;e<10;e++)tg[String(e)]=String(e);for(let e=0;e<26;e++)tg[String.fromCharCode(65+e)]=String(10+e);const ng=Math.floor(function(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}(9007199254740991));function rg(e){let t=null;if("string"!=typeof e&&$m.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=eg(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&$m.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>tg[e])).join("");for(;t.length>=ng;){let e=t.substring(0,ng);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}(e)&&$m.throwArgumentError("bad icap checksum","address",e),n=e.substring(4),t=new Py(n,36).toString(16);t.length<40;)t="0"+t;t=eg("0x"+t)}else $m.throwArgumentError("invalid address","address",e);var n;return t}function ig(e){let t=null;try{t=rg(e.from)}catch(t){$m.throwArgumentError("missing from address","transaction",e)}return rg(Cy(Fm(Zm([t,ky(Ny(Wy.from(e.nonce).toHexString()))])),12))}class og extends Um{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=rg(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return rg(zy(e.readValue().toHexString(),20))}}class ag extends Um{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const sg=new vy("abi/5.7.0");function ug(e,t,n){let r=null;if(Array.isArray(n))r=n;else if(n&&"object"==typeof n){let e={};r=t.map((t=>{const r=t.localName;return r||sg.throwError("cannot encode object for signature with missing names",vy.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]&&sg.throwError("cannot encode object for signature with duplicate names",vy.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]=!0,n[r]}))}else sg.throwArgumentError("invalid tuple value","tuple",n);t.length!==r.length&&sg.throwArgumentError("types/value length mismatch","tuple",n);let i=new Wm(e.wordSize),o=new Wm(e.wordSize),a=[];t.forEach(((e,t)=>{let n=r[t];if(e.dynamic){let t=o.length;e.encode(o,n);let r=i.writeUpdatableValue();a.push((e=>{r(e+t)}))}else e.encode(i,n)})),a.forEach((e=>{e(i.length)}));let s=e.appendWriter(i);return s+=e.appendWriter(o),s}function cg(e,t){let n=[],r=e.subReader(0);t.forEach((t=>{let i=null;if(t.dynamic){let n=e.readValue(),o=r.subReader(n.toNumber());try{i=t.decode(o)}catch(e){if(e.code===vy.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===vy.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&n.push(i)}));const i=t.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});t.forEach(((e,t)=>{let r=e.localName;if(!r||1!==i[r])return;if("length"===r&&(r="_length"),null!=n[r])return;const o=n[t];o instanceof Error?Object.defineProperty(n,r,{enumerable:!0,get:()=>{throw o}}):n[r]=o}));for(let e=0;e{throw t}})}return Object.freeze(n)}class lg extends Um{constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;ne._data.length&&sg.throwError("insufficient data length",vy.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let n=[];for(let e=0;e>6==2;r++)e++;return e}return e===Eg.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(Ag||(Ag={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(Eg||(Eg={}));const Ng=Object.freeze({error:function(e,t,n,r,i){return Mg.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:Tg,replace:function(e,t,n,r,i){return e===Eg.OVERLONG?(r.push(i),0):(r.push(65533),Tg(e,t,n))}});function Ig(e,t){null==t&&(t=Ng.error),e=Ny(e);const n=[];let r=0;for(;r>7==0){n.push(i);continue}let o=null,a=null;if(192==(224&i))o=1,a=127;else if(224==(240&i))o=2,a=2047;else{if(240!=(248&i)){r+=t(128==(192&i)?Eg.UNEXPECTED_CONTINUE:Eg.BAD_PREFIX,r-1,e,n);continue}o=3,a=65535}if(r-1+o>=e.length){r+=t(Eg.OVERRUN,r-1,e,n);continue}let s=i&(1<<8-o-1)-1;for(let i=0;i1114111?r+=t(Eg.OUT_OF_RANGE,r-1-o,e,n,s):s>=55296&&s<=57343?r+=t(Eg.UTF16_SURROGATE,r-1-o,e,n,s):s<=a?r+=t(Eg.OVERLONG,r-1-o,e,n,s):n.push(s))}return n}function kg(e,t=Ag.current){t!=Ag.current&&(Mg.checkNormalize(),e=e.normalize(t));let n=[];for(let t=0;t>6|192),n.push(63&r|128);else if(55296==(64512&r)){t++;const i=e.charCodeAt(t);if(t>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&r)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(r>>12|224),n.push(r>>6&63|128),n.push(63&r|128)}return Ny(n)}function Lg(e,t){return Ig(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}class xg extends hg{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,kg(t))}decode(e){return Lg(super.decode(e))}}class Sg extends Um{constructor(e,t){let n=!1;const r=[];e.forEach((e=>{e.dynamic&&(n=!0),r.push(e.type)}));super("tuple","tuple("+r.join(",")+")",t,n),this.coders=e}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach(((n,r)=>{let i=n.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[r]))})),Object.freeze(e)}encode(e,t){return ug(e,this.coders,t)}decode(e){return e.coerce(this.name,cg(e,this.coders))}}const jg=new vy("abi/5.7.0"),Cg=new RegExp(/^bytes([0-9]*)$/),Dg=new RegExp(/^(u?int)([0-9]*)$/);const Og=new class{constructor(e){sm(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new og(e.name);case"bool":return new dg(e.name);case"string":return new xg(e.name);case"bytes":return new pg(e.name);case"array":return new lg(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new Sg((e.components||[]).map((e=>this._getCoder(e))),e.name);case"":return new yg(e.name)}let t=e.type.match(Dg);if(t){let n=parseInt(t[2]||"256");return(0===n||n>256||n%8!=0)&&jg.throwArgumentError("invalid "+t[1]+" bit length","param",e),new wg(n/8,"int"===t[1],e.name)}if(t=e.type.match(Cg),t){let n=parseInt(t[1]);return(0===n||n>32)&&jg.throwArgumentError("invalid bytes length","param",e),new fg(n,e.name)}return jg.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new Qm(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new Wm(this._getWordSize())}getDefaultValue(e){const t=e.map((e=>this._getCoder(Tm.from(e))));return new Sg(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&jg.throwError("types/values length mismatch",vy.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const n=e.map((e=>this._getCoder(Tm.from(e)))),r=new Sg(n,"_"),i=this._getWriter();return r.encode(i,t),i.data}decode(e,t,n){const r=e.map((e=>this._getCoder(Tm.from(e))));return new Sg(r,"_").decode(this._getReader(Ny(t),n))}};function zg(e){return Fm(kg(e))}function _g(e){e=atob(e);const t=[];for(let n=0;n0&&Array.isArray(e)?i(e,t-1):n.push(e)}))};return i(e,t),n}function Bg(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,o=[0,1];for(let e=1;e>--u&1}const d=Math.pow(2,31),h=d>>>1,p=h>>1,f=d-1;let y=0;for(let e=0;e<31;e++)y=y<<1|l();let m=[],g=0,v=d;for(;;){let e=Math.floor(((y-g+1)*i-1)/v),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e>>1|l(),a=a<<1^h,s=(s^h)<<1|h|1;g=a,v=1+s-a}let b=r-4;return m.map((t=>{switch(t-b){case 3:return b+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return b+256+(e[s++]<<8|e[s++]);case 1:return b+e[s++];default:return t-1}}))}(e))}function Ug(e){return 1&e?~e>>1:e>>1}function Wg(e,t){let n=Array(e);for(let r=0,i=-1;rt[e])):n}function Fg(e,t,n){let r=Array(e).fill(void 0).map((()=>[]));for(let i=0;ir[t].push(e)));return r}function Vg(e,t){let n=1+t(),r=t(),i=function(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(n)}return t}(t);return Rg(Fg(i.length,1+e,t).map(((e,t)=>{const o=e[0],a=e.slice(1);return Array(i[t]).fill(void 0).map(((e,t)=>{let i=t*r;return[o+t*n,a.map((e=>e+i))]}))})))}function Hg(e,t){return Fg(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const Gg=Bg(_g("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmA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ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),qg=new Set(Yg(Gg)),Zg=new Set(Yg(Gg)),Jg=function(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(Vg(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(Hg(n,e))}return function(e){const t={};for(let n=0;ne-t));return function n(){let r=[];for(;;){let i=Yg(e,t);if(0==i.length)break;r.push({set:new Set(i),node:n()})}r.sort(((e,t)=>t.set.size-e.set.size));let i=e(),o=i%3;i=i/3|0;let a=!!(1&i);return i>>=1,{branches:r,valid:o,fe0f:a,save:1==i,check:2==i}}()}(Gg);function Kg(e){return function(e,t=Ag.current){return Ig(kg(e,t))}(e)}function $g(e){return e.filter((e=>65039!=e))}function ev(e){for(let t of e.split(".")){let e=Kg(t);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw new Error("underscore only allowed at start");if(e.length>=4&&e.every((e=>e<128))&&45===e[2]&&45===e[3])throw new Error("invalid label extension")}catch(e){throw new Error(`Invalid label "${t}": ${e.message}`)}}return e}function tv(e){return ev(function(e,t){let n=Kg(e).reverse(),r=[];for(;n.length;){let e=nv(n);if(e){r.push(...t(e));continue}let i=n.pop();if(qg.has(i)){r.push(i);continue}if(Zg.has(i))continue;let o=Jg[i];if(!o)throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`);r.push(...o)}return ev(function(e){return e.normalize("NFC")}(String.fromCodePoint(...r)))}(e,$g))}function nv(e,t){var n;let r,i,o=Xg,a=[],s=e.length;for(t&&(t.length=0);s;){let u=e[--s];if(o=null===(n=o.branches.find((e=>e.set.has(u))))||void 0===n?void 0:n.node,!o)break;if(o.save)i=u;else if(o.check&&u===i)break;a.push(u),o.fe0f&&(a.push(65039),s>0&&65039==e[s-1]&&s--),o.valid&&(r=a.slice(),2==o.valid&&r.splice(1,1),t&&t.push(...e.slice(s).reverse()),e.length=s)}return r}const rv=new vy("hash/5.7.0"),iv=new Uint8Array(32);function ov(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function av(e){const t=kg(tv(e)),n=[];if(0===e.length)return n;let r=0;for(let e=0;e=t.length)throw new Error("invalid ENS name; empty component");return n.push(ov(t.slice(r))),n}function sv(e){"string"!=typeof e&&rv.throwArgumentError("invalid ENS name; not a string","name",e);let t=iv;const n=av(e);for(;n.length;)t=Fm(Iy([t,Fm(n.pop())]));return Sy(t)}iv.fill(0);var uv=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const cv=new vy("hash/5.7.0"),lv=new Uint8Array(32);lv.fill(0);const dv=Wy.from(-1),hv=Wy.from(0),pv=Wy.from(1),fv=Wy.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const yv=zy(pv.toHexString(),32),mv=zy(hv.toHexString(),32),gv={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},vv=["name","version","chainId","verifyingContract","salt"];function bv(e){return function(t){return"string"!=typeof t&&cv.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const wv={name:bv("name"),version:bv("version"),chainId:function(e){try{return Wy.from(e).toString()}catch(e){}return cv.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return rg(e).toLowerCase()}catch(e){}return cv.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=Ny(e);if(32!==t.length)throw new Error("bad length");return Sy(t)}catch(e){}return cv.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function Mv(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const n=""===t[1],r=parseInt(t[2]||"256");(r%8!=0||r>256||t[2]&&t[2]!==String(r))&&cv.throwArgumentError("invalid numeric width","type",e);const i=fv.mask(n?r-1:r),o=n?i.add(pv).mul(dv):hv;return function(t){const n=Wy.from(t);return(n.lt(o)||n.gt(i))&&cv.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),zy(n.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const n=parseInt(t[1]);return(0===n||n>32||t[1]!==String(n))&&cv.throwArgumentError("invalid bytes width","type",e),function(t){return Ny(t).length!==n&&cv.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){const t=Ny(e),n=t.length%32;return n?Dy([t,lv.slice(n)]):Sy(t)}(t)}}}switch(e){case"address":return function(e){return zy(rg(e),32)};case"bool":return function(e){return e?yv:mv};case"bytes":return function(e){return Fm(e)};case"string":return function(e){return zg(e)}}return null}function Av(e,t){return`${e}(${t.map((({name:e,type:t})=>t+" "+e)).join(",")})`}class Ev{constructor(e){sm(this,"types",Object.freeze(fm(e))),sm(this,"_encoderCache",{}),sm(this,"_types",{});const t={},n={},r={};Object.keys(e).forEach((e=>{t[e]={},n[e]=[],r[e]={}}));for(const r in e){const i={};e[r].forEach((o=>{i[o.name]&&cv.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(r)}`,"types",e),i[o.name]=!0;const a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===r&&cv.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e);Mv(a)||(n[a]||cv.throwArgumentError(`unknown type ${JSON.stringify(a)}`,"types",e),n[a].push(r),t[r][a]=!0)}))}const i=Object.keys(n).filter((e=>0===n[e].length));0===i.length?cv.throwArgumentError("missing primary type","types",e):i.length>1&&cv.throwArgumentError(`ambiguous primary types or unused types: ${i.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),sm(this,"primaryType",i[0]),function i(o,a){a[o]&&cv.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",e),a[o]=!0,Object.keys(t[o]).forEach((e=>{n[e]&&(i(e,a),Object.keys(a).forEach((t=>{r[t][e]=!0})))})),delete a[o]}(this.primaryType,{});for(const t in r){const n=Object.keys(r[t]);n.sort(),this._types[t]=Av(t,e[t])+n.map((t=>Av(t,e[t]))).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=Mv(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],n=this.getEncoder(e),r=parseInt(t[3]);return t=>{r>=0&&t.length!==r&&cv.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(n);return this._types[e]&&(i=i.map(Fm)),Fm(Dy(i))}}const n=this.types[e];if(n){const t=zg(this._types[e]);return e=>{const r=n.map((({name:t,type:n})=>{const r=this.getEncoder(n)(e[t]);return this._types[n]?Fm(r):r}));return r.unshift(t),Dy(r)}}return cv.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||cv.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return Fm(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(Mv(e))return n(e,t);const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const e=r[1],i=parseInt(r[3]);return i>=0&&t.length!==i&&cv.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((t=>this._visit(e,t,n)))}const i=this.types[e];return i?i.reduce(((e,{name:r,type:i})=>(e[r]=this._visit(i,t[r],n),e)),{}):cv.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new Ev(e)}static getPrimaryType(e){return Ev.from(e).primaryType}static hashStruct(e,t,n){return Ev.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){const r=gv[n];r||cv.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort(((e,t)=>vv.indexOf(e.name)-vv.indexOf(t.name))),Ev.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return Dy(["0x1901",Ev.hashDomain(e),Ev.from(t).hash(n)])}static hash(e,t,n){return Fm(Ev.encode(e,t,n))}static resolveNames(e,t,n,r){return uv(this,void 0,void 0,(function*(){e=lm(e);const i={};e.verifyingContract&&!xy(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=Ev.from(t);o.visit(n,((e,t)=>("address"!==e||xy(t,20)||(i[t]="0x"),t)));for(const e in i)i[e]=yield r(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=o.visit(n,((e,t)=>"address"===e&&i[t]?i[t]:t)),{domain:e,value:n}}))}static getPayload(e,t,n){Ev.hashDomain(e);const r={},i=[];vv.forEach((t=>{const n=e[t];null!=n&&(r[t]=wv[t](n),i.push({name:t,type:gv[t]}))}));const o=Ev.from(t),a=lm(t);return a.EIP712Domain?cv.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):a.EIP712Domain=i,o.encode(n),{types:a,domain:r,primaryType:o.primaryType,message:o.visit(n,((e,t)=>{if(e.match(/^bytes(\d*)/))return Sy(Ny(t));if(e.match(/^u?int/))return Wy.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&cv.throwArgumentError("invalid string","value",t),t}return cv.throwArgumentError("unsupported type","type",e)}))}}}const Tv=new vy("abi/5.7.0");class Nv extends ym{}class Iv extends ym{}class kv extends ym{}class Lv extends ym{static isIndexed(e){return!(!e||!e._isIndexed)}}const xv={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Sv(e,t){const n=new Error(`deferred error during ABI decoding triggered accessing ${e}`);return n.error=t,n}class jv{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,sm(this,"fragments",t.map((e=>Im.from(e))).filter((e=>null!=e))),sm(this,"_abiCoder",um(new.target,"getAbiCoder")()),sm(this,"functions",{}),sm(this,"errors",{}),sm(this,"events",{}),sm(this,"structs",{}),this.fragments.forEach((e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void Tv.warn("duplicate definition - constructor"):void sm(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let n=e.format();t[n]?Tv.warn("duplicate definition - "+n):t[n]=e})),this.deploy||sm(this,"deploy",jm.from({payable:!1,type:"constructor"})),sm(this,"_isInterface",!0)}format(e){e||(e=Am.full),e===Am.sighash&&Tv.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map((t=>t.format(e)));return e===Am.json?JSON.stringify(t.map((e=>JSON.parse(e)))):t}static getAbiCoder(){return Og}static getAddress(e){return rg(e)}static getSighash(e){return Cy(zg(e.format()),0,4)}static getEventTopic(e){return zg(e.format())}getFunction(e){if(xy(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];Tv.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.functions).filter((e=>e.split("(")[0]===t));return 0===n.length?Tv.throwArgumentError("no matching function","name",t):n.length>1&&Tv.throwArgumentError("multiple matching functions","name",t),this.functions[n[0]]}const t=this.functions[Cm.fromString(e).format()];return t||Tv.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(xy(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];Tv.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.events).filter((e=>e.split("(")[0]===t));return 0===n.length?Tv.throwArgumentError("no matching event","name",t):n.length>1&&Tv.throwArgumentError("multiple matching events","name",t),this.events[n[0]]}const t=this.events[km.fromString(e).format()];return t||Tv.throwArgumentError("no matching event","signature",e),t}getError(e){if(xy(e)){const t=um(this.constructor,"getSighash");for(const n in this.errors){if(e===t(this.errors[n]))return this.errors[n]}Tv.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.errors).filter((e=>e.split("(")[0]===t));return 0===n.length?Tv.throwArgumentError("no matching error","name",t):n.length>1&&Tv.throwArgumentError("multiple matching errors","name",t),this.errors[n[0]]}const t=this.errors[Cm.fromString(e).format()];return t||Tv.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return um(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),um(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));const n=Ny(t);return Sy(n.slice(0,4))!==this.getSighash(e)&&Tv.throwArgumentError(`data signature does not match error ${e.name}.`,"data",Sy(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),Sy(Iy([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));const n=Ny(t);return Sy(n.slice(0,4))!==this.getSighash(e)&&Tv.throwArgumentError(`data signature does not match function ${e.name}.`,"data",Sy(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Sy(Iy([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let n=Ny(t),r=null,i="",o=null,a=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(e){}break;case 4:{const e=Sy(n.slice(0,4)),t=xv[e];if(t)o=this._abiCoder.decode(t.inputs,n.slice(4)),a=t.name,s=t.signature,t.reason&&(r=o[0]),"Error"===a?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:"Panic"===a&&(i=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const t=this.getError(e);o=this._abiCoder.decode(t.inputs,n.slice(4)),a=t.name,s=t.format()}catch(e){}break}}return Tv.throwError("call revert exception"+i,vy.errors.CALL_EXCEPTION,{method:e.format(),data:Sy(t),errorArgs:o,errorName:a,errorSignature:s,reason:r})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Sy(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&Tv.throwError("too many arguments for "+e.format(),vy.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let n=[];e.anonymous||n.push(this.getEventTopic(e));const r=(e,t)=>"string"===e.type?zg(t):"bytes"===e.type?Fm(Sy(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=Wy.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),zy(Sy(t),32));for(t.forEach(((t,i)=>{let o=e.inputs[i];o.indexed?null==t?n.push(null):"array"===o.baseType||"tuple"===o.baseType?Tv.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?n.push(t.map((e=>r(o,e)))):n.push(r(o,t)):null!=t&&Tv.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const n=[],r=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Tv.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(((e,o)=>{const a=t[o];if(e.indexed)if("string"===e.type)n.push(zg(a));else if("bytes"===e.type)n.push(Fm(a));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(this._abiCoder.encode([e.type],[a]))}else r.push(e),i.push(a)})),{data:this._abiCoder.encode(r,i),topics:n}}decodeEventLog(e,t,n){if("string"==typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){let t=this.getEventTopic(e);xy(n[0],32)&&n[0].toLowerCase()===t||Tv.throwError("fragment/topic mismatch",vy.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:n[0]}),n=n.slice(1)}let r=[],i=[],o=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(Tm.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(r.push(e),o.push(!1)):(i.push(e),o.push(!1))}));let a=null!=n?this._abiCoder.decode(r,Iy(n)):null,s=this._abiCoder.decode(i,t,!0),u=[],c=0,l=0;e.inputs.forEach(((e,t)=>{if(e.indexed)if(null==a)u[t]=new Lv({_isIndexed:!0,hash:null});else if(o[t])u[t]=new Lv({_isIndexed:!0,hash:a[l++]});else try{u[t]=a[l++]}catch(e){u[t]=e}else try{u[t]=s[c++]}catch(e){u[t]=e}if(e.name&&null==u[e.name]){const n=u[t];n instanceof Error?Object.defineProperty(u,e.name,{enumerable:!0,get:()=>{throw Sv(`property ${JSON.stringify(e.name)}`,n)}}):u[e.name]=n}}));for(let e=0;e{throw Sv(`index ${e}`,t)}})}return Object.freeze(u)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new Iv({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:Wy.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new Nv({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){const t=Sy(e);let n=this.getError(t.substring(0,10).toLowerCase());return n?new kv({args:this._abiCoder.decode(n.inputs,"0x"+t.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!(!e||!e._isInterface)}}var Cv=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const Dv=new vy("abstract-provider/5.7.0");class Ov extends ym{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class zv{constructor(){Dv.checkAbstract(new.target,zv),sm(this,"_isProvider",!0)}getFeeData(){return Cv(this,void 0,void 0,(function*(){const{block:e,gasPrice:t}=yield cm({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((e=>null))});let n=null,r=null,i=null;return e&&e.baseFeePerGas&&(n=e.baseFeePerGas,i=Wy.from("1500000000"),r=e.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:n,maxFeePerGas:r,maxPriorityFeePerGas:i,gasPrice:t}}))}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}var _v=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const Pv=new vy("abstract-signer/5.7.0"),Rv=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Bv=[vy.errors.INSUFFICIENT_FUNDS,vy.errors.NONCE_EXPIRED,vy.errors.REPLACEMENT_UNDERPRICED];class Uv{constructor(){Pv.checkAbstract(new.target,Uv),sm(this,"_isSigner",!0)}getBalance(e){return _v(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return _v(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return _v(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield cm(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return _v(this,void 0,void 0,(function*(){this._checkProvider("call");const n=yield cm(this.checkTransaction(e));return yield this.provider.call(n,t)}))}sendTransaction(e){return _v(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),n=yield this.signTransaction(t);return yield this.provider.sendTransaction(n)}))}getChainId(){return _v(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return _v(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return _v(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return _v(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const t in e)-1===Rv.indexOf(t)&&Pv.throwArgumentError("invalid transaction key: "+t,"transaction",e);const t=lm(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then((t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&Pv.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return _v(this,void 0,void 0,(function*(){const t=yield cm(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>_v(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&Pv.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})))),t.to.catch((e=>{})));const n=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!n?0!==t.type&&1!==t.type||!n||Pv.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):Pv.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(n&&Pv.throwError("network does not support EIP-1559",vy.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):Pv.throwError("failed to get consistent fee data",vy.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch((e=>{if(Bv.indexOf(e.code)>=0)throw e;return Pv.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",vy.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})}))),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then((t=>(0!==t[1]&&t[0]!==t[1]&&Pv.throwArgumentError("chainId address mismatch","transaction",e),t[0]))),yield cm(t)}))}_checkProvider(e){this.provider||Pv.throwError("missing provider",vy.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class Wv extends Uv{constructor(e,t){super(),sm(this,"address",e),sm(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{Pv.throwError(e,vy.errors.UNSUPPORTED_OPERATION,{operation:t})}))}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new Wv(this.address,e)}}var Qv=Yv;function Yv(e,t){if(!e)throw new Error(t||"Assertion failed")}Yv.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var Fv=function(){return function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}()&&!!Symbol.toStringTag},Vv="undefined"!=typeof Symbol&&Symbol,Hv="Function.prototype.bind called on incompatible ",Gv=Array.prototype.slice,qv=Object.prototype.toString,Zv=Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||"[object Function]"!==qv.call(t))throw new TypeError(Hv+t);for(var n,r=Gv.call(arguments,1),i=function(){if(this instanceof n){var i=t.apply(this,r.concat(Gv.call(arguments)));return Object(i)===i?i:this}return t.apply(e,r.concat(Gv.call(arguments)))},o=Math.max(0,t.length-r.length),a=[],s=0;s1&&"boolean"!=typeof t)throw new $v('"allowMissing" argument must be a boolean');if(null===yb(/^%?[^%]*%?$/,e))throw new Xv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=vb(e),r=n.length>0?n[0]:"",i=bb("%"+r+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(r=u[0],hb(n,db([0,1],u)));for(var c=1,l=!0;c=n.length){var f=tb(a,d);a=(l=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:a[d]}else l=Jv(a,d),a=a[d];l&&!s&&(ub[o]=a)}}return a},Mb=o((function(e){var t=wb("%Function.prototype.apply%"),n=wb("%Function.prototype.call%"),r=wb("%Reflect.apply%",!0)||Zv.call(n,t),i=wb("%Object.getOwnPropertyDescriptor%",!0),o=wb("%Object.defineProperty%",!0),a=wb("%Math.max%");if(o)try{o({},"a",{value:1})}catch(e){o=null}e.exports=function(e){var t=r(Zv,n,arguments);if(i&&o){var s=i(t,"length");s.configurable&&o(t,"length",{value:1+a(0,e.length-(arguments.length-1))})}return t};var s=function(){return r(Zv,t,arguments)};o?o(e.exports,"apply",{value:s}):e.exports.apply=s})),Ab=Mb(wb("String.prototype.indexOf")),Eb=function(e,t){var n=wb(e,!!t);return"function"==typeof n&&Ab(e,".prototype.")>-1?Mb(n):n},Tb=Fv(),Nb=Eb("Object.prototype.toString"),Ib=function(e){return!(Tb&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===Nb(e)},kb=function(e){return!!Ib(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==Nb(e)&&"[object Function]"===Nb(e.callee)},Lb=function(){return Ib(arguments)}();Ib.isLegacyArguments=kb;var xb,Sb,jb,Cb=Lb?Ib:kb,Db=Object.prototype.toString,Ob=Function.prototype.toString,zb=/^\s*(?:function)?\*/,_b=Fv(),Pb=Object.getPrototypeOf,Rb=function(e){if("function"!=typeof e)return!1;if(zb.test(Ob.call(e)))return!0;if(!_b)return"[object GeneratorFunction]"===Db.call(e);if(!Pb)return!1;if(void 0===xb){var t=function(){if(!_b)return!1;try{return Function("return function*() {}")()}catch(e){}}();xb=!!t&&Pb(t)}return Pb(e)===xb},Bb=Function.prototype.toString,Ub="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Ub&&"function"==typeof Object.defineProperty)try{Sb=Object.defineProperty({},"length",{get:function(){throw jb}}),jb={},Ub((function(){throw 42}),null,Sb)}catch(e){e!==jb&&(Ub=null)}else Ub=null;var Wb=/^\s*class\b/,Qb=function(e){try{var t=Bb.call(e);return Wb.test(t)}catch(e){return!1}},Yb=function(e){try{return!Qb(e)&&(Bb.call(e),!0)}catch(e){return!1}},Fb=Object.prototype.toString,Vb="function"==typeof Symbol&&!!Symbol.toStringTag,Hb=!(0 in[,]),Gb=function(){return!1};if("object"==typeof document){var qb=document.all;Fb.call(qb)===Fb.call(document.all)&&(Gb=function(e){if((Hb||!e)&&(void 0===e||"object"==typeof e))try{var t=Fb.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}var Zb=Ub?function(e){if(Gb(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{Ub(e,null,Sb)}catch(e){if(e!==jb)return!1}return!Qb(e)&&Yb(e)}:function(e){if(Gb(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(Vb)return Yb(e);if(Qb(e))return!1;var t=Fb.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&Yb(e)},Jb=Object.prototype.toString,Xb=Object.prototype.hasOwnProperty,Kb=function(e,t,n){for(var r=0,i=e.length;r=3&&(r=n),"[object Array]"===Jb.call(e)?Kb(e,t,r):"string"==typeof e?$b(e,t,r):ew(e,t,r)},nw=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],rw="undefined"==typeof globalThis?r:globalThis,iw=function(){for(var e=[],t=0;t-1}return!!uw&&function(e){var t=!1;return tw(yw,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)},vw=Eb("Object.prototype.toString"),bw=Fv(),ww="undefined"==typeof globalThis?r:globalThis,Mw=iw(),Aw=Eb("String.prototype.slice"),Ew={},Tw=Object.getPrototypeOf;bw&&aw&&Tw&&tw(Mw,(function(e){if("function"==typeof ww[e]){var t=new ww[e];if(Symbol.toStringTag in t){var n=Tw(t),r=aw(n,Symbol.toStringTag);if(!r){var i=Tw(n);r=aw(i,Symbol.toStringTag)}Ew[e]=r.get}}}));var Nw=function(e){return!!gw(e)&&(bw&&Symbol.toStringTag in e?function(e){var t=!1;return tw(Ew,(function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}})),t}(e):Aw(vw(e),8,-1))},Iw=o((function(e,t){function n(e){return e.call.bind(e)}var r="undefined"!=typeof BigInt,i="undefined"!=typeof Symbol,o=n(Object.prototype.toString),a=n(Number.prototype.valueOf),s=n(String.prototype.valueOf),u=n(Boolean.prototype.valueOf);if(r)var c=n(BigInt.prototype.valueOf);if(i)var l=n(Symbol.prototype.valueOf);function d(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function h(e){return"[object Map]"===o(e)}function p(e){return"[object Set]"===o(e)}function f(e){return"[object WeakMap]"===o(e)}function y(e){return"[object WeakSet]"===o(e)}function m(e){return"[object ArrayBuffer]"===o(e)}function g(e){return"undefined"!=typeof ArrayBuffer&&(m.working?m(e):e instanceof ArrayBuffer)}function v(e){return"[object DataView]"===o(e)}function b(e){return"undefined"!=typeof DataView&&(v.working?v(e):e instanceof DataView)}t.isArgumentsObject=Cb,t.isGeneratorFunction=Rb,t.isTypedArray=gw,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):gw(e)||b(e)},t.isUint8Array=function(e){return"Uint8Array"===Nw(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===Nw(e)},t.isUint16Array=function(e){return"Uint16Array"===Nw(e)},t.isUint32Array=function(e){return"Uint32Array"===Nw(e)},t.isInt8Array=function(e){return"Int8Array"===Nw(e)},t.isInt16Array=function(e){return"Int16Array"===Nw(e)},t.isInt32Array=function(e){return"Int32Array"===Nw(e)},t.isFloat32Array=function(e){return"Float32Array"===Nw(e)},t.isFloat64Array=function(e){return"Float64Array"===Nw(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===Nw(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===Nw(e)},h.working="undefined"!=typeof Map&&h(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(h.working?h(e):e instanceof Map)},p.working="undefined"!=typeof Set&&p(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(p.working?p(e):e instanceof Set)},f.working="undefined"!=typeof WeakMap&&f(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(f.working?f(e):e instanceof WeakMap)},y.working="undefined"!=typeof WeakSet&&y(new WeakSet),t.isWeakSet=function(e){return y(e)},m.working="undefined"!=typeof ArrayBuffer&&m(new ArrayBuffer),t.isArrayBuffer=g,v.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&v(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=b;var w="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function M(e){return"[object SharedArrayBuffer]"===o(e)}function A(e){return void 0!==w&&(void 0===M.working&&(M.working=M(new w)),M.working?M(e):e instanceof w)}function E(e){return d(e,a)}function T(e){return d(e,s)}function N(e){return d(e,u)}function I(e){return r&&d(e,c)}function k(e){return i&&d(e,l)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===o(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===o(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===o(e)},t.isGeneratorObject=function(e){return"[object Generator]"===o(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===o(e)},t.isNumberObject=E,t.isStringObject=T,t.isBooleanObject=N,t.isBigIntObject=I,t.isSymbolObject=k,t.isBoxedPrimitive=function(e){return E(e)||T(e)||N(e)||I(e)||k(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(g(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))})),kw=[],Lw=[],xw="undefined"!=typeof Uint8Array?Uint8Array:Array,Sw=!1;function jw(){Sw=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+kw[i>>12&63]+kw[i>>6&63]+kw[63&i]);return o.join("")}function Dw(e){var t;Sw||jw();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(t=e[n-1],i+=kw[t>>2],i+=kw[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=kw[t>>10],i+=kw[t>>4&63],i+=kw[t<<2&63],i+="="),o.push(i),o.join("")}function Ow(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)}function zw(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*y}var _w={}.toString,Pw=Array.isArray||function(e){return"[object Array]"==_w.call(e)};function Rw(){return Uw.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Bw(e,t){if(Rw()=Rw())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Rw().toString(16)+" bytes");return 0|e}function Hw(e){return!(null==e||!e._isBuffer)}function Gw(e,t){if(Hw(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return bM(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return wM(e).length;default:if(r)return bM(e).length;t=(""+t).toLowerCase(),r=!0}}function qw(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return uM(this,t,n);case"utf8":case"utf-8":return oM(this,t,n);case"ascii":return aM(this,t,n);case"latin1":case"binary":return sM(this,t,n);case"base64":return iM(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cM(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Zw(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Jw(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=Uw.from(t,r)),Hw(t))return 0===t.length?-1:Xw(e,t,n,r,i);if("number"==typeof t)return t&=255,Uw.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Xw(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Xw(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function iM(e,t,n){return 0===t&&n===e.length?Dw(e):Dw(e.slice(t,n))}function oM(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Uw.prototype.compare=function(e,t,n,r,i){if(!Hw(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),l=0;li)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Kw(this,e,t,n);case"utf8":case"utf-8":return $w(this,e,t,n);case"ascii":return eM(this,e,t,n);case"latin1":case"binary":return tM(this,e,t,n);case"base64":return nM(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rM(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Uw.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function aM(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function dM(e,t,n,r,i,o){if(!Hw(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function hM(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function pM(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function fM(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function yM(e,t,n,r,i){return i||fM(e,0,n,4),zw(e,t,n,r,23,4),n+4}function mM(e,t,n,r,i){return i||fM(e,0,n,8),zw(e,t,n,r,52,8),n+8}Uw.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},Uw.prototype.readUInt8=function(e,t){return t||lM(e,1,this.length),this[e]},Uw.prototype.readUInt16LE=function(e,t){return t||lM(e,2,this.length),this[e]|this[e+1]<<8},Uw.prototype.readUInt16BE=function(e,t){return t||lM(e,2,this.length),this[e]<<8|this[e+1]},Uw.prototype.readUInt32LE=function(e,t){return t||lM(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Uw.prototype.readUInt32BE=function(e,t){return t||lM(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Uw.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||lM(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},Uw.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||lM(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Uw.prototype.readInt8=function(e,t){return t||lM(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Uw.prototype.readInt16LE=function(e,t){t||lM(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Uw.prototype.readInt16BE=function(e,t){t||lM(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Uw.prototype.readInt32LE=function(e,t){return t||lM(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Uw.prototype.readInt32BE=function(e,t){return t||lM(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Uw.prototype.readFloatLE=function(e,t){return t||lM(e,4,this.length),Ow(this,e,!0,23,4)},Uw.prototype.readFloatBE=function(e,t){return t||lM(e,4,this.length),Ow(this,e,!1,23,4)},Uw.prototype.readDoubleLE=function(e,t){return t||lM(e,8,this.length),Ow(this,e,!0,52,8)},Uw.prototype.readDoubleBE=function(e,t){return t||lM(e,8,this.length),Ow(this,e,!1,52,8)},Uw.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||dM(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},Uw.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||dM(this,e,t,1,255,0),Uw.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Uw.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||dM(this,e,t,2,65535,0),Uw.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):hM(this,e,t,!0),t+2},Uw.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||dM(this,e,t,2,65535,0),Uw.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):hM(this,e,t,!1),t+2},Uw.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||dM(this,e,t,4,4294967295,0),Uw.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):pM(this,e,t,!0),t+4},Uw.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||dM(this,e,t,4,4294967295,0),Uw.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):pM(this,e,t,!1),t+4},Uw.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);dM(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},Uw.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);dM(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},Uw.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||dM(this,e,t,1,127,-128),Uw.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Uw.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||dM(this,e,t,2,32767,-32768),Uw.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):hM(this,e,t,!0),t+2},Uw.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||dM(this,e,t,2,32767,-32768),Uw.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):hM(this,e,t,!1),t+2},Uw.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||dM(this,e,t,4,2147483647,-2147483648),Uw.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):pM(this,e,t,!0),t+4},Uw.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||dM(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Uw.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):pM(this,e,t,!1),t+4},Uw.prototype.writeFloatLE=function(e,t,n){return yM(this,e,t,!0,n)},Uw.prototype.writeFloatBE=function(e,t,n){return yM(this,e,t,!1,n)},Uw.prototype.writeDoubleLE=function(e,t,n){return mM(this,e,t,!0,n)},Uw.prototype.writeDoubleBE=function(e,t,n){return mM(this,e,t,!1,n)},Uw.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!Uw.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function wM(e){return function(e){var t,n,r,i,o,a;Sw||jw();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new xw(3*s/4-o),r=o>0?s-4:s;var u=0;for(t=0,n=0;t>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=Lw[e.charCodeAt(t)]<<2|Lw[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=Lw[e.charCodeAt(t)]<<10|Lw[e.charCodeAt(t+1)]<<4|Lw[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(gM,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function MM(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function AM(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var EM=function(e){return e instanceof Uw},TM=o((function(e,t){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}})),u=i[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),f(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=l(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(f(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),A(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(E(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(M(n))return e.stylize(Date.prototype.toString.call(n),"date");if(A(n))return d(n)}var c,w="",T=!1,N=["{","}"];(p(n)&&(T=!0,N=["[","]"]),E(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),M(n)&&(w=" "+Date.prototype.toUTCString.call(n)),A(n)&&(w=" "+d(n)),0!==a.length||T&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=T?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,w,N)):N[0]+w+N[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),L(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function y(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===T(e)}function w(e){return"object"==typeof e&&null!==e}function M(e){return w(e)&&"[object Date]"===T(e)}function A(e){return w(e)&&("[object Error]"===T(e)||e instanceof Error)}function E(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(o.test(e)){var n=Re.pid;i[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else i[e]=function(){};return i[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=Iw,t.isArray=p,t.isBoolean=f,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.types.isRegExp=b,t.isObject=w,t.isDate=M,t.types.isDate=M,t.isError=A,t.types.isNativeError=A,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=EM;var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",k(),t.format.apply(t,arguments))},t.inherits=IM,t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var x="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function S(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!=typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o=e.length)&&56320==(64512&e.charCodeAt(t+1)))}var LM=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,n[r++]=63&o|128):kM(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}var jM=function(e,t){for(var n="",r=0;r>>0}return o};var zM=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n};var _M=function(e,t){return e>>>t|e<<32-t};var PM=function(e,t){return e<>>32-t};var RM=function(e,t){return e+t>>>0};var BM=function(e,t,n){return e+t+n>>>0};var UM=function(e,t,n,r){return e+t+n+r>>>0};var WM=function(e,t,n,r,i){return e+t+n+r+i>>>0};var QM=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o>>0,e[t+1]=o};var YM=function(e,t,n,r){return(t+r>>>0>>0};var FM=function(e,t,n,r){return t+r>>>0};var VM=function(e,t,n,r,i,o,a,s){var u=0,c=t;return u+=(c=c+r>>>0)>>0)>>0)>>0};var HM=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0};var GM=function(e,t,n,r,i,o,a,s,u,c){var l=0,d=t;return l+=(d=d+r>>>0)>>0)>>0)>>0)>>0};var qM=function(e,t,n,r,i,o,a,s,u,c){return t+r+o+s+c>>>0};var ZM=function(e,t,n){return(t<<32-n|e>>>n)>>>0};var JM=function(e,t,n){return(e<<32-n|t>>>n)>>>0};var XM=function(e,t,n){return e>>>n};var KM=function(e,t,n){return(e<<32-n|t>>>n)>>>0},$M={inherits:IM,toArray:LM,toHex:xM,htonl:SM,toHex32:jM,zero2:CM,zero8:DM,join32:OM,split32:zM,rotr32:_M,rotl32:PM,sum32:RM,sum32_3:BM,sum32_4:UM,sum32_5:WM,sum64:QM,sum64_hi:YM,sum64_lo:FM,sum64_4_hi:VM,sum64_4_lo:HM,sum64_5_hi:GM,sum64_5_lo:qM,rotr64_hi:ZM,rotr64_lo:JM,shr64_hi:XM,shr64_lo:KM};function eA(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var tA=eA;eA.prototype.update=function(e,t){if(e=$M.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=$M.join32(e,0,e.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3};var dA=function(e){return rA(e,17)^rA(e,19)^e>>>10},hA={ft_1:iA,ch32:oA,maj32:aA,p32:sA,s0_256:uA,s1_256:cA,g0_256:lA,g1_256:dA},pA=$M.rotl32,fA=$M.sum32,yA=$M.sum32_5,mA=hA.ft_1,gA=nA.BlockHash,vA=[1518500249,1859775393,2400959708,3395469782];function bA(){if(!(this instanceof bA))return new bA;gA.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}$M.inherits(bA,gA);var wA=bA;bA.blockSize=512,bA.outSize=160,bA.hmacStrength=80,bA.padLength=64,bA.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;rthis.blockSize&&(e=(new this.Hash).update(e).digest()),Qv(e.length<=this.blockSize);for(var t=e.length;t>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}})),OE=SE((function(e,t){var n=t;n.assert=jE,n.toArray=DE.toArray,n.zero2=DE.zero2,n.toHex=DE.toHex,n.encode=DE.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[0].push(a),s=0==(1&c)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==u?c:-c,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new uy(e,"hex","le")}})),zE=OE.getNAF,_E=OE.getJSF,PE=OE.assert;function RE(e,t){this.type=e,this.p=new uy(t.p,16),this.red=t.prime?uy.red(t.prime):uy.mont(this.p),this.zero=new uy(0).toRed(this.red),this.one=new uy(1).toRed(this.red),this.two=new uy(2).toRed(this.red),this.n=t.n&&new uy(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var BE=RE;function UE(e,t){this.curve=e,this.type=t,this.precomputed=null}RE.prototype.point=function(){throw new Error("Not implemented")},RE.prototype.validate=function(){throw new Error("Not implemented")},RE.prototype._fixedNafMul=function(e,t){PE(e.precomputed);var n=e._getDoubles(),r=zE(t,1,this._bitLength),i=(1<=o;u--)a=(a<<1)+r[u];s.push(a)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];PE(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},RE.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,d=0;for(o=0;o=1;o-=2){var p=o-1,f=o;if(1===u[p]&&1===u[f]){var y=[t[p],null,null,t[f]];0===t[p].y.cmp(t[f].y)?(y[1]=t[p].add(t[f]),y[2]=t[p].toJ().mixedAdd(t[f].neg())):0===t[p].y.cmp(t[f].y.redNeg())?(y[1]=t[p].toJ().mixedAdd(t[f]),y[2]=t[p].add(t[f].neg())):(y[1]=t[p].toJ().mixedAdd(t[f]),y[2]=t[p].toJ().mixedAdd(t[f].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=_E(n[p],n[f]);for(d=Math.max(g[0].length,d),l[p]=new Array(d),l[f]=new Array(d),a=0;a=0;o--){for(var A=0;o>=0;){var E=!0;for(a=0;a=0&&A++,w=w.dblp(A),o<0)break;for(a=0;a0?s=c[a][T-1>>1]:T<0&&(s=c[a][-T-1>>1].neg()),w="affine"===s.type?w.mixedAdd(s):w.add(s))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},UE.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0&&(o=t,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},YE.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),c=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},YE.prototype.pointFromX=function(e,t){(e=new uy(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},YE.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},YE.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},VE.prototype.isInfinity=function(){return this.inf},VE.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},VE.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},VE.prototype.getX=function(){return this.x.fromRed()},VE.prototype.getY=function(){return this.y.fromRed()},VE.prototype.mul=function(e){return e=new uy(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},VE.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},VE.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},VE.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},VE.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},VE.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},WE(HE,BE.BasePoint),YE.prototype.jpoint=function(e,t,n){return new HE(this,e,t,n)},HE.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},HE.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},HE.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),d=r.redMul(c),h=u.redSqr().redIAdd(l).redISub(d).redISub(d),p=u.redMul(d.redISub(h)).redISub(o.redMul(l)),f=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,p,f)},HE.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=n.redMul(u),d=s.redSqr().redIAdd(c).redISub(l).redISub(l),h=s.redMul(l.redISub(d)).redISub(i.redMul(c)),p=this.z.redMul(a);return this.curve.jpoint(d,h,p)},HE.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},HE.prototype.inspect=function(){return this.isInfinity()?"":""},HE.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var GE=SE((function(e,t){var n=t;n.base=BE,n.short=FE,n.mont=null,n.edwards=null})),qE=SE((function(e,t){var n,r=t,i=OE.assert;function o(e){"short"===e.type?this.curve=new GE.short(e):"edwards"===e.type?this.curve=new GE.edwards(e):this.curve=new GE.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:xE.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:xE.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:xE.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:xE.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:xE.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:xE.sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:xE.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(e){n=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:xE.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function ZE(e){if(!(this instanceof ZE))return new ZE(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=DE.toArray(e.entropy,e.entropyEnc||"hex"),n=DE.toArray(e.nonce,e.nonceEnc||"hex"),r=DE.toArray(e.pers,e.persEnc||"hex");jE(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var JE=ZE;ZE.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},ZE.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=DE.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"};var eT=OE.assert;function tT(e,t){if(e instanceof tT)return e;this._importDER(e,t)||(eT(e.r&&e.s,"Signature without r or s"),this.r=new uy(e.r,16),this.s=new uy(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var nT=tT;function rT(){this.place=0}function iT(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function oT(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}tT.prototype._importDER=function(e,t){e=OE.toArray(e,t);var n=new rT;if(48!==e[n.place++])return!1;var r=iT(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var i=iT(e,n);if(!1===i)return!1;var o=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var a=iT(e,n);if(!1===a)return!1;if(e.length!==a+n.place)return!1;var s=e.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new uy(o),this.s=new uy(s),this.recoveryParam=null,!0},tT.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=oT(t),n=oT(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];aT(r,t.length),(r=r.concat(t)).push(2),aT(r,n.length);var i=r.concat(n),o=[48];return aT(o,i.length),o=o.concat(i),OE.encode(o,e)};var sT=function(){throw new Error("unsupported")},uT=OE.assert;function cT(e){if(!(this instanceof cT))return new cT(e);"string"==typeof e&&(uT(Object.prototype.hasOwnProperty.call(qE,e),"Unknown curve "+e),e=qE[e]),e instanceof qE.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var lT=cT;cT.prototype.keyPair=function(e){return new $E(this,e)},cT.prototype.keyFromPrivate=function(e,t){return $E.fromPrivate(this,e,t)},cT.prototype.keyFromPublic=function(e,t){return $E.fromPublic(this,e,t)},cT.prototype.genKeyPair=function(e){e||(e={});for(var t=new JE({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||sT(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new uy(2));;){var i=new uy(t.generate(n));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},cT.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},cT.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new uy(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new JE({hash:this.hash,entropy:o,nonce:a,pers:r.pers,persEnc:r.persEnc||"utf8"}),u=this.n.sub(new uy(1)),c=0;;c++){var l=r.k?r.k(c):new uy(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(u)>=0)){var d=this.g.mul(l);if(!d.isInfinity()){var h=d.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var f=l.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(f=f.umod(this.n)).cmpn(0)){var y=(d.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return r.canonical&&f.cmp(this.nh)>0&&(f=this.n.sub(f),y^=1),new nT({r:p,s:f,recoveryParam:y})}}}}}},cT.prototype.verify=function(e,t,n,r){e=this._truncateToN(new uy(e,16)),n=this.keyFromPublic(n,r);var i=(t=new nT(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),u=s.mul(e).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,n.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,n.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},cT.prototype.recoverPubKey=function(e,t,n,r){uT((3&n)===n,"The recovery param is more than two bits"),t=new nT(t,r);var i=this.n,o=new uy(e),a=t.r,s=t.s,u=1&n,c=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var l=t.r.invm(i),d=i.sub(o).mul(l).umod(i),h=s.mul(l).umod(i);return this.g.mulAdd(d,a,h)},cT.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new nT(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var dT=SE((function(e,t){var n=t;n.version="6.5.4",n.utils=OE,n.rand=function(){throw new Error("unsupported")},n.curve=GE,n.curves=qE,n.ec=lT,n.eddsa=null})).ec;const hT=new vy("signing-key/5.7.0");let pT=null;function fT(){return pT||(pT=new dT("secp256k1")),pT}class yT{constructor(e){sm(this,"curve","secp256k1"),sm(this,"privateKey",Sy(e)),32!==jy(this.privateKey)&&hT.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=fT().keyFromPrivate(Ny(this.privateKey));sm(this,"publicKey","0x"+t.getPublic(!1,"hex")),sm(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),sm(this,"_isSigningKey",!0)}_addPoint(e){const t=fT().keyFromPublic(Ny(this.publicKey)),n=fT().keyFromPublic(Ny(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const t=fT().keyFromPrivate(Ny(this.privateKey)),n=Ny(e);32!==n.length&&hT.throwArgumentError("bad digest length","digest",e);const r=t.sign(n,{canonical:!0});return _y({recoveryParam:r.recoveryParam,r:zy("0x"+r.r.toString(16),32),s:zy("0x"+r.s.toString(16),32)})}computeSharedSecret(e){const t=fT().keyFromPrivate(Ny(this.privateKey)),n=fT().keyFromPublic(Ny(mT(e)));return zy("0x"+t.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function mT(e,t){const n=Ny(e);if(32===n.length){const e=new yT(n);return t?"0x"+fT().keyFromPrivate(n).getPublic(!0,"hex"):e.publicKey}return 33===n.length?t?Sy(n):"0x"+fT().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+fT().keyFromPublic(n).getPublic(!0,"hex"):Sy(n):hT.throwArgumentError("invalid public or private key","key","[REDACTED]")}const gT=new vy("transactions/5.7.0");var vT;function bT(e){return"0x"===e?null:rg(e)}function wT(e){return"0x"===e?gg:Wy.from(e)}function MT(e,t){return function(e){return rg(Cy(Fm(Cy(mT(e),1)),12))}(function(e,t){const n=_y(t),r={r:Ny(n.r),s:Ny(n.s)};return"0x"+fT().recoverPubKey(Ny(e),r,n.recoveryParam).encode("hex",!1)}(Ny(e),t))}function AT(e,t){const n=ky(Wy.from(e).toHexString());return n.length>32&&gT.throwArgumentError("invalid length for "+t,"transaction:"+t,e),n}function ET(e,t){return{address:rg(e),storageKeys:(t||[]).map(((t,n)=>(32!==jy(t)&&gT.throwArgumentError("invalid access list storageKey",`accessList[${e}:${n}]`,t),t.toLowerCase())))}}function TT(e){if(Array.isArray(e))return e.map(((e,t)=>Array.isArray(e)?(e.length>2&&gT.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),ET(e[0],e[1])):ET(e.address,e.storageKeys)));const t=Object.keys(e).map((t=>{const n=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return ET(t,Object.keys(n).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}function NT(e){return TT(e).map((e=>[e.address,e.storageKeys]))}function IT(e,t){if(null!=e.gasPrice){const t=Wy.from(e.gasPrice),n=Wy.from(e.maxFeePerGas||0);t.eq(n)||gT.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}const n=[AT(e.chainId||0,"chainId"),AT(e.nonce||0,"nonce"),AT(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),AT(e.maxFeePerGas||0,"maxFeePerGas"),AT(e.gasLimit||0,"gasLimit"),null!=e.to?rg(e.to):"0x",AT(e.value||0,"value"),e.data||"0x",NT(e.accessList||[])];if(t){const e=_y(t);n.push(AT(e.recoveryParam,"recoveryParam")),n.push(ky(e.r)),n.push(ky(e.s))}return Dy(["0x02",Zm(n)])}function kT(e,t){const n=[AT(e.chainId||0,"chainId"),AT(e.nonce||0,"nonce"),AT(e.gasPrice||0,"gasPrice"),AT(e.gasLimit||0,"gasLimit"),null!=e.to?rg(e.to):"0x",AT(e.value||0,"value"),e.data||"0x",NT(e.accessList||[])];if(t){const e=_y(t);n.push(AT(e.recoveryParam,"recoveryParam")),n.push(ky(e.r)),n.push(ky(e.s))}return Dy(["0x01",Zm(n)])}function LT(e,t,n){try{const n=wT(t[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");e.v=n}catch(e){gT.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=zy(t[1],32),e.s=zy(t[2],32);try{const t=Fm(n(e));e.from=MT(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function xT(e){const t=Ny(e);if(t[0]>127)return function(e){const t=Km(e);9!==t.length&&6!==t.length&&gT.throwArgumentError("invalid raw transaction","rawTransaction",e);const n={nonce:wT(t[0]).toNumber(),gasPrice:wT(t[1]),gasLimit:wT(t[2]),to:bT(t[3]),value:wT(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=Wy.from(t[6]).toNumber()}catch(e){return n}if(n.r=zy(t[7],32),n.s=zy(t[8],32),Wy.from(n.r).isZero()&&Wy.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let r=n.v-27;const i=t.slice(0,6);0!==n.chainId&&(i.push(Sy(n.chainId)),i.push("0x"),i.push("0x"),r-=2*n.chainId+8);const o=Fm(Zm(i));try{n.from=MT(o,{r:Sy(n.r),s:Sy(n.s),recoveryParam:r})}catch(e){}n.hash=Fm(e)}return n.type=null,n}(t);switch(t[0]){case 1:return function(e){const t=Km(e.slice(1));8!==t.length&&11!==t.length&&gT.throwArgumentError("invalid component count for transaction type: 1","payload",Sy(e));const n={type:1,chainId:wT(t[0]).toNumber(),nonce:wT(t[1]).toNumber(),gasPrice:wT(t[2]),gasLimit:wT(t[3]),to:bT(t[4]),value:wT(t[5]),data:t[6],accessList:TT(t[7])};return 8===t.length||(n.hash=Fm(e),LT(n,t.slice(8),kT)),n}(t);case 2:return function(e){const t=Km(e.slice(1));9!==t.length&&12!==t.length&&gT.throwArgumentError("invalid component count for transaction type: 2","payload",Sy(e));const n=wT(t[2]),r=wT(t[3]),i={type:2,chainId:wT(t[0]).toNumber(),nonce:wT(t[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:wT(t[4]),to:bT(t[5]),value:wT(t[6]),data:t[7],accessList:TT(t[8])};return 9===t.length||(i.hash=Fm(e),LT(i,t.slice(9),IT)),i}(t)}return gT.throwError(`unsupported transaction type: ${t[0]}`,vy.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(vT||(vT={}));var ST=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const jT=new vy("contracts/5.7.0");function CT(e,t){return ST(this,void 0,void 0,(function*(){const n=yield t;"string"!=typeof n&&jT.throwArgumentError("invalid address or ENS name","name",n);try{return rg(n)}catch(e){}e||jT.throwError("a provider or signer is needed to resolve ENS names",vy.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const r=yield e.resolveName(n);return null==r&&jT.throwArgumentError("resolver or addr is not configured for ENS name","name",n),r}))}function DT(e,t,n){return ST(this,void 0,void 0,(function*(){return Array.isArray(n)?yield Promise.all(n.map(((n,r)=>DT(e,Array.isArray(t)?t[r]:t[n.name],n)))):"address"===n.type?yield CT(e,t):"tuple"===n.type?yield DT(e,t,n.components):"array"===n.baseType?Array.isArray(t)?yield Promise.all(t.map((t=>DT(e,t,n.arrayChildren)))):Promise.reject(jT.makeError("invalid value for array",vy.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t}))}function OT(e,t,n){return ST(this,void 0,void 0,(function*(){let r={};n.length===t.inputs.length+1&&"object"==typeof n[n.length-1]&&(r=lm(n.pop())),jT.checkArgumentCount(n.length,t.inputs.length,"passed to contract"),e.signer?r.from?r.from=cm({override:CT(e.signer,r.from),signer:e.signer.getAddress()}).then((e=>ST(this,void 0,void 0,(function*(){return rg(e.signer)!==e.override&&jT.throwError("Contract with a Signer cannot override from",vy.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})))):r.from=e.signer.getAddress():r.from&&(r.from=CT(e.provider,r.from));const i=yield cm({args:DT(e.signer||e.provider,n,t.inputs),address:e.resolvedAddress,overrides:cm(r)||{}}),o=e.interface.encodeFunctionData(t,i.args),a={data:o,to:i.address},s=i.overrides;if(null!=s.nonce&&(a.nonce=Wy.from(s.nonce).toNumber()),null!=s.gasLimit&&(a.gasLimit=Wy.from(s.gasLimit)),null!=s.gasPrice&&(a.gasPrice=Wy.from(s.gasPrice)),null!=s.maxFeePerGas&&(a.maxFeePerGas=Wy.from(s.maxFeePerGas)),null!=s.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=Wy.from(s.maxPriorityFeePerGas)),null!=s.from&&(a.from=s.from),null!=s.type&&(a.type=s.type),null!=s.accessList&&(a.accessList=TT(s.accessList)),null==a.gasLimit&&null!=t.gas){let e=21e3;const n=Ny(o);for(let t=0;tnull!=r[e]));return u.length&&jT.throwError(`cannot override ${u.map((e=>JSON.stringify(e))).join(",")}`,vy.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:u}),a}))}function zT(e,t,n){const r=e.signer||e.provider;return function(...i){return ST(this,void 0,void 0,(function*(){let o;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){const e=lm(i.pop());null!=e.blockTag&&(o=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(o));const a=yield OT(e,t,i),s=yield r.call(a,o);try{let r=e.interface.decodeFunctionResult(t,s);return n&&1===t.outputs.length&&(r=r[0]),r}catch(t){throw t.code===vy.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=i,t.transaction=a),t}}))}}function _T(e,t){return function(...n){return ST(this,void 0,void 0,(function*(){e.signer||jT.throwError("sending a transaction requires a signer",vy.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());const r=yield OT(e,t,n),i=yield e.signer.sendTransaction(r);return function(e,t){const n=t.wait.bind(t);t.wait=t=>n(t).then((t=>(t.events=t.logs.map((n=>{let r=fm(n),i=null;try{i=e.interface.parseLog(n)}catch(e){}return i&&(r.args=i.args,r.decode=(t,n)=>e.interface.decodeEventLog(i.eventFragment,t,n),r.event=i.name,r.eventSignature=i.signature),r.removeListener=()=>e.provider,r.getBlock=()=>e.provider.getBlock(t.blockHash),r.getTransaction=()=>e.provider.getTransaction(t.transactionHash),r.getTransactionReceipt=()=>Promise.resolve(t),r})),t)))}(e,i),i}))}}function PT(e,t,n){return t.constant?zT(e,t,n):_T(e,t)}function RT(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((e=>Array.isArray(e)?e.join("|"):e)).join(":"):""):"*"}class BT{constructor(e,t){sm(this,"tag",e),sm(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter((n=>!(!t&&n.listener===e)||(t=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((e=>e.listener))}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter((t=>{const n=e.slice();return setTimeout((()=>{t.listener.apply(this,n)}),0),!t.once})),t}prepareEvent(e){}getEmit(e){return[e]}}class UT extends BT{constructor(){super("error",null)}}class WT extends BT{constructor(e,t,n,r){const i={address:e};let o=t.getEventTopic(n);r?(o!==r[0]&&jT.throwArgumentError("topic mismatch","topics",r),i.topics=r.slice()):i.topics=[o],super(RT(i),i),sm(this,"address",e),sm(this,"interface",t),sm(this,"fragment",n)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){const t=function(e){const t=[],n=function(e,r){if(Array.isArray(r))for(let i in r){const o=e.slice();o.push(i);try{n(o,r[i])}catch(e){t.push({path:o,error:e})}}};return n([],e),t}(e.args);if(t.length)throw t[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class QT extends BT{constructor(e,t){super("*",{address:e}),sm(this,"address",e),sm(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,n)=>this.interface.decodeEventLog(t.eventFragment,e,n),e.args=t.args}catch(e){}}}class YT extends class{constructor(e,t,n){sm(this,"interface",um(new.target,"getInterface")(t)),null==n?(sm(this,"provider",null),sm(this,"signer",null)):Uv.isSigner(n)?(sm(this,"provider",n.provider||null),sm(this,"signer",n)):zv.isProvider(n)?(sm(this,"provider",n),sm(this,"signer",null)):jT.throwArgumentError("invalid signer or provider","signerOrProvider",n),sm(this,"callStatic",{}),sm(this,"estimateGas",{}),sm(this,"functions",{}),sm(this,"populateTransaction",{}),sm(this,"filters",{});{const e={};Object.keys(this.interface.events).forEach((t=>{const n=this.interface.events[t];sm(this.filters,t,((...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(n,e)}))),e[n.name]||(e[n.name]=[]),e[n.name].push(t)})),Object.keys(e).forEach((t=>{const n=e[t];1===n.length?sm(this.filters,t,this.filters[n[0]]):jT.warn(`Duplicate definition of ${t} (${n.join(", ")})`)}))}if(sm(this,"_runningEvents",{}),sm(this,"_wrappedEmits",{}),null==e&&jT.throwArgumentError("invalid contract address or ENS name","addressOrName",e),sm(this,"address",e),this.provider)sm(this,"resolvedAddress",CT(this.provider,e));else try{sm(this,"resolvedAddress",Promise.resolve(rg(e)))}catch(e){jT.throwError("provider is required to use ENS name as contract address",vy.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((e=>{}));const r={},i={};Object.keys(this.interface.functions).forEach((e=>{const t=this.interface.functions[e];if(i[e])jT.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);else{i[e]=!0;{const n=t.name;r[`%${n}`]||(r[`%${n}`]=[]),r[`%${n}`].push(e)}null==this[e]&&sm(this,e,PT(this,t,!0)),null==this.functions[e]&&sm(this.functions,e,PT(this,t,!1)),null==this.callStatic[e]&&sm(this.callStatic,e,zT(this,t,!0)),null==this.populateTransaction[e]&&sm(this.populateTransaction,e,function(e,t){return function(...n){return OT(e,t,n)}}(this,t)),null==this.estimateGas[e]&&sm(this.estimateGas,e,function(e,t){const n=e.signer||e.provider;return function(...r){return ST(this,void 0,void 0,(function*(){n||jT.throwError("estimate require a provider or signer",vy.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield OT(e,t,r);return yield n.estimateGas(i)}))}}(this,t))}})),Object.keys(r).forEach((e=>{const t=r[e];if(t.length>1)return;e=e.substring(1);const n=t[0];try{null==this[e]&&sm(this,e,this[n])}catch(e){}null==this.functions[e]&&sm(this.functions,e,this.functions[n]),null==this.callStatic[e]&&sm(this.callStatic,e,this.callStatic[n]),null==this.populateTransaction[e]&&sm(this.populateTransaction,e,this.populateTransaction[n]),null==this.estimateGas[e]&&sm(this.estimateGas,e,this.estimateGas[n])}))}static getContractAddress(e){return ig(e)}static getInterface(e){return jv.isInterface(e)?e:new jv(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,e).then((e=>("0x"===e&&jT.throwError("contract not deployed",vy.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(e){this.signer||jT.throwError("sending a transactions require a signer",vy.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=lm(e||{});return["from","to"].forEach((function(e){null!=t[e]&&jT.throwError("cannot override "+e,vy.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(t)))}connect(e){"string"==typeof e&&(e=new Wv(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&sm(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return Lv.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new UT);if("event"===e)return this._normalizeRunningEvent(new BT("event",null));if("*"===e)return this._normalizeRunningEvent(new QT(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new WT(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!=typeof t)throw new Error("invalid topic");const n=this.interface.getEvent(t);return this._normalizeRunningEvent(new WT(this.address,this.interface,n,e.topics))}catch(e){}const t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new BT(RT(t),t))}return this._normalizeRunningEvent(new QT(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,n){const r=fm(t);return r.removeListener=()=>{n&&(e.removeListener(n),this._checkRunningEvents(e))},r.getBlock=()=>this.provider.getBlock(t.blockHash),r.getTransaction=()=>this.provider.getTransaction(t.transactionHash),r.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(r),r}_addEventListener(e,t,n){if(this.provider||jT.throwError("events require a provider or a signer with a provider",vy.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const n=n=>{let r=this._wrapEvent(e,n,t);if(null==r.decodeError)try{const t=e.getEmit(r);this.emit(e.filter,...t)}catch(e){r.decodeError=e.error}null!=e.filter&&this.emit("event",r),null!=r.decodeError&&this.emit("error",r.decodeError,r)};this._wrappedEmits[e.tag]=n,null!=e.filter&&this.provider.on(e.filter,n)}}queryFilter(e,t,n){const r=this._getRunningEvent(e),i=lm(r.filter);return"string"==typeof t&&xy(t,32)?(null!=n&&jT.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=n?n:"latest"),this.provider.getLogs(i).then((e=>e.map((e=>this._wrapEvent(r,e,null)))))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;const n=this._getRunningEvent(e),r=n.run(t)>0;return this._checkRunningEvents(n),r}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce(((e,t)=>e+this._runningEvents[t].listenerCount()),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach((t=>{e.push(t)}));return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this}removeListener(e,t){return this.off(e,t)}}{}class FT{constructor(e){sm(this,"alphabet",e),sm(this,"base",e.length),sm(this,"_alphabetMap",{}),sm(this,"_leader",e.charAt(0));for(let t=0;t0;)n.push(r%this.base),r=r/this.base|0}let r="";for(let e=0;0===t[e]&&e=0;--e)r+=this.alphabet[n[e]];return r}decode(e){if("string"!=typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let n=0;n>=8;for(;i>0;)t.push(255&i),i>>=8}for(let n=0;e[n]===this._leader&&n{o[t.toLowerCase()]=e})):r.headers.keys().forEach((e=>{o[e.toLowerCase()]=r.headers.get(e)})),{headers:o,statusCode:r.status,statusMessage:r.statusText,body:Ny(new Uint8Array(i))}}))}var nN=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const rN=new vy("web/5.7.1");function iN(e){return new Promise((t=>{setTimeout(t,e)}))}function oN(e,t){if(null==e)return null;if("string"==typeof e)return e;if(Ay(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Lg(e)}catch(e){}return Sy(e)}return e}function aN(e,t,n){let r=null;if(null!=t){r=kg(t);const n="string"==typeof e?{url:e}:lm(e);if(n.headers){0!==Object.keys(n.headers).filter((e=>"content-type"===e.toLowerCase())).length||(n.headers=lm(n.headers),n.headers["content-type"]="application/json")}else n.headers={"content-type":"application/json"};e=n}return function(e,t,n){const r="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;rN.assertArgument(r>0&&r%1==0,"invalid connection throttle limit","connection.throttleLimit",r);const i="object"==typeof e?e.throttleCallback:null,o="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;rN.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const a="object"==typeof e&&!!e.errorPassThrough,s={};let u=null;const c={method:"GET"};let l=!1,d=12e4;if("string"==typeof e)u=e;else if("object"==typeof e){if(null!=e&&null!=e.url||rN.throwArgumentError("missing URL","connection.url",e),u=e.url,"number"==typeof e.timeout&&e.timeout>0&&(d=e.timeout),e.headers)for(const t in e.headers)s[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(l=!0);if(c.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==u.substring(0,6)&&!0!==e.allowInsecureAuthentication&&rN.throwError("basic authentication requires a secure https url",vy.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;s.authorization={key:"Authorization",value:"Basic "+Pg(kg(t))}}null!=e.skipFetchSetup&&(c.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(c.fetchOptions=lm(e.fetchOptions))}const h=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),p=u?u.match(h):null;if(p)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":p[1]||"text/plain"},body:p[2]?_g(p[3]):(f=p[3],kg(f.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))))};let t=e.body;return n&&(t=n(e.body,e)),Promise.resolve(t)}catch(e){rN.throwError("processing response error",vy.errors.SERVER_ERROR,{body:oN(p[1],p[2]),error:e,requestBody:null,requestMethod:"GET",url:u})}var f;t&&(c.method="POST",c.body=t,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(t.length)}));const y={};Object.keys(s).forEach((e=>{const t=s[e];y[t.key]=t.value})),c.headers=y;const m=function(){let e=null;return{promise:new Promise((function(t,n){d&&(e=setTimeout((()=>{null!=e&&(e=null,n(rN.makeError("timeout",vy.errors.TIMEOUT,{requestBody:oN(c.body,y["content-type"]),requestMethod:c.method,timeout:d,url:u})))}),d))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),g=function(){return nN(this,void 0,void 0,(function*(){for(let e=0;e=300)&&(m.cancel(),rN.throwError("bad response",vy.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:oN(s,t.headers?t.headers["content-type"]:null),requestBody:oN(c.body,y["content-type"]),requestMethod:c.method,url:u})),n)try{const e=yield n(s,t);return m.cancel(),e}catch(n){if(n.throttleRetry&&e{let r=null;if(null!=e)try{r=JSON.parse(Lg(e))}catch(t){rN.throwError("invalid JSON",vy.errors.SERVER_ERROR,{body:e,error:t})}return n&&(r=n(r,t)),r}))}function sN(e,t){return t||(t={}),null==(t=lm(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(n,r){let i=null,o=!1;const a=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout((()=>{a()&&r(new Error("timeout"))}),t.timeout));const s=t.retryLimit;let u=0;!function i(){return e().then((function(e){if(void 0!==e)a()&&n(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(u++,u>s)return void(a()&&r(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,u)));et.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null}),(function(e){a()&&r(e)}))}()}))}for(var uN="qpzry9x8gf2tvdw0s3jn54khce6mua7l",cN={},lN=0;lN>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function pN(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=hN(t)^r>>5}for(t=hN(t),n=0;nt)return"Exceeds length limit";var n=e.toLowerCase(),r=e.toUpperCase();if(e!==n&&e!==r)return"Mixed-case string "+e;var i=(e=n).lastIndexOf("1");if(-1===i)return"No separator character for "+e;if(0===i)return"Missing prefix for "+e;var o=e.slice(0,i),a=e.slice(i+1);if(a.length<6)return"Data too short";var s=pN(o);if("string"==typeof s)return s;for(var u=[],c=0;c=a.length||u.push(d)}return 1!==s?"Invalid checksum for "+e:{prefix:o,words:u}}function yN(e,t,n,r){for(var i=0,o=0,a=(1<=n;)o-=n,s.push(i>>o&a);if(r)o>0&&s.push(i<=t)return"Excess padding";if(i<n)throw new TypeError("Exceeds length limit");var r=pN(e=e.toLowerCase());if("string"==typeof r)throw new Error(r);for(var i=e+"1",o=0;o>5!=0)throw new Error("Non 5-bit word");r=hN(r)^a,i+=uN.charAt(a)}for(o=0;o<6;++o)r=hN(r);for(r^=1,o=0;o<6;++o){i+=uN.charAt(r>>5*(5-o)&31)}return i},toWordsUnsafe:function(e){var t=yN(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=yN(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=yN(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=yN(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}};const gN="providers/5.7.2",vN=new vy(gN);class bN{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),n=this.bigNumber.bind(this),r=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),a=this.hex.bind(this),s=this.number.bind(this),u=this.type.bind(this);return e.transaction={hash:o,type:u,accessList:bN.allowNull(this.accessList.bind(this),null),blockHash:bN.allowNull(o,null),blockNumber:bN.allowNull(s,null),transactionIndex:bN.allowNull(s,null),confirmations:bN.allowNull(s,null),from:t,gasPrice:bN.allowNull(n),maxPriorityFeePerGas:bN.allowNull(n),maxFeePerGas:bN.allowNull(n),gasLimit:n,to:bN.allowNull(t,null),value:n,nonce:s,data:i,r:bN.allowNull(this.uint256),s:bN.allowNull(this.uint256),v:bN.allowNull(s),creates:bN.allowNull(t,null),raw:bN.allowNull(i)},e.transactionRequest={from:bN.allowNull(t),nonce:bN.allowNull(s),gasLimit:bN.allowNull(n),gasPrice:bN.allowNull(n),maxPriorityFeePerGas:bN.allowNull(n),maxFeePerGas:bN.allowNull(n),to:bN.allowNull(t),value:bN.allowNull(n),data:bN.allowNull((e=>this.data(e,!0))),type:bN.allowNull(s),accessList:bN.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:o,address:t,topics:bN.arrayOf(o),data:i,logIndex:s,blockHash:o},e.receipt={to:bN.allowNull(this.address,null),from:bN.allowNull(this.address,null),contractAddress:bN.allowNull(t,null),transactionIndex:s,root:bN.allowNull(a),gasUsed:n,logsBloom:bN.allowNull(i),blockHash:o,transactionHash:o,logs:bN.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:bN.allowNull(s,null),cumulativeGasUsed:n,effectiveGasPrice:bN.allowNull(n),status:bN.allowNull(s),type:u},e.block={hash:bN.allowNull(o),parentHash:o,number:s,timestamp:s,nonce:bN.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:bN.allowNull(t),extraData:i,transactions:bN.allowNull(bN.arrayOf(o)),baseFeePerGas:bN.allowNull(n)},e.blockWithTransactions=lm(e.block),e.blockWithTransactions.transactions=bN.allowNull(bN.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:bN.allowNull(r,void 0),toBlock:bN.allowNull(r,void 0),blockHash:bN.allowNull(o,void 0),address:bN.allowNull(t,void 0),topics:bN.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:bN.allowNull(s),blockHash:bN.allowNull(o),transactionIndex:s,removed:bN.allowNull(this.boolean.bind(this)),address:t,data:bN.allowFalsish(i,"0x"),topics:bN.arrayOf(o),transactionHash:o,logIndex:s},e}accessList(e){return TT(e||[])}number(e){return"0x"===e?0:Wy.from(e).toNumber()}type(e){return"0x"===e||null==e?0:Wy.from(e).toNumber()}bigNumber(e){return Wy.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),xy(e))?e.toLowerCase():vN.throwArgumentError("invalid hash","value",e)}data(e,t){const n=this.hex(e,t);if(n.length%2!=0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return rg(e)}callAddress(e){if(!xy(e,32))return null;const t=rg(Cy(e,12));return"0x0000000000000000000000000000000000000000"===t?null:t}contractAddress(e){return ig(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||xy(e))return Oy(e);throw new Error("invalid blockTag")}hash(e,t){const n=this.hex(e,t);return 32!==jy(n)?vN.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(null==e)return null;const t=Wy.from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!xy(e))throw new Error("invalid uint256");return zy(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const n=null!=e._difficulty?e._difficulty:e.difficulty,r=bN.check(t,e);return r._difficulty=null==n?null:Wy.from(n),r}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return bN.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&Wy.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=bN.check(this.formats.transaction,e);if(null!=e.chainId){let n=e.chainId;xy(n)&&(n=Wy.from(n).toNumber()),t.chainId=n}else{let n=e.networkId;null==n&&null==t.v&&(n=e.chainId),xy(n)&&(n=Wy.from(n).toNumber()),"number"!=typeof n&&null!=t.v&&(n=(t.v-35)/2,n<0&&(n=0),n=parseInt(n)),"number"!=typeof n&&(n=0),t.chainId=n}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return xT(e)}receiptLog(e){return bN.check(this.formats.receiptLog,e)}receipt(e){const t=bN.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=Wy.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&vN.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):vN.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&vN.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map((e=>this.topics(e))):null!=e?this.hash(e,!0):null}filter(e){return bN.check(this.formats.filter,e)}filterLog(e){return bN.check(this.formats.filterLog,e)}static check(e,t){const n={};for(const r in e)try{const i=e[r](t[r]);void 0!==i&&(n[r]=i)}catch(e){throw e.checkKey=r,e.checkValue=t[r],e}return n}static allowNull(e,t){return function(n){return null==n?t:e(n)}}static allowFalsish(e,t){return function(n){return n?e(n):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const n=[];return t.forEach((function(t){n.push(e(t))})),n}}}var wN=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const MN=new vy(gN);function AN(e){return null==e?"null":(32!==jy(e)&&MN.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function EN(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((e=>{if(Array.isArray(e)){const t={};e.forEach((e=>{t[AN(e)]=!0}));const n=Object.keys(t);return n.sort(),n.join("|")}return AN(e)})).join("&")}function TN(e){if("string"==typeof e){if(32===jy(e=e.toLowerCase()))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+EN(e);if(Ov.isForkEvent(e))throw MN.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+EN(e.topics||[])}throw new Error("invalid event - "+e)}function NN(){return(new Date).getTime()}function IN(e){return new Promise((t=>{setTimeout(t,e)}))}const kN=["block","network","pending","poll"];class LN{constructor(e,t,n){sm(this,"tag",e),sm(this,"listener",t),sm(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],n=""===(r=e[2])?[]:r.split(/&/g).map((e=>{if(""===e)return[];const t=e.split("|").map((e=>"null"===e?null:e));return 1===t.length?t[0]:t}));var r;const i={};return n.length>0&&(i.topics=n),t&&"*"!==t&&(i.address=t),i}pollable(){return this.tag.indexOf(":")>=0||kN.indexOf(this.tag)>=0}}const xN={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function SN(e){return zy(Wy.from(e).toHexString(),32)}function jN(e){return VT.encode(Iy([e,Cy(HT(HT(e)),0,4)]))}const CN=new RegExp("^(ipfs)://(.*)$","i"),DN=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),CN,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function ON(e,t){try{return Lg(zN(e,t))}catch(e){}return null}function zN(e,t){if("0x"===e)return null;const n=Wy.from(Cy(e,t,t+32)).toNumber(),r=Wy.from(Cy(e,n,n+32)).toNumber();return Cy(e,n+32,n+32+r)}function _N(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):MN.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function PN(e){const t=Ny(e);if(t.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(t,32-t.length),n}function RN(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function BN(e){const t=[];let n=0;for(let r=0;rWy.from(e).eq(1))).catch((e=>{if(e.code===vy.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e}))),this._supportsEip2544}_fetch(e,t){return wN(this,void 0,void 0,(function*(){const n={to:this.address,ccipReadEnabled:!0,data:Dy([e,sv(this.name),t||"0x"])};let r=!1;var i;(yield this.supportsWildcard())&&(r=!0,n.data=Dy(["0x9061b923",BN([(i=this.name,Sy(Iy(av(i).map((e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"),n.data])]));try{let e=yield this.provider.call(n);return Ny(e).length%32==4&&MN.throwError("resolver threw error",vy.errors.CALL_EXCEPTION,{transaction:n,data:e}),r&&(e=zN(e,0)),e}catch(e){if(e.code===vy.errors.CALL_EXCEPTION)return null;throw e}}))}_fetchBytes(e,t){return wN(this,void 0,void 0,(function*(){const n=yield this._fetch(e,t);return null!=n?zN(n,0):null}))}_getAddress(e,t){const n=xN[String(e)];if(null==n&&MN.throwError(`unsupported coin type: ${e}`,vy.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===n.ilk)return this.provider.formatter.address(t);const r=Ny(t);if(null!=n.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return jN(Iy([[n.p2pkh],"0x"+e[2]]))}}if(null!=n.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return jN(Iy([[n.p2sh],"0x"+e[2]]))}}if(null!=n.prefix){const e=r[1];let t=r[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&r.length===2+e&&e>=1&&e<=75){const e=mN.toWords(r.slice(2));return e.unshift(t),mN.encode(n.prefix,e)}}return null}getAddress(e){return wN(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||"0x0000000000000000000000000000000000000000000000000000000000000000"===e?null:this.provider.formatter.callAddress(e)}catch(e){if(e.code===vy.errors.CALL_EXCEPTION)return null;throw e}const t=yield this._fetchBytes("0xf1cb7e06",SN(e));if(null==t||"0x"===t)return null;const n=this._getAddress(e,t);return null==n&&MN.throwError("invalid or unsupported coin data",vy.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),n}))}getAvatar(){return wN(this,void 0,void 0,(function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let n=0;ne[t]))}return MN.throwError("invalid or unsupported content hash data",vy.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return wN(this,void 0,void 0,(function*(){let t=kg(e);t=Iy([SN(64),SN(t.length),t]),t.length%32!=0&&(t=Iy([t,zy("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",Sy(t));return null==n||"0x"===n?null:Lg(n)}))}}let WN=null,QN=1;class YN extends zv{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),sm(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch((e=>{})),this._ready().catch((e=>{}));else{const t=um(new.target,"getNetwork")(e);t?(sm(this,"_network",t),this.emit("network",t,null)):MN.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return wN(this,void 0,void 0,(function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||MN.throwError("no network detected",vy.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:sm(this,"_network",e),this.emit("network",e,null))}return this._network}))}get ready(){return sN((()=>this._ready().then((e=>e),(e=>{if(e.code!==vy.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==WN&&(WN=new bN),WN}static getNetwork(e){return function(e){if(null==e)return null;if("number"==typeof e){for(const t in $T){const n=$T[t];if(n.chainId===e)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){const t=$T[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=$T[e.name];if(!t)return"number"!=typeof e.chainId&>.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&>.throwArgumentError("network chainId mismatch","network",e);let n=e._defaultProvider||null;var r;return null==n&&t._defaultProvider&&(n=(r=t._defaultProvider)&&"function"==typeof r.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:n}}(null==e?"homestead":e)}ccipReadFetch(e,t,n){return wN(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===n.length)return null;const r=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let e=0;e=0?null:JSON.stringify({data:i,sender:r}),u=yield aN({url:a,errorPassThrough:!0},s,((e,t)=>(e.status=t.statusCode,e)));if(u.data)return u.data;const c=u.message||"unknown error";if(u.status>=400&&u.status<500)return MN.throwError(`response not found during CCIP fetch: ${c}`,vy.errors.SERVER_ERROR,{url:t,errorMessage:c});o.push(c)}return MN.throwError(`error encountered during CCIP fetch: ${o.map((e=>JSON.stringify(e))).join(", ")}`,vy.errors.SERVER_ERROR,{urls:n,errorMessages:o})}))}_getInternalBlockNumber(e){return wN(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const n=yield t;if(NN()-n.respTime<=e)return n.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}const t=NN(),n=cm({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((({blockNumber:e,networkError:r})=>{if(r)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),r;const i=NN();return(e=Wy.from(e).toNumber()){this._internalBlockNumber===n&&(this._internalBlockNumber=null)})),(yield n).blockNumber}))}poll(){return wN(this,void 0,void 0,(function*(){const e=QN++,t=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){return void this.emit("error",e)}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)MN.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",MN.makeError("network block skew detected",vy.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let e=this._emitted.block+1;e<=n;e++)this.emit("block",e);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&n-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((e=>{switch(e.type){case"tx":{const n=e.hash;let r=this.getTransactionReceipt(n).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+n]=e.blockNumber,this.emit(n,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(r);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=n-1);const r=e.filter;r.fromBlock=e._lastBlockNumber+1,r.toBlock=n;const i=r.toBlock-this._maxFilterBlockRange;i>r.fromBlock&&(r.fromBlock=i),r.fromBlock<0&&(r.fromBlock=0);const o=this.getLogs(r).then((t=>{e._inflight=!1,0!==t.length&&t.forEach((t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(r,t)}))})).catch((t=>{this.emit("error",t),e._inflight=!1}));t.push(o)}}})),this._lastBlockNumber=n,Promise.all(t).then((()=>{this.emit("didPoll",e)})).catch((e=>{this.emit("error",e)}))}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return wN(this,void 0,void 0,(function*(){return MN.throwError("provider does not support network detection",vy.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return wN(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield IN(0),this._network;const n=MN.makeError("underlying network changed",vy.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",n),n}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((e=>{this._setFastBlockNumber(e)}),(e=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const e=NN();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,n){return wN(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,n||0,null)}))}_waitForTransaction(e,t,n,r){return wN(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise(((i,o)=>{const a=[];let s=!1;const u=function(){return!!s||(s=!0,a.forEach((e=>{e()})),!1)},c=e=>{e.confirmations{this.removeListener(e,c)})),r){let n=r.startBlock,i=null;const c=a=>wN(this,void 0,void 0,(function*(){s||(yield IN(1e3),this.getTransactionCount(r.from).then((l=>wN(this,void 0,void 0,(function*(){if(!s){if(l<=r.nonce)n=a;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=n-3,i{s||this.once("block",c)})))}));if(s)return;this.once("block",c),a.push((()=>{this.removeListener("block",c)}))}if("number"==typeof n&&n>0){const e=setTimeout((()=>{u()||o(MN.makeError("timeout exceeded",vy.errors.TIMEOUT,{timeout:n}))}),n);e.unref&&e.unref(),a.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return wN(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return wN(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return Wy.from(e)}catch(t){return MN.throwError("bad result from backend",vy.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}}))}getBalance(e,t){return wN(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield cm({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("getBalance",n);try{return Wy.from(r)}catch(e){return MN.throwError("bad result from backend",vy.errors.SERVER_ERROR,{method:"getBalance",params:n,result:r,error:e})}}))}getTransactionCount(e,t){return wN(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield cm({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("getTransactionCount",n);try{return Wy.from(r).toNumber()}catch(e){return MN.throwError("bad result from backend",vy.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:r,error:e})}}))}getCode(e,t){return wN(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield cm({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("getCode",n);try{return Sy(r)}catch(e){return MN.throwError("bad result from backend",vy.errors.SERVER_ERROR,{method:"getCode",params:n,result:r,error:e})}}))}getStorageAt(e,t,n){return wN(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield cm({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(t).then((e=>Oy(e)))}),i=yield this.perform("getStorageAt",r);try{return Sy(i)}catch(e){return MN.throwError("bad result from backend",vy.errors.SERVER_ERROR,{method:"getStorageAt",params:r,result:i,error:e})}}))}_wrapTransaction(e,t,n){if(null!=t&&32!==jy(t))throw new Error("invalid response - sendTransaction");const r=e;return null!=t&&e.hash!==t&&MN.throwError("Transaction hash mismatch from Provider.sendTransaction.",vy.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),r.wait=(t,r)=>wN(this,void 0,void 0,(function*(){let i;null==t&&(t=1),null==r&&(r=0),0!==t&&null!=n&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const o=yield this._waitForTransaction(e.hash,t,r,i);return null==o&&0===t?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&MN.throwError("transaction failed",vy.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)})),r}sendTransaction(e){return wN(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>Sy(e))),n=this.formatter.transaction(e);null==n.confirmations&&(n.confirmations=0);const r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(n,e,r)}catch(e){throw e.transaction=n,e.transactionHash=n.hash,e}}))}_getTransactionRequest(e){return wN(this,void 0,void 0,(function*(){const t=yield e,n={};return["from","to"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>e?Wy.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(n.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>e?Sy(e):null)))})),this.formatter.transactionRequest(yield cm(n))}))}_getFilter(e){return wN(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((n=>{null!=e[n]&&(t[n]=e[n])})),["fromBlock","toBlock"].forEach((n=>{null!=e[n]&&(t[n]=this._getBlockTag(e[n]))})),this.formatter.filter(yield cm(t))}))}_call(e,t,n){return wN(this,void 0,void 0,(function*(){n>=10&&MN.throwError("CCIP read exceeded maximum redirections",vy.errors.SERVER_ERROR,{redirects:n,transaction:e});const r=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(n>=0&&"latest"===t&&null!=r&&"0x556f1830"===i.substring(0,10)&&jy(i)%32==4)try{const o=Cy(i,4),a=Cy(o,0,32);Wy.from(a).eq(r)||MN.throwError("CCIP Read sender did not match",vy.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const s=[],u=Wy.from(Cy(o,32,64)).toNumber(),c=Wy.from(Cy(o,u,u+32)).toNumber(),l=Cy(o,u+32);for(let t=0;twN(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",r);if(null==e)return null!=r.blockHash&&null==this._emitted["b:"+r.blockHash]||null!=r.blockTag&&n>this._emitted.block?null:void 0;if(t){let t=null;for(let n=0;nthis._wrapTransaction(e))),n}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return wN(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return sN((()=>wN(this,void 0,void 0,(function*(){const n=yield this.perform("getTransaction",t);if(null==n)return null==this._emitted["t:"+e]?null:void 0;const r=this.formatter.transactionResponse(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}return this._wrapTransaction(r)}))),{oncePoll:this})}))}getTransactionReceipt(e){return wN(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return sN((()=>wN(this,void 0,void 0,(function*(){const n=yield this.perform("getTransactionReceipt",t);if(null==n)return null==this._emitted["t:"+e]?null:void 0;if(null==n.blockHash)return;const r=this.formatter.receipt(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}return r}))),{oncePoll:this})}))}getLogs(e){return wN(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield cm({filter:this._getFilter(e)}),n=yield this.perform("getLogs",t);return n.forEach((e=>{null==e.removed&&(e.removed=!1)})),bN.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)}))}getEtherPrice(){return wN(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return wN(this,void 0,void 0,(function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&MN.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return wN(this,void 0,void 0,(function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const n=yield this._getResolver(t,"getResolver");if(null!=n){const r=new UN(this,n,e);return t===e||(yield r.supportsWildcard())?r:null}t=t.split(".").slice(1).join(".")}}))}_getResolver(e,t){return wN(this,void 0,void 0,(function*(){null==t&&(t="ENS");const n=yield this.getNetwork();n.ensAddress||MN.throwError("network does not support ENS",vy.errors.UNSUPPORTED_OPERATION,{operation:t,network:n.name});try{const t=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+sv(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null}))}resolveName(e){return wN(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if(xy(e))throw t}"string"!=typeof e&&MN.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return wN(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(t,"lookupAddress");if(null==n)return null;const r=ON(yield this.call({to:n,data:"0x691f3431"+sv(t).substring(2)}),0);return(yield this.resolveName(r))!=e?null:r}))}getAvatar(e){return wN(this,void 0,void 0,(function*(){let t=null;if(xy(e)){const n=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(n,"getAvatar");if(!r)return null;t=new UN(this,r,n);try{const e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==vy.errors.CALL_EXCEPTION)throw e}try{const e=ON(yield this.call({to:r,data:"0x691f3431"+sv(n).substring(2)}),0);t=yield this.getResolver(e)}catch(e){if(e.code!==vy.errors.CALL_EXCEPTION)throw e;return null}}else if(t=yield this.getResolver(e),!t)return null;const n=yield t.getAvatar();return null==n?null:n.url}))}perform(e,t){return MN.throwError(e+" not implemented",vy.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_stopEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_addEventListener(e,t,n){const r=new LN(TN(e),t,n);return this._events.push(r),this._startEvent(r),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let n=!1,r=[],i=TN(e);return this._events=this._events.filter((e=>e.tag!==i||(setTimeout((()=>{e.listener.apply(this,t)}),0),n=!0,!e.once||(r.push(e),!1)))),r.forEach((e=>{this._stopEvent(e)})),n}listenerCount(e){if(!e)return this._events.length;let t=TN(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=TN(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const n=[];let r=!1,i=TN(e);return this._events=this._events.filter((e=>e.tag!==i||e.listener!=t||(!!r||(r=!0,n.push(e),!1)))),n.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const n=TN(e);this._events=this._events.filter((e=>e.tag!==n||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}var FN=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const VN=new vy(gN),HN=["call","estimateGas"];function GN(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){const n=xy(e.data)?e.data:null;if(!t||n)return{message:e.message,data:n}}if("object"==typeof e){for(const n in e){const r=GN(e[n],t);if(r)return r}return null}if("string"==typeof e)try{return GN(JSON.parse(e),t)}catch(e){}return null}function qN(e,t,n){const r=n.transaction||n.signedTransaction;if("call"===e){const e=GN(t,!0);if(e)return e.data;VN.throwError("missing revert data in call exception; Transaction reverted without a reason string",vy.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:t})}if("estimateGas"===e){let n=GN(t.body,!1);null==n&&(n=GN(t,!1)),n&&VN.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",vy.errors.UNPREDICTABLE_GAS_LIMIT,{reason:n.message,method:e,transaction:r,error:t})}let i=t.message;throw t.code===vy.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&VN.throwError("insufficient funds for intrinsic transaction cost",vy.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),i.match(/nonce (is )?too low/i)&&VN.throwError("nonce has already been used",vy.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&VN.throwError("replacement fee too low",vy.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),i.match(/only replay-protected/i)&&VN.throwError("legacy pre-eip-155 transactions not supported",vy.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:r}),HN.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&VN.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",vy.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}function ZN(e){return new Promise((function(t){setTimeout(t,e)}))}function JN(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function XN(e){return e?e.toLowerCase():e}const KN={};class $N extends Uv{constructor(e,t,n){if(super(),e!==KN)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");sm(this,"provider",t),null==n&&(n=0),"string"==typeof n?(sm(this,"_address",this.provider.formatter.address(n)),sm(this,"_index",null)):"number"==typeof n?(sm(this,"_index",n),sm(this,"_address",null)):VN.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return VN.throwError("cannot alter JSON-RPC Signer connection",vy.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new eI(KN,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((e=>(e.length<=this._index&&VN.throwError("unknown account #"+this._index,vy.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=lm(e);const t=this.getAddress().then((e=>(e&&(e=e.toLowerCase()),e)));if(null==e.gasLimit){const n=lm(e);n.from=t,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>FN(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&VN.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))))),cm({tx:cm(e),sender:t}).then((({tx:t,sender:n})=>{null!=t.from?t.from.toLowerCase()!==n&&VN.throwArgumentError("from address mismatch","transaction",e):t.from=n;const r=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[r]).then((e=>e),(e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&VN.throwError("user rejected transaction",vy.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),qN("sendTransaction",e,r))))}))}signTransaction(e){return VN.throwError("signing transactions is unsupported",vy.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return FN(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield sN((()=>FN(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(n);if(null!==e)return this.provider._wrapTransaction(e,n,t)}))),{oncePoll:this.provider})}catch(e){throw e.transactionHash=n,e}}))}signMessage(e){return FN(this,void 0,void 0,(function*(){const t="string"==typeof e?kg(e):e,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[Sy(t),n.toLowerCase()])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&VN.throwError("user rejected signing",vy.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),t}}))}_legacySignMessage(e){return FN(this,void 0,void 0,(function*(){const t="string"==typeof e?kg(e):e,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),Sy(t)])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&VN.throwError("user rejected signing",vy.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),t}}))}_signTypedData(e,t,n){return FN(this,void 0,void 0,(function*(){const r=yield Ev.resolveNames(e,t,n,(e=>this.provider.resolveName(e))),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(Ev.getPayload(r.domain,t,r.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&VN.throwError("user rejected signing",vy.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:r.domain,types:t,value:r.value}}),e}}))}unlock(e){return FN(this,void 0,void 0,(function*(){const t=this.provider,n=yield this.getAddress();return t.send("personal_unlockAccount",[n.toLowerCase(),e,null])}))}}class eI extends $N{sendTransaction(e){return this.sendUncheckedTransaction(e).then((e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)})))}}const tI={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class nI extends YN{constructor(e,t){let n=t;null==n&&(n=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(n),e||(e=um(this.constructor,"defaultUrl")()),sm(this,"connection","string"==typeof e?Object.freeze({url:e}):Object.freeze(lm(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return FN(this,void 0,void 0,(function*(){yield ZN(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){const t=um(this.constructor,"getNetwork");try{return t(Wy.from(e).toNumber())}catch(t){return VN.throwError("could not detect network",vy.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return VN.throwError("could not detect network",vy.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new $N(KN,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((e=>e.map((e=>this.formatter.address(e)))))}send(e,t){const n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:fm(n),provider:this});const r=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(r&&this._cache[e])return this._cache[e];const i=aN(this.connection,JSON.stringify(n),JN).then((e=>(this.emit("debug",{action:"response",request:n,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:n,provider:this}),e}));return r&&(this._cache[e]=i,setTimeout((()=>{this._cache[e]=null}),0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[XN(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[XN(t.address),t.blockTag]];case"getCode":return["eth_getCode",[XN(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[XN(t.address),zy(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[um(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[um(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=XN(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return FN(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&Wy.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const n=yield this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&((t=lm(t)).transaction=lm(e),delete t.transaction.type)}}const n=this.prepareRequest(e,t);null==n&&VN.throwError(e+" not implemented",vy.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(n){return qN(e,n,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(n){return function r(){e.send("eth_getFilterChanges",[n]).then((function(n){if(e._pendingFilter!=t)return null;let r=Promise.resolve();return n.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",r=r.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),r.then((function(){return ZN(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){r()}),0),null;e.send("eth_uninstallFilter",[n])})).catch((e=>{}))}(),n})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const n=lm(tI);if(t)for(const e in t)t[e]&&(n[e]=!0);var r,i;i=n,(r=e)&&"object"==typeof r||am.throwArgumentError("invalid object","object",r),Object.keys(r).forEach((e=>{i[e]||am.throwArgumentError("invalid object key - "+e,"transaction:"+e,r)}));const o={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const n=Oy(Wy.from(e[t]));"gasLimit"===t&&(t="gas"),o[t]=n})),["from","to","data"].forEach((function(t){null!=e[t]&&(o[t]=Sy(e[t]))})),e.accessList&&(o.accessList=TT(e.accessList)),o}}const rI=new vy(gN);let iI=1;function oI(e,t){const n="Web3LegacyFetcher";return function(e,r){const i={method:e,params:r,id:iI++,jsonrpc:"2.0"};return new Promise(((e,r)=>{this.emit("debug",{action:"request",fetcher:n,request:fm(i),provider:this}),t(i,((t,o)=>{if(t)return this.emit("debug",{action:"response",fetcher:n,error:t,request:i,provider:this}),r(t);if(this.emit("debug",{action:"response",fetcher:n,request:i,response:o,provider:this}),o.error){const e=new Error(o.error.message);return e.code=o.error.code,e.data=o.error.data,r(e)}e(o.result)}))}))}}class aI extends nI{constructor(e,t){null==e&&rI.throwArgumentError("missing provider","provider",e);let n=null,r=null,i=null;"function"==typeof e?(n="unknown:",r=e):(n=e.host||e.path||"",!n&&e.isMetaMask&&(n="metamask"),i=e,e.request?(""===n&&(n="eip-1193:"),r=function(e){return function(t,n){null==n&&(n=[]);const r={method:t,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:fm(r),provider:this}),e.request(r).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,error:e,provider:this}),e}))}}(e)):e.sendAsync?r=oI(0,e.sendAsync.bind(e)):e.send?r=oI(0,e.send.bind(e)):rI.throwArgumentError("unsupported provider","provider",e),n||(n="unknown:")),super(n,t),sm(this,"jsonRpcFetchFunc",r),sm(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const sI=new RegExp("^bytes([0-9]+)$"),uI=new RegExp("^(u?int)([0-9]*)$"),cI=new RegExp("^(.*)\\[([0-9]*)\\]$"),lI=new vy("solidity/5.7.0");function dI(e,t,n){switch(e){case"address":return n?Ly(t,32):Ny(t);case"string":return kg(t);case"bytes":return Ny(t);case"bool":return t=t?"0x01":"0x00",n?Ly(t,32):Ny(t)}let r=e.match(uI);if(r){let i=parseInt(r[2]||"256");return(r[2]&&String(i)!==r[2]||i%8!=0||0===i||i>256)&&lI.throwArgumentError("invalid number type","type",e),n&&(i=256),Ly(t=Wy.from(t).toTwos(i),i/8)}if(r=e.match(sI),r){const i=parseInt(r[1]);return(String(i)!==r[1]||0===i||i>32)&&lI.throwArgumentError("invalid bytes type","type",e),Ny(t).byteLength!==i&&lI.throwArgumentError(`invalid value for ${e}`,"value",t),n?Ny((t+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):t}if(r=e.match(cI),r&&Array.isArray(t)){const n=r[1];parseInt(r[2]||String(t.length))!=t.length&&lI.throwArgumentError(`invalid array length for ${e}`,"value",t);const i=[];return t.forEach((function(e){i.push(dI(n,e,!0))})),Iy(i)}return lI.throwArgumentError("invalid type","type",e)}function hI(e,t){e.length!=t.length&&lI.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);const n=[];return e.forEach((function(e,r){n.push(dI(e,t[r]))})),Sy(Iy(n))}const pI=new vy("units/5.7.0"),fI=["wei","kwei","mwei","gwei","szabo","finney","ether"];function yI(e,t){if("string"==typeof t){const e=fI.indexOf(t);-1!==e&&(t=3*e)}return $y(e,null!=t?t:18)}function mI(e,t){if("string"!=typeof e&&pI.throwArgumentError("value must be a string","value",e),"string"==typeof t){const e=fI.indexOf(t);-1!==e&&(t=3*e)}return em(e,null!=t?t:18)}let gI,vI=()=>gI||(gI="object"==typeof fe?fe:window,gI);const bI=()=>(void 0===vI()._Web3ClientConfiguration&&(vI()._Web3ClientConfiguration={}),vI()._Web3ClientConfiguration);function wI(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class MI extends nI{constructor(e,t,n,r){super(e),this._network=t,this._endpoint=e,this._endpoints=n,this._failover=r,this._pendingBatch=[]}detectNetwork(){return Promise.resolve(he.findByName(this._network).id)}requestChunk(e,t){try{const n=e.map((e=>e.request));return aN(t,JSON.stringify(n)).then((t=>{e.forEach(((e,n)=>{const r=t[n];if(wI([r,"optionalAccess",e=>e.error])){const t=new Error(r.error.message);t.code=r.error.code,t.data=r.error.data,e.reject(t)}else wI([r,"optionalAccess",e=>e.result])?e.resolve(r.result):e.reject()}))})).catch((t=>{if(t&&"SERVER_ERROR"==t.code){const t=this._endpoints.indexOf(this._endpoint)+1;this._failover(),this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this.requestChunk(e,this._endpoint)}else e.forEach((e=>{e.reject(t)}))}))}catch(t){e.forEach((e=>{e.reject()}))}}send(e,t){const n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((e,t)=>{r.resolve=e,r.reject=t}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const t=[];for(let n=0;n(e.map((e=>e.request)),this.requestChunk(e,this._endpoint))))}),bI().batchInterval||10)),i}}const AI=()=>(null==vI()._Web3ClientProviders&&(vI()._Web3ClientProviders={}),vI()._Web3ClientProviders),EI=(e,t)=>{void 0===AI()[e]&&(AI()[e]=[]);const n=AI()[e].indexOf(t);n>-1&&AI()[e].splice(n,1),AI()[e].unshift(t)},TI=async(e,t,n=!0)=>{let r;AI()[e]=t.map(((r,i)=>new MI(r,e,t,(()=>{1===AI()[e].length?TI(e,t,n):AI()[e].splice(i,1)}))));let i=vI();if(null==i.fetch||void 0!==Re&&Re.env&&"test"==Re.env.NODE_ENV||void 0!==i.cy||!1===n)r=AI()[e][0];else{let n=await Promise.all(t.map((e=>new Promise((async t=>{let n=(new Date).getTime();setTimeout((()=>t(900)),900);if(!(await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({method:"net_version",id:1,jsonrpc:"2.0"})})).ok)return t(999);let r=(new Date).getTime();t(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=AI()[e][o]}EI(e,r)};var NI={getProvider:async e=>{let t=AI();if(t&&t[e])return t[e][0];let n=vI();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[e]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[e]=new Promise((async t=>{await TI(e,he[e].endpoints),t(vI()._Web3ClientProviders[e][0])}))),await n._Web3ClientGetProviderPromise[e]},getProviders:async e=>{let t=AI();if(t&&t[e])return t[e];let n=vI();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[e]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[e]=new Promise((async t=>{await TI(e,he[e].endpoints),t(vI()._Web3ClientProviders[e])}))),await n._Web3ClientGetProvidersPromise[e]},setProviderEndpoints:TI,setProvider:EI};class II extends vh{constructor(e,t,n,r){super(e),this._provider=new vh(e),this._network=t,this._endpoint=e,this._endpoints=n,this._failover=r,this._pendingBatch=[],this._rpcRequest=this._rpcRequestReplacement.bind(this)}requestChunk(e){const t=e.map((e=>e.request)),n=t=>{if(t&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((e=>t.toString().match(e)))){const t=this._endpoints.indexOf(this._endpoint)+1;this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this._provider=new vh(this._endpoint),this.requestChunk(e)}else e.forEach((e=>{e.reject(t)}))};try{return this._provider._rpcBatchRequest(t).then((t=>{e.forEach(((e,n)=>{const r=t[n];if(function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([r,"optionalAccess",e=>e.error])){const t=new Error(r.error.message);t.code=r.error.code,t.data=r.error.data,e.reject(t)}else r?e.resolve(r):e.reject()}))})).catch(n)}catch(e){return n(e)}}_rpcRequestReplacement(e,t){const n={methodName:e,args:t};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((e,t)=>{r.resolve=e,r.reject=t}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const t=[];for(let n=0;n(e.map((e=>e.request)),this.requestChunk(e))))}),bI().batchInterval||10)),i}}const kI=()=>(null==vI()._Web3ClientProviders&&(vI()._Web3ClientProviders={}),vI()._Web3ClientProviders),LI=(e,t)=>{void 0===kI()[e]&&(kI()[e]=[]);const n=kI()[e].indexOf(t);n>-1&&kI()[e].splice(n,1),kI()[e].unshift(t)},xI=async(e,t,n=!0)=>{let r;kI()[e]=t.map(((r,i)=>new II(r,e,t,(()=>{1===kI()[e].length?xI(e,t,n):kI()[e].splice(i,1)}))));let i=vI();if(null==i.fetch||void 0!==Re&&Re.env&&"test"==Re.env.NODE_ENV||void 0!==i.cy||!1===n)r=kI()[e][0];else{let n=await Promise.all(t.map((e=>new Promise((async t=>{let n=(new Date).getTime();setTimeout((()=>t(900)),900);if(!(await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({method:"getIdentity",id:1,jsonrpc:"2.0"})})).ok)return t(999);let r=(new Date).getTime();t(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=kI()[e][o]}LI(e,r)};var SI={getProvider:async e=>{let t=kI();if(t&&t[e])return t[e][0];let n=vI();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[e]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[e]=new Promise((async t=>{await xI(e,he[e].endpoints),t(vI()._Web3ClientProviders[e][0])}))),await n._Web3ClientGetProviderPromise[e]},getProviders:async e=>{let t=kI();if(t&&t[e])return t[e];let n=vI();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[e]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[e]=new Promise((async t=>{await xI(e,he[e].endpoints),t(vI()._Web3ClientProviders[e])}))),await n._Web3ClientGetProvidersPromise[e]},setProviderEndpoints:xI,setProvider:LI};let jI=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];jI.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],jI.solana=["solana"];let CI=()=>(null==vI()._Web3ClientCacheStore&&(vI()._Web3ClientCacheStore={}),vI()._Web3ClientCacheStore),DI=()=>(null==vI()._Web3ClientPromiseStore&&(vI()._Web3ClientPromiseStore={}),vI()._Web3ClientPromiseStore),OI=function({key:e}){DI()[e]=void 0},zI=function({call:e,key:t,expires:n=0}){return new Promise(((r,i)=>{let o,a=function({key:e}){return DI()[e]}({key:t=JSON.stringify(t)});if(a)return a.then(r).catch(i);(function({key:e,promise:t}){return DI()[e]=t,t})({key:t,promise:new Promise(((a,s)=>0===n?e().then((e=>{r(e),a(e)})).catch((e=>{i(e),s(e)})):(o=function({key:e,expires:t}){let n=CI()[e];if(function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([n,"optionalAccess",e=>e.expiresAt])>Date.now())return n.value}({key:t,expires:n}),o?(r(o),a(o),o):void e().then((e=>{e&&function({key:e,value:t,expires:n}){CI()[e]={expiresAt:Date.now()+n,value:t}}({key:t,value:e,expires:n}),r(e),a(e)})).catch((e=>{i(e),s(e)})))))}).then((()=>{OI({key:t})})).catch((()=>{OI({key:t})}))}))};const _I=async e=>{if(jI.evm.includes(e))return await NI.getProvider(e);if(jI.solana.includes(e))return await SI.getProvider(e);throw"Unknown blockchain: "+e},PI=e=>`(${e.map((e=>"tuple"===e.type?PI(e.components):e.type)).join(",")})`;var RI=({provider:e,from:t,to:n,value:r,method:i,api:o,params:a})=>{if(void 0===o)return e.estimateGas({from:t,to:n,value:r});{let s=new YT(n,o,e),u=s.interface.fragments.find((e=>e.name==i)),c=(({contract:e,method:t,params:n})=>{let r=e.interface.fragments.find((e=>e.name==t));return n instanceof Array?n:n instanceof Object?r.inputs.map((e=>n[e.name])):void 0})({contract:s,method:i,params:a});void 0===s[i]&&(i=`${i}(${u.inputs.map((e=>"tuple"===e.type?PI(e.components):e.type)).join(",")})`);let l=s.estimateGas[i];return c?l(...c,{from:t,value:r}):l({from:t,value:r})}};let BI=async function({blockchain:e,from:t,to:n,value:r,method:i,api:o,params:a,cache:s}){if(!jI.includes(e))throw"Unknown blockchain: "+e;void 0===r&&(r="0");const u=await _I(e);return await zI({expires:s||0,key:[e,t,n,r,i,a],call:async()=>RI({provider:u,from:t,to:n,value:r,method:i,api:o,params:a})})};const UI=({address:e,api:t,method:n,params:r,provider:i,block:o})=>{const a=new YT(e,t,i),s=(({contract:e,method:t,params:n})=>e.interface.fragments.find((e=>e.name==t)).inputs.map(((e,t)=>Array.isArray(n)?n[t]:n[e.name])))({contract:a,method:n,params:r}),u=a.interface.fragments.find((e=>e.name===n));return void 0===a[n]&&(n=`${n}(${u.inputs.map((e=>e.type)).join(",")})`),u&&"nonpayable"===u.stateMutability?a.callStatic[n](...s,{blockTag:o}):a[n](...s,{blockTag:o})},WI=({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a})=>n?UI({address:t,api:n,method:r,params:i,provider:a,block:o}):"latestBlockNumber"===r?a.getBlockNumber():"balance"===r?(({address:e,provider:t})=>t.getBalance(e))({address:t,provider:a}):"transactionCount"===r?(({address:e,provider:t})=>t.getTransactionCount(e))({address:t,provider:a}):void 0;const QI=async({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a,providers:s})=>{try{if(null==r||"getAccountInfo"===r)return null==n&&(n=jf),await(async({address:e,api:t,method:n,params:r,provider:i,block:o})=>{const a=await i.getAccountInfo(new Ec(e));if(a&&a.data)return t.decode(a.data)})({address:t,api:n,method:r,params:i,provider:a,block:o});if("getProgramAccounts"===r)return await a.getProgramAccounts(new Ec(t),i).then((e=>n?e.map((e=>(e.data=n.decode(e.account.data),e))):e));if("getTokenAccountBalance"===r)return await a.getTokenAccountBalance(new Ec(t));if("latestBlockNumber"===r)return await a.getSlot(i||void 0);if("balance"===r)return await(({address:e,provider:t})=>t.getBalance(new Ec(e)))({address:t,provider:a})}catch(u){if(s&&u&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((e=>u.toString().match(e)))){let u=s[s.indexOf(a)+1]||s[0];return QI({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:u,providers:s})}throw u}};const YI=async function(e,t){const{blockchain:n,address:r,method:i}=(e=>{if("object"==typeof e)return e;let t=e.match(/(?\w+):\/\/(?[\w\d]+)(\/(?[\w\d]+)*)?/);return null==t.groups.part2?t.groups.part1.match(/\d/)?{blockchain:t.groups.blockchain,address:t.groups.part1}:{blockchain:t.groups.blockchain,method:t.groups.part1}:{blockchain:t.groups.blockchain,address:t.groups.part1,method:t.groups.part2}})(e),{api:o,params:a,cache:s,block:u,timeout:c,strategy:l,cacheKey:d}=("object"==typeof e?e:t)||{};return await zI({expires:s||0,key:d||[n,r,i,a,u],call:async()=>{if(jI.evm.includes(n))return await(async({blockchain:e,address:t,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{if(s=s||bI().strategy||"failover",a=a||bI().timeout||void 0,"fastest"===s){const s=await NI.getProviders(e);let u=[];const c=s.map((a=>new Promise((s=>{u.push(WI({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a}).then(s))})))),l=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a||1e4)));return u=Promise.all(u.map((e=>new Promise((t=>{e.catch(t)}))))).then((()=>{})),Promise.race([...c,l,u])}{const s=await NI.getProvider(e),u=WI({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:s});return a?(a=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a))),Promise.race([u,a])):u}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});if(jI.solana.includes(n))return await(async({blockchain:e,address:t,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{s=s||bI().strategy||"failover",a=a||bI().timeout||void 0;const u=await SI.getProviders(e);if("fastest"===s){let s=[];const c=u.map((a=>new Promise((u=>{s.push(QI({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a}).then(u))})))),l=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a||1e4)));return s=Promise.all(s.map((e=>new Promise((t=>{e.catch(t)}))))).then((()=>{})),Promise.race([...c,l,s])}{const s=await SI.getProvider(e),c=QI({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:s,providers:u});return a?(a=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a))),Promise.race([c,a])):c}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});throw"Unknown blockchain: "+n}})};var FI=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=92)}([function(e,t,n){(function(e){n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"o",(function(){return y})),n.d(t,"n",(function(){return m})),n.d(t,"p",(function(){return g})),n.d(t,"A",(function(){return v})),n.d(t,"z",(function(){return b})),n.d(t,"B",(function(){return w})),n.d(t,"v",(function(){return M})),n.d(t,"u",(function(){return A})),n.d(t,"s",(function(){return N})),n.d(t,"r",(function(){return I})),n.d(t,"t",(function(){return k})),n.d(t,"q",(function(){return L})),n.d(t,"m",(function(){return x})),n.d(t,"l",(function(){return S})),n.d(t,"k",(function(){return j})),n.d(t,"j",(function(){return C})),n.d(t,"x",(function(){return O})),n.d(t,"a",(function(){return z})),n.d(t,"y",(function(){return _})),n.d(t,"w",(function(){return P}));var r=n(22),i=n.n(r),o=n(49),a=n.n(o);function s(e){return new Uint8Array(e)}function u(e,t=!1){const n=e.toString("hex");return t?z(n):n}function c(e){return e.toString("utf8")}function l(e){return e.readUIntBE(0,e.length)}function d(e){return a()(e)}function h(e,t=!1){return u(d(e),t)}function p(e){return c(d(e))}function f(e){return l(d(e))}function y(t){return e.from(O(t),"hex")}function m(e){return s(y(e))}function g(e){return c(y(e))}function v(t){return e.from(t,"utf8")}function b(e){return s(v(e))}function w(e,t=!1){return u(v(e),t)}function M(e){return d(T(E(e)))}function A(e){return T(E(e))}function E(e){return D((e>>>0).toString(2))}function T(e){return new Uint8Array(function(e,t=8){const n=D(e).match(new RegExp(`.{${t}}`,"gi"));return Array.from(n||[])}(e).map((e=>parseInt(e,2))))}function N(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function I(t){return e.isBuffer(t)}function k(e){return i.a.strict(e)&&!I(e)}function L(e){return!k(e)&&!I(e)&&void 0!==e.byteLength}function x(e){return I(e)?"buffer":k(e)?"typed-array":L(e)?"array-buffer":Array.isArray(e)?"array":typeof e}function S(e){return function(e){return!("string"!=typeof e||!new RegExp(/^[01]+$/).test(e))&&e.length%8==0}(e)?"binary":N(e)?"hex":"utf8"}function j(...t){return e.concat(t)}function C(...e){let t=[];return e.forEach((e=>t=t.concat(Array.from(e)))),new Uint8Array([...t])}function D(e,t=8,n="0"){return function(e,t,n="0"){return function(e,t,n,r="0"){const i=t-e.length;let o=e;if(i>0){const t=r.repeat(i);o=n?t+e:e+t}return o}(e,t,!0,n)}(e,function(e,t=8){const n=e%t;return n?(e-n)/t*t+t:e}(e.length,t),n)}function O(e){return e.replace(/^0x/,"")}function z(e){return e.startsWith("0x")?e:"0x"+e}function _(e){return(e=D(e=O(e),2))&&(e=z(e)),e}function P(e){const t=e.startsWith("0x");return e=(e=O(e)).startsWith("0")?e.substring(1):e,t?z(e):e}}).call(this,n(18).Buffer)},function(e,t,n){n.d(t,"g",(function(){return r.detectEnv})),n.d(t,"r",(function(){return r.isMobile})),n.d(t,"m",(function(){return r.isBrowser})),n.d(t,"k",(function(){return r.getLocation})),n.d(t,"i",(function(){return r.getClientMeta})),n.d(t,"B",(function(){return r.setLocal})),n.d(t,"j",(function(){return r.getLocal})),n.d(t,"A",(function(){return r.removeLocal})),n.d(t,"v",(function(){return r.mobileLinkChoiceKey})),n.d(t,"C",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"w",(function(){return N})),n.d(t,"x",(function(){return I})),n.d(t,"z",(function(){return m})),n.d(t,"D",(function(){return g})),n.d(t,"h",(function(){return k})),n.d(t,"u",(function(){return C})),n.d(t,"y",(function(){return D})),n.d(t,"l",(function(){return x})),n.d(t,"a",(function(){return S})),n.d(t,"o",(function(){return b})),n.d(t,"q",(function(){return w})),n.d(t,"p",(function(){return M})),n.d(t,"n",(function(){return A})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return T}));var r=n(21);const i=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],o=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];var a=n(16),s=n.n(a),u=n(0);function c(e){return u.b(new Uint8Array(e))}function l(e,t){return u.c(new Uint8Array(e),!t)}function d(e){return u.f(e).buffer}function h(e){return u.n(e).buffer}function p(e,t){const n=u.x(u.y(new s.a(e).toString(16)));return t?n:u.a(n)}var f=n(50);function y(e){return u.y(e)}const m=n(51).payloadId;function g(){return((e,t)=>{for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t})()}function v(e,t){return u.s(e,t)}function b(e){return void 0!==e.method}function w(e){return void 0!==e.result}function M(e){return void 0!==e.error}function A(e){return void 0!==e.event}function E(e){return i.includes(e)||e.startsWith("wc_")}function T(e){return!!e.method.startsWith("wc_")||!o.includes(e.method)}function N(e){var t,n;return(n=e)&&n.length&&!v(e[0])&&(e[0]=(t=e[0],u.B(t,!0))),e}function I(e){if(void 0!==e.type&&"0"!==e.type)return e;if(void 0===e.from||!(t=e.from)||"0x"!==t.toLowerCase().substring(0,2)||!/^(0x)?[0-9a-f]{40}$/i.test(t)||!/^(0x)?[0-9a-f]{40}$/.test(t)&&!/^(0x)?[0-9A-F]{40}$/.test(t)&&t!==function(e){e=Object(u.x)(e.toLowerCase());const t=Object(u.x)(Object(f.keccak_256)((n=e,u.A(n))));var n;let r="";for(let n=0;n7?r+=e[n].toUpperCase():r+=e[n];return Object(u.a)(r)}(t))throw new Error("Transaction object must include a valid 'from' value.");var t;function n(e){let t=e;var n;return("number"==typeof e||"string"==typeof e&&!function(e){return""===e||"string"==typeof e&&""===e.trim()}(e))&&(v(e)?"string"==typeof e&&(t=y(e)):t=p(e)),"string"==typeof t&&(n=t,t=u.w(u.a(n))),t}const r={from:y(e.from),to:void 0===e.to?void 0:y(e.to),gasPrice:void 0===e.gasPrice?"":n(e.gasPrice),gas:void 0===e.gas?void 0===e.gasLimit?"":n(e.gasLimit):n(e.gas),value:void 0===e.value?"":n(e.value),nonce:void 0===e.nonce?"":n(e.nonce),data:void 0===e.data?"":y(e.data)||"0x"},i=["gasPrice","gas","value","nonce"];return Object.keys(r).forEach((e=>{(void 0===r[e]||"string"==typeof r[e]&&!r[e].trim().length)&&i.includes(e)&&delete r[e]})),r}function k(e){const t=e.message||"Failed or Rejected Request";let n=-32e3;if(e&&!e.code)switch(t){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3}const r={code:n,message:t};return e.data&&(r.data=e.data),r}var L=n(23);function x(e){const t=-1!==e.indexOf("?")?e.indexOf("?"):void 0;return void 0!==t?e.substr(t):""}function S(e,t){let n=j(e);return n=Object.assign(Object.assign({},n),t),function(e){return L.stringify(e)}(n)}function j(e){return L.parse(e)}function C(e){return void 0!==e.bridge}function D(e){const t=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),i=function(e){const t=e.split("@");return{handshakeTopic:t[0],version:parseInt(t[1],10)}}(e.substring(t+1,n)),o=function(e){const t=j(e);return{key:t.key||"",bridge:t.bridge||""}}(void 0!==n?e.substr(n):"");return Object.assign(Object.assign({protocol:r},i),o)}},function(e,t,n){n.d(t,"b",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"h",(function(){return r})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"l",(function(){return f}));const r=512,i=256,o=256,a="AES-CBC",s="SHA-"+i,u="HMAC",c="SHA-256",l="SHA-512",d="encrypt",h="decrypt",p="sign",f="verify"},function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return u}));const r="INTERNAL_ERROR",i="SERVER_ERROR",o=[-32700,-32600,-32601,-32602,-32603],a=[-32e3,-32099],s={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[r]:{code:-32603,message:"Internal error"},[i]:{code:-32e3,message:"Server error"}},u=i},function(e,t,n){function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function i(e){const t=r(e);if(!t)throw new Error(e+" is not defined in Window");return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=i,t.getDocumentOrThrow=function(){return i("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return i("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return i("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return i("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return i("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(67),t),i(n(68),t)},function(e,t,n){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return d}));var r=n(5),i=n(2);async function o(e,t=i.a){return r.getSubtleCrypto().importKey("raw",e,function(e){return e===i.a?{length:i.b,name:i.a}:{hash:{name:i.f},name:i.e}}(t),!0,function(e){return e===i.a?[i.d,i.c]:[i.k,i.l]}(t))}async function a(e,t,n){const a=r.getSubtleCrypto(),s=await o(t,i.a),u=await a.encrypt({iv:e,name:i.a},s,n);return new Uint8Array(u)}async function s(e,t,n){const a=r.getSubtleCrypto(),s=await o(t,i.a),u=await a.decrypt({iv:e,name:i.a},s,n);return new Uint8Array(u)}async function u(e,t){const n=r.getSubtleCrypto(),a=await o(e,i.e),s=await n.sign({length:i.g,name:i.e},a,t);return new Uint8Array(s)}async function c(e,t){const n=r.getSubtleCrypto(),a=await o(e,i.e),s=await n.sign({length:i.h,name:i.e},a,t);return new Uint8Array(s)}async function l(e){const t=r.getSubtleCrypto(),n=await t.digest({name:i.i},e);return new Uint8Array(n)}async function d(e){const t=r.getSubtleCrypto(),n=await t.digest({name:i.j},e);return new Uint8Array(n)}},function(e,t){var n,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},function(e,t,n){var r=n(44),i=n(45);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},function(e,t,n){n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(3);function i(e){return r.c.includes(e)}function o(e){return Object.keys(r.f).includes(e)?r.f[e]:r.f[r.a]}function a(e){return Object.values(r.f).find((t=>t.code===e))||r.f[r.a]}},function(e,t,n){var r=n(19);o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}();var i=o.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function o(e,t,n){return o.TYPED_ARRAY_SUPPORT||this instanceof o?"number"==typeof e?u(this,e):function(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(n<0||t.byteLength=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function s(e,t){var n;return o.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t)).__proto__=o.prototype:(null===(n=e)&&(n=new o(t)),n.length=t),n}function u(e,t){var n=s(e,t<0?0:0|a(t));if(!o.TYPED_ARRAY_SUPPORT)for(var r=0;r55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function d(e){return o.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:l(e).length)}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(e,t,n){void 0===t||void 0===n&&"string"==typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,n,r){return function(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}(l(t,e.length-n),e,n,r)}(this,e,t,n)},o.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i1)for(var n=1;n=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","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"],l=[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],d=[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];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=l[e],p=d[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var y=f.modn(p).toString(e);n=(f=f.idivn(p)).isZero()?y+n:c[h-y.length]+y+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],f=8191&p,y=p>>>13,m=0|a[2],g=8191&m,v=m>>>13,b=0|a[3],w=8191&b,M=b>>>13,A=0|a[4],E=8191&A,T=A>>>13,N=0|a[5],I=8191&N,k=N>>>13,L=0|a[6],x=8191&L,S=L>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,_=O>>>13,P=0|a[9],R=8191&P,B=P>>>13,U=0|s[0],W=8191&U,Q=U>>>13,Y=0|s[1],F=8191&Y,V=Y>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,ee=K>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,he=le>>>13,pe=0|s[9],fe=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(c+(r=Math.imul(d,W))|0)+((8191&(i=(i=Math.imul(d,Q))+Math.imul(h,W)|0))<<13)|0;c=((o=Math.imul(h,Q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(f,W),i=(i=Math.imul(f,Q))+Math.imul(y,W)|0,o=Math.imul(y,Q);var ge=(c+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,F)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,W),i=(i=Math.imul(g,Q))+Math.imul(v,W)|0,o=Math.imul(v,Q),r=r+Math.imul(f,F)|0,i=(i=i+Math.imul(f,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,W),i=(i=Math.imul(w,Q))+Math.imul(M,W)|0,o=Math.imul(M,Q),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,W),i=(i=Math.imul(E,Q))+Math.imul(T,W)|0,o=Math.imul(T,Q),r=r+Math.imul(w,F)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,W),i=(i=Math.imul(I,Q))+Math.imul(k,W)|0,o=Math.imul(k,Q),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(T,F)|0,o=o+Math.imul(T,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0;var Me=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(x,W),i=(i=Math.imul(x,Q))+Math.imul(S,W)|0,o=Math.imul(S,Q),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0;var Ae=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,W),i=(i=Math.imul(C,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,X)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,Q))+Math.imul(_,W)|0,o=Math.imul(_,Q),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Te=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(R,W),i=(i=Math.imul(R,Q))+Math.imul(B,W)|0,o=Math.imul(B,Q),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(_,F)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Ne=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ye)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,ye)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(B,F)|0,o=Math.imul(B,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,he)|0;var Ie=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ye)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(R,G),i=(i=Math.imul(R,q))+Math.imul(B,G)|0,o=Math.imul(B,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var ke=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,ye)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,J),i=(i=Math.imul(R,X))+Math.imul(B,J)|0,o=Math.imul(B,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(T,de)|0,o=o+Math.imul(T,he)|0;var Le=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(M,fe)|0))<<13)|0;c=((o=o+Math.imul(M,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(R,$),i=(i=Math.imul(R,ee))+Math.imul(B,$)|0,o=Math.imul(B,ee),r=r+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var xe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(T,fe)|0))<<13)|0;c=((o=o+Math.imul(T,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,ne),i=(i=Math.imul(R,re))+Math.imul(B,ne)|0,o=Math.imul(B,re),r=r+Math.imul(z,oe)|0,i=(i=i+Math.imul(z,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,he)|0;var Se=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ye)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,ye)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(R,oe),i=(i=Math.imul(R,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),r=r+Math.imul(z,ue)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,he)|0;var je=(c+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,ye)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(R,ue),i=(i=Math.imul(R,ce))+Math.imul(B,ue)|0,o=Math.imul(B,ce),r=r+Math.imul(z,de)|0,i=(i=i+Math.imul(z,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Ce=(c+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ye)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(R,de),i=(i=Math.imul(R,he))+Math.imul(B,de)|0,o=Math.imul(B,he);var De=(c+(r=r+Math.imul(z,fe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ye)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(c+(r=Math.imul(R,fe))|0)+((8191&(i=(i=Math.imul(R,ye))+Math.imul(B,fe)|0))<<13)|0;return c=((o=Math.imul(B,ye))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,u[0]=me,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=Me,u[6]=Ae,u[7]=Ee,u[8]=Te,u[9]=Ne,u[10]=Ie,u[11]=ke,u[12]=Le,u[13]=xe,u[14]=Se,u[15]=je,u[16]=Ce,u[17]=De,u[18]=Oe,0!==c&&(u[19]=c,n.length++),n};function f(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):f(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-o|d>>>o,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var f=0,y=1;0==(n.words[0]&y)&&f<26;++f,y<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(u)):(n.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,h=1;0==(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new A(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(v,g),v.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new b;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return m[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},A.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,i),h=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),f=a;0!==p.cmp(s);){for(var y=p,m=0;0!==y.cmp(s);m++)y=y.redSqr();r(m=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(54)(e))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(60);r.__exportStar(n(61),t),r.__exportStar(n(62),t)},function(e,t,n){(function(e){ +e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},i=Object.prototype,o=i.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=h(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var p={};function f(){}function y(){}function m(){}var g={};l(g,s,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(k([])));b&&b!==i&&o.call(b,s)&&(g=b);var w=m.prototype=f.prototype=Object.create(g);function M(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,n){function r(i,a,s,u){var c=h(e[i],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==t(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):n.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var i;this._invoke=function(e,t){function o(){return new n((function(n,i){r(e,t,n,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=h(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function k(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(js)),js.exports}var zs,_s={exports:{}};var Ps,Bs={exports:{}};function Rs(){return Ps||(Ps=1,function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}(Bs)),Bs.exports}var Us,Ws={exports:{}};function Qs(){return Us||(Us=1,function(e){function t(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;(0,o.default)(this,f);var a=r.autoconnect,s=void 0===a||a,u=r.reconnect,c=void 0===u||u,l=r.reconnect_interval,d=void 0===l?1e3:l,y=r.max_reconnects,m=void 0===y?5:y,g=h(r,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return(t=p.call(this)).webSocketFactory=e,t.queue={},t.rpc_id=0,t.address=n,t.autoconnect=s,t.ready=!1,t.reconnect=c,t.reconnect_timer_id=void 0,t.reconnect_interval=d,t.max_reconnects=m,t.rest_options=g,t.current_reconnects=0,t.generate_request_id=i||function(){return++t.rpc_id},t.autoconnect&&t._connect(t.address,Object.assign({autoconnect:t.autoconnect,reconnect:t.reconnect,reconnect_interval:t.reconnect_interval,max_reconnects:t.max_reconnects},t.rest_options)),t}return(0,a.default)(f,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(e,t,n,r){var o=this;return r||"object"!==(0,i.default)(n)||(r=n,n=null),new Promise((function(i,a){if(!o.ready)return a(new Error("socket not ready"));var s=o.generate_request_id(e,t),u={jsonrpc:"2.0",method:e,params:t||null,id:s};o.socket.send(JSON.stringify(u),r,(function(e){if(e)return a(e);o.queue[s]={promise:[i,a]},n&&(o.queue[s].timeout=setTimeout((function(){delete o.queue[s],a(new Error("reply timeout"))}),n))}))}))}},{key:"login",value:(l=(0,r.default)(n.default.mark((function e(t){var r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.call("rpc.login",t);case 2:if(r=e.sent){e.next=5;break}throw new Error("authentication failed");case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"listMethods",value:(c=(0,r.default)(n.default.mark((function e(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.call("__listMethods");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"notify",value:function(e,t){var n=this;return new Promise((function(r,i){if(!n.ready)return i(new Error("socket not ready"));var o={jsonrpc:"2.0",method:e,params:t||null};n.socket.send(JSON.stringify(o),(function(e){if(e)return i(e);r()}))}))}},{key:"subscribe",value:(u=(0,r.default)(n.default.mark((function e(t){var r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"string"==typeof t&&(t=[t]),e.next=3,this.call("rpc.on",t);case 3:if(r=e.sent,"string"!=typeof t||"ok"===r[t]){e.next=6;break}throw new Error("Failed subscribing to an event '"+t+"' with: "+r[t]);case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"unsubscribe",value:(t=(0,r.default)(n.default.mark((function e(t){var r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"string"==typeof t&&(t=[t]),e.next=3,this.call("rpc.off",t);case 3:if(r=e.sent,"string"!=typeof t||"ok"===r[t]){e.next=6;break}throw new Error("Failed unsubscribing from an event with: "+r);case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"close",value:function(e,t){this.socket.close(e||1e3,t)}},{key:"_connect",value:function(e,t){var n=this;clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(e,t),this.socket.addEventListener("open",(function(){n.ready=!0,n.emit("open"),n.current_reconnects=0})),this.socket.addEventListener("message",(function(e){var t=e.data;t instanceof ArrayBuffer&&(t=zt.from(t).toString());try{t=JSON.parse(t)}catch(e){return}if(t.notification&&n.listeners(t.notification).length){if(!Object.keys(t.params).length)return n.emit(t.notification);var r=[t.notification];if(t.params.constructor===Object)r.push(t.params);else for(var i=0;in.current_reconnects||0===n.max_reconnects)&&(n.reconnect_timer_id=setTimeout((function(){return n._connect(e,t)}),n.reconnect_interval)))}))}}]),f}(l.EventEmitter);e.default=p}(Ts);var su=We(Ts),uu={};!function(e){var t=Is.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){return new u(e,t)};var n=t(Rs()),r=t(Qs()),i=t(qs()),o=t(eu()),a=t(ru());function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,a.default)(e);if(t){var i=(0,a.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,o.default)(this,n)}}var u=function(e){(0,i.default)(o,e);var t=s(o);function o(e,r,i){var a;return(0,n.default)(this,o),(a=t.call(this)).socket=new window.WebSocket(e,i),a.socket.onopen=function(){return a.emit("open")},a.socket.onmessage=function(e){return a.emit("message",e.data)},a.socket.onerror=function(e){return a.emit("error",e)},a.socket.onclose=function(e){a.emit("close",e.code,e.reason)},a}return(0,r.default)(o,[{key:"send",value:function(e,t,n){var r=n||t;try{this.socket.send(e),r()}catch(e){r(e)}}},{key:"close",value:function(e,t){this.socket.close(e,t)}},{key:"addEventListener",value:function(e,t,n){this.socket.addEventListener(e,t,n)}}]),o}(au().EventEmitter)}(uu);for(var cu=We(uu),lu=[],du=[],hu=[],pu=BigInt(0),fu=BigInt(1),yu=BigInt(2),mu=BigInt(7),gu=BigInt(256),vu=BigInt(113),bu=0,wu=fu,Mu=1,Au=0;bu<24;bu++){var Eu=[Au,(2*Mu+3*Au)%5];Mu=Eu[0],Au=Eu[1],lu.push(2*(5*Au+Mu)),du.push((bu+1)*(bu+2)/2%64);for(var Nu=pu,Tu=0;Tu<7;Tu++)(wu=(wu<>mu)*vu)%gu)&yu&&(Nu^=fu<<(fu<32?Fn(e,t,n):Qn(e,t,n)},Su=function(e,t,n){return n>32?Vn(e,t,n):Yn(e,t,n)};var ju=function(e){$e(n,On);var t=ut(n);function n(e,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(Ze(this,n),(o=t.call(this)).blockLen=e,o.suffix=r,o.outputLen=i,o.enableXOF=a,o.rounds=s,o.pos=0,o.posOut=0,o.finished=!1,o.destroyed=!1,Mn(i),0>=o.blockLen||o.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return o.state=new Uint8Array(200),o.state32=kn(o.state),o}return Xe(n,[{key:"keccak",value:function(){!function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=new Uint32Array(10),r=24-t;r<24;r++){for(var i=0;i<10;i++)n[i]=e[i]^e[i+10]^e[i+20]^e[i+30]^e[i+40];for(var o=0;o<10;o+=2)for(var a=(o+8)%10,s=(o+2)%10,u=n[s],c=n[s+1],l=xu(u,c,1)^n[a],d=Su(u,c,1)^n[a+1],h=0;h<50;h+=10)e[o+h]^=l,e[o+h+1]^=d;for(var p=e[2],f=e[3],y=0;y<24;y++){var m=du[y],g=xu(p,f,m),v=Su(p,f,m),b=lu[y];p=e[b],f=e[b+1],e[b]=g,e[b+1]=v}for(var w=0;w<50;w+=10){for(var M=0;M<10;M++)n[M]=e[w+M];for(var A=0;A<10;A++)e[w+A]^=~n[(A+2)%10]&n[(A+4)%10]}e[0]^=ku[r],e[1]^=Lu[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){Nn(this);for(var t=this.blockLen,n=this.state,r=(e=Cn(e)).length,i=0;i=n&&this.keccak();var o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return Mn(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(Tn(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){var t=this.blockLen,r=this.suffix,i=this.outputLen,o=this.rounds,a=this.enableXOF;return e||(e=new n(t,r,i,a,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=r,e.outputLen=i,e.enableXOF=a,e.destroyed=this.destroyed,e}}]),n}(),Cu=function(e,t,n){return zn((function(){return new ju(t,e,n)}))}(1,136,32);var Du=vr,Ou=gr,zu={Err:function(e){$e(n,it(Error));var t=ut(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Ze(this,n),t.call(this,e)}return Xe(n)}(),_parseInt:function(e){var t=zu.Err;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");var n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(128&r[0])throw new t("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:Du(r),l:e.subarray(n+2)}},toSig:function(e){var t=zu.Err,n="string"==typeof e?Ou(e):e;if(!or(n))throw new Error("ui8a expected");var r=n.length;if(r<2||48!=n[0])throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");var i=zu._parseInt(n.subarray(2)),o=i.d,a=i.l,s=zu._parseInt(a),u=s.d;if(s.l.length)throw new t("Invalid signature: left bytes after parsing");return{r:o,s:u}},hexFromSig:function(e){var t=function(e){return 8&Number.parseInt(e[0],16)?"00"+e:e},n=function(e){var t=e.toString(16);return 1&t.length?"0".concat(t):t},r=t(n(e.s)),i=t(n(e.r)),o=r.length/2,a=i.length/2,s=n(o),u=n(a);return"30".concat(n(a+o+4),"02").concat(u).concat(i,"02").concat(s).concat(r)}},_u=BigInt(0),Pu=BigInt(1);BigInt(2);var Bu=BigInt(3);function Ru(e){var t=function(e){var t=$r(e);xr(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});var n=t.endo,r=t.Fp,i=t.a;if(n){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!==He(n)||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze(Fe({},t))}(e),n=t.Fp,r=t.toBytes||function(e,t,r){var i=t.toAffine();return Er(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))},i=t.fromBytes||function(e){var t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}};function o(e){var r=t.a,i=t.b,o=n.sqr(e),a=n.mul(o,e);return n.add(n.add(a,n.mul(e,r)),i)}if(!n.eql(n.sqr(t.Gy),o(t.Gx)))throw new Error("bad generator point: equation left != right");function a(e){return"bigint"==typeof e&&_u_u||d>_u;)c&Pu&&(h=h.add(y)),d&Pu&&(f=f.add(y)),y=y.double(),c>>=Pu,d>>=Pu;return u&&(h=h.negate()),l&&(f=f.negate()),f=new e(n.mul(f.px,o.beta),f.py,f.pz),h.add(f)}},{key:"multiply",value:function(r){s(r);var i,o,a=r,u=t.endo;if(u){var c=u.splitScalar(a),l=c.k1neg,d=c.k1,h=c.k2neg,f=c.k2,y=this.wNAF(d),m=y.p,g=y.f,v=this.wNAF(f),b=v.p,w=v.f;m=p.constTimeNegate(l,m),b=p.constTimeNegate(h,b),b=new e(n.mul(b.px,u.beta),b.py,b.pz),i=m.add(b),o=g.add(w)}else{var M=this.wNAF(a);i=M.p,o=M.f}return e.normalizeZ([i,o])[0]}},{key:"multiplyAndAddUnsafe",value:function(t,n,r){var i=e.BASE,o=function(e,t){return t!==_u&&t!==Pu&&e.equals(i)?e.multiply(t):e.multiplyUnsafe(t)},a=o(this,n).add(o(t,r));return a.is0()?void 0:a}},{key:"toAffine",value:function(e){var t=this.px,r=this.py,i=this.pz,o=this.is0();null==e&&(e=o?n.ONE:n.inv(i));var a=n.mul(t,e),s=n.mul(r,e),u=n.mul(i,e);if(o)return{x:n.ZERO,y:n.ZERO};if(!n.eql(u,n.ONE))throw new Error("invZ was invalid");return{x:a,y:s}}},{key:"isTorsionFree",value:function(){var n=t.h,r=t.isTorsionFree;if(n===Pu)return!0;if(r)return r(e,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}},{key:"clearCofactor",value:function(){var n=t.h,r=t.clearCofactor;return n===Pu?this:r?r(e,this):this.multiplyUnsafe(t.h)}},{key:"toRawBytes",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertValidity(),r(e,this,t)}},{key:"toHex",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return sr(this.toRawBytes(e))}}],[{key:"fromAffine",value:function(t){var r=t||{},i=r.x,o=r.y;if(!t||!n.isValid(i)||!n.isValid(o))throw new Error("invalid affine point");if(t instanceof e)throw new Error("projective point not allowed");var a=function(e){return n.eql(e,n.ZERO)};return a(i)&&a(o)?e.ZERO:new e(i,o,n.ONE)}},{key:"normalizeZ",value:function(t){var r=n.invertBatch(t.map((function(e){return e.pz})));return t.map((function(e,t){return e.toAffine(r[t])})).map(e.fromAffine)}},{key:"fromHex",value:function(t){var n=e.fromAffine(i(Ar("pointHex",t)));return n.assertValidity(),n}},{key:"fromPrivateKey",value:function(t){return e.BASE.multiply(u(t))}}]),e}();d.BASE=new d(t.Gx,t.Gy,n.ONE),d.ZERO=new d(n.ZERO,n.ONE,n.ZERO);var h=t.nBitLength,p=Kr(d,t.endo?Math.ceil(h/2):h);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:u,weierstrassEquation:o,isWithinCurveOrder:a}}function Uu(e){var t,n=(xr(t=$r(e),{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze(Fe({lowS:!0},t))),r=n.Fp,i=n.n,o=r.BYTES+1,a=2*r.BYTES+1;function s(e){return Br(e,i)}function u(e){return Wr(e,i)}var c=Ru(Fe(Fe({},n),{},{toBytes:function(e,t,n){var i=t.toAffine(),o=r.toBytes(i.x),a=Er;return n?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes:function(e){var t=e.length,n=e[0],i=e.subarray(1);if(t!==o||2!==n&&3!==n){if(t===a&&4===n)return{x:r.fromBytes(i.subarray(0,r.BYTES)),y:r.fromBytes(i.subarray(r.BYTES,2*r.BYTES))};throw new Error("Point of length ".concat(t," was invalid. Expected ").concat(o," compressed bytes or ").concat(a," uncompressed bytes"))}var s=vr(i);if(!(_u<(u=s)&&ui>>Pu}function m(e){return y(e)?s(-e):e}var g=function(e,t,n){return vr(e.slice(t,n))},v=function(){function e(t,n,r){Ze(this,e),this.r=t,this.s=n,this.recovery=r,this.assertValidity()}return Xe(e,[{key:"assertValidity",value:function(){if(!p(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!p(this.s))throw new Error("s must be 0 < s < CURVE.n")}},{key:"addRecoveryBit",value:function(t){return new e(this.r,this.s,t)}},{key:"recoverPublicKey",value:function(e){var t=this.r,i=this.s,o=this.recovery,a=A(Ar("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");var c=2===o||3===o?t+n.n:t;if(c>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");var d=0==(1&o)?"02":"03",h=l.fromHex(d+f(c)),p=u(c),y=s(-a*p),m=s(i*p),g=l.BASE.multiplyAndAddUnsafe(h,y,m);if(!g)throw new Error("point at infinify");return g.assertValidity(),g}},{key:"hasHighS",value:function(){return y(this.s)}},{key:"normalizeS",value:function(){return this.hasHighS()?new e(this.r,s(-this.s),this.recovery):this}},{key:"toDERRawBytes",value:function(){return gr(this.toDERHex())}},{key:"toDERHex",value:function(){return zu.hexFromSig({r:this.r,s:this.s})}},{key:"toCompactRawBytes",value:function(){return gr(this.toCompactHex())}},{key:"toCompactHex",value:function(){return f(this.r)+f(this.s)}}],[{key:"fromCompact",value:function(t){var r=n.nByteLength;return t=Ar("compactSignature",t,2*r),new e(g(t,0,r),g(t,r,2*r))}},{key:"fromDER",value:function(t){var n=zu.toSig(Ar("DER",t));return new e(n.r,n.s)}}]),e}(),b={isValidPrivateKey:function(e){try{return d(e),!0}catch(e){return!1}},normPrivateKeyToScalar:d,randomPrivateKey:function(){var e=Zr(n.n);return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.length,i=qr(t),o=Zr(t);if(r<16||r1024)throw new Error("expected ".concat(o,"-1024 bytes of input, got ").concat(r));var a=Br(n?vr(e):br(e),t-Cr)+Cr;return n?Mr(a,i):wr(a,i)}(n.randomBytes(e),n.n)},precompute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}};function w(e){var t=or(e),n="string"==typeof e,r=(t||n)&&e.length;return t?r===o||r===a:n?r===2*o||r===2*a:e instanceof l}var M=n.bits2int||function(e){var t=vr(e),r=8*e.length-n.nBitLength;return r>0?t>>BigInt(r):t},A=n.bits2int_modN||function(e){return s(M(e))},E=Nr(n.nBitLength);function N(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(_u<=e&&e2&&void 0!==arguments[2]?arguments[2]:I;if(["recovered","canonical"].some((function(e){return e in i})))throw new Error("sign() legacy options not supported");var o=n.hash,a=n.randomBytes,c=i.lowS,h=i.prehash,f=i.extraEntropy;null==c&&(c=!0),e=Ar("msgHash",e),h&&(e=Ar("prehashed msgHash",o(e)));var g=A(e),b=d(t),w=[N(b),N(g)];if(null!=f){var E=!0===f?a(r.BYTES):f;w.push(Ar("extraEntropy",E))}var T=Er.apply(Sr,w),k=g;function L(e){var t=M(e);if(p(t)){var n=u(t),r=l.BASE.multiply(t).toAffine(),i=s(r.x);if(i!==_u){var o=s(n*s(k+i*b));if(o!==_u){var a=(r.x===i?0:2)|Number(r.y&Pu),d=o;return c&&y(o)&&(d=m(o),a^=1),new v(i,d,a)}}}}return{seed:T,k2sig:L}}var I={lowS:n.lowS,prehash:!1},k={lowS:n.lowS,prehash:!1};return l.BASE._setWindowSize(8),{CURVE:n,getPublicKey:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return l.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(w(e))throw new Error("first arg must be private key");if(!w(t))throw new Error("second arg must be public key");var r=l.fromHex(t);return r.multiply(d(e)).toRawBytes(n)},sign:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I,i=T(e,t,r),o=i.seed,a=i.k2sig,s=n,u=kr(s.hash.outputLen,s.nByteLength,s.hmac);return u(o,a)},verify:function(e,t,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,a=e;if(t=Ar("msgHash",t),r=Ar("publicKey",r),"strict"in o)throw new Error("options.strict was renamed to lowS");var c,d=o.lowS,h=o.prehash,p=void 0;try{if("string"==typeof a||or(a))try{p=v.fromDER(a)}catch(e){if(!(e instanceof zu.Err))throw e;p=v.fromCompact(a)}else{if("object"!==He(a)||"bigint"!=typeof a.r||"bigint"!=typeof a.s)throw new Error("PARSE");var f=a.r,y=a.s;p=new v(f,y)}c=l.fromHex(r)}catch(e){if("PARSE"===e.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(d&&p.hasHighS())return!1;h&&(t=n.hash(t));var m=p,g=m.r,b=m.s,w=A(t),M=u(b),E=s(w*M),N=s(g*M),T=null===(i=l.BASE.multiplyAndAddUnsafe(c,E,N))||void 0===i?void 0:i.toAffine();if(!T)return!1;var I=s(T.x);return I===g},ProjectivePoint:l,Signature:v,utils:b}}BigInt(4);var Wu=function(e){$e(n,On);var t=ut(n);function n(e,r){var i;Ze(this,n),(i=t.call(this)).finished=!1,i.destroyed=!1,function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Mn(e.outputLen),Mn(e.blockLen)}(e);var o=Cn(r);if(i.iHash=e.create(),"function"!=typeof i.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");i.blockLen=i.iHash.blockLen,i.outputLen=i.iHash.outputLen;var a=i.blockLen,s=new Uint8Array(a);s.set(o.length>a?e.create().update(o).digest():o);for(var u=0;ua,h=l>a;if(d&&(c=t-c),h&&(l=t-l),c>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:c,k2neg:h,k2:l}}}},Zu=Ci,Ju=function(e){return Uu(Fe(Fe({},qu),function(e){return{hash:e,hmac:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i32)throw new Error("Invalid public key input")}return t}return Xe(a,[{key:"equals",value:function(e){return this._bn.eq(e._bn)}},{key:"toBase58",value:function(){return Ii.encode(this.toBytes())}},{key:"toJSON",value:function(){return this.toBase58()}},{key:"toBytes",value:function(){var e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}},{key:"toBuffer",value:function(){var e=this._bn.toArrayLike(zt);if(32===e.length)return e;var t=zt.alloc(32);return e.copy(t,32-e.length),t}},{key:t,get:function(){return"PublicKey(".concat(this.toString(),")")}},{key:"toString",value:function(){return this.toBase58()}}],[{key:"unique",value:function(){var e=new a(fc);return fc+=1,new a(e.toBuffer())}},{key:"createWithSeed",value:(i=qe(Ve().mark((function e(t,n,r){var i,o;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=zt.concat([t.toBuffer(),zt.from(n),r.toBuffer()]),o=Ci(i),e.abrupt("return",new a(o));case 3:case"end":return e.stop()}}),e)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"createProgramAddressSync",value:function(e,t){var n=zt.alloc(0);e.forEach((function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");n=zt.concat([n,lc(e)])})),n=zt.concat([n,t.toBuffer(),zt.from("ProgramDerivedAddress")]);var r=Ci(n);if(ac(r))throw new Error("Invalid seeds, address must fall off the curve");return new a(r)}},{key:"createProgramAddress",value:(r=qe(Ve().mark((function e(t,n){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.createProgramAddressSync(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"findProgramAddressSync",value:function(e,t){for(var n,r=255;0!=r;){try{var i=e.concat(zt.from([r]));n=this.createProgramAddressSync(i,t)}catch(e){if(e instanceof TypeError)throw e;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}},{key:"findProgramAddress",value:(n=qe(Ve().mark((function e(t,n){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.findProgramAddressSync(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"isOnCurve",value:function(e){return ac(new a(e).toBytes())}}]),a}(0,Symbol.toStringTag);sc=yc,yc.default=new sc("11111111111111111111111111111111"),pc.set(yc,{kind:"struct",fields:[["_bn","u256"]]});var mc=function(){function e(t){if(Ze(this,e),this._publicKey=void 0,this._secretKey=void 0,t){var n=lc(t);if(64!==t.length)throw new Error("bad secret key size");this._publicKey=n.slice(32,64),this._secretKey=n.slice(0,32)}else this._secretKey=lc(rc()),this._publicKey=lc(oc(this._secretKey))}return Xe(e,[{key:"publicKey",get:function(){return new yc(this._publicKey)}},{key:"secretKey",get:function(){return zt.concat([this._secretKey,this._publicKey],64)}}]),e}(),gc=new yc("BPFLoader1111111111111111111111111111111111"),vc=function(e){$e(n,it(Error));var t=ut(n);function n(e){var r;return Ze(this,n),(r=t.call(this,"Signature ".concat(e," has expired: block height exceeded."))).signature=void 0,r.signature=e,r}return Xe(n)}();Object.defineProperty(vc.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});var bc=function(e){$e(n,it(Error));var t=ut(n);function n(e,r){var i;return Ze(this,n),(i=t.call(this,"Transaction was not confirmed in ".concat(r.toFixed(2)," seconds. It is ")+"unknown if it succeeded or failed. Check signature "+"".concat(e," using the Solana Explorer or CLI tools."))).signature=void 0,i.signature=e,i}return Xe(n)}();Object.defineProperty(bc.prototype,"name",{value:"TransactionExpiredTimeoutError"});var wc=function(e){$e(n,it(Error));var t=ut(n);function n(e){var r;return Ze(this,n),(r=t.call(this,"Signature ".concat(e," has expired: the nonce is no longer valid."))).signature=void 0,r.signature=e,r}return Xe(n)}();Object.defineProperty(wc.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});var Mc=function(){function e(t,n){Ze(this,e),this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=n}return Xe(e,[{key:"keySegments",value:function(){var e=[this.staticAccountKeys];return this.accountKeysFromLookups&&(e.push(this.accountKeysFromLookups.writable),e.push(this.accountKeysFromLookups.readonly)),e}},{key:"get",value:function(e){var t,n=vt(this.keySegments());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e256)throw new Error("Account index overflow encountered during compilation");var t=new Map;this.keySegments().flat().forEach((function(e,n){t.set(e.toBase58(),n)}));var n=function(e){var n=t.get(e.toBase58());if(void 0===n)throw new Error("Encountered an unknown instruction account key during compilation");return n};return e.map((function(e){return{programIdIndex:n(e.programId),accountKeyIndexes:e.keys.map((function(e){return n(e.pubkey)})),data:e.data}}))}}]),e}(),Ac=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return ua(32,e)},Ec=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"signature";return ua(64,e)},Nc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",t=aa([ra("length"),ra("lengthPadding"),ua(ea(ra(),-8),"chars")],e),n=t.decode.bind(t),r=t.encode.bind(t),i=t;return i.decode=function(e,t){return n(e,t).chars.toString()},i.encode=function(e,t,n){var i={chars:zt.from(e,"utf8")};return r(i,t,n)},i.alloc=function(e){return ra().span+ra().span+zt.from(e,"utf8").length},i};function Tc(e,t){var n=function e(n){if(n.span>=0)return n.span;if("function"==typeof n.alloc)return n.alloc(t[n.property]);if("count"in n&&"elementLayout"in n){var r=t[n.property];if(Array.isArray(r))return r.length*e(n.elementLayout)}else if("fields"in n)return Tc({layout:n},t[n.property]);return 0},r=0;return e.layout.fields.forEach((function(e){r+=n(e)})),r}function Ic(e){for(var t=0,n=0;;){var r=e.shift();if(t|=(127&r)<<7*n,n+=1,0==(128&r))break}return t}function kc(e,t){for(var n=t;;){var r=127&n;if(0==(n>>=7)){e.push(r);break}r|=128,e.push(r)}}function Lc(e,t){if(!e)throw new Error(t||"Assertion failed")}var xc=function(){function e(t,n){Ze(this,e),this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=n}return Xe(e,[{key:"getMessageComponents",value:function(){var e=ht(this.keyMetaMap.entries());Lc(e.length<=256,"Max static account keys length exceeded");var t=e.filter((function(e){var t=dt(e,2)[1];return t.isSigner&&t.isWritable})),n=e.filter((function(e){var t=dt(e,2)[1];return t.isSigner&&!t.isWritable})),r=e.filter((function(e){var t=dt(e,2)[1];return!t.isSigner&&t.isWritable})),i=e.filter((function(e){var t=dt(e,2)[1];return!t.isSigner&&!t.isWritable})),o={numRequiredSignatures:t.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:i.length};return Lc(t.length>0,"Expected at least one writable signer key"),Lc(dt(t[0],1)[0]===this.payer.toBase58(),"Expected first writable signer key to be the fee payer"),[o,[].concat(ht(t.map((function(e){var t=dt(e,1)[0];return new yc(t)}))),ht(n.map((function(e){var t=dt(e,1)[0];return new yc(t)}))),ht(r.map((function(e){var t=dt(e,1)[0];return new yc(t)}))),ht(i.map((function(e){var t=dt(e,1)[0];return new yc(t)}))))]}},{key:"extractTableLookup",value:function(e){var t=dt(this.drainKeysFoundInLookupTable(e.state.addresses,(function(e){return!e.isSigner&&!e.isInvoked&&e.isWritable})),2),n=t[0],r=t[1],i=dt(this.drainKeysFoundInLookupTable(e.state.addresses,(function(e){return!e.isSigner&&!e.isInvoked&&!e.isWritable})),2),o=i[0],a=i[1];if(0!==n.length||0!==o.length)return[{accountKey:e.key,writableIndexes:n,readonlyIndexes:o},{writable:r,readonly:a}]}},{key:"drainKeysFoundInLookupTable",value:function(e,t){var n,r=this,i=new Array,o=new Array,a=vt(this.keyMetaMap.entries());try{var s=function(){var a=dt(n.value,2),s=a[0],u=a[1];if(t(u)){var c=new yc(s),l=e.findIndex((function(e){return e.equals(c)}));l>=0&&(Lc(l<256,"Max lookup table index exceeded"),i.push(l),o.push(c),r.keyMetaMap.delete(s))}};for(a.s();!(n=a.n()).done;)s()}catch(e){a.e(e)}finally{a.f()}return[i,o]}}],[{key:"compile",value:function(t,n){var r=new Map,i=function(e){var t=e.toBase58(),n=r.get(t);return void 0===n&&(n={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(t,n)),n},o=i(n);o.isSigner=!0,o.isWritable=!0;var a,s=vt(t);try{for(s.s();!(a=s.n()).done;){var u=a.value;i(u.programId).isInvoked=!0;var c,l=vt(u.keys);try{for(l.s();!(c=l.n()).done;){var d=c.value,h=i(d.pubkey);h.isSigner||(h.isSigner=d.isSigner),h.isWritable||(h.isWritable=d.isWritable)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){s.e(e)}finally{s.f()}return new e(n,r)}}]),e}(),Sc=function(){function e(t){var n=this;Ze(this,e),this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map((function(e){return new yc(e)})),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach((function(e){return n.indexToProgramIds.set(e.programIdIndex,n.accountKeys[e.programIdIndex])}))}return Xe(e,[{key:"version",get:function(){return"legacy"}},{key:"staticAccountKeys",get:function(){return this.accountKeys}},{key:"compiledInstructions",get:function(){return this.instructions.map((function(e){return{programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:Ii.decode(e.data)}}))}},{key:"addressTableLookups",get:function(){return[]}},{key:"getAccountKeys",value:function(){return new Mc(this.staticAccountKeys)}},{key:"isAccountSigner",value:function(e){return e=this.header.numRequiredSignatures?e-t0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new Mc(this.staticAccountKeys,t)}},{key:"isAccountSigner",value:function(e){return e=n){var r=e-n,i=this.addressTableLookups.reduce((function(e,t){return e+t.writableIndexes.length}),0);return r=this.header.numRequiredSignatures?e-t0?this.signatures[0].signature:null}},{key:"toJSON",value:function(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((function(e){return e.toJSON()})),signers:this.signatures.map((function(e){return e.publicKey.toJSON()}))}}},{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(var r=0;r-1?(a[n].isWritable=a[n].isWritable||e.isWritable,a[n].isSigner=a[n].isSigner||e.isSigner):a.push(e)})),a.sort((function(e,t){if(e.isSigner!==t.isSigner)return e.isSigner?-1:1;if(e.isWritable!==t.isWritable)return e.isWritable?-1:1;return e.pubkey.toBase58().localeCompare(t.pubkey.toBase58(),"en",{localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"})}));var s=a.findIndex((function(e){return e.pubkey.equals(n)}));if(s>-1){var u=dt(a.splice(s,1),1)[0];u.isSigner=!0,u.isWritable=!0,a.unshift(u)}else a.unshift({pubkey:n,isSigner:!0,isWritable:!0});var c,l=vt(this.signatures);try{var d=function(){var e=c.value,t=a.findIndex((function(t){return t.pubkey.equals(e.publicKey)}));if(!(t>-1))throw new Error("unknown signer: ".concat(e.publicKey.toString()));a[t].isSigner||(a[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))};for(l.s();!(c=l.n()).done;)d()}catch(e){l.e(e)}finally{l.f()}var h=0,p=0,f=0,y=[],m=[];a.forEach((function(e){var t=e.pubkey,n=e.isSigner,r=e.isWritable;n?(y.push(t.toString()),h+=1,r||(p+=1)):(m.push(t.toString()),r||(f+=1))}));var g=y.concat(m),v=t.map((function(e){var t=e.data,n=e.programId;return{programIdIndex:g.indexOf(n.toString()),accounts:e.keys.map((function(e){return g.indexOf(e.pubkey.toString())})),data:Ii.encode(t)}}));return v.forEach((function(e){Lc(e.programIdIndex>=0),e.accounts.forEach((function(e){return Lc(e>=0)}))})),new Sc({header:{numRequiredSignatures:h,numReadonlySignedAccounts:p,numReadonlyUnsignedAccounts:f},accountKeys:g,recentBlockhash:e,instructions:v})}},{key:"_compile",value:function(){var e=this.compileMessage(),t=e.accountKeys.slice(0,e.header.numRequiredSignatures);if(this.signatures.length===t.length){var n=this.signatures.every((function(e,n){return t[n].equals(e.publicKey)}));if(n)return e}return this.signatures=t.map((function(e){return{signature:null,publicKey:e}})),e}},{key:"serializeMessage",value:function(){return this._compile().serialize()}},{key:"getEstimatedFee",value:(t=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFeeForMessage(this.compileMessage());case 2:return e.abrupt("return",e.sent.value);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"setSigners",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),o=1;o ").concat(1232)),i}},{key:"keys",get:function(){return Lc(1===this.instructions.length),this.instructions[0].keys.map((function(e){return e.pubkey}))}},{key:"programId",get:function(){return Lc(1===this.instructions.length),this.instructions[0].programId}},{key:"data",get:function(){return Lc(1===this.instructions.length),this.instructions[0].data}}],[{key:"from",value:function(t){for(var n=ht(t),r=Ic(n),i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:[],r=new e;return r.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(r.feePayer=t.accountKeys[0]),n.forEach((function(e,n){var i={signature:e==Ii.encode(Oc)?null:Ii.decode(e),publicKey:t.accountKeys[n]};r.signatures.push(i)})),t.instructions.forEach((function(e){var n=e.accounts.map((function(e){var n=t.accountKeys[e];return{pubkey:n,isSigner:r.signatures.some((function(e){return e.publicKey.toString()===n.toString()}))||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}}));r.instructions.push(new zc({keys:n,programId:t.accountKeys[e.programIdIndex],data:Ii.decode(e.data)}))})),r._message=t,r._json=r.toJSON(),r}}]),e}(),Pc=function(){function e(t){Ze(this,e),this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=t.payerKey,this.instructions=t.instructions,this.recentBlockhash=t.recentBlockhash}return Xe(e,[{key:"compileToLegacyMessage",value:function(){return Sc.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}},{key:"compileToV0Message",value:function(e){return jc.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:e})}}],[{key:"decompile",value:function(t,n){var r=t.header,i=t.compiledInstructions,o=t.recentBlockhash,a=r.numRequiredSignatures,s=r.numReadonlySignedAccounts,u=r.numReadonlyUnsignedAccounts,c=a-s;Lc(c>0,"Message header is invalid");var l=t.staticAccountKeys.length-a-u;Lc(l>=0,"Message header is invalid");var d=t.getAccountKeys(n),h=d.get(0);if(void 0===h)throw new Error("Failed to decompile message because no account keys were found");var p,f=[],y=vt(i);try{for(y.s();!(p=y.n()).done;){var m,g=p.value,v=[],b=vt(g.accountKeyIndexes);try{for(b.s();!(m=b.n()).done;){var w=m.value,M=d.get(w);if(void 0===M)throw new Error("Failed to find key for account key index ".concat(w));var A=void 0;A=w=0,"Cannot sign with non signer key ".concat(e.publicKey.toBase58())),n.signatures[o]=uc(r,e.secretKey)};for(o.s();!(t=o.n()).done;)a()}catch(e){o.e(e)}finally{o.f()}}},{key:"addSignature",value:function(e,t){Lc(64===t.byteLength,"Signature must be 64 bytes long");var n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex((function(t){return t.equals(e)}));Lc(n>=0,"Can not add signature; `".concat(e.toBase58(),"` is not required to sign this transaction")),this.signatures[n]=t}}],[{key:"deserialize",value:function(t){for(var n=ht(t),r=[],i=Ic(n),o=0;o=0?e.layout.span:Tc(e,t),r=zt.alloc(n),i=Object.assign({instruction:e.index},t);return e.layout.encode(i,r),r}function Kc(e,t){var n;try{n=e.layout.decode(t)}catch(e){throw new Error("invalid instruction; "+e)}if(n.instruction!==e.index)throw new Error("invalid instruction; instruction index mismatch ".concat(n.instruction," != ").concat(e.index));return n}var $c,el=ia("lamportsPerSignature"),tl=aa([ra("version"),ra("state"),Ac("authorizedPubkey"),Ac("nonce"),aa([el],"feeCalculator")]),nl=tl.span,rl=function(){function e(t){Ze(this,e),this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}return Xe(e,null,[{key:"fromAccountData",value:function(t){var n=tl.decode(lc(t),0);return new e({authorizedPubkey:new yc(n.authorizedPubkey),nonce:new yc(n.nonce).toString(),feeCalculator:n.feeCalculator})}}]),e}(),il=($c=8,function(e){var t=ua($c,e),n=function(e){return{decode:e.decode.bind(e),encode:e.encode.bind(e)}}(t),r=n.encode,i=n.decode,o=t;return o.decode=function(e,t){var n=i(e,t);return la(zt.from(n))},o.encode=function(e,t,n){var i=da(e,$c);return r(i,t,n)},o}),ol=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=ra("instruction").decode(e.data),r=0,i=Object.entries(al);r0?s:1,space:a.length,programId:o}));case 17:if(null===c){t.next=20;break}return t.next=20,qc(n,c,[r,i],{commitment:"confirmed"});case 20:l=aa([ra("instruction"),ra("offset"),ra("bytesLength"),ra("bytesLengthPadding"),sa(ta("byte"),ea(ra(),-8),"bytes")]),d=e.chunkSize,h=0,p=a,f=[];case 25:if(!(p.length>0)){t.next=39;break}if(y=p.slice(0,d),m=zt.alloc(d+16),l.encode({instruction:0,offset:h,bytes:y,bytesLength:0,bytesLengthPadding:0},m),g=(new _c).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:m}),f.push(qc(n,g,[r,i],{commitment:"confirmed"})),!n._rpcEndpoint.includes("solana.com")){t.next=35;break}return t.next=35,Jc(250);case 35:h+=d,p=p.slice(d),t.next=25;break;case 39:return t.next=41,Promise.all(f);case 41:return v=aa([ra("instruction")]),b=zt.alloc(v.span),v.encode({instruction:1},b),w=(new _c).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0},{pubkey:Yc,isSigner:!1,isWritable:!1}],programId:o,data:b}),M="processed",t.next=48,n.sendTransaction(w,[r,i],{preflightCommitment:M});case 48:return A=t.sent,t.next=51,n.confirmTransaction({signature:A,lastValidBlockHeight:w.lastValidBlockHeight,blockhash:w.recentBlockhash},M);case 51:if(E=t.sent,N=E.context,!(T=E.value).err){t.next=56;break}throw new Error("Transaction ".concat(A," failed (").concat(JSON.stringify(T),")"));case 56:return t.prev=57,t.next=60,n.getSlot({commitment:M});case 60:if(!(t.sent>N.slot)){t.next=63;break}return t.abrupt("break",71);case 63:t.next=67;break;case 65:t.prev=65,t.t0=t.catch(57);case 67:return t.next=69,new Promise((function(e){return setTimeout(e,Math.round(200))}));case 69:t.next=56;break;case 71:return t.abrupt("return",!0);case 72:case"end":return t.stop()}}),t,null,[[57,65]])}))),function(e,n,r,i,o){return t.apply(this,arguments)})}]),e}();ul.chunkSize=932;var cl=new yc("BPFLoader2111111111111111111111111111111111"),ll=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"getMinNumSignatures",value:function(e){return ul.getMinNumSignatures(e)}},{key:"load",value:function(e,t,n,r,i){return ul.load(e,t,n,i,r)}}]),e}();function dl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hl=Object.prototype.toString,pl=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function fl(e,t){var n,r,i,o,a,s,u;if(!0===e)return"true";if(!1===e)return"false";switch(He(e)){case"object":if(null===e)return null;if(e.toJSON&&"function"==typeof e.toJSON)return fl(e.toJSON(),t);if("[object Array]"===(u=hl.call(e))){for(i="[",r=e.length-1,n=0;n-1&&(i+=fl(e[n],!0)),i+"]"}if("[object Object]"===u){for(r=(o=pl(e).sort()).length,i="",n=0;n1;)e/=2,t++;return t}var gl=function(){function e(t,n,r,i,o){Ze(this,e),this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=n,this.warmup=r,this.firstNormalEpoch=i,this.firstNormalSlot=o}return Xe(e,[{key:"getEpoch",value:function(e){return this.getEpochAndSlotIndex(e)[0]}},{key:"getEpochAndSlotIndex",value:function(e){if(e>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,1+(e|=e>>32))}(e+32+1))-ml(32)-1;return[t,e-(this.getSlotsInEpoch(t)-32)]}var n=e-this.firstNormalSlot,r=Math.floor(n/this.slotsPerEpoch);return[this.firstNormalEpoch+r,n%this.slotsPerEpoch]}},{key:"getFirstSlotInEpoch",value:function(e){return e<=this.firstNormalEpoch?32*(Math.pow(2,e)-1):(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}},{key:"getLastSlotInEpoch",value:function(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}},{key:"getSlotsInEpoch",value:function(e){return e0&&(i.until=a.signatures[a.signatures.length-1].toString()),e.next=22;break;case 15:if(e.prev=15,e.t0=e.catch(8),!(e.t0 instanceof Error&&e.t0.message.includes("skipped"))){e.next=21;break}return e.abrupt("continue",4);case 21:throw e.t0;case 22:e.next=4;break;case 24:return e.next=26,this.getSlot("finalized");case 26:s=e.sent;case 27:if("before"in i){e.next=47;break}if(!(++r>s)){e.next=31;break}return e.abrupt("break",47);case 31:return e.prev=31,e.next=34,this.getConfirmedBlockSignatures(r);case 34:(u=e.sent).signatures.length>0&&(i.before=u.signatures[u.signatures.length-1].toString()),e.next=45;break;case 38:if(e.prev=38,e.t1=e.catch(31),!(e.t1 instanceof Error&&e.t1.message.includes("skipped"))){e.next=44;break}return e.abrupt("continue",27);case 44:throw e.t1;case 45:e.next=27;break;case 47:return e.next=49,this.getConfirmedSignaturesForAddress2(t,i);case 49:return c=e.sent,e.abrupt("return",c.map((function(e){return e.signature})));case 51:case"end":return e.stop()}}),e,this,[[8,15],[31,38]])}))),function(e,t,n){return E.apply(this,arguments)})},{key:"getConfirmedSignaturesForAddress2",value:(A=qe(Ve().mark((function e(t,n,r){var i,o,a;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._buildArgsAtLeastConfirmed([t.toBase58()],r,void 0,n),e.next=3,this._rpcRequest("getConfirmedSignaturesForAddress2",i);case 3:if(o=e.sent,!("error"in(a=Ta(o,fd)))){e.next=7;break}throw new bl(a.error,"failed to get confirmed signatures for address");case 7:return e.abrupt("return",a.result);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return A.apply(this,arguments)})},{key:"getSignaturesForAddress",value:(M=qe(Ve().mark((function e(t,n,r){var i,o,a;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._buildArgsAtLeastConfirmed([t.toBase58()],r,void 0,n),e.next=3,this._rpcRequest("getSignaturesForAddress",i);case 3:if(o=e.sent,!("error"in(a=Ta(o,yd)))){e.next=7;break}throw new bl(a.error,"failed to get signatures for address");case 7:return e.abrupt("return",a.result);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return M.apply(this,arguments)})},{key:"getAddressLookupTable",value:(w=qe(Ve().mark((function e(t,n){var r,i,o,a;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfoAndContext(t,n);case 2:return r=e.sent,i=r.context,o=r.value,a=null,null!==o&&(a=new Al({key:t,state:Al.deserialize(o.data)})),e.abrupt("return",{context:i,value:a});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return w.apply(this,arguments)})},{key:"getNonceAndContext",value:(b=qe(Ve().mark((function e(t,n){var r,i,o,a;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfoAndContext(t,n);case 2:return r=e.sent,i=r.context,o=r.value,a=null,null!==o&&(a=rl.fromAccountData(o.data)),e.abrupt("return",{context:i,value:a});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return b.apply(this,arguments)})},{key:"getNonce",value:(v=qe(Ve().mark((function e(t,n){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNonceAndContext(t,n).then((function(e){return e.value})).catch((function(e){throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"requestAirdrop",value:(g=qe(Ve().mark((function e(t,n){var r,i;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("requestAirdrop",[t.toBase58(),n]);case 2:if(r=e.sent,!("error"in(i=Ta(r,sh)))){e.next=6;break}throw new bl(i.error,"airdrop to ".concat(t.toBase58()," failed"));case 6:return e.abrupt("return",i.result);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"_blockhashWithExpiryBlockHeight",value:(m=qe(Ve().mark((function e(t){var n,r;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=10;break}case 1:if(!this._pollingBlockhash){e.next=6;break}return e.next=4,Jc(100);case 4:e.next=1;break;case 6:if(n=Date.now()-this._blockhashInfo.lastFetch,r=n>=3e4,null===this._blockhashInfo.latestBlockhash||r){e.next=10;break}return e.abrupt("return",this._blockhashInfo.latestBlockhash);case 10:return e.next=12,this._pollNewBlockhash();case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"_pollNewBlockhash",value:(y=qe(Ve().mark((function e(){var t,n,r,i,o;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._pollingBlockhash=!0,e.prev=1,t=Date.now(),n=this._blockhashInfo.latestBlockhash,r=n?n.blockhash:null,i=0;case 6:if(!(i<50)){e.next=18;break}return e.next=9,this.getLatestBlockhash("finalized");case 9:if(o=e.sent,r===o.blockhash){e.next=13;break}return this._blockhashInfo={latestBlockhash:o,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},e.abrupt("return",o);case 13:return e.next=15,Jc(200);case 15:i++,e.next=6;break;case 18:throw new Error("Unable to obtain a new blockhash after ".concat(Date.now()-t,"ms"));case 19:return e.prev=19,this._pollingBlockhash=!1,e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[1,,19,22]])}))),function(){return y.apply(this,arguments)})},{key:"getStakeMinimumDelegation",value:(f=qe(Ve().mark((function e(t){var n,r,i,o,a,s;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Ll(t),r=n.commitment,i=n.config,o=this._buildArgs([],r,"base64",i),e.next=4,this._rpcRequest("getStakeMinimumDelegation",o);case 4:if(a=e.sent,!("error"in(s=Ta(a,Cl(Oa()))))){e.next=8;break}throw new bl(s.error,"failed to get stake minimum delegation");case 8:return e.abrupt("return",s.result);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"simulateTransaction",value:(p=qe(Ve().mark((function e(t,n,r){var i,o,a,s,u,c,l,d,h,p,f,y,m,g,v,b,w,M,A,E,N,T,I,k,L,x;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("message"in t)){e.next=17;break}if(i=t.serialize(),o=zt.from(i).toString("base64"),!Array.isArray(n)&&void 0===r){e.next=6;break}throw new Error("Invalid arguments");case 6:return(a=n||{}).encoding="base64","commitment"in a||(a.commitment=this.commitment),s=[o,a],e.next=12,this._rpcRequest("simulateTransaction",s);case 12:if(u=e.sent,!("error"in(c=Ta(u,Hl)))){e.next=16;break}throw new Error("failed to simulate transaction: "+c.error.message);case 16:return e.abrupt("return",c.result);case 17:if(t instanceof _c?(d=t,(l=new _c).feePayer=d.feePayer,l.instructions=t.instructions,l.nonceInfo=d.nonceInfo,l.signatures=d.signatures):(l=_c.populate(t))._message=l._json=void 0,void 0===n||Array.isArray(n)){e.next=20;break}throw new Error("Invalid arguments");case 20:if(h=n,!l.nonceInfo||!h){e.next=25;break}(p=l).sign.apply(p,ht(h)),e.next=45;break;case 25:f=this._disableBlockhashCaching;case 26:return e.next=28,this._blockhashWithExpiryBlockHeight(f);case 28:if(m=e.sent,l.lastValidBlockHeight=m.lastValidBlockHeight,l.recentBlockhash=m.blockhash,h){e.next=33;break}return e.abrupt("break",45);case 33:if((y=l).sign.apply(y,ht(h)),l.signature){e.next=36;break}throw new Error("!signature");case 36:if(g=l.signature.toString("base64"),this._blockhashInfo.simulatedSignatures.includes(g)||this._blockhashInfo.transactionSignatures.includes(g)){e.next=42;break}return this._blockhashInfo.simulatedSignatures.push(g),e.abrupt("break",45);case 42:f=!0;case 43:e.next=26;break;case 45:return v=l._compile(),b=v.serialize(),w=l._serialize(b),M=w.toString("base64"),A={encoding:"base64",commitment:this.commitment},r&&(E=(Array.isArray(r)?r:v.nonProgramIds()).map((function(e){return e.toBase58()})),A.accounts={encoding:"base64",addresses:E}),h&&(A.sigVerify=!0),N=[M,A],e.next=55,this._rpcRequest("simulateTransaction",N);case 55:if(T=e.sent,!("error"in(I=Ta(T,Hl)))){e.next=60;break}throw"data"in I.error&&(k=I.error.data.logs)&&Array.isArray(k)&&(x=(L="\n ")+k.join(L),console.error(I.error.message,x)),new vl("failed to simulate transaction: "+I.error.message,k);case 60:return e.abrupt("return",I.result);case 61:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return p.apply(this,arguments)})},{key:"sendTransaction",value:(h=qe(Ve().mark((function e(t,n,r){var i,o,a,s,u,c;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("version"in t)){e.next=7;break}if(!n||!Array.isArray(n)){e.next=3;break}throw new Error("Invalid arguments");case 3:return i=t.serialize(),e.next=6,this.sendRawTransaction(i,n);case 6:return e.abrupt("return",e.sent);case 7:if(void 0!==n&&Array.isArray(n)){e.next=9;break}throw new Error("Invalid arguments");case 9:if(o=n,!t.nonceInfo){e.next=14;break}t.sign.apply(t,ht(o)),e.next=32;break;case 14:a=this._disableBlockhashCaching;case 15:return e.next=17,this._blockhashWithExpiryBlockHeight(a);case 17:if(s=e.sent,t.lastValidBlockHeight=s.lastValidBlockHeight,t.recentBlockhash=s.blockhash,t.sign.apply(t,ht(o)),t.signature){e.next=23;break}throw new Error("!signature");case 23:if(u=t.signature.toString("base64"),this._blockhashInfo.transactionSignatures.includes(u)){e.next=29;break}return this._blockhashInfo.transactionSignatures.push(u),e.abrupt("break",32);case 29:a=!0;case 30:e.next=15;break;case 32:return c=t.serialize(),e.next=35,this.sendRawTransaction(c,r);case 35:return e.abrupt("return",e.sent);case 36:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return h.apply(this,arguments)})},{key:"sendRawTransaction",value:(d=qe(Ve().mark((function e(t,n){var r,i;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=lc(t).toString("base64"),e.next=3,this.sendEncodedTransaction(r,n);case 3:return i=e.sent,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"sendEncodedTransaction",value:(l=qe(Ve().mark((function e(t,n){var r,i,o,a,s,u,c;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={encoding:"base64"},i=n&&n.skipPreflight,o=n&&n.preflightCommitment||this.commitment,n&&null!=n.maxRetries&&(r.maxRetries=n.maxRetries),n&&null!=n.minContextSlot&&(r.minContextSlot=n.minContextSlot),i&&(r.skipPreflight=i),o&&(r.preflightCommitment=o),a=[t,r],e.next=10,this._rpcRequest("sendTransaction",a);case 10:if(s=e.sent,!("error"in(u=Ta(s,uh)))){e.next=15;break}throw"data"in u.error&&(c=u.error.data.logs),new vl("failed to send transaction: "+u.error.message,c);case 15:return e.abrupt("return",u.result);case 16:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"_wsOnOpen",value:function(){var e=this;this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((function(){qe(Ve().mark((function t(){return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._rpcWebSocket.notify("ping");case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])})))()}),5e3),this._updateSubscriptions()}},{key:"_wsOnError",value:function(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}},{key:"_wsOnClose",value:function(e){var t=this;this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==e?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((function(e){var n=dt(e,2),r=n[0],i=n[1];t._setSubscription(r,Fe(Fe({},i),{},{state:"pending"}))}))):this._updateSubscriptions()}},{key:"_setSubscription",value:function(e,t){var n,r=null===(n=this._subscriptionsByHash[e])||void 0===n?void 0:n.state;if(this._subscriptionsByHash[e]=t,r!==t.state){var i=this._subscriptionStateChangeCallbacksByHash[e];i&&i.forEach((function(e){try{e(t.state)}catch(e){}}))}}},{key:"_onSubscriptionStateChange",value:function(e,t){var n,r=this,i=this._subscriptionHashByClientSubscriptionId[e];if(null==i)return function(){};var o=(n=this._subscriptionStateChangeCallbacksByHash)[i]||(n[i]=new Set);return o.add(t),function(){o.delete(t),0===o.size&&delete r._subscriptionStateChangeCallbacksByHash[i]}}},{key:"_updateSubscriptions",value:(c=qe(Ve().mark((function e(){var t,n,r=this;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==Object.keys(this._subscriptionsByHash).length){e.next=3;break}return this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((function(){r._rpcWebSocketIdleTimeout=null;try{r._rpcWebSocket.close()}catch(e){e instanceof Error&&console.log("Error when closing socket connection: ".concat(e.message))}}),500)),e.abrupt("return");case 3:if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),this._rpcWebSocketConnected){e.next=7;break}return this._rpcWebSocket.connect(),e.abrupt("return");case 7:return t=this._rpcWebSocketGeneration,n=function(){return t===r._rpcWebSocketGeneration},e.next=11,Promise.all(Object.keys(this._subscriptionsByHash).map(function(){var e=qe(Ve().mark((function e(t){var i;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(i=r._subscriptionsByHash[t])){e.next=3;break}return e.abrupt("return");case 3:e.t0=i.state,e.next="pending"===e.t0||"unsubscribed"===e.t0?6:"subscribed"===e.t0?15:19;break;case 6:if(0!==i.callbacks.size){e.next=12;break}return delete r._subscriptionsByHash[t],"unsubscribed"===i.state&&delete r._subscriptionCallbacksByServerSubscriptionId[i.serverSubscriptionId],e.next=11,r._updateSubscriptions();case 11:return e.abrupt("return");case 12:return e.next=14,qe(Ve().mark((function e(){var o,a,s;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=i.args,a=i.method,e.prev=1,r._setSubscription(t,Fe(Fe({},i),{},{state:"subscribing"})),e.next=5,r._rpcWebSocket.call(a,o);case 5:return s=e.sent,r._setSubscription(t,Fe(Fe({},i),{},{serverSubscriptionId:s,state:"subscribed"})),r._subscriptionCallbacksByServerSubscriptionId[s]=i.callbacks,e.next=10,r._updateSubscriptions();case 10:e.next=20;break;case 12:if(e.prev=12,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("".concat(a," error for argument"),o,e.t0.message),n()){e.next=17;break}return e.abrupt("return");case 17:return r._setSubscription(t,Fe(Fe({},i),{},{state:"pending"})),e.next=20,r._updateSubscriptions();case 20:case"end":return e.stop()}}),e,null,[[1,12]])})))();case 14:case 18:return e.abrupt("break",19);case 15:if(0!==i.callbacks.size){e.next=18;break}return e.next=18,qe(Ve().mark((function e(){var o,a;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=i.serverSubscriptionId,a=i.unsubscribeMethod,!r._subscriptionsAutoDisposedByRpc.has(o)){e.next=5;break}r._subscriptionsAutoDisposedByRpc.delete(o),e.next=21;break;case 5:return r._setSubscription(t,Fe(Fe({},i),{},{state:"unsubscribing"})),r._setSubscription(t,Fe(Fe({},i),{},{state:"unsubscribing"})),e.prev=7,e.next=10,r._rpcWebSocket.call(a,[o]);case 10:e.next=21;break;case 12:if(e.prev=12,e.t0=e.catch(7),e.t0 instanceof Error&&console.error("".concat(a," error:"),e.t0.message),n()){e.next=17;break}return e.abrupt("return");case 17:return r._setSubscription(t,Fe(Fe({},i),{},{state:"subscribed"})),e.next=20,r._updateSubscriptions();case 20:return e.abrupt("return");case 21:return r._setSubscription(t,Fe(Fe({},i),{},{state:"unsubscribed"})),e.next=24,r._updateSubscriptions();case 24:case"end":return e.stop()}}),e,null,[[7,12]])})))();case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 11:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"_handleServerNotification",value:function(e,t){var n=this._subscriptionCallbacksByServerSubscriptionId[e];void 0!==n&&n.forEach((function(e){try{e.apply(void 0,ht(t))}catch(e){console.error(e)}}))}},{key:"_wsOnAccountNotification",value:function(e){var t=Ta(e,md),n=t.result,r=t.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_makeSubscription",value:function(e,t){var n=this,r=this._nextClientSubscriptionId++,i=yl([e.method,t],!0),o=this._subscriptionsByHash[i];return void 0===o?this._subscriptionsByHash[i]=Fe(Fe({},e),{},{args:t,callbacks:new Set([e.callback]),state:"pending"}):o.callbacks.add(e.callback),this._subscriptionHashByClientSubscriptionId[r]=i,this._subscriptionDisposeFunctionsByClientSubscriptionId[r]=qe(Ve().mark((function t(){var o;return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete n._subscriptionDisposeFunctionsByClientSubscriptionId[r],delete n._subscriptionHashByClientSubscriptionId[r],Lc(void 0!==(o=n._subscriptionsByHash[i]),"Could not find a `Subscription` when tearing down client subscription #".concat(r)),o.callbacks.delete(e.callback),t.next=7,n._updateSubscriptions();case 7:case"end":return t.stop()}}),t)}))),this._updateSubscriptions(),r}},{key:"onAccountChange",value:function(e,t,n){var r=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:t,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}},{key:"removeAccountChangeListener",value:(u=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"account change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"_wsOnProgramAccountNotification",value:function(e){var t=Ta(e,vd),n=t.result,r=t.subscription;this._handleServerNotification(r,[{accountId:n.value.pubkey,accountInfo:n.value.account},n.context])}},{key:"onProgramAccountChange",value:function(e,t,n,r){var i=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:t,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},i)}},{key:"removeProgramAccountChangeListener",value:(s=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"program account change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"onLogs",value:function(e,t,n){var r=this._buildArgs(["object"===He(e)?{mentions:[e.toString()]}:e],n||this._commitment||"finalized");return this._makeSubscription({callback:t,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}},{key:"removeOnLogsListener",value:(a=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"logs");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"_wsOnLogsNotification",value:function(e){var t=Ta(e,lh),n=t.result,r=t.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_wsOnSlotNotification",value:function(e){var t=Ta(e,wd),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotChange",value:function(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}},{key:"removeSlotChangeListener",value:(o=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"_wsOnSlotUpdatesNotification",value:function(e){var t=Ta(e,Ad),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotUpdate",value:function(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}},{key:"removeSlotUpdateListener",value:(i=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot update");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"_unsubscribeClientSubscription",value:(r=qe(Ve().mark((function e(t,n){var r;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._subscriptionDisposeFunctionsByClientSubscriptionId[t])){e.next=6;break}return e.next=4,r();case 4:e.next=7;break;case 6:console.warn("Ignored unsubscribe request because an active subscription with id "+"`".concat(t,"` for '").concat(n,"' events ")+"could not be found.");case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"_buildArgs",value:function(e,t,n,r){var i=t||this._commitment;if(i||n||r){var o={};n&&(o.encoding=n),i&&(o.commitment=i),r&&(o=Object.assign(o,r)),e.push(o)}return e}},{key:"_buildArgsAtLeastConfirmed",value:function(e,t,n,r){var i=t||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,t,n,r)}},{key:"_wsOnSignatureNotification",value:function(e){var t=Ta(e,Ed),n=t.result,r=t.subscription;"receivedSignature"!==n.value&&this._subscriptionsAutoDisposedByRpc.add(r),this._handleServerNotification(r,"receivedSignature"===n.value?[{type:"received"},n.context]:[{type:"status",result:n.value},n.context])}},{key:"onSignature",value:function(e,t,n){var r=this,i=this._buildArgs([e],n||this._commitment||"finalized"),o=this._makeSubscription({callback:function(e,n){if("status"===e.type){t(e.result,n);try{r.removeSignatureListener(o)}catch(e){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},i);return o}},{key:"onSignatureWithOptions",value:function(e,t,n){var r=this,i=Fe(Fe({},n),{},{commitment:n&&n.commitment||this._commitment||"finalized"}),o=i.commitment,a=ot(i,nc),s=this._buildArgs([e],o,void 0,a),u=this._makeSubscription({callback:function(e,n){t(e,n);try{r.removeSignatureListener(u)}catch(e){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},s);return u}},{key:"removeSignatureListener",value:(n=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"signature result");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_wsOnRootNotification",value:function(e){var t=Ta(e,Nd),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onRootChange",value:function(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}},{key:"removeRootChangeListener",value:(t=qe(Ve().mark((function e(t){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"root change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),ph=function(){function e(t){Ze(this,e),this._keypair=void 0,this._keypair=null!=t?t:ic()}return Xe(e,[{key:"publicKey",get:function(){return new yc(this._keypair.publicKey)}},{key:"secretKey",get:function(){return new Uint8Array(this._keypair.secretKey)}}],[{key:"generate",value:function(){return new e(ic())}},{key:"fromSecretKey",value:function(t,n){if(64!==t.byteLength)throw new Error("bad secret key size");var r=t.slice(32,64);if(!n||!n.skipValidation)for(var i=t.slice(0,32),o=oc(i),a=0;a<32;a++)if(r[a]!==o[a])throw new Error("provided secretKey is invalid");return new e({publicKey:r,secretKey:t})}},{key:"fromSeed",value:function(t){var n=oc(t),r=new Uint8Array(64);return r.set(t),r.set(n,32),new e({publicKey:n,secretKey:r})}}]),e}(),fh=Object.freeze({CreateLookupTable:{index:0,layout:aa([ra("instruction"),il("recentSlot"),ta("bumpSeed")])},FreezeLookupTable:{index:1,layout:aa([ra("instruction")])},ExtendLookupTable:{index:2,layout:aa([ra("instruction"),il(),sa(Ac(),ea(ra(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:aa([ra("instruction")])},CloseLookupTable:{index:4,layout:aa([ra("instruction")])}}),yh=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=ra("instruction").decode(e.data),r=0,i=Object.entries(fh);r2?e.keys[2].pubkey:void 0,addresses:t.map((function(e){return new yc(e)}))}}},{key:"decodeCloseLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,3),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,recipient:e.keys[2].pubkey}}},{key:"decodeFreezeLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}},{key:"decodeDeactivateLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}},{key:"checkProgramId",value:function(e){if(!e.equals(mh.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}},{key:"checkKeysLength",value:function(e,t){if(e.length3&&(i.custodianPubkey=e.keys[3].pubkey),i}},{key:"decodeAuthorizeWithSeed",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);var t=Kc(Sh.AuthorizeWithSeed,e.data),n=t.newAuthorized,r=t.stakeAuthorizationType,i=t.authoritySeed,o=t.authorityOwner,a={stakePubkey:e.keys[0].pubkey,authorityBase:e.keys[1].pubkey,authoritySeed:i,authorityOwner:new yc(o),newAuthorizedPubkey:new yc(n),stakeAuthorizationType:{index:r}};return e.keys.length>3&&(a.custodianPubkey=e.keys[3].pubkey),a}},{key:"decodeSplit",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);var t=Kc(Sh.Split,e.data).lamports;return{stakePubkey:e.keys[0].pubkey,splitStakePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[2].pubkey,lamports:t}}},{key:"decodeMerge",value:function(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),Kc(Sh.Merge,e.data),{stakePubkey:e.keys[0].pubkey,sourceStakePubKey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey}}},{key:"decodeWithdraw",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);var t=Kc(Sh.Withdraw,e.data).lamports,n={stakePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:t};return e.keys.length>5&&(n.custodianPubkey=e.keys[5].pubkey),n}},{key:"decodeDeactivate",value:function(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),Kc(Sh.Deactivate,e.data),{stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}},{key:"checkProgramId",value:function(e){if(!e.equals(Ch.programId))throw new Error("invalid instruction; programId is not StakeProgram")}},{key:"checkKeyLength",value:function(e,t){if(e.length0&&void 0!==arguments[0]?arguments[0]:"authorized";return aa([Ac("staker"),Ac("withdrawer")],e)}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return aa([oa("unixTimestamp"),oa("epoch"),Ac("custodian")],e)}()])},Authorize:{index:1,layout:aa([ra("instruction"),Ac("newAuthorized"),ra("stakeAuthorizationType")])},Delegate:{index:2,layout:aa([ra("instruction")])},Split:{index:3,layout:aa([ra("instruction"),oa("lamports")])},Withdraw:{index:4,layout:aa([ra("instruction"),oa("lamports")])},Deactivate:{index:5,layout:aa([ra("instruction")])},Merge:{index:7,layout:aa([ra("instruction")])},AuthorizeWithSeed:{index:8,layout:aa([ra("instruction"),Ac("newAuthorized"),ra("stakeAuthorizationType"),Nc("authoritySeed"),Ac("authorityOwner")])}}),jh=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),Ch=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"initialize",value:function(e){var t=e.stakePubkey,n=e.authorized,r=e.lockup||Lh.default,i=Xc(Sh.Initialize,{authorized:{staker:lc(n.staker.toBuffer()),withdrawer:lc(n.withdrawer.toBuffer())},lockup:{unixTimestamp:r.unixTimestamp,epoch:r.epoch,custodian:lc(r.custodian.toBuffer())}}),o={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Yc,isSigner:!1,isWritable:!1}],programId:this.programId,data:i};return new zc(o)}},{key:"createAccountWithSeed",value:function(e){var t=new _c;t.add(sl.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));var n=e.stakePubkey,r=e.authorized,i=e.lockup;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}},{key:"createAccount",value:function(e){var t=new _c;t.add(sl.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));var n=e.stakePubkey,r=e.authorized,i=e.lockup;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}},{key:"delegate",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.votePubkey,i=Xc(Sh.Delegate);return(new _c).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:Rc,isSigner:!1,isWritable:!1},{pubkey:Gc,isSigner:!1,isWritable:!1},{pubkey:Ih,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"authorize",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.newAuthorizedPubkey,i=e.stakeAuthorizationType,o=e.custodianPubkey,a=Xc(Sh.Authorize,{newAuthorized:lc(r.toBuffer()),stakeAuthorizationType:i.index}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Rc,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new _c).add({keys:s,programId:this.programId,data:a})}},{key:"authorizeWithSeed",value:function(e){var t=e.stakePubkey,n=e.authorityBase,r=e.authoritySeed,i=e.authorityOwner,o=e.newAuthorizedPubkey,a=e.stakeAuthorizationType,s=e.custodianPubkey,u=Xc(Sh.AuthorizeWithSeed,{newAuthorized:lc(o.toBuffer()),stakeAuthorizationType:a.index,authoritySeed:r,authorityOwner:lc(i.toBuffer())}),c=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:Rc,isSigner:!1,isWritable:!1}];return s&&c.push({pubkey:s,isSigner:!1,isWritable:!1}),(new _c).add({keys:c,programId:this.programId,data:u})}},{key:"splitInstruction",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.splitStakePubkey,i=e.lamports,o=Xc(Sh.Split,{lamports:i});return new zc({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}},{key:"split",value:function(e){var t=new _c;return t.add(sl.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),t.add(this.splitInstruction(e))}},{key:"splitWithSeed",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.splitStakePubkey,i=e.basePubkey,o=e.seed,a=e.lamports,s=new _c;return s.add(sl.allocate({accountPubkey:r,basePubkey:i,seed:o,space:this.space,programId:this.programId})),s.add(this.splitInstruction({stakePubkey:t,authorizedPubkey:n,splitStakePubkey:r,lamports:a}))}},{key:"merge",value:function(e){var t=e.stakePubkey,n=e.sourceStakePubKey,r=e.authorizedPubkey,i=Xc(Sh.Merge);return(new _c).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:Rc,isSigner:!1,isWritable:!1},{pubkey:Gc,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"withdraw",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.toPubkey,i=e.lamports,o=e.custodianPubkey,a=Xc(Sh.Withdraw,{lamports:i}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:Rc,isSigner:!1,isWritable:!1},{pubkey:Gc,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new _c).add({keys:s,programId:this.programId,data:a})}},{key:"deactivate",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=Xc(Sh.Deactivate);return(new _c).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Rc,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}]),e}();Ch.programId=new yc("Stake11111111111111111111111111111111111111"),Ch.space=200;var Dh=Xe((function e(t,n,r,i){Ze(this,e),this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=n,this.authorizedWithdrawer=r,this.commission=i})),Oh=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=ra("instruction").decode(e.data),r=0,i=Object.entries(zh);r0&&void 0!==arguments[0]?arguments[0]:"voteInit";return aa([Ac("nodePubkey"),Ac("authorizedVoter"),Ac("authorizedWithdrawer"),ta("commission")],e)}()])},Authorize:{index:1,layout:aa([ra("instruction"),Ac("newAuthorized"),ra("voteAuthorizationType")])},Withdraw:{index:3,layout:aa([ra("instruction"),oa("lamports")])},AuthorizeWithSeed:{index:10,layout:aa([ra("instruction"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteAuthorizeWithSeedArgs";return aa([ra("voteAuthorizationType"),Ac("currentAuthorityDerivedKeyOwnerPubkey"),Nc("currentAuthorityDerivedKeySeed"),Ac("newAuthorized")],e)}()])}}),_h=Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),Ph=function(){function e(){Ze(this,e)}return Xe(e,null,[{key:"initializeAccount",value:function(e){var t=e.votePubkey,n=e.nodePubkey,r=e.voteInit,i=Xc(zh.InitializeAccount,{voteInit:{nodePubkey:lc(r.nodePubkey.toBuffer()),authorizedVoter:lc(r.authorizedVoter.toBuffer()),authorizedWithdrawer:lc(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),o={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Yc,isSigner:!1,isWritable:!1},{pubkey:Rc,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};return new zc(o)}},{key:"createAccount",value:function(e){var t=new _c;return t.add(sl.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),t.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}},{key:"authorize",value:function(e){var t=e.votePubkey,n=e.authorizedPubkey,r=e.newAuthorizedPubkey,i=e.voteAuthorizationType,o=Xc(zh.Authorize,{newAuthorized:lc(r.toBuffer()),voteAuthorizationType:i.index}),a=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Rc,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new _c).add({keys:a,programId:this.programId,data:o})}},{key:"authorizeWithSeed",value:function(e){var t=e.currentAuthorityDerivedKeyBasePubkey,n=e.currentAuthorityDerivedKeyOwnerPubkey,r=e.currentAuthorityDerivedKeySeed,i=e.newAuthorizedPubkey,o=e.voteAuthorizationType,a=e.votePubkey,s=Xc(zh.AuthorizeWithSeed,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:lc(n.toBuffer()),currentAuthorityDerivedKeySeed:r,newAuthorized:lc(i.toBuffer()),voteAuthorizationType:o.index}}),u=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:Rc,isSigner:!1,isWritable:!1},{pubkey:t,isSigner:!0,isWritable:!1}];return(new _c).add({keys:u,programId:this.programId,data:s})}},{key:"withdraw",value:function(e){var t=e.votePubkey,n=e.authorizedWithdrawerPubkey,r=e.lamports,i=e.toPubkey,o=Xc(zh.Withdraw,{lamports:r}),a=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new _c).add({keys:a,programId:this.programId,data:o})}},{key:"safeWithdraw",value:function(t,n,r){if(t.lamports>n-r)throw new Error("Withdraw will leave vote account with insuffcient funds.");return e.withdraw(t)}}]),e}();Ph.programId=new yc("Vote111111111111111111111111111111111111111"),Ph.space=3731;var Bh=new yc("Va1idator1nfo111111111111111111111111111111"),Rh=Ra({name:Pa(),website:za(Pa()),details:za(Pa()),keybaseUsername:za(Pa())}),Uh=function(){function e(t,n){Ze(this,e),this.key=void 0,this.info=void 0,this.key=t,this.info=n}return Xe(e,null,[{key:"fromConfigData",value:function(t){var n=ht(t);if(2!==Ic(n))return null;for(var r=[],i=0;i<2;i++){var o=new yc(n.slice(0,32)),a=1===(n=n.slice(32)).slice(0,1)[0];n=n.slice(1),r.push({publicKey:o,isSigner:a})}if(r[0].publicKey.equals(Bh)&&r[1].isSigner){var s=Nc().decode(zt.from(n)),u=JSON.parse(s);return Na(u,Rh),new e(r[1].publicKey,u)}return null}}]),e}(),Wh=new yc("Vote111111111111111111111111111111111111111"),Qh=aa([Ac("nodePubkey"),Ac("authorizedWithdrawer"),ta("commission"),ia(),sa(aa([ia("slot"),ra("confirmationCount")]),ea(ra(),-8),"votes"),ta("rootSlotValid"),ia("rootSlot"),ia(),sa(aa([ia("epoch"),Ac("authorizedVoter")]),ea(ra(),-8),"authorizedVoters"),aa([sa(aa([Ac("authorizedPubkey"),ia("epochOfLastAuthorizedSwitch"),ia("targetEpoch")]),32,"buf"),ia("idx"),ta("isEmpty")],"priorVoters"),ia(),sa(aa([ia("epoch"),ia("credits"),ia("prevCredits")]),ea(ra(),-8),"epochCredits"),aa([ia("slot"),ia("timestamp")],"lastTimestamp")]),Yh=function(){function e(t){Ze(this,e),this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}return Xe(e,null,[{key:"fromAccountData",value:function(t){var n=Qh.decode(lc(t),4),r=n.rootSlot;return n.rootSlotValid||(r=null),new e({nodePubkey:new yc(n.nodePubkey),authorizedWithdrawer:new yc(n.authorizedWithdrawer),commission:n.commission,votes:n.votes,rootSlot:r,authorizedVoters:n.authorizedVoters.map(Fh),priorVoters:Hh(n.priorVoters),epochCredits:n.epochCredits,lastTimestamp:n.lastTimestamp})}}]),e}();function Fh(e){var t=e.authorizedVoter;return{epoch:e.epoch,authorizedVoter:new yc(t)}}function Vh(e){var t=e.authorizedPubkey,n=e.epochOfLastAuthorizedSwitch,r=e.targetEpoch;return{authorizedPubkey:new yc(t),epochOfLastAuthorizedSwitch:n,targetEpoch:r}}function Hh(e){var t=e.buf,n=e.idx;return e.isEmpty?[]:[].concat(ht(t.slice(n+1).map(Vh)),ht(t.slice(0,n).map(Vh)))}var Gh={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function qh(){return qh=qe(Ve().mark((function e(t,n,r,i){var o,a,s,u,c,l,d;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(o=r,a=i):a=r,s=a&&{skipPreflight:a.skipPreflight,preflightCommitment:a.preflightCommitment||a.commitment,minContextSlot:a.minContextSlot},e.next=4,t.sendRawTransaction(n,s);case 4:return u=e.sent,c=a&&a.commitment,l=o?t.confirmTransaction(o,c):t.confirmTransaction(u,c),e.next=9,l;case 9:if(!(d=e.sent.value).err){e.next=12;break}throw new Error("Raw transaction ".concat(u," failed (").concat(JSON.stringify(d),")"));case 12:return e.abrupt("return",u);case 13:case"end":return e.stop()}}),e)}))),qh.apply(this,arguments)}var Zh=Object.freeze({__proto__:null,Account:mc,AddressLookupTableAccount:Al,AddressLookupTableInstruction:yh,AddressLookupTableProgram:mh,Authorized:kh,BLOCKHASH_CACHE_TIMEOUT_MS:3e4,BPF_LOADER_DEPRECATED_PROGRAM_ID:gc,BPF_LOADER_PROGRAM_ID:cl,BpfLoader:ll,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:vh,ComputeBudgetInstruction:gh,ComputeBudgetProgram:bh,Connection:hh,Ed25519Program:Mh,Enum:hc,EpochSchedule:gl,FeeCalculatorLayout:el,Keypair:ph,LAMPORTS_PER_SOL:1e9,LOOKUP_TABLE_INSTRUCTION_LAYOUTS:fh,Loader:ul,Lockup:Lh,MAX_SEED_LENGTH:32,Message:Sc,MessageAccountKeys:Mc,MessageV0:jc,NONCE_ACCOUNT_LENGTH:nl,NonceAccount:rl,PACKET_DATA_SIZE:1232,PUBLIC_KEY_LENGTH:32,PublicKey:yc,SIGNATURE_LENGTH_IN_BYTES:64,SOLANA_SCHEMA:pc,STAKE_CONFIG_ID:Ih,STAKE_INSTRUCTION_LAYOUTS:Sh,SYSTEM_INSTRUCTION_LAYOUTS:al,SYSVAR_CLOCK_PUBKEY:Rc,SYSVAR_EPOCH_SCHEDULE_PUBKEY:Uc,SYSVAR_INSTRUCTIONS_PUBKEY:Wc,SYSVAR_RECENT_BLOCKHASHES_PUBKEY:Qc,SYSVAR_RENT_PUBKEY:Yc,SYSVAR_REWARDS_PUBKEY:Fc,SYSVAR_SLOT_HASHES_PUBKEY:Vc,SYSVAR_SLOT_HISTORY_PUBKEY:Hc,SYSVAR_STAKE_HISTORY_PUBKEY:Gc,Secp256k1Program:Th,SendTransactionError:vl,SolanaJSONRPCError:bl,SolanaJSONRPCErrorCode:{JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016},StakeAuthorizationLayout:jh,StakeInstruction:xh,StakeProgram:Ch,Struct:dc,SystemInstruction:ol,SystemProgram:sl,Transaction:_c,TransactionExpiredBlockheightExceededError:vc,TransactionExpiredNonceInvalidError:wc,TransactionExpiredTimeoutError:bc,TransactionInstruction:zc,TransactionMessage:Pc,TransactionStatus:Dc,VALIDATOR_INFO_KEY:Bh,VERSION_PREFIX_MASK:127,VOTE_PROGRAM_ID:Wh,ValidatorInfo:Uh,VersionedMessage:Cc,VersionedTransaction:Bc,VoteAccount:Yh,VoteAuthorizationLayout:_h,VoteInit:Dh,VoteInstruction:Oh,VoteProgram:Ph,clusterApiUrl:function(e,t){var n=!1===t?"http":"https";if(!e)return Gh[n].devnet;var r=Gh[n][e];if(!r)throw new Error("Unknown ".concat(n," cluster: ").concat(e));return r},sendAndConfirmRawTransaction:function(e,t,n,r){return qh.apply(this,arguments)},sendAndConfirmTransaction:qc}),Jh=Qe(Zh),Xh={};Object.defineProperty(Xh,"__esModule",{value:!0});var Kh={ERROR_ASSOCIATION_PORT_OUT_OF_RANGE:"ERROR_ASSOCIATION_PORT_OUT_OF_RANGE",ERROR_FORBIDDEN_WALLET_BASE_URL:"ERROR_FORBIDDEN_WALLET_BASE_URL",ERROR_SECURE_CONTEXT_REQUIRED:"ERROR_SECURE_CONTEXT_REQUIRED",ERROR_SESSION_CLOSED:"ERROR_SESSION_CLOSED",ERROR_SESSION_TIMEOUT:"ERROR_SESSION_TIMEOUT",ERROR_WALLET_NOT_FOUND:"ERROR_WALLET_NOT_FOUND"},$h=function(e){$e(n,it(Error));var t=ut(n);function n(){var e;Ze(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=4294967296)throw new Error("Outbound sequence number overflow. The maximum sequence number is 32-bytes.");var t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e,!1),new Uint8Array(t)}function ip(){return tp(this,void 0,void 0,Ve().mark((function e(){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign"]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}function op(){return tp(this,void 0,void 0,Ve().mark((function e(){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}var ap;function sp(e,t){return tp(this,void 0,void 0,Ve().mark((function n(){var r,i,o,a,s;return Ve().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=JSON.stringify(e),i=rp(e.id),o=new Uint8Array(12),crypto.getRandomValues(o),n.next=6,crypto.subtle.encrypt(cp(i,o),t,(new TextEncoder).encode(r));case 6:return a=n.sent,(s=new Uint8Array(i.byteLength+o.byteLength+a.byteLength)).set(new Uint8Array(i),0),s.set(new Uint8Array(o),i.byteLength),s.set(new Uint8Array(a),i.byteLength+o.byteLength),n.abrupt("return",s);case 12:case"end":return n.stop()}}),n)})))}function up(e,t){return tp(this,void 0,void 0,Ve().mark((function n(){var r,i,o,a,s,u;return Ve().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.slice(0,4),i=e.slice(4,16),o=e.slice(16),n.next=5,crypto.subtle.decrypt(cp(r,i),t,o);case 5:if(a=n.sent,s=lp().decode(a),u=JSON.parse(s),!Object.hasOwnProperty.call(u,"error")){n.next=10;break}throw new ep(u.id,u.error.code,u.error.message);case 10:return n.abrupt("return",u);case 11:case"end":return n.stop()}}),n)})))}function cp(e,t){return{additionalData:e,iv:t,name:"AES-GCM",tagLength:128}}function lp(){return void 0===ap&&(ap=new TextDecoder("utf-8")),ap}function dp(e,t,n){return tp(this,void 0,void 0,Ve().mark((function r(){var i,o,a,s,u,c,l;return Ve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([crypto.subtle.exportKey("raw",t),crypto.subtle.importKey("raw",e,{name:"ECDH",namedCurve:"P-256"},!1,[])]);case 2:return i=r.sent,o=dt(i,2),a=o[0],s=o[1],r.next=8,crypto.subtle.deriveBits({name:"ECDH",public:s},n,256);case 8:return u=r.sent,r.next=11,crypto.subtle.importKey("raw",u,"HKDF",!1,["deriveKey"]);case 11:return c=r.sent,r.next=14,crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(a),info:new Uint8Array},c,{name:"AES-GCM",length:128},!1,["encrypt","decrypt"]);case 14:return l=r.sent,r.abrupt("return",l);case 16:case"end":return r.stop()}}),r)})))}function hp(e){if(e<49152||e>65535)throw new $h(Kh.ERROR_ASSOCIATION_PORT_OUT_OF_RANGE,"Association port number must be between 49152 and 65535. ".concat(e," given."),{port:e});return e}function pp(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=0;i1?e.shift():e[0]}}(),u=1,c=0,l={__type:"disconnected"},n.abrupt("return",new Promise((function(t,n){var h,p,f,y={},m=function e(){return tp(d,void 0,void 0,Ve().mark((function t(){var n,r;return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("connecting"===l.__type){t.next=3;break}return console.warn("Expected adapter state to be `connecting` at the moment the websocket opens. "+"Got `".concat(l.__type,"`.")),t.abrupt("return");case 3:return n=l.associationKeypair,h.removeEventListener("open",e),t.next=7,op();case 7:return r=t.sent,t.t0=h,t.next=11,np(r.publicKey,n.privateKey);case 11:t.t1=t.sent,t.t0.send.call(t.t0,t.t1),l={__type:"hello_req_sent",associationPublicKey:n.publicKey,ecdhPrivateKey:r.privateKey};case 14:case"end":return t.stop()}}),t)})))},g=function(e){e.wasClean?l={__type:"disconnected"}:n(new $h(Kh.ERROR_SESSION_CLOSED,"The wallet session dropped unexpectedly (".concat(e.code,": ").concat(e.reason,")."),{closeEvent:e})),p()},v=function(e){return tp(d,void 0,void 0,Ve().mark((function e(){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p(),!(Date.now()-a>=Ap)){e.next=5;break}n(new $h(Kh.ERROR_SESSION_TIMEOUT,"Failed to connect to the wallet websocket on port ".concat(i,"."))),e.next=8;break;case 5:return e.next=7,new Promise((function(e){var t=s();f=window.setTimeout(e,t)}));case 7:w();case 8:case"end":return e.stop()}}),e)})))},b=function(r){return tp(d,void 0,void 0,Ve().mark((function i(){var o,a,s,d,f,m,g,v;return Ve().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r.data.arrayBuffer();case 2:o=i.sent,i.t0=l.__type,i.next="connected"===i.t0?6:"hello_req_sent"===i.t0?30:51;break;case 6:if(i.prev=6,a=o.slice(0,4),(s=new DataView(a).getUint32(0,!1))===c+1){i.next=11;break}throw new Error("Encrypted message has invalid sequence number");case 11:return c=s,i.next=14,up(o,l.sharedSecret);case 14:d=i.sent,f=y[d.id],delete y[d.id],f.resolve(d.result),i.next=29;break;case 20:if(i.prev=20,i.t1=i.catch(6),!(i.t1 instanceof ep)){i.next=28;break}m=y[i.t1.jsonRpcMessageId],delete y[i.t1.jsonRpcMessageId],m.reject(i.t1),i.next=29;break;case 28:throw i.t1;case 29:return i.abrupt("break",51);case 30:return i.next=32,dp(o,l.associationPublicKey,l.ecdhPrivateKey);case 32:return g=i.sent,l={__type:"connected",sharedSecret:g},v=new Proxy({},{get:function(e,t){if(null==e[t]){var n=t.toString().replace(/[A-Z]/g,(function(e){return"_".concat(e.toLowerCase())})).toLowerCase();e[t]=function(e){return tp(this,void 0,void 0,Ve().mark((function r(){var i;return Ve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=u++,r.t0=h,r.next=4,sp({id:i,jsonrpc:"2.0",method:n,params:null!=e?e:{}},g);case 4:return r.t1=r.sent,r.t0.send.call(r.t0,r.t1),r.abrupt("return",new Promise((function(e,n){y[i]={resolve:function(r){switch(t){case"authorize":case"reauthorize":var i=r.wallet_uri_base;if(null!=i)try{Np(i)}catch(e){return void n(e)}}e(r)},reject:n}})));case 7:case"end":return r.stop()}}),r)})))}}return e[t]},defineProperty:function(){return!1},deleteProperty:function(){return!1}}),i.prev=35,i.t2=t,i.next=39,e(v);case 39:i.t3=i.sent,(0,i.t2)(i.t3),i.next=46;break;case 43:i.prev=43,i.t4=i.catch(35),n(i.t4);case 46:return i.prev=46,p(),h.close(),i.finish(46);case 50:return i.abrupt("break",51);case 51:case"end":return i.stop()}}),i,null,[[6,20],[35,43,46,50]])})))},w=function(){p&&p(),l={__type:"connecting",associationKeypair:r},void 0===a&&(a=Date.now()),(h=new WebSocket(o,["com.solana.mobilewalletadapter.v1"])).addEventListener("open",m),h.addEventListener("close",g),h.addEventListener("error",v),h.addEventListener("message",b),p=function(){window.clearTimeout(f),h.removeEventListener("open",m),h.removeEventListener("close",g),h.removeEventListener("error",v),h.removeEventListener("message",b)}};w()})));case 13:case"end":return n.stop()}}),n)})))};var Tp=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);e[n];){var l=t[e.charCodeAt(n)];if(255===l)return;for(var d=0,h=o-1;(0!==l||d>>0,c[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,n++}for(var p=o-i;p!==o&&0===c[p];)p++;for(var f=new Uint8Array(r+(o-p)),y=r;p!==o;)f[y++]=c[p++];return f}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var d=t[i],h=0,p=u-1;(0!==d||h>>0,l[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=u-r;f!==u&&0===l[f];)f++;for(var y=s.repeat(n);fthis.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}();function Rp(e,t){return t.property?e+"["+t.property+"]":e}Pp.Layout=Bp,Pp.nameWithProperty=Rp,Pp.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(e.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof Bp))throw new TypeError("layout must be a Layout");if(t.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=function(){return new e},Object.defineProperty(e.prototype,"encode",{value:function(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,n){return t.decode(e,n)},writable:!0})};var Up=function(e){$e(n,Bp);var t=ut(n);function n(){return Ze(this,n),t.apply(this,arguments)}return Xe(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(),Wp=function(e){$e(n,Up);var t=ut(n);function n(e,r){var i;if(Ze(this,n),void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");return(i=t.call(this,-1,r)).elementSpan=e,i}return Xe(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.length-t;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(e,t,n){return 0}}]),n}(),Qp=function(e){$e(n,Up);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!(e instanceof Bp))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(o=t.call(this,e.span,i||e.property)).layout=e,o.offset=r,o}return Xe(n,[{key:"isCount",value:function(){return this.layout instanceof Yp||this.layout instanceof Fp}},{key:"decode",value:function(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),this.layout.encode(e,t,n+this.offset)}}]),n}(),Yp=function(e){$e(n,Bp);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntLE(e,n,this.span),this.span}}]),n}(),Fp=function(e){$e(n,Bp);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntBE(e,n,this.span),this.span}}]),n}(),Vp=function(e){$e(n,Bp);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeIntLE(e,n,this.span),this.span}}]),n}(),Hp=function(e){$e(n,Bp);var t=ut(n);function n(e,r){var i;if(Ze(this,n),6<(i=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeIntBE(e,n,this.span),this.span}}]),n}(),Gp=Math.pow(2,32);function qp(e){var t=Math.floor(e/Gp);return{hi32:t,lo32:e-t*Gp}}function Zp(e,t){return e*Gp+t}var Jp=function(e){$e(n,Bp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return Zp(e.readUInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=qp(e);return t.writeUInt32LE(r.lo32,n),t.writeUInt32LE(r.hi32,n+4),8}}]),n}(),Xp=function(e){$e(n,Bp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),Zp(e.readUInt32BE(t),e.readUInt32BE(t+4))}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=qp(e);return t.writeUInt32BE(r.hi32,n),t.writeUInt32BE(r.lo32,n+4),8}}]),n}(),Kp=function(e){$e(n,Bp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return Zp(e.readInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=qp(e);return t.writeUInt32LE(r.lo32,n),t.writeInt32LE(r.hi32,n+4),8}}]),n}(),$p=function(e){$e(n,Bp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),Zp(e.readInt32BE(t),e.readUInt32BE(t+4))}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=qp(e);return t.writeInt32BE(r.hi32,n),t.writeUInt32BE(r.lo32,n+4),8}}]),n}(),ef=function(e){$e(n,Bp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,4,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readFloatLE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeFloatLE(e,n),4}}]),n}(),tf=function(e){$e(n,Bp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,4,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readFloatBE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeFloatBE(e,n),4}}]),n}(),nf=function(e){$e(n,Bp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readDoubleLE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeDoubleLE(e,n),8}}]),n}(),rf=function(e){$e(n,Bp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,8,e)}return Xe(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readDoubleBE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeDoubleBE(e,n),8}}]),n}(),of=function(e){$e(n,Bp);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!(e instanceof Bp))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof Up&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var a=-1;return!(r instanceof Up)&&0u.span&&void 0===u.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){s.e(e)}finally{s.f()}var c=-1;try{c=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(o=t.call(this,c,r)).fields=e,o.decodePrefixes=!!i,o}return Xe(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;try{n=this.fields.reduce((function(n,r){var i=r.getSpan(e,t);return t+=i,n+i}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n,r=this.makeDestinationObject(),i=vt(this.fields);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(void 0!==o.property&&(r[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r,i=n,o=0,a=0,s=vt(this.fields);try{for(s.s();!(r=s.n()).done;){var u=r.value,c=u.span;if(a=0c&&(c=u.getSpan(t,n)))}o=n,n+=c}}catch(e){s.e(e)}finally{s.f()}return o+a-i}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),r=vt(this.fields);try{for(r.s();!(t=r.n()).done;){var i=t.value;void 0!==i.property&&0i.span?n=-1:0<=n&&(n+=i.span)}}catch(e){r.e(e)}finally{r.f()}}}]),n}(),sf=function(){function e(t){Ze(this,e),this.property=t}return Xe(e,[{key:"decode",value:function(){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(){throw new Error("UnionDiscriminator is abstract")}}]),e}(),uf=function(e){$e(n,sf);var t=ut(n);function n(e,r){var i;if(Ze(this,n),!(e instanceof Up&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(i=t.call(this,r||e.property||"variant")).layout=e,i}return Xe(n,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,n){return this.layout.encode(e,t,n)}}]),n}(),cf=function(e){$e(n,Bp);var t=ut(n);function n(e,r,i){var o;Ze(this,n);var a=e instanceof Yp||e instanceof Fp;if(a)e=new uf(new Qp(e));else if(e instanceof Up&&e.isCount())e=new uf(e);else if(!(e instanceof sf))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===r&&(r=null),!(null===r||r instanceof Bp))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var s=-1;r&&0<=(s=r.span)&&a&&(s+=e.layout.span),(o=t.call(this,s,i)).discriminator=e,o.usesPrefixDiscriminator=a,o.defaultLayout=r,o.registry={};var u=o.defaultGetSourceVariant.bind(at(o));return o.getSourceVariant=function(e){return u(e)},o.configGetSourceVariant=function(e){u=e.bind(this)},o}return Xe(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(var n in this.registry){var r=this.registry[n];if(e.hasOwnProperty(r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e,t){var n;void 0===t&&(t=0);var r=this.discriminator,i=r.decode(e,t),o=this.registry[i];if(void 0===o){var a=0;o=this.defaultLayout,this.usesPrefixDiscriminator&&(a=r.layout.span),(n=this.makeDestinationObject())[r.property]=i,n[o.property]=this.defaultLayout.decode(e,t+a)}else n=o.decode(e,t);return n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=this.getSourceVariant(e);if(void 0===r){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(e[i.property],t,n),a+o.encode(e[o.property],t,n+a)}return r.encode(e,t,n)}},{key:"addVariant",value:function(e,t,n){var r=new lf(this,e,t,n);return this.registry[e]=r,r}},{key:"getVariant",value:function(e,t){var n=e;return zt.isBuffer(e)&&(void 0===t&&(t=0),n=this.discriminator.decode(e,t)),this.registry[n]}}]),n}(),lf=function(e){$e(n,Bp);var t=ut(n);function n(e,r,i,o){var a;if(Ze(this,n),!(e instanceof cf))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof i&&void 0===o&&(o=i,i=null),i){if(!(i instanceof Bp))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=i.span&&i.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=i?i.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(a=t.call(this,s,o)).union=e,a.variant=r,a.layout=i||null,a}return Xe(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),n+this.layout.getSpan(e,t+n)}},{key:"decode",value:function(e,t){var n=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);var i=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),i+=this.layout.getSpan(t,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),n}();function df(e){return 0>e&&(e+=4294967296),e}var hf=function(e){$e(n,Bp);var t=ut(n);function n(e,r,i){var o;if(Ze(this,n),!(e instanceof Yp||e instanceof Fp))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===i&&(i=r,r=void 0),4=n)throw new TypeError("bits must be positive integer");var i=8*t.span,o=t.fields.reduce((function(e,t){return e+t.bits}),0);if(n+o>i)throw new Error("bits too long for span remainder ("+(i-o)+" of "+i+" remain)");this.container=t,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(e){if(!Number.isInteger(e)||e!==df(e&this.valueMask))throw new TypeError(Rp("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var t=this.container._packedGetValue(),n=df(e<n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=this.span;return 0>n&&(n=this.length.decode(e,t)),e.slice(t,t+n)}},{key:"encode",value:function(e,t,n){var r=this.length;if(this.length instanceof Up&&(r=e.length),!zt.isBuffer(e)||r!==e.length)throw new TypeError(Rp("Blob.encode",this)+" requires (length "+r+") Buffer as src");if(n+r>t.length)throw new RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),n,r,"hex"),this.length instanceof Up&&this.length.encode(r,t,n),r}}]),n}(),mf=function(e){$e(n,Bp);var t=ut(n);function n(e){return Ze(this,n),t.call(this,-1,e)}return Xe(n,[{key:"getSpan",value:function(e,t){if(!zt.isBuffer(e))throw new TypeError("b must be a Buffer");void 0===t&&(t=0);for(var n=t;nt.length)throw new RangeError("encoding overruns Buffer");return r.copy(t,n),t[n+i]=0,i+1}}]),n}(),gf=function(e){$e(n,Bp);var t=ut(n);function n(e,r){var i;if(Ze(this,n),"string"==typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(i=t.call(this,-1,r)).maxSpan=e,i}return Xe(n,[{key:"getSpan",value:function(e,t){if(!zt.isBuffer(e))throw new TypeError("b must be a Buffer");return void 0===t&&(t=0),e.length-t}},{key:"decode",value:function(e,t,n){void 0===t&&(t=0);var r=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return r.copy(t,n),i}}]),n}(),vf=function(e){$e(n,Bp);var t=ut(n);function n(e,r){var i;return Ze(this,n),(i=t.call(this,0,r)).value=e,i}return Xe(n,[{key:"decode",value:function(e,t,n){return this.value}},{key:"encode",value:function(e,t,n){return 0}}]),n}();Pp.ExternalLayout=Up,Pp.GreedyCount=Wp,Pp.OffsetLayout=Qp,Pp.UInt=Yp,Pp.UIntBE=Fp,Pp.Int=Vp,Pp.IntBE=Hp,Pp.Float=ef,Pp.FloatBE=tf,Pp.Double=nf,Pp.DoubleBE=rf,Pp.Sequence=of,Pp.Structure=af,Pp.UnionDiscriminator=sf,Pp.UnionLayoutDiscriminator=uf,Pp.Union=cf,Pp.VariantLayout=lf,Pp.BitStructure=hf,Pp.BitField=pf,Pp.Boolean=ff,Pp.Blob=yf,Pp.CString=mf,Pp.UTF8=gf,Pp.Constant=vf,Pp.greedy=function(e,t){return new Wp(e,t)};Pp.offset=function(e,t,n){return new Qp(e,t,n)};Pp.u8=function(e){return new Yp(1,e)},Pp.u16=function(e){return new Yp(2,e)},Pp.u24=function(e){return new Yp(3,e)},Pp.u32=function(e){return new Yp(4,e)},Pp.u40=function(e){return new Yp(5,e)},Pp.u48=function(e){return new Yp(6,e)};Pp.nu64=function(e){return new Jp(e)};Pp.u16be=function(e){return new Fp(2,e)},Pp.u24be=function(e){return new Fp(3,e)},Pp.u32be=function(e){return new Fp(4,e)},Pp.u40be=function(e){return new Fp(5,e)},Pp.u48be=function(e){return new Fp(6,e)},Pp.nu64be=function(e){return new Xp(e)},Pp.s8=function(e){return new Vp(1,e)},Pp.s16=function(e){return new Vp(2,e)},Pp.s24=function(e){return new Vp(3,e)},Pp.s32=function(e){return new Vp(4,e)},Pp.s40=function(e){return new Vp(5,e)},Pp.s48=function(e){return new Vp(6,e)},Pp.ns64=function(e){return new Kp(e)},Pp.s16be=function(e){return new Hp(2,e)},Pp.s24be=function(e){return new Hp(3,e)},Pp.s32be=function(e){return new Hp(4,e)},Pp.s40be=function(e){return new Hp(5,e)},Pp.s48be=function(e){return new Hp(6,e)},Pp.ns64be=function(e){return new $p(e)},Pp.f32=function(e){return new ef(e)},Pp.f32be=function(e){return new tf(e)},Pp.f64=function(e){return new nf(e)},Pp.f64be=function(e){return new rf(e)},Pp.struct=function(e,t,n){return new af(e,t,n)},Pp.bits=function(e,t,n){return new hf(e,t,n)};var bf=Pp.seq=function(e,t,n){return new of(e,t,n)};Pp.union=function(e,t,n){return new cf(e,t,n)},Pp.unionLayoutDiscriminator=function(e,t){return new uf(e,t)};Pp.blob=function(e,t){return new yf(e,t)};Pp.cstr=function(e){return new mf(e)},Pp.utf8=function(e,t){return new gf(e,t)},Pp.const=function(e,t){return new vf(e,t)};var wf={},Mf={exports:{}};!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"===He(e)?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Mi.Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"===He(e))return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var d=["","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"],h=[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],p=[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];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],l=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var y=f.modrn(l).toString(e);r=(f=f.idivn(l)).isZero()?y+r:d[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],f=8191&p,y=p>>>13,m=0|a[2],g=8191&m,v=m>>>13,b=0|a[3],w=8191&b,M=b>>>13,A=0|a[4],E=8191&A,N=A>>>13,T=0|a[5],I=8191&T,k=T>>>13,L=0|a[6],x=8191&L,S=L>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,_=O>>>13,P=0|a[9],B=8191&P,R=P>>>13,U=0|s[0],W=8191&U,Q=U>>>13,Y=0|s[1],F=8191&Y,V=Y>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,ee=K>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,he=le>>>13,pe=0|s[9],fe=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(c+(r=Math.imul(d,W))|0)+((8191&(i=(i=Math.imul(d,Q))+Math.imul(h,W)|0))<<13)|0;c=((o=Math.imul(h,Q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(f,W),i=(i=Math.imul(f,Q))+Math.imul(y,W)|0,o=Math.imul(y,Q);var ge=(c+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,F)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,W),i=(i=Math.imul(g,Q))+Math.imul(v,W)|0,o=Math.imul(v,Q),r=r+Math.imul(f,F)|0,i=(i=i+Math.imul(f,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,W),i=(i=Math.imul(w,Q))+Math.imul(M,W)|0,o=Math.imul(M,Q),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,W),i=(i=Math.imul(E,Q))+Math.imul(N,W)|0,o=Math.imul(N,Q),r=r+Math.imul(w,F)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,W),i=(i=Math.imul(I,Q))+Math.imul(k,W)|0,o=Math.imul(k,Q),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0;var Me=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(x,W),i=(i=Math.imul(x,Q))+Math.imul(S,W)|0,o=Math.imul(S,Q),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0;var Ae=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,W),i=(i=Math.imul(C,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,Q))+Math.imul(_,W)|0,o=Math.imul(_,Q),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Ne=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,Q))+Math.imul(R,W)|0,o=Math.imul(R,Q),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(_,F)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Te=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ye)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,ye)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,he)|0;var Ie=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ye)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var ke=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,ye)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,he)|0;var Le=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(M,fe)|0))<<13)|0;c=((o=o+Math.imul(M,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,ee))+Math.imul(R,$)|0,o=Math.imul(R,ee),r=r+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var xe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(N,fe)|0))<<13)|0;c=((o=o+Math.imul(N,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,ne),i=(i=Math.imul(B,re))+Math.imul(R,ne)|0,o=Math.imul(R,re),r=r+Math.imul(z,oe)|0,i=(i=i+Math.imul(z,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,he)|0;var Se=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ye)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,ye)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(R,oe)|0,o=Math.imul(R,ae),r=r+Math.imul(z,ue)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,he)|0;var je=(c+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,ye)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,ue),i=(i=Math.imul(B,ce))+Math.imul(R,ue)|0,o=Math.imul(R,ce),r=r+Math.imul(z,de)|0,i=(i=i+Math.imul(z,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Ce=(c+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ye)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,de),i=(i=Math.imul(B,he))+Math.imul(R,de)|0,o=Math.imul(R,he);var De=(c+(r=r+Math.imul(z,fe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ye)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(c+(r=Math.imul(B,fe))|0)+((8191&(i=(i=Math.imul(B,ye))+Math.imul(R,fe)|0))<<13)|0;return c=((o=Math.imul(R,ye))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,u[0]=me,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=Me,u[6]=Ae,u[7]=Ee,u[8]=Ne,u[9]=Te,u[10]=Ie,u[11]=ke,u[12]=Le,u[13]=xe,u[14]=Se,u[15]=je,u[16]=Ce,u[17]=De,u[18]=Oe,0!==c&&(u[19]=c,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(e,t,n){return m(e,t,n)}Math.imul||(y=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?f(this,e,t):n<1024?m(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-o|d>>>o,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var h=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(o,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var f=0,y=1;0==(r.words[0]&y)&&f<26;++f,y<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,h=1;0==(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new N(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){N.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new M;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},N.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},N.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},N.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},N.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},N.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},N.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},N.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},N.prototype.isqr=function(e){return this.imul(e,e.clone())},N.prototype.sqr=function(e){return this.mul(e,e)},N.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,o),h=this.pow(e,o.addn(1).iushrn(1)),p=this.pow(e,o),f=a;0!==p.cmp(s);){for(var y=p,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},N.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new T(e)},r(T,N),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(Mf,Ue),function(e){var t=Ue&&Ue.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.map=e.array=e.rustEnum=e.str=e.vecU8=e.tagged=e.vec=e.bool=e.option=e.publicKey=e.i128=e.u128=e.i64=e.u64=e.struct=e.f64=e.f32=e.i32=e.u32=e.i16=e.u16=e.i8=e.u8=void 0;var n=Pp,r=Jh,i=t(Mf.exports),o=Pp;Object.defineProperty(e,"u8",{enumerable:!0,get:function(){return o.u8}}),Object.defineProperty(e,"i8",{enumerable:!0,get:function(){return o.s8}}),Object.defineProperty(e,"u16",{enumerable:!0,get:function(){return o.u16}}),Object.defineProperty(e,"i16",{enumerable:!0,get:function(){return o.s16}}),Object.defineProperty(e,"u32",{enumerable:!0,get:function(){return o.u32}}),Object.defineProperty(e,"i32",{enumerable:!0,get:function(){return o.s32}}),Object.defineProperty(e,"f32",{enumerable:!0,get:function(){return o.f32}}),Object.defineProperty(e,"f64",{enumerable:!0,get:function(){return o.f64}}),Object.defineProperty(e,"struct",{enumerable:!0,get:function(){return o.struct}});var a=function(e){$e(r,e);var t=ut(r);function r(e,i,o){var a;return Ze(this,r),(a=t.call(this,e,o)).blob=n.blob(e),a.signed=i,a}return Xe(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new i.default(this.blob.decode(e,t),10,"le");return this.signed?n.fromTwos(8*this.span).clone():n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.signed&&(e=e.toTwos(8*this.span)),this.blob.encode(e.toArrayLike(zt,"le",this.span),t,n)}}]),r}(n.Layout);function s(e){return new a(8,!1,e)}e.u64=s,e.i64=function(e){return new a(8,!0,e)},e.u128=function(e){return new a(16,!1,e)},e.i128=function(e){return new a(16,!0,e)};var u=function(e){$e(n,e);var t=ut(n);function n(e,r,i,o){var a;return Ze(this,n),(a=t.call(this,e.span,o)).layout=e,a.decoder=r,a.encoder=i,a}return Xe(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(n.Layout);e.publicKey=function(e){return new u(n.blob(32),(function(e){return new r.PublicKey(e)}),(function(e){return e.toBuffer()}),e)};var c=function(e){$e(r,e);var t=ut(r);function r(e,i){var o;return Ze(this,r),(o=t.call(this,-1,i)).layout=e,o.discriminator=n.u8(),o}return Xe(r,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==e?this.discriminator.encode(0,t,n):(this.discriminator.encode(1,t,n),this.layout.encode(e,t,n+1)+1)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return null;if(1===n)return this.layout.decode(e,t+1);throw new Error("Invalid option "+this.property)}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return 1;if(1===n)return this.layout.getSpan(e,t+1)+1;throw new Error("Invalid option "+this.property)}}]),r}(n.Layout);function l(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}function d(e){return e?1:0}function h(e){var t=n.u32("length"),r=n.struct([t,n.blob(n.offset(t,-t.span),"data")]);return new u(r,(function(e){return e.data}),(function(e){return{data:e}}),e)}e.option=function(e,t){return new c(e,t)},e.bool=function(e){return new u(n.u8(),l,d,e)},e.vec=function(e,t){var r=n.u32("length"),i=n.struct([r,n.seq(e,n.offset(r,-r.span),"values")]);return new u(i,(function(e){return e.values}),(function(e){return{values:e}}),t)},e.tagged=function(e,t,r){var i=n.struct([s("tag"),t.replicate("data")]);return new u(i,(function(t){var n=t.tag,r=t.data;if(!n.eq(e))throw new Error("Invalid tag, expected: "+e.toString("hex")+", got: "+n.toString("hex"));return r}),(function(t){return{tag:e,data:t}}),r)},e.vecU8=h,e.str=function(e){return new u(h(),(function(e){return e.toString("utf-8")}),(function(e){return zt.from(e,"utf-8")}),e)},e.rustEnum=function(e,t,r){var i=n.union(null!=r?r:n.u8(),t);return e.forEach((function(e,t){return i.addVariant(t,e,e.property)})),i},e.array=function(e,t,r){var i=n.struct([n.seq(e,t,"values")]);return new u(i,(function(e){return e.values}),(function(e){return{values:e}}),r)};var p=function(e){$e(n,e);var t=ut(n);function n(e,r,i){var o;return Ze(this,n),(o=t.call(this,e.span+r.span,i)).keyLayout=e,o.valueLayout=r,o}return Xe(n,[{key:"decode",value:function(e,t){return t=t||0,[this.keyLayout.decode(e,t),this.valueLayout.decode(e,t+this.keyLayout.getSpan(e,t))]}},{key:"encode",value:function(e,t,n){n=n||0;var r=this.keyLayout.encode(e[0],t,n);return r+this.valueLayout.encode(e[1],t,n+r)}},{key:"getSpan",value:function(e,t){return this.keyLayout.getSpan(e,t)+this.valueLayout.getSpan(e,t)}}]),n}(n.Layout);e.map=function(e,t,r){var i=n.u32("length"),o=n.struct([i,n.seq(new p(e,t),n.offset(i,-i.span),"values")]);return new u(o,(function(e){var t=e.values;return new Map(t)}),(function(e){return{values:Array.from(e.entries())}}),r)}}(wf);for(var Af=bt.transact,Ef=Mi.Buffer,Nf=Oi.exports,Tf=wf.struct([wf.publicKey("mint"),wf.publicKey("owner"),wf.u64("amount"),wf.u32("delegateOption"),wf.publicKey("delegate"),wf.u8("state"),wf.u32("isNativeOption"),wf.u64("isNative"),wf.u64("delegatedAmount"),wf.u32("closeAuthorityOption"),wf.publicKey("closeAuthority")]),If=wf.bool,kf=wf.i128,Lf=wf.i32,xf=wf.i64,Sf=wf.option,jf=wf.publicKey,Cf=wf.rustEnum,Df=wf.str,Of=wf.struct,zf=wf.u128,_f=wf.u16,Pf=wf.u32,Bf=wf.u64,Rf=wf.u8,Uf=wf.vec,Wf=function(e){var t=Jf(e),n=t[0],r=t[1];return 3*(n+r)/4-r},Qf=function(e){var t,n,r=Jf(e),i=r[0],o=r[1],a=new Hf(function(e,t,n){return 3*(t+n)/4-n}(0,i,o)),s=0,u=o>0?i-4:i;for(n=0;n>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=Vf[e.charCodeAt(n)]<<2|Vf[e.charCodeAt(n+1)]>>4,a[s++]=255&t);1===o&&(t=Vf[e.charCodeAt(n)]<<10|Vf[e.charCodeAt(n+1)]<<4|Vf[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},Yf=function(e){for(var t,n=e.length,r=n%3,i=[],o=16383,a=0,s=n-r;as?s:a+o));1===r?(t=e[n-1],i.push(Ff[t>>2]+Ff[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(Ff[t>>10]+Ff[t>>4&63]+Ff[t<<2&63]+"="));return i.join("")},Ff=[],Vf=[],Hf="undefined"!=typeof Uint8Array?Uint8Array:Array,Gf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qf=0,Zf=Gf.length;qf0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function Xf(e,t,n){for(var r,i,o=[],a=t;a>18&63]+Ff[i>>12&63]+Ff[i>>6&63]+Ff[63&i]);return o.join("")}Vf["-".charCodeAt(0)]=62,Vf["_".charCodeAt(0)]=63;var Kf={byteLength:Wf,toByteArray:Qf,fromByteArray:Yf},$f=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},ey=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*y},ty=o((function(e,t){const n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=function(e){+e!=e&&(e=0);return o.alloc(+e)},t.INSPECT_MAX_BYTES=50;const r=2147483647;function i(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|h(e,t);let r=i(n);const a=r.write(e,t);a!==n&&(r=r.slice(0,a));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){const t=new Uint8Array(e);return l(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return l(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return l(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return o.from(r,t,n);const a=function(e){if(o.isBuffer(e)){const t=0|d(e.length),n=i(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||G(e.length)?i(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return s(e),i(e<0?0:0|d(e))}function c(e){const t=e.length<0?0:0|d(e.length),n=i(t);for(let r=0;r=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function h(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(i)return r?-1:Y(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function f(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),G(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){let o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?Kf.fromByteArray(e):Kf.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(u=(31&t)<<6|63&n,u>127&&(o=u));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(u=(15&t)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!o.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},o.byteLength=h,o.prototype._isBuffer=!0,o.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(e,t,n,r,i){if(H(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let a=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const u=Math.min(a,s),c=this.slice(r,i),l=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":case"latin1":case"binary":return b(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const N=4096;function T(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function S(e,t,n,r,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i){R(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function C(e,t,n,r,i){R(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,4),ey(e,t,n,r,23,4),n+4}function z(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,8),ey(e,t,n,r,52,8),n+8}o.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||x(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||x(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=Z((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||x(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=Z((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||x(e,4,this.length),$f(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),$f(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),$f(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),$f(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){S(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){S(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigUInt64LE=Z((function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeBigUInt64BE=Z((function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);S(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);S(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=Z((function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeBigInt64BE=Z((function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeFloatLE=function(e,t,n){return O(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return O(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function R(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new _.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,i,o)}function U(e,t){if("number"!=typeof e)throw new _.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new _.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new _.ERR_BUFFER_OUT_OF_BOUNDS;throw new _.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}P("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),P("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),P("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=B(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=B(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const Q=/[^+/0-9A-Za-z-_]/g;function Y(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(e){return Kf.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function G(e){return e!=e}const q=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Z(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}})),ny=o((function(e){!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:ty.Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var d=["","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"],h=[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],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],l=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var y=f.modrn(l).toString(e);r=(f=f.idivn(l)).isZero()?y+r:d[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],f=8191&p,y=p>>>13,m=0|a[2],g=8191&m,v=m>>>13,b=0|a[3],w=8191&b,M=b>>>13,A=0|a[4],E=8191&A,N=A>>>13,T=0|a[5],I=8191&T,k=T>>>13,L=0|a[6],x=8191&L,S=L>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,_=O>>>13,P=0|a[9],B=8191&P,R=P>>>13,U=0|s[0],W=8191&U,Q=U>>>13,Y=0|s[1],F=8191&Y,V=Y>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,ee=K>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,he=le>>>13,pe=0|s[9],fe=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(c+(r=Math.imul(d,W))|0)+((8191&(i=(i=Math.imul(d,Q))+Math.imul(h,W)|0))<<13)|0;c=((o=Math.imul(h,Q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(f,W),i=(i=Math.imul(f,Q))+Math.imul(y,W)|0,o=Math.imul(y,Q);var ge=(c+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,F)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,W),i=(i=Math.imul(g,Q))+Math.imul(v,W)|0,o=Math.imul(v,Q),r=r+Math.imul(f,F)|0,i=(i=i+Math.imul(f,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,W),i=(i=Math.imul(w,Q))+Math.imul(M,W)|0,o=Math.imul(M,Q),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,W),i=(i=Math.imul(E,Q))+Math.imul(N,W)|0,o=Math.imul(N,Q),r=r+Math.imul(w,F)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,W),i=(i=Math.imul(I,Q))+Math.imul(k,W)|0,o=Math.imul(k,Q),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0;var Me=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(x,W),i=(i=Math.imul(x,Q))+Math.imul(S,W)|0,o=Math.imul(S,Q),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0;var Ae=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,W),i=(i=Math.imul(C,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,Q))+Math.imul(_,W)|0,o=Math.imul(_,Q),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Ne=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,Q))+Math.imul(R,W)|0,o=Math.imul(R,Q),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(_,F)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Te=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ye)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,ye)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,he)|0;var Ie=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ye)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var ke=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,ye)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,he)|0;var Le=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(M,fe)|0))<<13)|0;c=((o=o+Math.imul(M,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,ee))+Math.imul(R,$)|0,o=Math.imul(R,ee),r=r+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var xe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(N,fe)|0))<<13)|0;c=((o=o+Math.imul(N,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,ne),i=(i=Math.imul(B,re))+Math.imul(R,ne)|0,o=Math.imul(R,re),r=r+Math.imul(z,oe)|0,i=(i=i+Math.imul(z,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,he)|0;var Se=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ye)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,ye)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(R,oe)|0,o=Math.imul(R,ae),r=r+Math.imul(z,ue)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,he)|0;var je=(c+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,ye)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,ue),i=(i=Math.imul(B,ce))+Math.imul(R,ue)|0,o=Math.imul(R,ce),r=r+Math.imul(z,de)|0,i=(i=i+Math.imul(z,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Ce=(c+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ye)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,de),i=(i=Math.imul(B,he))+Math.imul(R,de)|0,o=Math.imul(R,he);var De=(c+(r=r+Math.imul(z,fe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ye)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(c+(r=Math.imul(B,fe))|0)+((8191&(i=(i=Math.imul(B,ye))+Math.imul(R,fe)|0))<<13)|0;return c=((o=Math.imul(R,ye))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,u[0]=me,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=Me,u[6]=Ae,u[7]=Ee,u[8]=Ne,u[9]=Te,u[10]=Ie,u[11]=ke,u[12]=Le,u[13]=xe,u[14]=Se,u[15]=je,u[16]=Ce,u[17]=De,u[18]=Oe,0!==c&&(u[19]=c,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(e,t,n){return m(e,t,n)}Math.imul||(y=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?f(this,e,t):n<1024?m(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-o|d>>>o,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var h=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(o,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var f=0,y=1;0==(r.words[0]&y)&&f<26;++f,y<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,h=1;0==(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new N(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){N.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new M;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},N.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},N.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},N.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},N.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},N.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},N.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},N.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},N.prototype.isqr=function(e){return this.imul(e,e.clone())},N.prototype.sqr=function(e){return this.mul(e,e)},N.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,o),h=this.pow(e,o.addn(1).iushrn(1)),p=this.pow(e,o),f=a;0!==p.cmp(s);){for(var y=p,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},N.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new T(e)},r(T,N),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,r)})); +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */let ry=!1,iy=!1;const oy={debug:1,default:2,info:2,warning:3,error:4,off:5};let ay=oy.default,sy=null;const uy=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(n){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var cy,ly;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(cy||(cy={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(ly||(ly={}));const dy="0123456789abcdef";class hy{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const n=e.toLowerCase();null==oy[n]&&this.throwArgumentError("invalid log level name","logLevel",e),ay>oy[n]||console.log.apply(console,t)}debug(...e){this._log(hy.levels.DEBUG,e)}info(...e){this._log(hy.levels.INFO,e)}warn(...e){this._log(hy.levels.WARNING,e)}makeError(e,t,n){if(iy)return this.makeError("censored error",t,{});t||(t=hy.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach((e=>{const t=n[e];try{if(t instanceof Uint8Array){let n="";for(let e=0;e>4],n+=dy[15&t[e]];r.push(e+"=Uint8Array(0x"+n+")")}else r.push(e+"="+JSON.stringify(t))}catch(t){r.push(e+"="+JSON.stringify(n[e].toString()))}})),r.push(`code=${t}`),r.push(`version=${this.version}`);const i=e;let o="";switch(t){case ly.NUMERIC_FAULT:{o="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":o+="-"+t;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case ly.CALL_EXCEPTION:case ly.INSUFFICIENT_FUNDS:case ly.MISSING_NEW:case ly.NONCE_EXPIRED:case ly.REPLACEMENT_UNDERPRICED:case ly.TRANSACTION_REPLACED:case ly.UNPREDICTABLE_GAS_LIMIT:o=t}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),r.length&&(e+=" ("+r.join(", ")+")");const a=new Error(e);return a.reason=i,a.code=t,Object.keys(n).forEach((function(e){a[e]=n[e]})),a}throwError(e,t,n){throw this.makeError(e,t,n)}throwArgumentError(e,t,n){return this.throwError(e,hy.errors.INVALID_ARGUMENT,{argument:t,value:n})}assert(e,t,n,r){e||this.throwError(t,n,r)}assertArgument(e,t,n,r){e||this.throwArgumentError(t,n,r)}checkNormalize(e){uy&&this.throwError("platform missing String.prototype.normalize",hy.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:uy})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,hy.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,hy.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,n){n=n?": "+n:"",et&&this.throwError("too many arguments"+n,hy.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",hy.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",hy.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",hy.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return sy||(sy=new hy("logger/5.7.0")),sy}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",hy.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ry){if(!e)return;this.globalLogger().throwError("error censorship permanent",hy.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}iy=!!e,ry=!!t}static setLogLevel(e){const t=oy[e.toLowerCase()];null!=t?ay=t:hy.globalLogger().warn("invalid log level - "+e)}static from(e){return new hy(e)}}hy.errors=ly,hy.levels=cy;const py=new hy("bytes/5.7.0");function fy(e){return!!e.toHexString}function yy(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return yy(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function my(e){return Ey(e)&&!(e.length%2)||vy(e)}function gy(e){return"number"==typeof e&&e==e&&e%1==0}function vy(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!gy(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function by(e,t){if(t||(t={}),"number"==typeof e){py.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),yy(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),fy(e)&&(e=e.toHexString()),Ey(e)){let n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0"+n:"right"===t.hexPad?n+="0":py.throwArgumentError("hex data is odd-length","value",e));const r=[];for(let e=0;eby(e))),n=t.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(n);return t.reduce(((e,t)=>(r.set(t,e),e+t.length)),0),yy(r)}function My(e){let t=by(e);if(0===t.length)return t;let n=0;for(;nt&&py.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(t);return n.set(e,t-e.length),yy(n)}function Ey(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function Ny(e,t){if(t||(t={}),"number"==typeof e){py.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t="0123456789abcdef"[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),fy(e))return e.toHexString();if(Ey(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":py.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(vy(e)){let t="0x";for(let n=0;n>4]+"0123456789abcdef"[15&r]}return t}return py.throwArgumentError("invalid hexlify value","value",e)}function Ty(e){if("string"!=typeof e)e=Ny(e);else if(!Ey(e)||e.length%2)return null;return(e.length-2)/2}function Iy(e,t,n){return"string"!=typeof e?e=Ny(e):(!Ey(e)||e.length%2)&&py.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function ky(e){let t="0x";return e.forEach((e=>{t+=Ny(e).substring(2)})),t}function Ly(e){const t=function(e){"string"!=typeof e&&(e=Ny(e));Ey(e)||py.throwArgumentError("invalid hex string","value",e);e=e.substring(2);let t=0;for(;t2*t+2&&py.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function Sy(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(my(e)){let n=by(e);64===n.length?(t.v=27+(n[32]>>7),n[32]&=127,t.r=Ny(n.slice(0,32)),t.s=Ny(n.slice(32,64))):65===n.length?(t.r=Ny(n.slice(0,32)),t.s=Ny(n.slice(32,64)),t.v=n[64]):py.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:py.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=Ny(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const n=Ay(by(t._vs),32);t._vs=Ny(n);const r=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=r:t.recoveryParam!==r&&py.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;const i=Ny(n);null==t.s?t.s=i:t.s!==i&&py.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?py.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const n=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==n&&py.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&Ey(t.r)?t.r=xy(t.r,32):py.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&Ey(t.s)?t.s=xy(t.s,32):py.throwArgumentError("signature missing or invalid s","signature",e);const n=by(t.s);n[0]>=128&&py.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(n[0]|=128);const r=Ny(n);t._vs&&(Ey(t._vs)||py.throwArgumentError("signature invalid _vs","signature",e),t._vs=xy(t._vs,32)),null==t._vs?t._vs=r:t._vs!==r&&py.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}var jy=ny.BN;const Cy=new hy("bignumber/5.7.0"),Dy={};let Oy=!1;class zy{constructor(e,t){e!==Dy&&Cy.throwError("cannot call constructor directly; use BigNumber.from",hy.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Py(By(this).fromTwos(e))}toTwos(e){return Py(By(this).toTwos(e))}abs(){return"-"===this._hex[0]?zy.from(this._hex.substring(1)):this}add(e){return Py(By(this).add(By(e)))}sub(e){return Py(By(this).sub(By(e)))}div(e){return zy.from(e).isZero()&&Ry("division-by-zero","div"),Py(By(this).div(By(e)))}mul(e){return Py(By(this).mul(By(e)))}mod(e){const t=By(e);return t.isNeg()&&Ry("division-by-zero","mod"),Py(By(this).umod(t))}pow(e){const t=By(e);return t.isNeg()&&Ry("negative-power","pow"),Py(By(this).pow(t))}and(e){const t=By(e);return(this.isNegative()||t.isNeg())&&Ry("unbound-bitwise-result","and"),Py(By(this).and(t))}or(e){const t=By(e);return(this.isNegative()||t.isNeg())&&Ry("unbound-bitwise-result","or"),Py(By(this).or(t))}xor(e){const t=By(e);return(this.isNegative()||t.isNeg())&&Ry("unbound-bitwise-result","xor"),Py(By(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&Ry("negative-width","mask"),Py(By(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Ry("negative-width","shl"),Py(By(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Ry("negative-width","shr"),Py(By(this).shrn(e))}eq(e){return By(this).eq(By(e))}lt(e){return By(this).lt(By(e))}lte(e){return By(this).lte(By(e))}gt(e){return By(this).gt(By(e))}gte(e){return By(this).gte(By(e))}isNegative(){return"-"===this._hex[0]}isZero(){return By(this).isZero()}toNumber(){try{return By(this).toNumber()}catch(e){Ry("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return Cy.throwError("this platform does not support BigInt",hy.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Oy||(Oy=!0,Cy.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Cy.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",hy.errors.UNEXPECTED_ARGUMENT,{}):Cy.throwError("BigNumber.toString does not accept parameters",hy.errors.UNEXPECTED_ARGUMENT,{})),By(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof zy)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new zy(Dy,_y(e)):e.match(/^-?[0-9]+$/)?new zy(Dy,_y(new jy(e))):Cy.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&Ry("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&Ry("overflow","BigNumber.from",e),zy.from(String(e));const t=e;if("bigint"==typeof t)return zy.from(t.toString());if(vy(t))return zy.from(Ny(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return zy.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(Ey(e)||"-"===e[0]&&Ey(e.substring(1))))return zy.from(e)}return Cy.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function _y(e){if("string"!=typeof e)return _y(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&Cy.throwArgumentError("invalid hex","value",e),"0x00"===(e=_y(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function Py(e){return zy.from(_y(e))}function By(e){const t=zy.from(e).toHexString();return"-"===t[0]?new jy("-"+t.substring(3),16):new jy(t.substring(2),16)}function Ry(e,t,n){const r={fault:e,operation:t};return null!=n&&(r.value=n),Cy.throwError(e,hy.errors.NUMERIC_FAULT,r)}const Uy=new hy("bignumber/5.7.0"),Wy={},Qy=zy.from(0),Yy=zy.from(-1);function Fy(e,t,n,r){const i={fault:t,operation:n};return void 0!==r&&(i.value=r),Uy.throwError(e,hy.errors.NUMERIC_FAULT,i)}let Vy="0";for(;Vy.length<256;)Vy+=Vy;function Hy(e){if("number"!=typeof e)try{e=zy.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+Vy.substring(0,e):Uy.throwArgumentError("invalid decimal size","decimals",e)}function Gy(e,t){null==t&&(t=0);const n=Hy(t),r=(e=zy.from(e)).lt(Qy);r&&(e=e.mul(Yy));let i=e.mod(n).toString();for(;i.length2&&Uy.throwArgumentError("too many decimal points","value",e);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>n.length-1&&Fy("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.lengthnull==e[t]?r:(typeof e[t]!==n&&Uy.throwArgumentError("invalid fixed format ("+t+" not "+n+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),n=i("width","number",n),r=i("decimals","number",r)}return n%8&&Uy.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),r>80&&Uy.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",r),new Zy(Wy,t,n,r)}}class Jy{constructor(e,t,n,r){e!==Wy&&Uy.throwError("cannot use FixedNumber constructor; use FixedNumber.from",hy.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=r,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&Uy.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=qy(this._value,this.format.decimals),n=qy(e._value,e.format.decimals);return Jy.fromValue(t.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=qy(this._value,this.format.decimals),n=qy(e._value,e.format.decimals);return Jy.fromValue(t.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=qy(this._value,this.format.decimals),n=qy(e._value,e.format.decimals);return Jy.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=qy(this._value,this.format.decimals),n=qy(e._value,e.format.decimals);return Jy.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=Jy.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(Xy.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=Jy.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(Xy.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&Uy.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const n=Jy.from("1"+Vy.substring(0,e),this.format),r=Ky.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(r).floor().divUnsafe(n)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&Uy.throwArgumentError("invalid byte width","width",e);return xy(zy.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return Jy.fromString(this._value,e)}static fromValue(e,t,n){return null!=n||null==t||function(e){return null!=e&&(zy.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||Ey(e)||"bigint"==typeof e||vy(e))}(t)||(n=t,t=null),null==t&&(t=0),null==n&&(n="fixed"),Jy.fromString(Gy(e,t),Zy.from(n))}static fromString(e,t){null==t&&(t="fixed");const n=Zy.from(t),r=qy(e,n.decimals);!n.signed&&r.lt(Qy)&&Fy("unsigned value cannot be negative","overflow","value",e);let i=null;n.signed?i=r.toTwos(n.width).toHexString():(i=r.toHexString(),i=xy(i,n.width/8));const o=Gy(r,n.decimals);return new Jy(Wy,i,o,n)}static fromBytes(e,t){null==t&&(t="fixed");const n=Zy.from(t);if(by(e).length>n.width/8)throw new Error("overflow");let r=zy.from(e);n.signed&&(r=r.fromTwos(n.width));const i=r.toTwos((n.signed?0:1)+n.width).toHexString(),o=Gy(r,n.decimals);return new Jy(Wy,i,o,n)}static from(e,t){if("string"==typeof e)return Jy.fromString(e,t);if(vy(e))return Jy.fromBytes(e,t);try{return Jy.fromValue(e,0,t)}catch(e){if(e.code!==hy.errors.INVALID_ARGUMENT)throw e}return Uy.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const Xy=Jy.from(1),Ky=Jy.from("0.5");var $y=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const em=new hy("properties/5.7.0");function tm(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}function nm(e,t){for(let n=0;n<32;n++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function rm(e){return $y(this,void 0,void 0,(function*(){const t=Object.keys(e).map((t=>{const n=e[t];return Promise.resolve(n).then((e=>({key:t,value:e})))}));return(yield Promise.all(t)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function im(e){const t={};for(const n in e)t[n]=e[n];return t}const om={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function am(e){if(null==e||om[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;const t=Object.keys(e);for(let n=0;num(e))));if("object"==typeof e){const t={};for(const n in e){const r=e[n];void 0!==r&&tm(t,n,um(r))}return t}return em.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function um(e){return sm(e)}class cm{constructor(e){for(const t in e)this[t]=um(e[t])}}const lm=new hy("abi/5.7.0"),dm={};let hm={calldata:!0,memory:!0,storage:!0},pm={calldata:!0,memory:!0};function fm(e,t){if("bytes"===e||"string"===e){if(hm[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&pm[t])return!0;return(hm[t]||"payable"===t)&&lm.throwArgumentError("invalid modifier","name",t),!1}function ym(e,t){for(let n in t)tm(e,n,t[n])}const mm=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),gm=new RegExp(/^(.*)\[([0-9]*)\]$/);class vm{constructor(e,t){e!==dm&&lm.throwError("use fromString",hy.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),ym(this,t);let n=this.type.match(gm);ym(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:vm.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=mm.sighash),mm[e]||lm.throwArgumentError("invalid format type","format",e),e===mm.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==mm.sighash&&(t+=this.type),t+="("+this.components.map((t=>t.format(e))).join(e===mm.full?", ":",")+")"):t+=this.type,e!==mm.sighash&&(!0===this.indexed&&(t+=" indexed"),e===mm.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?vm.fromString(e,t):vm.fromObject(e)}static fromObject(e){return vm.isParamType(e)?e:new vm(dm,{name:e.name||null,type:xm(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(vm.fromObject):null})}static fromString(e,t){return n=function(e,t){let n=e;function r(t){lm.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},a=o;for(let n=0;nvm.fromString(e,t)))}class wm{constructor(e,t){e!==dm&&lm.throwError("use a static from method",hy.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),ym(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return wm.isFragment(e)?e:"string"==typeof e?wm.fromString(e):wm.fromObject(e)}static fromObject(e){if(wm.isFragment(e))return e;switch(e.type){case"function":return Im.fromObject(e);case"event":return Mm.fromObject(e);case"constructor":return Tm.fromObject(e);case"error":return Lm.fromObject(e);case"fallback":case"receive":return null}return lm.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?Mm.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?Im.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?Tm.fromString(e.trim()):"error"===e.split(" ")[0]?Lm.fromString(e.substring(5).trim()):lm.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class Mm extends wm{format(e){if(e||(e=mm.sighash),mm[e]||lm.throwArgumentError("invalid format type","format",e),e===mm.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==mm.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===mm.full?", ":",")+") ",e!==mm.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?Mm.fromString(e):Mm.fromObject(e)}static fromObject(e){if(Mm.isEventFragment(e))return e;"event"!==e.type&&lm.throwArgumentError("invalid event object","value",e);const t={name:jm(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(vm.fromObject):[],type:"event"};return new Mm(dm,t)}static fromString(e){let t=e.match(Cm);t||lm.throwArgumentError("invalid event string","value",e);let n=!1;return t[3].split(" ").forEach((e=>{switch(e.trim()){case"anonymous":n=!0;break;case"":break;default:lm.warn("unknown modifier: "+e)}})),Mm.fromObject({name:t[1].trim(),anonymous:n,inputs:bm(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function Am(e,t){t.gas=null;let n=e.split("@");return 1!==n.length?(n.length>2&&lm.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||lm.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=zy.from(n[1]),n[0]):e}function Em(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function Nm(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&lm.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&lm.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||lm.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&lm.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&lm.throwArgumentError("unable to determine stateMutability","value",e),t}class Tm extends wm{format(e){if(e||(e=mm.sighash),mm[e]||lm.throwArgumentError("invalid format type","format",e),e===mm.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});e===mm.sighash&&lm.throwError("cannot format a constructor for sighash",hy.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((t=>t.format(e))).join(e===mm.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?Tm.fromString(e):Tm.fromObject(e)}static fromObject(e){if(Tm.isConstructorFragment(e))return e;"constructor"!==e.type&&lm.throwArgumentError("invalid constructor object","value",e);let t=Nm(e);t.constant&&lm.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(vm.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?zy.from(e.gas):null};return new Tm(dm,n)}static fromString(e){let t={type:"constructor"},n=(e=Am(e,t)).match(Cm);return n&&"constructor"===n[1].trim()||lm.throwArgumentError("invalid constructor string","value",e),t.inputs=bm(n[2].trim(),!1),Em(n[3].trim(),t),Tm.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class Im extends Tm{format(e){if(e||(e=mm.sighash),mm[e]||lm.throwArgumentError("invalid format type","format",e),e===mm.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==mm.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===mm.full?", ":",")+") ",e!==mm.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((t=>t.format(e))).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?Im.fromString(e):Im.fromObject(e)}static fromObject(e){if(Im.isFunctionFragment(e))return e;"function"!==e.type&&lm.throwArgumentError("invalid function object","value",e);let t=Nm(e);const n={type:e.type,name:jm(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(vm.fromObject):[],outputs:e.outputs?e.outputs.map(vm.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?zy.from(e.gas):null};return new Im(dm,n)}static fromString(e){let t={type:"function"},n=(e=Am(e,t)).split(" returns ");n.length>2&&lm.throwArgumentError("invalid function string","value",e);let r=n[0].match(Cm);if(r||lm.throwArgumentError("invalid function signature","value",e),t.name=r[1].trim(),t.name&&jm(t.name),t.inputs=bm(r[2],!1),Em(r[3].trim(),t),n.length>1){let r=n[1].match(Cm);""==r[1].trim()&&""==r[3].trim()||lm.throwArgumentError("unexpected tokens","value",e),t.outputs=bm(r[2],!1)}else t.outputs=[];return Im.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function km(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||lm.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class Lm extends wm{format(e){if(e||(e=mm.sighash),mm[e]||lm.throwArgumentError("invalid format type","format",e),e===mm.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==mm.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===mm.full?", ":",")+") ",t.trim()}static from(e){return"string"==typeof e?Lm.fromString(e):Lm.fromObject(e)}static fromObject(e){if(Lm.isErrorFragment(e))return e;"error"!==e.type&&lm.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:jm(e.name),inputs:e.inputs?e.inputs.map(vm.fromObject):[]};return km(new Lm(dm,t))}static fromString(e){let t={type:"error"},n=e.match(Cm);return n||lm.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&jm(t.name),t.inputs=bm(n[2],!1),km(Lm.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function xm(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const Sm=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function jm(e){return e&&e.match(Sm)||lm.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const Cm=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const Dm=new hy("abi/5.7.0");class Om{constructor(e,t,n,r){this.name=e,this.type=t,this.localName=n,this.dynamic=r}_throwError(e,t){Dm.throwArgumentError(e,this.localName,t)}}class zm{constructor(e){tm(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return ky(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(wy(e._data))}writeBytes(e){let t=by(e);const n=t.length%this.wordSize;return n&&(t=wy([t,this._padding.slice(n)])),this._writeData(t)}_getValue(e){let t=by(zy.from(e));return t.length>this.wordSize&&Dm.throwError("value out-of-bounds",hy.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=wy([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class _m{constructor(e,t,n,r){tm(this,"_data",by(e)),tm(this,"wordSize",t||32),tm(this,"_coerceFunc",n),tm(this,"allowLoose",r),this._offset=0}get data(){return Ny(this._data)}get consumed(){return this._offset}static coerce(e,t){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):_m.coerce(e,t)}_peekBytes(e,t,n){let r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:Dm.throwError("data out-of-bounds",hy.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}subReader(e){return new _m(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}readValue(){return zy.from(this.readBytes(this.wordSize))}}var Pm=o((function(e){!function(){var t="input is invalid type",n="object"==typeof window,i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var o=!n&&"object"==typeof self;!i.JS_SHA3_NO_NODE_JS&&"object"==typeof Be&&Be.versions&&Be.versions.node?i=r:o&&(i=self);var a=!i.JS_SHA3_NO_COMMON_JS&&e.exports,s=!i.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),c=[4,1024,262144,67108864],l=[0,8,16,24],d=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],h=[224,256,384,512],p=[128,256],f=["hex","buffer","arrayBuffer","array","digest"],y={128:168,256:136};!i.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!s||!i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var m=function(e,t,n){return function(r){return new j(e,t,e).update(r)[n]()}},g=function(e,t,n){return function(r,i){return new j(e,t,i).update(r)[n]()}},v=function(e,t,n){return function(t,r,i,o){return E["cshake"+e].update(t,r,i,o)[n]()}},b=function(e,t,n){return function(t,r,i,o){return E["kmac"+e].update(t,r,i,o)[n]()}},w=function(e,t,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function C(e,t,n){j.call(this,e,t,n)}j.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var n,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(t);if(null===e)throw new Error(t);if(s&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||s&&ArrayBuffer.isView(e)))throw new Error(t);n=!0}for(var i,o,a=this.blocks,u=this.byteCount,c=e.length,d=this.blockCount,h=0,p=this.s;h>2]|=e[h]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(a[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=u){for(this.start=i-u,this.block=a[d],i=0;i>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},j.prototype.encodeString=function(e){var n,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(t);if(null===e)throw new Error(t);if(s&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||s&&ArrayBuffer.isView(e)))throw new Error(t);n=!0}var i=0,o=e.length;if(n)i=o;else for(var a=0;a=57344?i+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++a)),i+=4)}return i+=this.encode(8*i),this.update(e),i},j.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+u[15&e]+u[e>>12&15]+u[e>>8&15]+u[e>>20&15]+u[e>>16&15]+u[e>>28&15]+u[e>>24&15];a%t==0&&(D(n),o=0)}return i&&(e=n[o],s+=u[e>>4&15]+u[15&e],i>1&&(s+=u[e>>12&15]+u[e>>8&15]),i>2&&(s+=u[e>>20&15]+u[e>>16&15])),s},j.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%n==0&&D(r)}return o&&(e=s<<2,t=r[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},C.prototype=new j,C.prototype.finalize=function(){return this.encode(this.outputBits,!0),j.prototype.finalize.call(this)};var D=function(e){var t,n,r,i,o,a,s,u,c,l,h,p,f,y,m,g,v,b,w,M,A,E,N,T,I,k,L,x,S,j,C,D,O,z,_,P,B,R,U,W,Q,Y,F,V,H,G,q,Z,J,X,K,$,ee,te,ne,re,ie,oe,ae,se,ue,ce,le;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(f=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(u<<1|c>>>31),n=o^(c<<1|u>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(l<<1|h>>>31),n=s^(h<<1|l>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=u^(p<<1|f>>>31),n=c^(f<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=l^(i<<1|o>>>31),n=h^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,y=e[0],m=e[1],G=e[11]<<4|e[10]>>>28,q=e[10]<<4|e[11]>>>28,x=e[20]<<3|e[21]>>>29,S=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,Y=e[40]<<18|e[41]>>>14,F=e[41]<<18|e[40]>>>14,z=e[2]<<1|e[3]>>>31,_=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,j=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,P=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,K=e[35]<<15|e[34]>>>17,D=e[45]<<29|e[44]>>>3,O=e[44]<<29|e[45]>>>3,T=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,R=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,M=e[36]<<21|e[37]>>>11,A=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,H=e[9]<<27|e[8]>>>5,k=e[18]<<20|e[19]>>>12,L=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,W=e[38]<<8|e[39]>>>24,Q=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,N=e[49]<<14|e[48]>>>18,e[0]=y^~g&b,e[1]=m^~v&w,e[10]=T^~k&x,e[11]=I^~L&S,e[20]=z^~P&R,e[21]=_^~B&U,e[30]=V^~G&Z,e[31]=H^~q&J,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=g^~b&M,e[3]=v^~w&A,e[12]=k^~x&j,e[13]=L^~S&C,e[22]=P^~R&W,e[23]=B^~U&Q,e[32]=G^~Z&X,e[33]=q^~J&K,e[42]=re^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~M&E,e[5]=w^~A&N,e[14]=x^~j&D,e[15]=S^~C&O,e[24]=R^~W&Y,e[25]=U^~Q&F,e[34]=Z^~X&$,e[35]=J^~K&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=M^~E&y,e[7]=A^~N&m,e[16]=j^~D&T,e[17]=C^~O&I,e[26]=W^~Y&z,e[27]=Q^~F&_,e[36]=X^~$&V,e[37]=K^~ee&H,e[46]=se^~ce&te,e[47]=ue^~le&ne,e[8]=E^~y&g,e[9]=N^~m&v,e[18]=D^~T&k,e[19]=O^~I&L,e[28]=Y^~z&P,e[29]=F^~_&B,e[38]=$^~V&G,e[39]=ee^~H&q,e[48]=ce^~te&re,e[49]=le^~ne&ie,e[0]^=d[r],e[1]^=d[r+1]};if(a)e.exports=E;else for(T=0;T>=8;return t}function Wm(e,t,n){let r=0;for(let i=0;it+1+r&&Rm.throwError("child data too short",hy.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:i}}function Vm(e,t){if(0===e.length&&Rm.throwError("data too short",hy.errors.BUFFER_OVERRUN,{}),e[t]>=248){const n=e[t]-247;t+1+n>e.length&&Rm.throwError("data short segment too short",hy.errors.BUFFER_OVERRUN,{});const r=Wm(e,t+1,n);return t+1+n+r>e.length&&Rm.throwError("data long segment too short",hy.errors.BUFFER_OVERRUN,{}),Fm(e,t,t+1+n,n+r)}if(e[t]>=192){const n=e[t]-192;return t+1+n>e.length&&Rm.throwError("data array too short",hy.errors.BUFFER_OVERRUN,{}),Fm(e,t,t+1,n)}if(e[t]>=184){const n=e[t]-183;t+1+n>e.length&&Rm.throwError("data array too short",hy.errors.BUFFER_OVERRUN,{});const r=Wm(e,t+1,n);t+1+n+r>e.length&&Rm.throwError("data array too short",hy.errors.BUFFER_OVERRUN,{});return{consumed:1+n+r,result:Ny(e.slice(t+1+n,t+1+n+r))}}if(e[t]>=128){const n=e[t]-128;t+1+n>e.length&&Rm.throwError("data too short",hy.errors.BUFFER_OVERRUN,{});return{consumed:1+n,result:Ny(e.slice(t+1,t+1+n))}}return{consumed:1,result:Ny(e[t])}}function Hm(e){const t=by(e),n=Vm(t,0);return n.consumed!==t.length&&Rm.throwArgumentError("invalid rlp data","data",e),n.result}const Gm=new hy("address/5.7.0");function qm(e){Ey(e,20)||Gm.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let e=0;e<40;e++)n[e]=t[e].charCodeAt(0);const r=by(Bm(n));for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&r[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const Zm={};for(let e=0;e<10;e++)Zm[String(e)]=String(e);for(let e=0;e<26;e++)Zm[String.fromCharCode(65+e)]=String(10+e);const Jm=Math.floor(function(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}(9007199254740991));function Xm(e){let t=null;if("string"!=typeof e&&Gm.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=qm(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&Gm.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>Zm[e])).join("");for(;t.length>=Jm;){let e=t.substring(0,Jm);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}(e)&&Gm.throwArgumentError("bad icap checksum","address",e),n=e.substring(4),t=new jy(n,36).toString(16);t.length<40;)t="0"+t;t=qm("0x"+t)}else Gm.throwArgumentError("invalid address","address",e);var n;return t}function Km(e){let t=null;try{t=Xm(e.from)}catch(t){Gm.throwArgumentError("missing from address","transaction",e)}return Xm(Iy(Bm(Ym([t,My(by(zy.from(e.nonce).toHexString()))])),12))}class $m extends Om{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=Xm(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return Xm(xy(e.readValue().toHexString(),20))}}class eg extends Om{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const tg=new hy("abi/5.7.0");function ng(e,t,n){let r=null;if(Array.isArray(n))r=n;else if(n&&"object"==typeof n){let e={};r=t.map((t=>{const r=t.localName;return r||tg.throwError("cannot encode object for signature with missing names",hy.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]&&tg.throwError("cannot encode object for signature with duplicate names",hy.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]=!0,n[r]}))}else tg.throwArgumentError("invalid tuple value","tuple",n);t.length!==r.length&&tg.throwArgumentError("types/value length mismatch","tuple",n);let i=new zm(e.wordSize),o=new zm(e.wordSize),a=[];t.forEach(((e,t)=>{let n=r[t];if(e.dynamic){let t=o.length;e.encode(o,n);let r=i.writeUpdatableValue();a.push((e=>{r(e+t)}))}else e.encode(i,n)})),a.forEach((e=>{e(i.length)}));let s=e.appendWriter(i);return s+=e.appendWriter(o),s}function rg(e,t){let n=[],r=e.subReader(0);t.forEach((t=>{let i=null;if(t.dynamic){let n=e.readValue(),o=r.subReader(n.toNumber());try{i=t.decode(o)}catch(e){if(e.code===hy.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===hy.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&n.push(i)}));const i=t.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});t.forEach(((e,t)=>{let r=e.localName;if(!r||1!==i[r])return;if("length"===r&&(r="_length"),null!=n[r])return;const o=n[t];o instanceof Error?Object.defineProperty(n,r,{enumerable:!0,get:()=>{throw o}}):n[r]=o}));for(let e=0;e{throw t}})}return Object.freeze(n)}class ig extends Om{constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;ne._data.length&&tg.throwError("insufficient data length",hy.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let n=[];for(let e=0;e>6==2;r++)e++;return e}return e===gg.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(mg||(mg={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(gg||(gg={}));const bg=Object.freeze({error:function(e,t,n,r,i){return yg.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:vg,replace:function(e,t,n,r,i){return e===gg.OVERLONG?(r.push(i),0):(r.push(65533),vg(e,t,n))}});function wg(e,t){null==t&&(t=bg.error),e=by(e);const n=[];let r=0;for(;r>7==0){n.push(i);continue}let o=null,a=null;if(192==(224&i))o=1,a=127;else if(224==(240&i))o=2,a=2047;else{if(240!=(248&i)){r+=t(128==(192&i)?gg.UNEXPECTED_CONTINUE:gg.BAD_PREFIX,r-1,e,n);continue}o=3,a=65535}if(r-1+o>=e.length){r+=t(gg.OVERRUN,r-1,e,n);continue}let s=i&(1<<8-o-1)-1;for(let i=0;i1114111?r+=t(gg.OUT_OF_RANGE,r-1-o,e,n,s):s>=55296&&s<=57343?r+=t(gg.UTF16_SURROGATE,r-1-o,e,n,s):s<=a?r+=t(gg.OVERLONG,r-1-o,e,n,s):n.push(s))}return n}function Mg(e,t=mg.current){t!=mg.current&&(yg.checkNormalize(),e=e.normalize(t));let n=[];for(let t=0;t>6|192),n.push(63&r|128);else if(55296==(64512&r)){t++;const i=e.charCodeAt(t);if(t>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&r)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(r>>12|224),n.push(r>>6&63|128),n.push(63&r|128)}return by(n)}function Ag(e,t){return wg(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}class Eg extends ag{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,Mg(t))}decode(e){return Ag(super.decode(e))}}class Ng extends Om{constructor(e,t){let n=!1;const r=[];e.forEach((e=>{e.dynamic&&(n=!0),r.push(e.type)}));super("tuple","tuple("+r.join(",")+")",t,n),this.coders=e}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach(((n,r)=>{let i=n.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[r]))})),Object.freeze(e)}encode(e,t){return ng(e,this.coders,t)}decode(e){return e.coerce(this.name,rg(e,this.coders))}}const Tg=new hy("abi/5.7.0"),Ig=new RegExp(/^bytes([0-9]*)$/),kg=new RegExp(/^(u?int)([0-9]*)$/);const Lg=new class{constructor(e){tm(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new $m(e.name);case"bool":return new og(e.name);case"string":return new Eg(e.name);case"bytes":return new sg(e.name);case"array":return new ig(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new Ng((e.components||[]).map((e=>this._getCoder(e))),e.name);case"":return new cg(e.name)}let t=e.type.match(kg);if(t){let n=parseInt(t[2]||"256");return(0===n||n>256||n%8!=0)&&Tg.throwArgumentError("invalid "+t[1]+" bit length","param",e),new fg(n/8,"int"===t[1],e.name)}if(t=e.type.match(Ig),t){let n=parseInt(t[1]);return(0===n||n>32)&&Tg.throwArgumentError("invalid bytes length","param",e),new ug(n,e.name)}return Tg.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new _m(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new zm(this._getWordSize())}getDefaultValue(e){const t=e.map((e=>this._getCoder(vm.from(e))));return new Ng(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&Tg.throwError("types/values length mismatch",hy.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const n=e.map((e=>this._getCoder(vm.from(e)))),r=new Ng(n,"_"),i=this._getWriter();return r.encode(i,t),i.data}decode(e,t,n){const r=e.map((e=>this._getCoder(vm.from(e))));return new Ng(r,"_").decode(this._getReader(by(t),n))}};function xg(e){return Bm(Mg(e))}function Sg(e){e=atob(e);const t=[];for(let n=0;n0&&Array.isArray(e)?i(e,t-1):n.push(e)}))};return i(e,t),n}function Dg(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,o=[0,1];for(let e=1;e>--u&1}const d=Math.pow(2,31),h=d>>>1,p=h>>1,f=d-1;let y=0;for(let e=0;e<31;e++)y=y<<1|l();let m=[],g=0,v=d;for(;;){let e=Math.floor(((y-g+1)*i-1)/v),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e>>1|l(),a=a<<1^h,s=(s^h)<<1|h|1;g=a,v=1+s-a}let b=r-4;return m.map((t=>{switch(t-b){case 3:return b+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return b+256+(e[s++]<<8|e[s++]);case 1:return b+e[s++];default:return t-1}}))}(e))}function Og(e){return 1&e?~e>>1:e>>1}function zg(e,t){let n=Array(e);for(let r=0,i=-1;rt[e])):n}function Bg(e,t,n){let r=Array(e).fill(void 0).map((()=>[]));for(let i=0;ir[t].push(e)));return r}function Rg(e,t){let n=1+t(),r=t(),i=function(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(n)}return t}(t);return Cg(Bg(i.length,1+e,t).map(((e,t)=>{const o=e[0],a=e.slice(1);return Array(i[t]).fill(void 0).map(((e,t)=>{let i=t*r;return[o+t*n,a.map((e=>e+i))]}))})))}function Ug(e,t){return Bg(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const Wg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cXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),Qg=new Set(Pg(Wg)),Yg=new Set(Pg(Wg)),Fg=function(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(Rg(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(Ug(n,e))}return function(e){const t={};for(let n=0;ne-t));return function n(){let r=[];for(;;){let i=Pg(e,t);if(0==i.length)break;r.push({set:new Set(i),node:n()})}r.sort(((e,t)=>t.set.size-e.set.size));let i=e(),o=i%3;i=i/3|0;let a=!!(1&i);return i>>=1,{branches:r,valid:o,fe0f:a,save:1==i,check:2==i}}()}(Wg);function Hg(e){return function(e,t=mg.current){return wg(Mg(e,t))}(e)}function Gg(e){return e.filter((e=>65039!=e))}function qg(e){for(let t of e.split(".")){let e=Hg(t);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw new Error("underscore only allowed at start");if(e.length>=4&&e.every((e=>e<128))&&45===e[2]&&45===e[3])throw new Error("invalid label extension")}catch(e){throw new Error(`Invalid label "${t}": ${e.message}`)}}return e}function Zg(e){return qg(function(e,t){let n=Hg(e).reverse(),r=[];for(;n.length;){let e=Jg(n);if(e){r.push(...t(e));continue}let i=n.pop();if(Qg.has(i)){r.push(i);continue}if(Yg.has(i))continue;let o=Fg[i];if(!o)throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`);r.push(...o)}return qg(function(e){return e.normalize("NFC")}(String.fromCodePoint(...r)))}(e,Gg))}function Jg(e,t){var n;let r,i,o=Vg,a=[],s=e.length;for(t&&(t.length=0);s;){let u=e[--s];if(o=null===(n=o.branches.find((e=>e.set.has(u))))||void 0===n?void 0:n.node,!o)break;if(o.save)i=u;else if(o.check&&u===i)break;a.push(u),o.fe0f&&(a.push(65039),s>0&&65039==e[s-1]&&s--),o.valid&&(r=a.slice(),2==o.valid&&r.splice(1,1),t&&t.push(...e.slice(s).reverse()),e.length=s)}return r}const Xg=new hy("hash/5.7.0"),Kg=new Uint8Array(32);function $g(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function ev(e){const t=Mg(Zg(e)),n=[];if(0===e.length)return n;let r=0;for(let e=0;e=t.length)throw new Error("invalid ENS name; empty component");return n.push($g(t.slice(r))),n}function tv(e){"string"!=typeof e&&Xg.throwArgumentError("invalid ENS name; not a string","name",e);let t=Kg;const n=ev(e);for(;n.length;)t=Bm(wy([t,Bm(n.pop())]));return Ny(t)}Kg.fill(0);var nv=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const rv=new hy("hash/5.7.0"),iv=new Uint8Array(32);iv.fill(0);const ov=zy.from(-1),av=zy.from(0),sv=zy.from(1),uv=zy.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const cv=xy(sv.toHexString(),32),lv=xy(av.toHexString(),32),dv={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},hv=["name","version","chainId","verifyingContract","salt"];function pv(e){return function(t){return"string"!=typeof t&&rv.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const fv={name:pv("name"),version:pv("version"),chainId:function(e){try{return zy.from(e).toString()}catch(e){}return rv.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return Xm(e).toLowerCase()}catch(e){}return rv.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=by(e);if(32!==t.length)throw new Error("bad length");return Ny(t)}catch(e){}return rv.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function yv(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const n=""===t[1],r=parseInt(t[2]||"256");(r%8!=0||r>256||t[2]&&t[2]!==String(r))&&rv.throwArgumentError("invalid numeric width","type",e);const i=uv.mask(n?r-1:r),o=n?i.add(sv).mul(ov):av;return function(t){const n=zy.from(t);return(n.lt(o)||n.gt(i))&&rv.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),xy(n.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const n=parseInt(t[1]);return(0===n||n>32||t[1]!==String(n))&&rv.throwArgumentError("invalid bytes width","type",e),function(t){return by(t).length!==n&&rv.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){const t=by(e),n=t.length%32;return n?ky([t,iv.slice(n)]):Ny(t)}(t)}}}switch(e){case"address":return function(e){return xy(Xm(e),32)};case"bool":return function(e){return e?cv:lv};case"bytes":return function(e){return Bm(e)};case"string":return function(e){return xg(e)}}return null}function mv(e,t){return`${e}(${t.map((({name:e,type:t})=>t+" "+e)).join(",")})`}class gv{constructor(e){tm(this,"types",Object.freeze(um(e))),tm(this,"_encoderCache",{}),tm(this,"_types",{});const t={},n={},r={};Object.keys(e).forEach((e=>{t[e]={},n[e]=[],r[e]={}}));for(const r in e){const i={};e[r].forEach((o=>{i[o.name]&&rv.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(r)}`,"types",e),i[o.name]=!0;const a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===r&&rv.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e);yv(a)||(n[a]||rv.throwArgumentError(`unknown type ${JSON.stringify(a)}`,"types",e),n[a].push(r),t[r][a]=!0)}))}const i=Object.keys(n).filter((e=>0===n[e].length));0===i.length?rv.throwArgumentError("missing primary type","types",e):i.length>1&&rv.throwArgumentError(`ambiguous primary types or unused types: ${i.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),tm(this,"primaryType",i[0]),function i(o,a){a[o]&&rv.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",e),a[o]=!0,Object.keys(t[o]).forEach((e=>{n[e]&&(i(e,a),Object.keys(a).forEach((t=>{r[t][e]=!0})))})),delete a[o]}(this.primaryType,{});for(const t in r){const n=Object.keys(r[t]);n.sort(),this._types[t]=mv(t,e[t])+n.map((t=>mv(t,e[t]))).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=yv(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],n=this.getEncoder(e),r=parseInt(t[3]);return t=>{r>=0&&t.length!==r&&rv.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(n);return this._types[e]&&(i=i.map(Bm)),Bm(ky(i))}}const n=this.types[e];if(n){const t=xg(this._types[e]);return e=>{const r=n.map((({name:t,type:n})=>{const r=this.getEncoder(n)(e[t]);return this._types[n]?Bm(r):r}));return r.unshift(t),ky(r)}}return rv.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||rv.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return Bm(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(yv(e))return n(e,t);const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const e=r[1],i=parseInt(r[3]);return i>=0&&t.length!==i&&rv.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((t=>this._visit(e,t,n)))}const i=this.types[e];return i?i.reduce(((e,{name:r,type:i})=>(e[r]=this._visit(i,t[r],n),e)),{}):rv.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new gv(e)}static getPrimaryType(e){return gv.from(e).primaryType}static hashStruct(e,t,n){return gv.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){const r=dv[n];r||rv.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort(((e,t)=>hv.indexOf(e.name)-hv.indexOf(t.name))),gv.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return ky(["0x1901",gv.hashDomain(e),gv.from(t).hash(n)])}static hash(e,t,n){return Bm(gv.encode(e,t,n))}static resolveNames(e,t,n,r){return nv(this,void 0,void 0,(function*(){e=im(e);const i={};e.verifyingContract&&!Ey(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=gv.from(t);o.visit(n,((e,t)=>("address"!==e||Ey(t,20)||(i[t]="0x"),t)));for(const e in i)i[e]=yield r(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=o.visit(n,((e,t)=>"address"===e&&i[t]?i[t]:t)),{domain:e,value:n}}))}static getPayload(e,t,n){gv.hashDomain(e);const r={},i=[];hv.forEach((t=>{const n=e[t];null!=n&&(r[t]=fv[t](n),i.push({name:t,type:dv[t]}))}));const o=gv.from(t),a=im(t);return a.EIP712Domain?rv.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):a.EIP712Domain=i,o.encode(n),{types:a,domain:r,primaryType:o.primaryType,message:o.visit(n,((e,t)=>{if(e.match(/^bytes(\d*)/))return Ny(by(t));if(e.match(/^u?int/))return zy.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&rv.throwArgumentError("invalid string","value",t),t}return rv.throwArgumentError("unsupported type","type",e)}))}}}const vv=new hy("abi/5.7.0");class bv extends cm{}class wv extends cm{}class Mv extends cm{}class Av extends cm{static isIndexed(e){return!(!e||!e._isIndexed)}}const Ev={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Nv(e,t){const n=new Error(`deferred error during ABI decoding triggered accessing ${e}`);return n.error=t,n}class Tv{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,tm(this,"fragments",t.map((e=>wm.from(e))).filter((e=>null!=e))),tm(this,"_abiCoder",nm(new.target,"getAbiCoder")()),tm(this,"functions",{}),tm(this,"errors",{}),tm(this,"events",{}),tm(this,"structs",{}),this.fragments.forEach((e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void vv.warn("duplicate definition - constructor"):void tm(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let n=e.format();t[n]?vv.warn("duplicate definition - "+n):t[n]=e})),this.deploy||tm(this,"deploy",Tm.from({payable:!1,type:"constructor"})),tm(this,"_isInterface",!0)}format(e){e||(e=mm.full),e===mm.sighash&&vv.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map((t=>t.format(e)));return e===mm.json?JSON.stringify(t.map((e=>JSON.parse(e)))):t}static getAbiCoder(){return Lg}static getAddress(e){return Xm(e)}static getSighash(e){return Iy(xg(e.format()),0,4)}static getEventTopic(e){return xg(e.format())}getFunction(e){if(Ey(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];vv.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.functions).filter((e=>e.split("(")[0]===t));return 0===n.length?vv.throwArgumentError("no matching function","name",t):n.length>1&&vv.throwArgumentError("multiple matching functions","name",t),this.functions[n[0]]}const t=this.functions[Im.fromString(e).format()];return t||vv.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(Ey(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];vv.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.events).filter((e=>e.split("(")[0]===t));return 0===n.length?vv.throwArgumentError("no matching event","name",t):n.length>1&&vv.throwArgumentError("multiple matching events","name",t),this.events[n[0]]}const t=this.events[Mm.fromString(e).format()];return t||vv.throwArgumentError("no matching event","signature",e),t}getError(e){if(Ey(e)){const t=nm(this.constructor,"getSighash");for(const n in this.errors){if(e===t(this.errors[n]))return this.errors[n]}vv.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.errors).filter((e=>e.split("(")[0]===t));return 0===n.length?vv.throwArgumentError("no matching error","name",t):n.length>1&&vv.throwArgumentError("multiple matching errors","name",t),this.errors[n[0]]}const t=this.errors[Im.fromString(e).format()];return t||vv.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return nm(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),nm(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));const n=by(t);return Ny(n.slice(0,4))!==this.getSighash(e)&&vv.throwArgumentError(`data signature does not match error ${e.name}.`,"data",Ny(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),Ny(wy([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));const n=by(t);return Ny(n.slice(0,4))!==this.getSighash(e)&&vv.throwArgumentError(`data signature does not match function ${e.name}.`,"data",Ny(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Ny(wy([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let n=by(t),r=null,i="",o=null,a=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(e){}break;case 4:{const e=Ny(n.slice(0,4)),t=Ev[e];if(t)o=this._abiCoder.decode(t.inputs,n.slice(4)),a=t.name,s=t.signature,t.reason&&(r=o[0]),"Error"===a?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:"Panic"===a&&(i=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const t=this.getError(e);o=this._abiCoder.decode(t.inputs,n.slice(4)),a=t.name,s=t.format()}catch(e){}break}}return vv.throwError("call revert exception"+i,hy.errors.CALL_EXCEPTION,{method:e.format(),data:Ny(t),errorArgs:o,errorName:a,errorSignature:s,reason:r})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Ny(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&vv.throwError("too many arguments for "+e.format(),hy.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let n=[];e.anonymous||n.push(this.getEventTopic(e));const r=(e,t)=>"string"===e.type?xg(t):"bytes"===e.type?Bm(Ny(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=zy.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),xy(Ny(t),32));for(t.forEach(((t,i)=>{let o=e.inputs[i];o.indexed?null==t?n.push(null):"array"===o.baseType||"tuple"===o.baseType?vv.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?n.push(t.map((e=>r(o,e)))):n.push(r(o,t)):null!=t&&vv.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const n=[],r=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&vv.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(((e,o)=>{const a=t[o];if(e.indexed)if("string"===e.type)n.push(xg(a));else if("bytes"===e.type)n.push(Bm(a));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(this._abiCoder.encode([e.type],[a]))}else r.push(e),i.push(a)})),{data:this._abiCoder.encode(r,i),topics:n}}decodeEventLog(e,t,n){if("string"==typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){let t=this.getEventTopic(e);Ey(n[0],32)&&n[0].toLowerCase()===t||vv.throwError("fragment/topic mismatch",hy.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:n[0]}),n=n.slice(1)}let r=[],i=[],o=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(vm.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(r.push(e),o.push(!1)):(i.push(e),o.push(!1))}));let a=null!=n?this._abiCoder.decode(r,wy(n)):null,s=this._abiCoder.decode(i,t,!0),u=[],c=0,l=0;e.inputs.forEach(((e,t)=>{if(e.indexed)if(null==a)u[t]=new Av({_isIndexed:!0,hash:null});else if(o[t])u[t]=new Av({_isIndexed:!0,hash:a[l++]});else try{u[t]=a[l++]}catch(e){u[t]=e}else try{u[t]=s[c++]}catch(e){u[t]=e}if(e.name&&null==u[e.name]){const n=u[t];n instanceof Error?Object.defineProperty(u,e.name,{enumerable:!0,get:()=>{throw Nv(`property ${JSON.stringify(e.name)}`,n)}}):u[e.name]=n}}));for(let e=0;e{throw Nv(`index ${e}`,t)}})}return Object.freeze(u)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new wv({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:zy.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new bv({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){const t=Ny(e);let n=this.getError(t.substring(0,10).toLowerCase());return n?new Mv({args:this._abiCoder.decode(n.inputs,"0x"+t.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!(!e||!e._isInterface)}}var Iv=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const kv=new hy("abstract-provider/5.7.0");class Lv extends cm{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class xv{constructor(){kv.checkAbstract(new.target,xv),tm(this,"_isProvider",!0)}getFeeData(){return Iv(this,void 0,void 0,(function*(){const{block:e,gasPrice:t}=yield rm({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((e=>null))});let n=null,r=null,i=null;return e&&e.baseFeePerGas&&(n=e.baseFeePerGas,i=zy.from("1500000000"),r=e.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:n,maxFeePerGas:r,maxPriorityFeePerGas:i,gasPrice:t}}))}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}var Sv=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const jv=new hy("abstract-signer/5.7.0"),Cv=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Dv=[hy.errors.INSUFFICIENT_FUNDS,hy.errors.NONCE_EXPIRED,hy.errors.REPLACEMENT_UNDERPRICED];class Ov{constructor(){jv.checkAbstract(new.target,Ov),tm(this,"_isSigner",!0)}getBalance(e){return Sv(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return Sv(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return Sv(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield rm(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return Sv(this,void 0,void 0,(function*(){this._checkProvider("call");const n=yield rm(this.checkTransaction(e));return yield this.provider.call(n,t)}))}sendTransaction(e){return Sv(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),n=yield this.signTransaction(t);return yield this.provider.sendTransaction(n)}))}getChainId(){return Sv(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return Sv(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return Sv(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return Sv(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const t in e)-1===Cv.indexOf(t)&&jv.throwArgumentError("invalid transaction key: "+t,"transaction",e);const t=im(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then((t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&jv.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return Sv(this,void 0,void 0,(function*(){const t=yield rm(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>Sv(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&jv.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})))),t.to.catch((e=>{})));const n=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!n?0!==t.type&&1!==t.type||!n||jv.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):jv.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(n&&jv.throwError("network does not support EIP-1559",hy.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):jv.throwError("failed to get consistent fee data",hy.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch((e=>{if(Dv.indexOf(e.code)>=0)throw e;return jv.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",hy.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})}))),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then((t=>(0!==t[1]&&t[0]!==t[1]&&jv.throwArgumentError("chainId address mismatch","transaction",e),t[0]))),yield rm(t)}))}_checkProvider(e){this.provider||jv.throwError("missing provider",hy.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class zv extends Ov{constructor(e,t){super(),tm(this,"address",e),tm(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{jv.throwError(e,hy.errors.UNSUPPORTED_OPERATION,{operation:t})}))}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new zv(this.address,e)}}var _v=Pv;function Pv(e,t){if(!e)throw new Error(t||"Assertion failed")}Pv.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var Bv=function(){return function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}()&&!!Symbol.toStringTag},Rv="undefined"!=typeof Symbol&&Symbol,Uv="Function.prototype.bind called on incompatible ",Wv=Array.prototype.slice,Qv=Object.prototype.toString,Yv=Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||"[object Function]"!==Qv.call(t))throw new TypeError(Uv+t);for(var n,r=Wv.call(arguments,1),i=function(){if(this instanceof n){var i=t.apply(this,r.concat(Wv.call(arguments)));return Object(i)===i?i:this}return t.apply(e,r.concat(Wv.call(arguments)))},o=Math.max(0,t.length-r.length),a=[],s=0;s1&&"boolean"!=typeof t)throw new Gv('"allowMissing" argument must be a boolean');if(null===cb(/^%?[^%]*%?$/,e))throw new Vv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=hb(e),r=n.length>0?n[0]:"",i=pb("%"+r+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(r=u[0],ab(n,ob([0,1],u)));for(var c=1,l=!0;c=n.length){var f=Zv(a,d);a=(l=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:a[d]}else l=Fv(a,d),a=a[d];l&&!s&&(nb[o]=a)}}return a},yb=o((function(e){var t=fb("%Function.prototype.apply%"),n=fb("%Function.prototype.call%"),r=fb("%Reflect.apply%",!0)||Yv.call(n,t),i=fb("%Object.getOwnPropertyDescriptor%",!0),o=fb("%Object.defineProperty%",!0),a=fb("%Math.max%");if(o)try{o({},"a",{value:1})}catch(e){o=null}e.exports=function(e){var t=r(Yv,n,arguments);if(i&&o){var s=i(t,"length");s.configurable&&o(t,"length",{value:1+a(0,e.length-(arguments.length-1))})}return t};var s=function(){return r(Yv,t,arguments)};o?o(e.exports,"apply",{value:s}):e.exports.apply=s})),mb=yb(fb("String.prototype.indexOf")),gb=function(e,t){var n=fb(e,!!t);return"function"==typeof n&&mb(e,".prototype.")>-1?yb(n):n},vb=Bv(),bb=gb("Object.prototype.toString"),wb=function(e){return!(vb&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===bb(e)},Mb=function(e){return!!wb(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==bb(e)&&"[object Function]"===bb(e.callee)},Ab=function(){return wb(arguments)}();wb.isLegacyArguments=Mb;var Eb,Nb,Tb,Ib=Ab?wb:Mb,kb=Object.prototype.toString,Lb=Function.prototype.toString,xb=/^\s*(?:function)?\*/,Sb=Bv(),jb=Object.getPrototypeOf,Cb=function(e){if("function"!=typeof e)return!1;if(xb.test(Lb.call(e)))return!0;if(!Sb)return"[object GeneratorFunction]"===kb.call(e);if(!jb)return!1;if(void 0===Eb){var t=function(){if(!Sb)return!1;try{return Function("return function*() {}")()}catch(e){}}();Eb=!!t&&jb(t)}return jb(e)===Eb},Db=Function.prototype.toString,Ob="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Ob&&"function"==typeof Object.defineProperty)try{Nb=Object.defineProperty({},"length",{get:function(){throw Tb}}),Tb={},Ob((function(){throw 42}),null,Nb)}catch(e){e!==Tb&&(Ob=null)}else Ob=null;var zb=/^\s*class\b/,_b=function(e){try{var t=Db.call(e);return zb.test(t)}catch(e){return!1}},Pb=function(e){try{return!_b(e)&&(Db.call(e),!0)}catch(e){return!1}},Bb=Object.prototype.toString,Rb="function"==typeof Symbol&&!!Symbol.toStringTag,Ub=!(0 in[,]),Wb=function(){return!1};if("object"==typeof document){var Qb=document.all;Bb.call(Qb)===Bb.call(document.all)&&(Wb=function(e){if((Ub||!e)&&(void 0===e||"object"==typeof e))try{var t=Bb.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}var Yb=Ob?function(e){if(Wb(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{Ob(e,null,Nb)}catch(e){if(e!==Tb)return!1}return!_b(e)&&Pb(e)}:function(e){if(Wb(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(Rb)return Pb(e);if(_b(e))return!1;var t=Bb.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&Pb(e)},Fb=Object.prototype.toString,Vb=Object.prototype.hasOwnProperty,Hb=function(e,t,n){for(var r=0,i=e.length;r=3&&(r=n),"[object Array]"===Fb.call(e)?Hb(e,t,r):"string"==typeof e?Gb(e,t,r):qb(e,t,r)},Jb=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Xb="undefined"==typeof globalThis?r:globalThis,Kb=function(){for(var e=[],t=0;t-1}return!!nw&&function(e){var t=!1;return Zb(cw,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)},hw=gb("Object.prototype.toString"),pw=Bv(),fw="undefined"==typeof globalThis?r:globalThis,yw=Kb(),mw=gb("String.prototype.slice"),gw={},vw=Object.getPrototypeOf;pw&&ew&&vw&&Zb(yw,(function(e){if("function"==typeof fw[e]){var t=new fw[e];if(Symbol.toStringTag in t){var n=vw(t),r=ew(n,Symbol.toStringTag);if(!r){var i=vw(n);r=ew(i,Symbol.toStringTag)}gw[e]=r.get}}}));var bw=function(e){return!!dw(e)&&(pw&&Symbol.toStringTag in e?function(e){var t=!1;return Zb(gw,(function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}})),t}(e):mw(hw(e),8,-1))},ww=o((function(e,t){function n(e){return e.call.bind(e)}var r="undefined"!=typeof BigInt,i="undefined"!=typeof Symbol,o=n(Object.prototype.toString),a=n(Number.prototype.valueOf),s=n(String.prototype.valueOf),u=n(Boolean.prototype.valueOf);if(r)var c=n(BigInt.prototype.valueOf);if(i)var l=n(Symbol.prototype.valueOf);function d(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function h(e){return"[object Map]"===o(e)}function p(e){return"[object Set]"===o(e)}function f(e){return"[object WeakMap]"===o(e)}function y(e){return"[object WeakSet]"===o(e)}function m(e){return"[object ArrayBuffer]"===o(e)}function g(e){return"undefined"!=typeof ArrayBuffer&&(m.working?m(e):e instanceof ArrayBuffer)}function v(e){return"[object DataView]"===o(e)}function b(e){return"undefined"!=typeof DataView&&(v.working?v(e):e instanceof DataView)}t.isArgumentsObject=Ib,t.isGeneratorFunction=Cb,t.isTypedArray=dw,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):dw(e)||b(e)},t.isUint8Array=function(e){return"Uint8Array"===bw(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===bw(e)},t.isUint16Array=function(e){return"Uint16Array"===bw(e)},t.isUint32Array=function(e){return"Uint32Array"===bw(e)},t.isInt8Array=function(e){return"Int8Array"===bw(e)},t.isInt16Array=function(e){return"Int16Array"===bw(e)},t.isInt32Array=function(e){return"Int32Array"===bw(e)},t.isFloat32Array=function(e){return"Float32Array"===bw(e)},t.isFloat64Array=function(e){return"Float64Array"===bw(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===bw(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===bw(e)},h.working="undefined"!=typeof Map&&h(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(h.working?h(e):e instanceof Map)},p.working="undefined"!=typeof Set&&p(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(p.working?p(e):e instanceof Set)},f.working="undefined"!=typeof WeakMap&&f(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(f.working?f(e):e instanceof WeakMap)},y.working="undefined"!=typeof WeakSet&&y(new WeakSet),t.isWeakSet=function(e){return y(e)},m.working="undefined"!=typeof ArrayBuffer&&m(new ArrayBuffer),t.isArrayBuffer=g,v.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&v(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=b;var w="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function M(e){return"[object SharedArrayBuffer]"===o(e)}function A(e){return void 0!==w&&(void 0===M.working&&(M.working=M(new w)),M.working?M(e):e instanceof w)}function E(e){return d(e,a)}function N(e){return d(e,s)}function T(e){return d(e,u)}function I(e){return r&&d(e,c)}function k(e){return i&&d(e,l)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===o(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===o(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===o(e)},t.isGeneratorObject=function(e){return"[object Generator]"===o(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===o(e)},t.isNumberObject=E,t.isStringObject=N,t.isBooleanObject=T,t.isBigIntObject=I,t.isSymbolObject=k,t.isBoxedPrimitive=function(e){return E(e)||N(e)||T(e)||I(e)||k(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(g(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))})),Mw=[],Aw=[],Ew="undefined"!=typeof Uint8Array?Uint8Array:Array,Nw=!1;function Tw(){Nw=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+Mw[i>>12&63]+Mw[i>>6&63]+Mw[63&i]);return o.join("")}function kw(e){var t;Nw||Tw();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(t=e[n-1],i+=Mw[t>>2],i+=Mw[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Mw[t>>10],i+=Mw[t>>4&63],i+=Mw[t<<2&63],i+="="),o.push(i),o.join("")}function Lw(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)}function xw(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*y}var Sw={}.toString,jw=Array.isArray||function(e){return"[object Array]"==Sw.call(e)};function Cw(){return Ow.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Dw(e,t){if(Cw()=Cw())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Cw().toString(16)+" bytes");return 0|e}function Uw(e){return!(null==e||!e._isBuffer)}function Ww(e,t){if(Uw(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return pM(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return fM(e).length;default:if(r)return pM(e).length;t=(""+t).toLowerCase(),r=!0}}function Qw(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return nM(this,t,n);case"utf8":case"utf-8":return $w(this,t,n);case"ascii":return eM(this,t,n);case"latin1":case"binary":return tM(this,t,n);case"base64":return Kw(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rM(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Yw(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Fw(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=Ow.from(t,r)),Uw(t))return 0===t.length?-1:Vw(e,t,n,r,i);if("number"==typeof t)return t&=255,Ow.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Vw(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Vw(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Kw(e,t,n){return 0===t&&n===e.length?kw(e):kw(e.slice(t,n))}function $w(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Ow.prototype.compare=function(e,t,n,r,i){if(!Uw(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),l=0;li)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Hw(this,e,t,n);case"utf8":case"utf-8":return Gw(this,e,t,n);case"ascii":return qw(this,e,t,n);case"latin1":case"binary":return Zw(this,e,t,n);case"base64":return Jw(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xw(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Ow.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function eM(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function oM(e,t,n,r,i,o){if(!Uw(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function aM(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function sM(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function uM(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function cM(e,t,n,r,i){return i||uM(e,0,n,4),xw(e,t,n,r,23,4),n+4}function lM(e,t,n,r,i){return i||uM(e,0,n,8),xw(e,t,n,r,52,8),n+8}Ow.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},Ow.prototype.readUInt8=function(e,t){return t||iM(e,1,this.length),this[e]},Ow.prototype.readUInt16LE=function(e,t){return t||iM(e,2,this.length),this[e]|this[e+1]<<8},Ow.prototype.readUInt16BE=function(e,t){return t||iM(e,2,this.length),this[e]<<8|this[e+1]},Ow.prototype.readUInt32LE=function(e,t){return t||iM(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ow.prototype.readUInt32BE=function(e,t){return t||iM(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ow.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||iM(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},Ow.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||iM(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Ow.prototype.readInt8=function(e,t){return t||iM(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ow.prototype.readInt16LE=function(e,t){t||iM(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ow.prototype.readInt16BE=function(e,t){t||iM(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ow.prototype.readInt32LE=function(e,t){return t||iM(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ow.prototype.readInt32BE=function(e,t){return t||iM(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ow.prototype.readFloatLE=function(e,t){return t||iM(e,4,this.length),Lw(this,e,!0,23,4)},Ow.prototype.readFloatBE=function(e,t){return t||iM(e,4,this.length),Lw(this,e,!1,23,4)},Ow.prototype.readDoubleLE=function(e,t){return t||iM(e,8,this.length),Lw(this,e,!0,52,8)},Ow.prototype.readDoubleBE=function(e,t){return t||iM(e,8,this.length),Lw(this,e,!1,52,8)},Ow.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||oM(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},Ow.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||oM(this,e,t,1,255,0),Ow.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ow.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||oM(this,e,t,2,65535,0),Ow.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):aM(this,e,t,!0),t+2},Ow.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||oM(this,e,t,2,65535,0),Ow.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):aM(this,e,t,!1),t+2},Ow.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||oM(this,e,t,4,4294967295,0),Ow.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):sM(this,e,t,!0),t+4},Ow.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||oM(this,e,t,4,4294967295,0),Ow.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):sM(this,e,t,!1),t+4},Ow.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);oM(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},Ow.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);oM(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},Ow.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||oM(this,e,t,1,127,-128),Ow.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ow.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||oM(this,e,t,2,32767,-32768),Ow.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):aM(this,e,t,!0),t+2},Ow.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||oM(this,e,t,2,32767,-32768),Ow.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):aM(this,e,t,!1),t+2},Ow.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||oM(this,e,t,4,2147483647,-2147483648),Ow.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):sM(this,e,t,!0),t+4},Ow.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||oM(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ow.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):sM(this,e,t,!1),t+4},Ow.prototype.writeFloatLE=function(e,t,n){return cM(this,e,t,!0,n)},Ow.prototype.writeFloatBE=function(e,t,n){return cM(this,e,t,!1,n)},Ow.prototype.writeDoubleLE=function(e,t,n){return lM(this,e,t,!0,n)},Ow.prototype.writeDoubleBE=function(e,t,n){return lM(this,e,t,!1,n)},Ow.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!Ow.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function fM(e){return function(e){var t,n,r,i,o,a;Nw||Tw();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Ew(3*s/4-o),r=o>0?s-4:s;var u=0;for(t=0,n=0;t>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=Aw[e.charCodeAt(t)]<<2|Aw[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=Aw[e.charCodeAt(t)]<<10|Aw[e.charCodeAt(t+1)]<<4|Aw[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(dM,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function yM(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function mM(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var gM=function(e){return e instanceof Ow},vM=o((function(e,t){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}})),u=i[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),f(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=l(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(f(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),A(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(E(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(M(n))return e.stylize(Date.prototype.toString.call(n),"date");if(A(n))return d(n)}var c,w="",N=!1,T=["{","}"];(p(n)&&(N=!0,T=["[","]"]),E(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),M(n)&&(w=" "+Date.prototype.toUTCString.call(n)),A(n)&&(w=" "+d(n)),0!==a.length||N&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=N?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,w,T)):T[0]+w+T[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),L(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function y(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===N(e)}function w(e){return"object"==typeof e&&null!==e}function M(e){return w(e)&&"[object Date]"===N(e)}function A(e){return w(e)&&("[object Error]"===N(e)||e instanceof Error)}function E(e){return"function"==typeof e}function N(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(o.test(e)){var n=Be.pid;i[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else i[e]=function(){};return i[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=ww,t.isArray=p,t.isBoolean=f,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.types.isRegExp=b,t.isObject=w,t.isDate=M,t.types.isDate=M,t.isError=A,t.types.isNativeError=A,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=gM;var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",k(),t.format.apply(t,arguments))},t.inherits=wM,t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var x="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function S(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!=typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o=e.length)&&56320==(64512&e.charCodeAt(t+1)))}var AM=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,n[r++]=63&o|128):MM(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}var TM=function(e,t){for(var n="",r=0;r>>0}return o};var xM=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n};var SM=function(e,t){return e>>>t|e<<32-t};var jM=function(e,t){return e<>>32-t};var CM=function(e,t){return e+t>>>0};var DM=function(e,t,n){return e+t+n>>>0};var OM=function(e,t,n,r){return e+t+n+r>>>0};var zM=function(e,t,n,r,i){return e+t+n+r+i>>>0};var _M=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o>>0,e[t+1]=o};var PM=function(e,t,n,r){return(t+r>>>0>>0};var BM=function(e,t,n,r){return t+r>>>0};var RM=function(e,t,n,r,i,o,a,s){var u=0,c=t;return u+=(c=c+r>>>0)>>0)>>0)>>0};var UM=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0};var WM=function(e,t,n,r,i,o,a,s,u,c){var l=0,d=t;return l+=(d=d+r>>>0)>>0)>>0)>>0)>>0};var QM=function(e,t,n,r,i,o,a,s,u,c){return t+r+o+s+c>>>0};var YM=function(e,t,n){return(t<<32-n|e>>>n)>>>0};var FM=function(e,t,n){return(e<<32-n|t>>>n)>>>0};var VM=function(e,t,n){return e>>>n};var HM=function(e,t,n){return(e<<32-n|t>>>n)>>>0},GM={inherits:wM,toArray:AM,toHex:EM,htonl:NM,toHex32:TM,zero2:IM,zero8:kM,join32:LM,split32:xM,rotr32:SM,rotl32:jM,sum32:CM,sum32_3:DM,sum32_4:OM,sum32_5:zM,sum64:_M,sum64_hi:PM,sum64_lo:BM,sum64_4_hi:RM,sum64_4_lo:UM,sum64_5_hi:WM,sum64_5_lo:QM,rotr64_hi:YM,rotr64_lo:FM,shr64_hi:VM,shr64_lo:HM};function qM(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var ZM=qM;qM.prototype.update=function(e,t){if(e=GM.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=GM.join32(e,0,e.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3};var oA=function(e){return XM(e,17)^XM(e,19)^e>>>10},aA={ft_1:KM,ch32:$M,maj32:eA,p32:tA,s0_256:nA,s1_256:rA,g0_256:iA,g1_256:oA},sA=GM.rotl32,uA=GM.sum32,cA=GM.sum32_5,lA=aA.ft_1,dA=JM.BlockHash,hA=[1518500249,1859775393,2400959708,3395469782];function pA(){if(!(this instanceof pA))return new pA;dA.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}GM.inherits(pA,dA);var fA=pA;pA.blockSize=512,pA.outSize=160,pA.hmacStrength=80,pA.padLength=64,pA.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;rthis.blockSize&&(e=(new this.Hash).update(e).digest()),_v(e.length<=this.blockSize);for(var t=e.length;t>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}})),LE=NE((function(e,t){var n=t;n.assert=TE,n.toArray=kE.toArray,n.zero2=kE.zero2,n.toHex=kE.toHex,n.encode=kE.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[0].push(a),s=0==(1&c)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==u?c:-c,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new ny(e,"hex","le")}})),xE=LE.getNAF,SE=LE.getJSF,jE=LE.assert;function CE(e,t){this.type=e,this.p=new ny(t.p,16),this.red=t.prime?ny.red(t.prime):ny.mont(this.p),this.zero=new ny(0).toRed(this.red),this.one=new ny(1).toRed(this.red),this.two=new ny(2).toRed(this.red),this.n=t.n&&new ny(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var DE=CE;function OE(e,t){this.curve=e,this.type=t,this.precomputed=null}CE.prototype.point=function(){throw new Error("Not implemented")},CE.prototype.validate=function(){throw new Error("Not implemented")},CE.prototype._fixedNafMul=function(e,t){jE(e.precomputed);var n=e._getDoubles(),r=xE(t,1,this._bitLength),i=(1<=o;u--)a=(a<<1)+r[u];s.push(a)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];jE(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},CE.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,d=0;for(o=0;o=1;o-=2){var p=o-1,f=o;if(1===u[p]&&1===u[f]){var y=[t[p],null,null,t[f]];0===t[p].y.cmp(t[f].y)?(y[1]=t[p].add(t[f]),y[2]=t[p].toJ().mixedAdd(t[f].neg())):0===t[p].y.cmp(t[f].y.redNeg())?(y[1]=t[p].toJ().mixedAdd(t[f]),y[2]=t[p].add(t[f].neg())):(y[1]=t[p].toJ().mixedAdd(t[f]),y[2]=t[p].toJ().mixedAdd(t[f].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=SE(n[p],n[f]);for(d=Math.max(g[0].length,d),l[p]=new Array(d),l[f]=new Array(d),a=0;a=0;o--){for(var A=0;o>=0;){var E=!0;for(a=0;a=0&&A++,w=w.dblp(A),o<0)break;for(a=0;a0?s=c[a][N-1>>1]:N<0&&(s=c[a][-N-1>>1].neg()),w="affine"===s.type?w.mixedAdd(s):w.add(s))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},OE.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0&&(o=t,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},PE.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),c=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},PE.prototype.pointFromX=function(e,t){(e=new ny(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},PE.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},PE.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},RE.prototype.isInfinity=function(){return this.inf},RE.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},RE.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},RE.prototype.getX=function(){return this.x.fromRed()},RE.prototype.getY=function(){return this.y.fromRed()},RE.prototype.mul=function(e){return e=new ny(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},RE.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},RE.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},RE.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},RE.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},RE.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},zE(UE,DE.BasePoint),PE.prototype.jpoint=function(e,t,n){return new UE(this,e,t,n)},UE.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},UE.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},UE.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),d=r.redMul(c),h=u.redSqr().redIAdd(l).redISub(d).redISub(d),p=u.redMul(d.redISub(h)).redISub(o.redMul(l)),f=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,p,f)},UE.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=n.redMul(u),d=s.redSqr().redIAdd(c).redISub(l).redISub(l),h=s.redMul(l.redISub(d)).redISub(i.redMul(c)),p=this.z.redMul(a);return this.curve.jpoint(d,h,p)},UE.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},UE.prototype.inspect=function(){return this.isInfinity()?"":""},UE.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var WE=NE((function(e,t){var n=t;n.base=DE,n.short=BE,n.mont=null,n.edwards=null})),QE=NE((function(e,t){var n,r=t,i=LE.assert;function o(e){"short"===e.type?this.curve=new WE.short(e):"edwards"===e.type?this.curve=new WE.edwards(e):this.curve=new WE.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:EE.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:EE.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:EE.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:EE.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:EE.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:EE.sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:EE.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(e){n=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:EE.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function YE(e){if(!(this instanceof YE))return new YE(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=kE.toArray(e.entropy,e.entropyEnc||"hex"),n=kE.toArray(e.nonce,e.nonceEnc||"hex"),r=kE.toArray(e.pers,e.persEnc||"hex");TE(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var FE=YE;YE.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},YE.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=kE.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"};var qE=LE.assert;function ZE(e,t){if(e instanceof ZE)return e;this._importDER(e,t)||(qE(e.r&&e.s,"Signature without r or s"),this.r=new ny(e.r,16),this.s=new ny(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var JE=ZE;function XE(){this.place=0}function KE(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function $E(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}ZE.prototype._importDER=function(e,t){e=LE.toArray(e,t);var n=new XE;if(48!==e[n.place++])return!1;var r=KE(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var i=KE(e,n);if(!1===i)return!1;var o=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var a=KE(e,n);if(!1===a)return!1;if(e.length!==a+n.place)return!1;var s=e.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new ny(o),this.s=new ny(s),this.recoveryParam=null,!0},ZE.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=$E(t),n=$E(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];eN(r,t.length),(r=r.concat(t)).push(2),eN(r,n.length);var i=r.concat(n),o=[48];return eN(o,i.length),o=o.concat(i),LE.encode(o,e)};var tN=function(){throw new Error("unsupported")},nN=LE.assert;function rN(e){if(!(this instanceof rN))return new rN(e);"string"==typeof e&&(nN(Object.prototype.hasOwnProperty.call(QE,e),"Unknown curve "+e),e=QE[e]),e instanceof QE.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var iN=rN;rN.prototype.keyPair=function(e){return new GE(this,e)},rN.prototype.keyFromPrivate=function(e,t){return GE.fromPrivate(this,e,t)},rN.prototype.keyFromPublic=function(e,t){return GE.fromPublic(this,e,t)},rN.prototype.genKeyPair=function(e){e||(e={});for(var t=new FE({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||tN(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new ny(2));;){var i=new ny(t.generate(n));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},rN.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},rN.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new ny(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new FE({hash:this.hash,entropy:o,nonce:a,pers:r.pers,persEnc:r.persEnc||"utf8"}),u=this.n.sub(new ny(1)),c=0;;c++){var l=r.k?r.k(c):new ny(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(u)>=0)){var d=this.g.mul(l);if(!d.isInfinity()){var h=d.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var f=l.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(f=f.umod(this.n)).cmpn(0)){var y=(d.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return r.canonical&&f.cmp(this.nh)>0&&(f=this.n.sub(f),y^=1),new JE({r:p,s:f,recoveryParam:y})}}}}}},rN.prototype.verify=function(e,t,n,r){e=this._truncateToN(new ny(e,16)),n=this.keyFromPublic(n,r);var i=(t=new JE(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),u=s.mul(e).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,n.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,n.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},rN.prototype.recoverPubKey=function(e,t,n,r){nN((3&n)===n,"The recovery param is more than two bits"),t=new JE(t,r);var i=this.n,o=new ny(e),a=t.r,s=t.s,u=1&n,c=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var l=t.r.invm(i),d=i.sub(o).mul(l).umod(i),h=s.mul(l).umod(i);return this.g.mulAdd(d,a,h)},rN.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new JE(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var oN=NE((function(e,t){var n=t;n.version="6.5.4",n.utils=LE,n.rand=function(){throw new Error("unsupported")},n.curve=WE,n.curves=QE,n.ec=iN,n.eddsa=null})).ec;const aN=new hy("signing-key/5.7.0");let sN=null;function uN(){return sN||(sN=new oN("secp256k1")),sN}class cN{constructor(e){tm(this,"curve","secp256k1"),tm(this,"privateKey",Ny(e)),32!==Ty(this.privateKey)&&aN.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=uN().keyFromPrivate(by(this.privateKey));tm(this,"publicKey","0x"+t.getPublic(!1,"hex")),tm(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),tm(this,"_isSigningKey",!0)}_addPoint(e){const t=uN().keyFromPublic(by(this.publicKey)),n=uN().keyFromPublic(by(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const t=uN().keyFromPrivate(by(this.privateKey)),n=by(e);32!==n.length&&aN.throwArgumentError("bad digest length","digest",e);const r=t.sign(n,{canonical:!0});return Sy({recoveryParam:r.recoveryParam,r:xy("0x"+r.r.toString(16),32),s:xy("0x"+r.s.toString(16),32)})}computeSharedSecret(e){const t=uN().keyFromPrivate(by(this.privateKey)),n=uN().keyFromPublic(by(lN(e)));return xy("0x"+t.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function lN(e,t){const n=by(e);if(32===n.length){const e=new cN(n);return t?"0x"+uN().keyFromPrivate(n).getPublic(!0,"hex"):e.publicKey}return 33===n.length?t?Ny(n):"0x"+uN().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+uN().keyFromPublic(n).getPublic(!0,"hex"):Ny(n):aN.throwArgumentError("invalid public or private key","key","[REDACTED]")}const dN=new hy("transactions/5.7.0");var hN;function pN(e){return"0x"===e?null:Xm(e)}function fN(e){return"0x"===e?dg:zy.from(e)}function yN(e,t){return function(e){return Xm(Iy(Bm(Iy(lN(e),1)),12))}(function(e,t){const n=Sy(t),r={r:by(n.r),s:by(n.s)};return"0x"+uN().recoverPubKey(by(e),r,n.recoveryParam).encode("hex",!1)}(by(e),t))}function mN(e,t){const n=My(zy.from(e).toHexString());return n.length>32&&dN.throwArgumentError("invalid length for "+t,"transaction:"+t,e),n}function gN(e,t){return{address:Xm(e),storageKeys:(t||[]).map(((t,n)=>(32!==Ty(t)&&dN.throwArgumentError("invalid access list storageKey",`accessList[${e}:${n}]`,t),t.toLowerCase())))}}function vN(e){if(Array.isArray(e))return e.map(((e,t)=>Array.isArray(e)?(e.length>2&&dN.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),gN(e[0],e[1])):gN(e.address,e.storageKeys)));const t=Object.keys(e).map((t=>{const n=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return gN(t,Object.keys(n).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}function bN(e){return vN(e).map((e=>[e.address,e.storageKeys]))}function wN(e,t){if(null!=e.gasPrice){const t=zy.from(e.gasPrice),n=zy.from(e.maxFeePerGas||0);t.eq(n)||dN.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}const n=[mN(e.chainId||0,"chainId"),mN(e.nonce||0,"nonce"),mN(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),mN(e.maxFeePerGas||0,"maxFeePerGas"),mN(e.gasLimit||0,"gasLimit"),null!=e.to?Xm(e.to):"0x",mN(e.value||0,"value"),e.data||"0x",bN(e.accessList||[])];if(t){const e=Sy(t);n.push(mN(e.recoveryParam,"recoveryParam")),n.push(My(e.r)),n.push(My(e.s))}return ky(["0x02",Ym(n)])}function MN(e,t){const n=[mN(e.chainId||0,"chainId"),mN(e.nonce||0,"nonce"),mN(e.gasPrice||0,"gasPrice"),mN(e.gasLimit||0,"gasLimit"),null!=e.to?Xm(e.to):"0x",mN(e.value||0,"value"),e.data||"0x",bN(e.accessList||[])];if(t){const e=Sy(t);n.push(mN(e.recoveryParam,"recoveryParam")),n.push(My(e.r)),n.push(My(e.s))}return ky(["0x01",Ym(n)])}function AN(e,t,n){try{const n=fN(t[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");e.v=n}catch(e){dN.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=xy(t[1],32),e.s=xy(t[2],32);try{const t=Bm(n(e));e.from=yN(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function EN(e){const t=by(e);if(t[0]>127)return function(e){const t=Hm(e);9!==t.length&&6!==t.length&&dN.throwArgumentError("invalid raw transaction","rawTransaction",e);const n={nonce:fN(t[0]).toNumber(),gasPrice:fN(t[1]),gasLimit:fN(t[2]),to:pN(t[3]),value:fN(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=zy.from(t[6]).toNumber()}catch(e){return n}if(n.r=xy(t[7],32),n.s=xy(t[8],32),zy.from(n.r).isZero()&&zy.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let r=n.v-27;const i=t.slice(0,6);0!==n.chainId&&(i.push(Ny(n.chainId)),i.push("0x"),i.push("0x"),r-=2*n.chainId+8);const o=Bm(Ym(i));try{n.from=yN(o,{r:Ny(n.r),s:Ny(n.s),recoveryParam:r})}catch(e){}n.hash=Bm(e)}return n.type=null,n}(t);switch(t[0]){case 1:return function(e){const t=Hm(e.slice(1));8!==t.length&&11!==t.length&&dN.throwArgumentError("invalid component count for transaction type: 1","payload",Ny(e));const n={type:1,chainId:fN(t[0]).toNumber(),nonce:fN(t[1]).toNumber(),gasPrice:fN(t[2]),gasLimit:fN(t[3]),to:pN(t[4]),value:fN(t[5]),data:t[6],accessList:vN(t[7])};return 8===t.length||(n.hash=Bm(e),AN(n,t.slice(8),MN)),n}(t);case 2:return function(e){const t=Hm(e.slice(1));9!==t.length&&12!==t.length&&dN.throwArgumentError("invalid component count for transaction type: 2","payload",Ny(e));const n=fN(t[2]),r=fN(t[3]),i={type:2,chainId:fN(t[0]).toNumber(),nonce:fN(t[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:fN(t[4]),to:pN(t[5]),value:fN(t[6]),data:t[7],accessList:vN(t[8])};return 9===t.length||(i.hash=Bm(e),AN(i,t.slice(9),wN)),i}(t)}return dN.throwError(`unsupported transaction type: ${t[0]}`,hy.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(hN||(hN={}));var NN=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const TN=new hy("contracts/5.7.0");function IN(e,t){return NN(this,void 0,void 0,(function*(){const n=yield t;"string"!=typeof n&&TN.throwArgumentError("invalid address or ENS name","name",n);try{return Xm(n)}catch(e){}e||TN.throwError("a provider or signer is needed to resolve ENS names",hy.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const r=yield e.resolveName(n);return null==r&&TN.throwArgumentError("resolver or addr is not configured for ENS name","name",n),r}))}function kN(e,t,n){return NN(this,void 0,void 0,(function*(){return Array.isArray(n)?yield Promise.all(n.map(((n,r)=>kN(e,Array.isArray(t)?t[r]:t[n.name],n)))):"address"===n.type?yield IN(e,t):"tuple"===n.type?yield kN(e,t,n.components):"array"===n.baseType?Array.isArray(t)?yield Promise.all(t.map((t=>kN(e,t,n.arrayChildren)))):Promise.reject(TN.makeError("invalid value for array",hy.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t}))}function LN(e,t,n){return NN(this,void 0,void 0,(function*(){let r={};n.length===t.inputs.length+1&&"object"==typeof n[n.length-1]&&(r=im(n.pop())),TN.checkArgumentCount(n.length,t.inputs.length,"passed to contract"),e.signer?r.from?r.from=rm({override:IN(e.signer,r.from),signer:e.signer.getAddress()}).then((e=>NN(this,void 0,void 0,(function*(){return Xm(e.signer)!==e.override&&TN.throwError("Contract with a Signer cannot override from",hy.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})))):r.from=e.signer.getAddress():r.from&&(r.from=IN(e.provider,r.from));const i=yield rm({args:kN(e.signer||e.provider,n,t.inputs),address:e.resolvedAddress,overrides:rm(r)||{}}),o=e.interface.encodeFunctionData(t,i.args),a={data:o,to:i.address},s=i.overrides;if(null!=s.nonce&&(a.nonce=zy.from(s.nonce).toNumber()),null!=s.gasLimit&&(a.gasLimit=zy.from(s.gasLimit)),null!=s.gasPrice&&(a.gasPrice=zy.from(s.gasPrice)),null!=s.maxFeePerGas&&(a.maxFeePerGas=zy.from(s.maxFeePerGas)),null!=s.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=zy.from(s.maxPriorityFeePerGas)),null!=s.from&&(a.from=s.from),null!=s.type&&(a.type=s.type),null!=s.accessList&&(a.accessList=vN(s.accessList)),null==a.gasLimit&&null!=t.gas){let e=21e3;const n=by(o);for(let t=0;tnull!=r[e]));return u.length&&TN.throwError(`cannot override ${u.map((e=>JSON.stringify(e))).join(",")}`,hy.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:u}),a}))}function xN(e,t,n){const r=e.signer||e.provider;return function(...i){return NN(this,void 0,void 0,(function*(){let o;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){const e=im(i.pop());null!=e.blockTag&&(o=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(o));const a=yield LN(e,t,i),s=yield r.call(a,o);try{let r=e.interface.decodeFunctionResult(t,s);return n&&1===t.outputs.length&&(r=r[0]),r}catch(t){throw t.code===hy.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=i,t.transaction=a),t}}))}}function SN(e,t){return function(...n){return NN(this,void 0,void 0,(function*(){e.signer||TN.throwError("sending a transaction requires a signer",hy.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());const r=yield LN(e,t,n),i=yield e.signer.sendTransaction(r);return function(e,t){const n=t.wait.bind(t);t.wait=t=>n(t).then((t=>(t.events=t.logs.map((n=>{let r=um(n),i=null;try{i=e.interface.parseLog(n)}catch(e){}return i&&(r.args=i.args,r.decode=(t,n)=>e.interface.decodeEventLog(i.eventFragment,t,n),r.event=i.name,r.eventSignature=i.signature),r.removeListener=()=>e.provider,r.getBlock=()=>e.provider.getBlock(t.blockHash),r.getTransaction=()=>e.provider.getTransaction(t.transactionHash),r.getTransactionReceipt=()=>Promise.resolve(t),r})),t)))}(e,i),i}))}}function jN(e,t,n){return t.constant?xN(e,t,n):SN(e,t)}function CN(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((e=>Array.isArray(e)?e.join("|"):e)).join(":"):""):"*"}class DN{constructor(e,t){tm(this,"tag",e),tm(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter((n=>!(!t&&n.listener===e)||(t=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((e=>e.listener))}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter((t=>{const n=e.slice();return setTimeout((()=>{t.listener.apply(this,n)}),0),!t.once})),t}prepareEvent(e){}getEmit(e){return[e]}}class ON extends DN{constructor(){super("error",null)}}class zN extends DN{constructor(e,t,n,r){const i={address:e};let o=t.getEventTopic(n);r?(o!==r[0]&&TN.throwArgumentError("topic mismatch","topics",r),i.topics=r.slice()):i.topics=[o],super(CN(i),i),tm(this,"address",e),tm(this,"interface",t),tm(this,"fragment",n)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){const t=function(e){const t=[],n=function(e,r){if(Array.isArray(r))for(let i in r){const o=e.slice();o.push(i);try{n(o,r[i])}catch(e){t.push({path:o,error:e})}}};return n([],e),t}(e.args);if(t.length)throw t[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class _N extends DN{constructor(e,t){super("*",{address:e}),tm(this,"address",e),tm(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,n)=>this.interface.decodeEventLog(t.eventFragment,e,n),e.args=t.args}catch(e){}}}class PN extends class{constructor(e,t,n){tm(this,"interface",nm(new.target,"getInterface")(t)),null==n?(tm(this,"provider",null),tm(this,"signer",null)):Ov.isSigner(n)?(tm(this,"provider",n.provider||null),tm(this,"signer",n)):xv.isProvider(n)?(tm(this,"provider",n),tm(this,"signer",null)):TN.throwArgumentError("invalid signer or provider","signerOrProvider",n),tm(this,"callStatic",{}),tm(this,"estimateGas",{}),tm(this,"functions",{}),tm(this,"populateTransaction",{}),tm(this,"filters",{});{const e={};Object.keys(this.interface.events).forEach((t=>{const n=this.interface.events[t];tm(this.filters,t,((...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(n,e)}))),e[n.name]||(e[n.name]=[]),e[n.name].push(t)})),Object.keys(e).forEach((t=>{const n=e[t];1===n.length?tm(this.filters,t,this.filters[n[0]]):TN.warn(`Duplicate definition of ${t} (${n.join(", ")})`)}))}if(tm(this,"_runningEvents",{}),tm(this,"_wrappedEmits",{}),null==e&&TN.throwArgumentError("invalid contract address or ENS name","addressOrName",e),tm(this,"address",e),this.provider)tm(this,"resolvedAddress",IN(this.provider,e));else try{tm(this,"resolvedAddress",Promise.resolve(Xm(e)))}catch(e){TN.throwError("provider is required to use ENS name as contract address",hy.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((e=>{}));const r={},i={};Object.keys(this.interface.functions).forEach((e=>{const t=this.interface.functions[e];if(i[e])TN.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);else{i[e]=!0;{const n=t.name;r[`%${n}`]||(r[`%${n}`]=[]),r[`%${n}`].push(e)}null==this[e]&&tm(this,e,jN(this,t,!0)),null==this.functions[e]&&tm(this.functions,e,jN(this,t,!1)),null==this.callStatic[e]&&tm(this.callStatic,e,xN(this,t,!0)),null==this.populateTransaction[e]&&tm(this.populateTransaction,e,function(e,t){return function(...n){return LN(e,t,n)}}(this,t)),null==this.estimateGas[e]&&tm(this.estimateGas,e,function(e,t){const n=e.signer||e.provider;return function(...r){return NN(this,void 0,void 0,(function*(){n||TN.throwError("estimate require a provider or signer",hy.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield LN(e,t,r);return yield n.estimateGas(i)}))}}(this,t))}})),Object.keys(r).forEach((e=>{const t=r[e];if(t.length>1)return;e=e.substring(1);const n=t[0];try{null==this[e]&&tm(this,e,this[n])}catch(e){}null==this.functions[e]&&tm(this.functions,e,this.functions[n]),null==this.callStatic[e]&&tm(this.callStatic,e,this.callStatic[n]),null==this.populateTransaction[e]&&tm(this.populateTransaction,e,this.populateTransaction[n]),null==this.estimateGas[e]&&tm(this.estimateGas,e,this.estimateGas[n])}))}static getContractAddress(e){return Km(e)}static getInterface(e){return Tv.isInterface(e)?e:new Tv(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,e).then((e=>("0x"===e&&TN.throwError("contract not deployed",hy.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(e){this.signer||TN.throwError("sending a transactions require a signer",hy.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=im(e||{});return["from","to"].forEach((function(e){null!=t[e]&&TN.throwError("cannot override "+e,hy.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(t)))}connect(e){"string"==typeof e&&(e=new zv(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&tm(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return Av.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new ON);if("event"===e)return this._normalizeRunningEvent(new DN("event",null));if("*"===e)return this._normalizeRunningEvent(new _N(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new zN(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!=typeof t)throw new Error("invalid topic");const n=this.interface.getEvent(t);return this._normalizeRunningEvent(new zN(this.address,this.interface,n,e.topics))}catch(e){}const t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new DN(CN(t),t))}return this._normalizeRunningEvent(new _N(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,n){const r=um(t);return r.removeListener=()=>{n&&(e.removeListener(n),this._checkRunningEvents(e))},r.getBlock=()=>this.provider.getBlock(t.blockHash),r.getTransaction=()=>this.provider.getTransaction(t.transactionHash),r.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(r),r}_addEventListener(e,t,n){if(this.provider||TN.throwError("events require a provider or a signer with a provider",hy.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const n=n=>{let r=this._wrapEvent(e,n,t);if(null==r.decodeError)try{const t=e.getEmit(r);this.emit(e.filter,...t)}catch(e){r.decodeError=e.error}null!=e.filter&&this.emit("event",r),null!=r.decodeError&&this.emit("error",r.decodeError,r)};this._wrappedEmits[e.tag]=n,null!=e.filter&&this.provider.on(e.filter,n)}}queryFilter(e,t,n){const r=this._getRunningEvent(e),i=im(r.filter);return"string"==typeof t&&Ey(t,32)?(null!=n&&TN.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=n?n:"latest"),this.provider.getLogs(i).then((e=>e.map((e=>this._wrapEvent(r,e,null)))))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;const n=this._getRunningEvent(e),r=n.run(t)>0;return this._checkRunningEvents(n),r}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce(((e,t)=>e+this._runningEvents[t].listenerCount()),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach((t=>{e.push(t)}));return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this}removeListener(e,t){return this.off(e,t)}}{}class BN{constructor(e){tm(this,"alphabet",e),tm(this,"base",e.length),tm(this,"_alphabetMap",{}),tm(this,"_leader",e.charAt(0));for(let t=0;t0;)n.push(r%this.base),r=r/this.base|0}let r="";for(let e=0;0===t[e]&&e=0;--e)r+=this.alphabet[n[e]];return r}decode(e){if("string"!=typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let n=0;n>=8;for(;i>0;)t.push(255&i),i>>=8}for(let n=0;e[n]===this._leader&&n{o[t.toLowerCase()]=e})):r.headers.keys().forEach((e=>{o[e.toLowerCase()]=r.headers.get(e)})),{headers:o,statusCode:r.status,statusMessage:r.statusText,body:by(new Uint8Array(i))}}))}var JN=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const XN=new hy("web/5.7.1");function KN(e){return new Promise((t=>{setTimeout(t,e)}))}function $N(e,t){if(null==e)return null;if("string"==typeof e)return e;if(my(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Ag(e)}catch(e){}return Ny(e)}return e}function eT(e,t,n){let r=null;if(null!=t){r=Mg(t);const n="string"==typeof e?{url:e}:im(e);if(n.headers){0!==Object.keys(n.headers).filter((e=>"content-type"===e.toLowerCase())).length||(n.headers=im(n.headers),n.headers["content-type"]="application/json")}else n.headers={"content-type":"application/json"};e=n}return function(e,t,n){const r="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;XN.assertArgument(r>0&&r%1==0,"invalid connection throttle limit","connection.throttleLimit",r);const i="object"==typeof e?e.throttleCallback:null,o="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;XN.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const a="object"==typeof e&&!!e.errorPassThrough,s={};let u=null;const c={method:"GET"};let l=!1,d=12e4;if("string"==typeof e)u=e;else if("object"==typeof e){if(null!=e&&null!=e.url||XN.throwArgumentError("missing URL","connection.url",e),u=e.url,"number"==typeof e.timeout&&e.timeout>0&&(d=e.timeout),e.headers)for(const t in e.headers)s[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(l=!0);if(c.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==u.substring(0,6)&&!0!==e.allowInsecureAuthentication&&XN.throwError("basic authentication requires a secure https url",hy.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;s.authorization={key:"Authorization",value:"Basic "+jg(Mg(t))}}null!=e.skipFetchSetup&&(c.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(c.fetchOptions=im(e.fetchOptions))}const h=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),p=u?u.match(h):null;if(p)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":p[1]||"text/plain"},body:p[2]?Sg(p[3]):(f=p[3],Mg(f.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))))};let t=e.body;return n&&(t=n(e.body,e)),Promise.resolve(t)}catch(e){XN.throwError("processing response error",hy.errors.SERVER_ERROR,{body:$N(p[1],p[2]),error:e,requestBody:null,requestMethod:"GET",url:u})}var f;t&&(c.method="POST",c.body=t,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(t.length)}));const y={};Object.keys(s).forEach((e=>{const t=s[e];y[t.key]=t.value})),c.headers=y;const m=function(){let e=null;return{promise:new Promise((function(t,n){d&&(e=setTimeout((()=>{null!=e&&(e=null,n(XN.makeError("timeout",hy.errors.TIMEOUT,{requestBody:$N(c.body,y["content-type"]),requestMethod:c.method,timeout:d,url:u})))}),d))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),g=function(){return JN(this,void 0,void 0,(function*(){for(let e=0;e=300)&&(m.cancel(),XN.throwError("bad response",hy.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:$N(s,t.headers?t.headers["content-type"]:null),requestBody:$N(c.body,y["content-type"]),requestMethod:c.method,url:u})),n)try{const e=yield n(s,t);return m.cancel(),e}catch(n){if(n.throttleRetry&&e{let r=null;if(null!=e)try{r=JSON.parse(Ag(e))}catch(t){XN.throwError("invalid JSON",hy.errors.SERVER_ERROR,{body:e,error:t})}return n&&(r=n(r,t)),r}))}function tT(e,t){return t||(t={}),null==(t=im(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(n,r){let i=null,o=!1;const a=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout((()=>{a()&&r(new Error("timeout"))}),t.timeout));const s=t.retryLimit;let u=0;!function i(){return e().then((function(e){if(void 0!==e)a()&&n(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(u++,u>s)return void(a()&&r(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,u)));et.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null}),(function(e){a()&&r(e)}))}()}))}for(var nT="qpzry9x8gf2tvdw0s3jn54khce6mua7l",rT={},iT=0;iT>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function sT(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=aT(t)^r>>5}for(t=aT(t),n=0;nt)return"Exceeds length limit";var n=e.toLowerCase(),r=e.toUpperCase();if(e!==n&&e!==r)return"Mixed-case string "+e;var i=(e=n).lastIndexOf("1");if(-1===i)return"No separator character for "+e;if(0===i)return"Missing prefix for "+e;var o=e.slice(0,i),a=e.slice(i+1);if(a.length<6)return"Data too short";var s=sT(o);if("string"==typeof s)return s;for(var u=[],c=0;c=a.length||u.push(d)}return 1!==s?"Invalid checksum for "+e:{prefix:o,words:u}}function cT(e,t,n,r){for(var i=0,o=0,a=(1<=n;)o-=n,s.push(i>>o&a);if(r)o>0&&s.push(i<=t)return"Excess padding";if(i<n)throw new TypeError("Exceeds length limit");var r=sT(e=e.toLowerCase());if("string"==typeof r)throw new Error(r);for(var i=e+"1",o=0;o>5!=0)throw new Error("Non 5-bit word");r=aT(r)^a,i+=nT.charAt(a)}for(o=0;o<6;++o)r=aT(r);for(r^=1,o=0;o<6;++o){i+=nT.charAt(r>>5*(5-o)&31)}return i},toWordsUnsafe:function(e){var t=cT(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=cT(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=cT(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=cT(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}};const dT="providers/5.7.2",hT=new hy(dT);class pT{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),n=this.bigNumber.bind(this),r=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),a=this.hex.bind(this),s=this.number.bind(this),u=this.type.bind(this);return e.transaction={hash:o,type:u,accessList:pT.allowNull(this.accessList.bind(this),null),blockHash:pT.allowNull(o,null),blockNumber:pT.allowNull(s,null),transactionIndex:pT.allowNull(s,null),confirmations:pT.allowNull(s,null),from:t,gasPrice:pT.allowNull(n),maxPriorityFeePerGas:pT.allowNull(n),maxFeePerGas:pT.allowNull(n),gasLimit:n,to:pT.allowNull(t,null),value:n,nonce:s,data:i,r:pT.allowNull(this.uint256),s:pT.allowNull(this.uint256),v:pT.allowNull(s),creates:pT.allowNull(t,null),raw:pT.allowNull(i)},e.transactionRequest={from:pT.allowNull(t),nonce:pT.allowNull(s),gasLimit:pT.allowNull(n),gasPrice:pT.allowNull(n),maxPriorityFeePerGas:pT.allowNull(n),maxFeePerGas:pT.allowNull(n),to:pT.allowNull(t),value:pT.allowNull(n),data:pT.allowNull((e=>this.data(e,!0))),type:pT.allowNull(s),accessList:pT.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:o,address:t,topics:pT.arrayOf(o),data:i,logIndex:s,blockHash:o},e.receipt={to:pT.allowNull(this.address,null),from:pT.allowNull(this.address,null),contractAddress:pT.allowNull(t,null),transactionIndex:s,root:pT.allowNull(a),gasUsed:n,logsBloom:pT.allowNull(i),blockHash:o,transactionHash:o,logs:pT.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:pT.allowNull(s,null),cumulativeGasUsed:n,effectiveGasPrice:pT.allowNull(n),status:pT.allowNull(s),type:u},e.block={hash:pT.allowNull(o),parentHash:o,number:s,timestamp:s,nonce:pT.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:pT.allowNull(t),extraData:i,transactions:pT.allowNull(pT.arrayOf(o)),baseFeePerGas:pT.allowNull(n)},e.blockWithTransactions=im(e.block),e.blockWithTransactions.transactions=pT.allowNull(pT.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:pT.allowNull(r,void 0),toBlock:pT.allowNull(r,void 0),blockHash:pT.allowNull(o,void 0),address:pT.allowNull(t,void 0),topics:pT.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:pT.allowNull(s),blockHash:pT.allowNull(o),transactionIndex:s,removed:pT.allowNull(this.boolean.bind(this)),address:t,data:pT.allowFalsish(i,"0x"),topics:pT.arrayOf(o),transactionHash:o,logIndex:s},e}accessList(e){return vN(e||[])}number(e){return"0x"===e?0:zy.from(e).toNumber()}type(e){return"0x"===e||null==e?0:zy.from(e).toNumber()}bigNumber(e){return zy.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),Ey(e))?e.toLowerCase():hT.throwArgumentError("invalid hash","value",e)}data(e,t){const n=this.hex(e,t);if(n.length%2!=0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return Xm(e)}callAddress(e){if(!Ey(e,32))return null;const t=Xm(Iy(e,12));return"0x0000000000000000000000000000000000000000"===t?null:t}contractAddress(e){return Km(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||Ey(e))return Ly(e);throw new Error("invalid blockTag")}hash(e,t){const n=this.hex(e,t);return 32!==Ty(n)?hT.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(null==e)return null;const t=zy.from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!Ey(e))throw new Error("invalid uint256");return xy(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const n=null!=e._difficulty?e._difficulty:e.difficulty,r=pT.check(t,e);return r._difficulty=null==n?null:zy.from(n),r}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return pT.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&zy.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=pT.check(this.formats.transaction,e);if(null!=e.chainId){let n=e.chainId;Ey(n)&&(n=zy.from(n).toNumber()),t.chainId=n}else{let n=e.networkId;null==n&&null==t.v&&(n=e.chainId),Ey(n)&&(n=zy.from(n).toNumber()),"number"!=typeof n&&null!=t.v&&(n=(t.v-35)/2,n<0&&(n=0),n=parseInt(n)),"number"!=typeof n&&(n=0),t.chainId=n}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return EN(e)}receiptLog(e){return pT.check(this.formats.receiptLog,e)}receipt(e){const t=pT.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=zy.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&hT.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):hT.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&hT.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map((e=>this.topics(e))):null!=e?this.hash(e,!0):null}filter(e){return pT.check(this.formats.filter,e)}filterLog(e){return pT.check(this.formats.filterLog,e)}static check(e,t){const n={};for(const r in e)try{const i=e[r](t[r]);void 0!==i&&(n[r]=i)}catch(e){throw e.checkKey=r,e.checkValue=t[r],e}return n}static allowNull(e,t){return function(n){return null==n?t:e(n)}}static allowFalsish(e,t){return function(n){return n?e(n):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const n=[];return t.forEach((function(t){n.push(e(t))})),n}}}var fT=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const yT=new hy(dT);function mT(e){return null==e?"null":(32!==Ty(e)&&yT.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function gT(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((e=>{if(Array.isArray(e)){const t={};e.forEach((e=>{t[mT(e)]=!0}));const n=Object.keys(t);return n.sort(),n.join("|")}return mT(e)})).join("&")}function vT(e){if("string"==typeof e){if(32===Ty(e=e.toLowerCase()))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+gT(e);if(Lv.isForkEvent(e))throw yT.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+gT(e.topics||[])}throw new Error("invalid event - "+e)}function bT(){return(new Date).getTime()}function wT(e){return new Promise((t=>{setTimeout(t,e)}))}const MT=["block","network","pending","poll"];class AT{constructor(e,t,n){tm(this,"tag",e),tm(this,"listener",t),tm(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],n=""===(r=e[2])?[]:r.split(/&/g).map((e=>{if(""===e)return[];const t=e.split("|").map((e=>"null"===e?null:e));return 1===t.length?t[0]:t}));var r;const i={};return n.length>0&&(i.topics=n),t&&"*"!==t&&(i.address=t),i}pollable(){return this.tag.indexOf(":")>=0||MT.indexOf(this.tag)>=0}}const ET={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function NT(e){return xy(zy.from(e).toHexString(),32)}function TT(e){return RN.encode(wy([e,Iy(UN(UN(e)),0,4)]))}const IT=new RegExp("^(ipfs)://(.*)$","i"),kT=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),IT,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function LT(e,t){try{return Ag(xT(e,t))}catch(e){}return null}function xT(e,t){if("0x"===e)return null;const n=zy.from(Iy(e,t,t+32)).toNumber(),r=zy.from(Iy(e,n,n+32)).toNumber();return Iy(e,n+32,n+32+r)}function ST(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):yT.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function jT(e){const t=by(e);if(t.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(t,32-t.length),n}function CT(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function DT(e){const t=[];let n=0;for(let r=0;rzy.from(e).eq(1))).catch((e=>{if(e.code===hy.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e}))),this._supportsEip2544}_fetch(e,t){return fT(this,void 0,void 0,(function*(){const n={to:this.address,ccipReadEnabled:!0,data:ky([e,tv(this.name),t||"0x"])};let r=!1;var i;(yield this.supportsWildcard())&&(r=!0,n.data=ky(["0x9061b923",DT([(i=this.name,Ny(wy(ev(i).map((e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"),n.data])]));try{let e=yield this.provider.call(n);return by(e).length%32==4&&yT.throwError("resolver threw error",hy.errors.CALL_EXCEPTION,{transaction:n,data:e}),r&&(e=xT(e,0)),e}catch(e){if(e.code===hy.errors.CALL_EXCEPTION)return null;throw e}}))}_fetchBytes(e,t){return fT(this,void 0,void 0,(function*(){const n=yield this._fetch(e,t);return null!=n?xT(n,0):null}))}_getAddress(e,t){const n=ET[String(e)];if(null==n&&yT.throwError(`unsupported coin type: ${e}`,hy.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===n.ilk)return this.provider.formatter.address(t);const r=by(t);if(null!=n.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return TT(wy([[n.p2pkh],"0x"+e[2]]))}}if(null!=n.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return TT(wy([[n.p2sh],"0x"+e[2]]))}}if(null!=n.prefix){const e=r[1];let t=r[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&r.length===2+e&&e>=1&&e<=75){const e=lT.toWords(r.slice(2));return e.unshift(t),lT.encode(n.prefix,e)}}return null}getAddress(e){return fT(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||"0x0000000000000000000000000000000000000000000000000000000000000000"===e?null:this.provider.formatter.callAddress(e)}catch(e){if(e.code===hy.errors.CALL_EXCEPTION)return null;throw e}const t=yield this._fetchBytes("0xf1cb7e06",NT(e));if(null==t||"0x"===t)return null;const n=this._getAddress(e,t);return null==n&&yT.throwError("invalid or unsupported coin data",hy.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),n}))}getAvatar(){return fT(this,void 0,void 0,(function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let n=0;ne[t]))}return yT.throwError("invalid or unsupported content hash data",hy.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return fT(this,void 0,void 0,(function*(){let t=Mg(e);t=wy([NT(64),NT(t.length),t]),t.length%32!=0&&(t=wy([t,xy("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",Ny(t));return null==n||"0x"===n?null:Ag(n)}))}}let zT=null,_T=1;class PT extends xv{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),tm(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch((e=>{})),this._ready().catch((e=>{}));else{const t=nm(new.target,"getNetwork")(e);t?(tm(this,"_network",t),this.emit("network",t,null)):yT.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return fT(this,void 0,void 0,(function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||yT.throwError("no network detected",hy.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:tm(this,"_network",e),this.emit("network",e,null))}return this._network}))}get ready(){return tT((()=>this._ready().then((e=>e),(e=>{if(e.code!==hy.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==zT&&(zT=new pT),zT}static getNetwork(e){return function(e){if(null==e)return null;if("number"==typeof e){for(const t in GN){const n=GN[t];if(n.chainId===e)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){const t=GN[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=GN[e.name];if(!t)return"number"!=typeof e.chainId&&WN.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&WN.throwArgumentError("network chainId mismatch","network",e);let n=e._defaultProvider||null;var r;return null==n&&t._defaultProvider&&(n=(r=t._defaultProvider)&&"function"==typeof r.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:n}}(null==e?"homestead":e)}ccipReadFetch(e,t,n){return fT(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===n.length)return null;const r=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let e=0;e=0?null:JSON.stringify({data:i,sender:r}),u=yield eT({url:a,errorPassThrough:!0},s,((e,t)=>(e.status=t.statusCode,e)));if(u.data)return u.data;const c=u.message||"unknown error";if(u.status>=400&&u.status<500)return yT.throwError(`response not found during CCIP fetch: ${c}`,hy.errors.SERVER_ERROR,{url:t,errorMessage:c});o.push(c)}return yT.throwError(`error encountered during CCIP fetch: ${o.map((e=>JSON.stringify(e))).join(", ")}`,hy.errors.SERVER_ERROR,{urls:n,errorMessages:o})}))}_getInternalBlockNumber(e){return fT(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const n=yield t;if(bT()-n.respTime<=e)return n.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}const t=bT(),n=rm({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((({blockNumber:e,networkError:r})=>{if(r)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),r;const i=bT();return(e=zy.from(e).toNumber()){this._internalBlockNumber===n&&(this._internalBlockNumber=null)})),(yield n).blockNumber}))}poll(){return fT(this,void 0,void 0,(function*(){const e=_T++,t=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){return void this.emit("error",e)}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)yT.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",yT.makeError("network block skew detected",hy.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let e=this._emitted.block+1;e<=n;e++)this.emit("block",e);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&n-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((e=>{switch(e.type){case"tx":{const n=e.hash;let r=this.getTransactionReceipt(n).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+n]=e.blockNumber,this.emit(n,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(r);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=n-1);const r=e.filter;r.fromBlock=e._lastBlockNumber+1,r.toBlock=n;const i=r.toBlock-this._maxFilterBlockRange;i>r.fromBlock&&(r.fromBlock=i),r.fromBlock<0&&(r.fromBlock=0);const o=this.getLogs(r).then((t=>{e._inflight=!1,0!==t.length&&t.forEach((t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(r,t)}))})).catch((t=>{this.emit("error",t),e._inflight=!1}));t.push(o)}}})),this._lastBlockNumber=n,Promise.all(t).then((()=>{this.emit("didPoll",e)})).catch((e=>{this.emit("error",e)}))}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return fT(this,void 0,void 0,(function*(){return yT.throwError("provider does not support network detection",hy.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return fT(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield wT(0),this._network;const n=yT.makeError("underlying network changed",hy.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",n),n}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((e=>{this._setFastBlockNumber(e)}),(e=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const e=bT();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,n){return fT(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,n||0,null)}))}_waitForTransaction(e,t,n,r){return fT(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise(((i,o)=>{const a=[];let s=!1;const u=function(){return!!s||(s=!0,a.forEach((e=>{e()})),!1)},c=e=>{e.confirmations{this.removeListener(e,c)})),r){let n=r.startBlock,i=null;const c=a=>fT(this,void 0,void 0,(function*(){s||(yield wT(1e3),this.getTransactionCount(r.from).then((l=>fT(this,void 0,void 0,(function*(){if(!s){if(l<=r.nonce)n=a;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=n-3,i{s||this.once("block",c)})))}));if(s)return;this.once("block",c),a.push((()=>{this.removeListener("block",c)}))}if("number"==typeof n&&n>0){const e=setTimeout((()=>{u()||o(yT.makeError("timeout exceeded",hy.errors.TIMEOUT,{timeout:n}))}),n);e.unref&&e.unref(),a.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return fT(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return fT(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return zy.from(e)}catch(t){return yT.throwError("bad result from backend",hy.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}}))}getBalance(e,t){return fT(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield rm({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("getBalance",n);try{return zy.from(r)}catch(e){return yT.throwError("bad result from backend",hy.errors.SERVER_ERROR,{method:"getBalance",params:n,result:r,error:e})}}))}getTransactionCount(e,t){return fT(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield rm({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("getTransactionCount",n);try{return zy.from(r).toNumber()}catch(e){return yT.throwError("bad result from backend",hy.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:r,error:e})}}))}getCode(e,t){return fT(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield rm({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("getCode",n);try{return Ny(r)}catch(e){return yT.throwError("bad result from backend",hy.errors.SERVER_ERROR,{method:"getCode",params:n,result:r,error:e})}}))}getStorageAt(e,t,n){return fT(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield rm({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(t).then((e=>Ly(e)))}),i=yield this.perform("getStorageAt",r);try{return Ny(i)}catch(e){return yT.throwError("bad result from backend",hy.errors.SERVER_ERROR,{method:"getStorageAt",params:r,result:i,error:e})}}))}_wrapTransaction(e,t,n){if(null!=t&&32!==Ty(t))throw new Error("invalid response - sendTransaction");const r=e;return null!=t&&e.hash!==t&&yT.throwError("Transaction hash mismatch from Provider.sendTransaction.",hy.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),r.wait=(t,r)=>fT(this,void 0,void 0,(function*(){let i;null==t&&(t=1),null==r&&(r=0),0!==t&&null!=n&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const o=yield this._waitForTransaction(e.hash,t,r,i);return null==o&&0===t?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&yT.throwError("transaction failed",hy.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)})),r}sendTransaction(e){return fT(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>Ny(e))),n=this.formatter.transaction(e);null==n.confirmations&&(n.confirmations=0);const r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(n,e,r)}catch(e){throw e.transaction=n,e.transactionHash=n.hash,e}}))}_getTransactionRequest(e){return fT(this,void 0,void 0,(function*(){const t=yield e,n={};return["from","to"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>e?zy.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(n.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>e?Ny(e):null)))})),this.formatter.transactionRequest(yield rm(n))}))}_getFilter(e){return fT(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((n=>{null!=e[n]&&(t[n]=e[n])})),["fromBlock","toBlock"].forEach((n=>{null!=e[n]&&(t[n]=this._getBlockTag(e[n]))})),this.formatter.filter(yield rm(t))}))}_call(e,t,n){return fT(this,void 0,void 0,(function*(){n>=10&&yT.throwError("CCIP read exceeded maximum redirections",hy.errors.SERVER_ERROR,{redirects:n,transaction:e});const r=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(n>=0&&"latest"===t&&null!=r&&"0x556f1830"===i.substring(0,10)&&Ty(i)%32==4)try{const o=Iy(i,4),a=Iy(o,0,32);zy.from(a).eq(r)||yT.throwError("CCIP Read sender did not match",hy.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const s=[],u=zy.from(Iy(o,32,64)).toNumber(),c=zy.from(Iy(o,u,u+32)).toNumber(),l=Iy(o,u+32);for(let t=0;tfT(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",r);if(null==e)return null!=r.blockHash&&null==this._emitted["b:"+r.blockHash]||null!=r.blockTag&&n>this._emitted.block?null:void 0;if(t){let t=null;for(let n=0;nthis._wrapTransaction(e))),n}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return fT(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return tT((()=>fT(this,void 0,void 0,(function*(){const n=yield this.perform("getTransaction",t);if(null==n)return null==this._emitted["t:"+e]?null:void 0;const r=this.formatter.transactionResponse(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}return this._wrapTransaction(r)}))),{oncePoll:this})}))}getTransactionReceipt(e){return fT(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return tT((()=>fT(this,void 0,void 0,(function*(){const n=yield this.perform("getTransactionReceipt",t);if(null==n)return null==this._emitted["t:"+e]?null:void 0;if(null==n.blockHash)return;const r=this.formatter.receipt(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}return r}))),{oncePoll:this})}))}getLogs(e){return fT(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield rm({filter:this._getFilter(e)}),n=yield this.perform("getLogs",t);return n.forEach((e=>{null==e.removed&&(e.removed=!1)})),pT.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)}))}getEtherPrice(){return fT(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return fT(this,void 0,void 0,(function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&yT.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return fT(this,void 0,void 0,(function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const n=yield this._getResolver(t,"getResolver");if(null!=n){const r=new OT(this,n,e);return t===e||(yield r.supportsWildcard())?r:null}t=t.split(".").slice(1).join(".")}}))}_getResolver(e,t){return fT(this,void 0,void 0,(function*(){null==t&&(t="ENS");const n=yield this.getNetwork();n.ensAddress||yT.throwError("network does not support ENS",hy.errors.UNSUPPORTED_OPERATION,{operation:t,network:n.name});try{const t=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+tv(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null}))}resolveName(e){return fT(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if(Ey(e))throw t}"string"!=typeof e&&yT.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return fT(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(t,"lookupAddress");if(null==n)return null;const r=LT(yield this.call({to:n,data:"0x691f3431"+tv(t).substring(2)}),0);return(yield this.resolveName(r))!=e?null:r}))}getAvatar(e){return fT(this,void 0,void 0,(function*(){let t=null;if(Ey(e)){const n=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(n,"getAvatar");if(!r)return null;t=new OT(this,r,n);try{const e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==hy.errors.CALL_EXCEPTION)throw e}try{const e=LT(yield this.call({to:r,data:"0x691f3431"+tv(n).substring(2)}),0);t=yield this.getResolver(e)}catch(e){if(e.code!==hy.errors.CALL_EXCEPTION)throw e;return null}}else if(t=yield this.getResolver(e),!t)return null;const n=yield t.getAvatar();return null==n?null:n.url}))}perform(e,t){return yT.throwError(e+" not implemented",hy.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_stopEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_addEventListener(e,t,n){const r=new AT(vT(e),t,n);return this._events.push(r),this._startEvent(r),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let n=!1,r=[],i=vT(e);return this._events=this._events.filter((e=>e.tag!==i||(setTimeout((()=>{e.listener.apply(this,t)}),0),n=!0,!e.once||(r.push(e),!1)))),r.forEach((e=>{this._stopEvent(e)})),n}listenerCount(e){if(!e)return this._events.length;let t=vT(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=vT(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const n=[];let r=!1,i=vT(e);return this._events=this._events.filter((e=>e.tag!==i||e.listener!=t||(!!r||(r=!0,n.push(e),!1)))),n.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const n=vT(e);this._events=this._events.filter((e=>e.tag!==n||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}var BT=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const RT=new hy(dT),UT=["call","estimateGas"];function WT(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){const n=Ey(e.data)?e.data:null;if(!t||n)return{message:e.message,data:n}}if("object"==typeof e){for(const n in e){const r=WT(e[n],t);if(r)return r}return null}if("string"==typeof e)try{return WT(JSON.parse(e),t)}catch(e){}return null}function QT(e,t,n){const r=n.transaction||n.signedTransaction;if("call"===e){const e=WT(t,!0);if(e)return e.data;RT.throwError("missing revert data in call exception; Transaction reverted without a reason string",hy.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:t})}if("estimateGas"===e){let n=WT(t.body,!1);null==n&&(n=WT(t,!1)),n&&RT.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",hy.errors.UNPREDICTABLE_GAS_LIMIT,{reason:n.message,method:e,transaction:r,error:t})}let i=t.message;throw t.code===hy.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&RT.throwError("insufficient funds for intrinsic transaction cost",hy.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),i.match(/nonce (is )?too low/i)&&RT.throwError("nonce has already been used",hy.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&RT.throwError("replacement fee too low",hy.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),i.match(/only replay-protected/i)&&RT.throwError("legacy pre-eip-155 transactions not supported",hy.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:r}),UT.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&RT.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",hy.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}function YT(e){return new Promise((function(t){setTimeout(t,e)}))}function FT(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function VT(e){return e?e.toLowerCase():e}const HT={};class GT extends Ov{constructor(e,t,n){if(super(),e!==HT)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");tm(this,"provider",t),null==n&&(n=0),"string"==typeof n?(tm(this,"_address",this.provider.formatter.address(n)),tm(this,"_index",null)):"number"==typeof n?(tm(this,"_index",n),tm(this,"_address",null)):RT.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return RT.throwError("cannot alter JSON-RPC Signer connection",hy.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new qT(HT,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((e=>(e.length<=this._index&&RT.throwError("unknown account #"+this._index,hy.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=im(e);const t=this.getAddress().then((e=>(e&&(e=e.toLowerCase()),e)));if(null==e.gasLimit){const n=im(e);n.from=t,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>BT(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&RT.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))))),rm({tx:rm(e),sender:t}).then((({tx:t,sender:n})=>{null!=t.from?t.from.toLowerCase()!==n&&RT.throwArgumentError("from address mismatch","transaction",e):t.from=n;const r=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[r]).then((e=>e),(e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&RT.throwError("user rejected transaction",hy.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),QT("sendTransaction",e,r))))}))}signTransaction(e){return RT.throwError("signing transactions is unsupported",hy.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return BT(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield tT((()=>BT(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(n);if(null!==e)return this.provider._wrapTransaction(e,n,t)}))),{oncePoll:this.provider})}catch(e){throw e.transactionHash=n,e}}))}signMessage(e){return BT(this,void 0,void 0,(function*(){const t="string"==typeof e?Mg(e):e,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[Ny(t),n.toLowerCase()])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&RT.throwError("user rejected signing",hy.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),t}}))}_legacySignMessage(e){return BT(this,void 0,void 0,(function*(){const t="string"==typeof e?Mg(e):e,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),Ny(t)])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&RT.throwError("user rejected signing",hy.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),t}}))}_signTypedData(e,t,n){return BT(this,void 0,void 0,(function*(){const r=yield gv.resolveNames(e,t,n,(e=>this.provider.resolveName(e))),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(gv.getPayload(r.domain,t,r.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&RT.throwError("user rejected signing",hy.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:r.domain,types:t,value:r.value}}),e}}))}unlock(e){return BT(this,void 0,void 0,(function*(){const t=this.provider,n=yield this.getAddress();return t.send("personal_unlockAccount",[n.toLowerCase(),e,null])}))}}class qT extends GT{sendTransaction(e){return this.sendUncheckedTransaction(e).then((e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)})))}}const ZT={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class JT extends PT{constructor(e,t){let n=t;null==n&&(n=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(n),e||(e=nm(this.constructor,"defaultUrl")()),tm(this,"connection","string"==typeof e?Object.freeze({url:e}):Object.freeze(im(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return BT(this,void 0,void 0,(function*(){yield YT(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){const t=nm(this.constructor,"getNetwork");try{return t(zy.from(e).toNumber())}catch(t){return RT.throwError("could not detect network",hy.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return RT.throwError("could not detect network",hy.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new GT(HT,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((e=>e.map((e=>this.formatter.address(e)))))}send(e,t){const n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:um(n),provider:this});const r=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(r&&this._cache[e])return this._cache[e];const i=eT(this.connection,JSON.stringify(n),FT).then((e=>(this.emit("debug",{action:"response",request:n,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:n,provider:this}),e}));return r&&(this._cache[e]=i,setTimeout((()=>{this._cache[e]=null}),0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[VT(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[VT(t.address),t.blockTag]];case"getCode":return["eth_getCode",[VT(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[VT(t.address),xy(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[nm(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[nm(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=VT(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return BT(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&zy.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const n=yield this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&((t=im(t)).transaction=im(e),delete t.transaction.type)}}const n=this.prepareRequest(e,t);null==n&&RT.throwError(e+" not implemented",hy.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(n){return QT(e,n,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(n){return function r(){e.send("eth_getFilterChanges",[n]).then((function(n){if(e._pendingFilter!=t)return null;let r=Promise.resolve();return n.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",r=r.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),r.then((function(){return YT(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){r()}),0),null;e.send("eth_uninstallFilter",[n])})).catch((e=>{}))}(),n})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const n=im(ZT);if(t)for(const e in t)t[e]&&(n[e]=!0);var r,i;i=n,(r=e)&&"object"==typeof r||em.throwArgumentError("invalid object","object",r),Object.keys(r).forEach((e=>{i[e]||em.throwArgumentError("invalid object key - "+e,"transaction:"+e,r)}));const o={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const n=Ly(zy.from(e[t]));"gasLimit"===t&&(t="gas"),o[t]=n})),["from","to","data"].forEach((function(t){null!=e[t]&&(o[t]=Ny(e[t]))})),e.accessList&&(o.accessList=vN(e.accessList)),o}}const XT=new hy(dT);let KT=1;function $T(e,t){const n="Web3LegacyFetcher";return function(e,r){const i={method:e,params:r,id:KT++,jsonrpc:"2.0"};return new Promise(((e,r)=>{this.emit("debug",{action:"request",fetcher:n,request:um(i),provider:this}),t(i,((t,o)=>{if(t)return this.emit("debug",{action:"response",fetcher:n,error:t,request:i,provider:this}),r(t);if(this.emit("debug",{action:"response",fetcher:n,request:i,response:o,provider:this}),o.error){const e=new Error(o.error.message);return e.code=o.error.code,e.data=o.error.data,r(e)}e(o.result)}))}))}}class eI extends JT{constructor(e,t){null==e&&XT.throwArgumentError("missing provider","provider",e);let n=null,r=null,i=null;"function"==typeof e?(n="unknown:",r=e):(n=e.host||e.path||"",!n&&e.isMetaMask&&(n="metamask"),i=e,e.request?(""===n&&(n="eip-1193:"),r=function(e){return function(t,n){null==n&&(n=[]);const r={method:t,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:um(r),provider:this}),e.request(r).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,error:e,provider:this}),e}))}}(e)):e.sendAsync?r=$T(0,e.sendAsync.bind(e)):e.send?r=$T(0,e.send.bind(e)):XT.throwArgumentError("unsupported provider","provider",e),n||(n="unknown:")),super(n,t),tm(this,"jsonRpcFetchFunc",r),tm(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const tI=new RegExp("^bytes([0-9]+)$"),nI=new RegExp("^(u?int)([0-9]*)$"),rI=new RegExp("^(.*)\\[([0-9]*)\\]$"),iI=new hy("solidity/5.7.0");function oI(e,t,n){switch(e){case"address":return n?Ay(t,32):by(t);case"string":return Mg(t);case"bytes":return by(t);case"bool":return t=t?"0x01":"0x00",n?Ay(t,32):by(t)}let r=e.match(nI);if(r){let i=parseInt(r[2]||"256");return(r[2]&&String(i)!==r[2]||i%8!=0||0===i||i>256)&&iI.throwArgumentError("invalid number type","type",e),n&&(i=256),Ay(t=zy.from(t).toTwos(i),i/8)}if(r=e.match(tI),r){const i=parseInt(r[1]);return(String(i)!==r[1]||0===i||i>32)&&iI.throwArgumentError("invalid bytes type","type",e),by(t).byteLength!==i&&iI.throwArgumentError(`invalid value for ${e}`,"value",t),n?by((t+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):t}if(r=e.match(rI),r&&Array.isArray(t)){const n=r[1];parseInt(r[2]||String(t.length))!=t.length&&iI.throwArgumentError(`invalid array length for ${e}`,"value",t);const i=[];return t.forEach((function(e){i.push(oI(n,e,!0))})),wy(i)}return iI.throwArgumentError("invalid type","type",e)}function aI(e,t){e.length!=t.length&&iI.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);const n=[];return e.forEach((function(e,r){n.push(oI(e,t[r]))})),Ny(wy(n))}const sI=new hy("units/5.7.0"),uI=["wei","kwei","mwei","gwei","szabo","finney","ether"];function cI(e,t){if("string"==typeof t){const e=uI.indexOf(t);-1!==e&&(t=3*e)}return Gy(e,null!=t?t:18)}function lI(e,t){if("string"!=typeof e&&sI.throwArgumentError("value must be a string","value",e),"string"==typeof t){const e=uI.indexOf(t);-1!==e&&(t=3*e)}return qy(e,null!=t?t:18)}let dI,hI=()=>dI||(dI="object"==typeof fe?fe:window,dI);const pI=()=>(void 0===hI()._Web3ClientConfiguration&&(hI()._Web3ClientConfiguration={}),hI()._Web3ClientConfiguration);function fI(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class yI extends JT{constructor(e,t,n,r){super(e),this._network=t,this._endpoint=e,this._endpoints=n,this._failover=r,this._pendingBatch=[]}detectNetwork(){return Promise.resolve(he.findByName(this._network).id)}requestChunk(e,t){try{const n=e.map((e=>e.request));return eT(t,JSON.stringify(n)).then((t=>{e.forEach(((e,n)=>{const r=t[n];if(fI([r,"optionalAccess",e=>e.error])){const t=new Error(r.error.message);t.code=r.error.code,t.data=r.error.data,e.reject(t)}else fI([r,"optionalAccess",e=>e.result])?e.resolve(r.result):e.reject()}))})).catch((t=>{if(t&&"SERVER_ERROR"==t.code){const t=this._endpoints.indexOf(this._endpoint)+1;this._failover(),this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this.requestChunk(e,this._endpoint)}else e.forEach((e=>{e.reject(t)}))}))}catch(t){e.forEach((e=>{e.reject()}))}}send(e,t){const n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((e,t)=>{r.resolve=e,r.reject=t}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const t=[];for(let n=0;n(e.map((e=>e.request)),this.requestChunk(e,this._endpoint))))}),pI().batchInterval||10)),i}}const mI=()=>(null==hI()._Web3ClientProviders&&(hI()._Web3ClientProviders={}),hI()._Web3ClientProviders),gI=(e,t)=>{void 0===mI()[e]&&(mI()[e]=[]);const n=mI()[e].indexOf(t);n>-1&&mI()[e].splice(n,1),mI()[e].unshift(t)},vI=async(e,t,n=!0)=>{let r;mI()[e]=t.map(((r,i)=>new yI(r,e,t,(()=>{1===mI()[e].length?vI(e,t,n):mI()[e].splice(i,1)}))));let i=hI();if(null==i.fetch||void 0!==Be&&Be.env&&"test"==Be.env.NODE_ENV||void 0!==i.cy||!1===n)r=mI()[e][0];else{let n=await Promise.all(t.map((e=>new Promise((async t=>{let n=(new Date).getTime();setTimeout((()=>t(900)),900);if(!(await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({method:"net_version",id:1,jsonrpc:"2.0"})})).ok)return t(999);let r=(new Date).getTime();t(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=mI()[e][o]}gI(e,r)};var bI={getProvider:async e=>{let t=mI();if(t&&t[e])return t[e][0];let n=hI();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[e]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[e]=new Promise((async t=>{await vI(e,he[e].endpoints),t(hI()._Web3ClientProviders[e][0])}))),await n._Web3ClientGetProviderPromise[e]},getProviders:async e=>{let t=mI();if(t&&t[e])return t[e];let n=hI();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[e]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[e]=new Promise((async t=>{await vI(e,he[e].endpoints),t(hI()._Web3ClientProviders[e])}))),await n._Web3ClientGetProvidersPromise[e]},setProviderEndpoints:vI,setProvider:gI};class wI extends hh{constructor(e,t,n,r){super(e),this._provider=new hh(e),this._network=t,this._endpoint=e,this._endpoints=n,this._failover=r,this._pendingBatch=[],this._rpcRequest=this._rpcRequestReplacement.bind(this)}requestChunk(e){const t=e.map((e=>e.request)),n=t=>{if(t&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((e=>t.toString().match(e)))){const t=this._endpoints.indexOf(this._endpoint)+1;this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this._provider=new hh(this._endpoint),this.requestChunk(e)}else e.forEach((e=>{e.reject(t)}))};try{return this._provider._rpcBatchRequest(t).then((t=>{e.forEach(((e,n)=>{const r=t[n];if(function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([r,"optionalAccess",e=>e.error])){const t=new Error(r.error.message);t.code=r.error.code,t.data=r.error.data,e.reject(t)}else r?e.resolve(r):e.reject()}))})).catch(n)}catch(e){return n(e)}}_rpcRequestReplacement(e,t){const n={methodName:e,args:t};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((e,t)=>{r.resolve=e,r.reject=t}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const t=[];for(let n=0;n(e.map((e=>e.request)),this.requestChunk(e))))}),pI().batchInterval||10)),i}}const MI=()=>(null==hI()._Web3ClientProviders&&(hI()._Web3ClientProviders={}),hI()._Web3ClientProviders),AI=(e,t)=>{void 0===MI()[e]&&(MI()[e]=[]);const n=MI()[e].indexOf(t);n>-1&&MI()[e].splice(n,1),MI()[e].unshift(t)},EI=async(e,t,n=!0)=>{let r;MI()[e]=t.map(((r,i)=>new wI(r,e,t,(()=>{1===MI()[e].length?EI(e,t,n):MI()[e].splice(i,1)}))));let i=hI();if(null==i.fetch||void 0!==Be&&Be.env&&"test"==Be.env.NODE_ENV||void 0!==i.cy||!1===n)r=MI()[e][0];else{let n=await Promise.all(t.map((e=>new Promise((async t=>{let n=(new Date).getTime();setTimeout((()=>t(900)),900);if(!(await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({method:"getIdentity",id:1,jsonrpc:"2.0"})})).ok)return t(999);let r=(new Date).getTime();t(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=MI()[e][o]}AI(e,r)};var NI={getProvider:async e=>{let t=MI();if(t&&t[e])return t[e][0];let n=hI();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[e]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[e]=new Promise((async t=>{await EI(e,he[e].endpoints),t(hI()._Web3ClientProviders[e][0])}))),await n._Web3ClientGetProviderPromise[e]},getProviders:async e=>{let t=MI();if(t&&t[e])return t[e];let n=hI();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[e]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[e]=new Promise((async t=>{await EI(e,he[e].endpoints),t(hI()._Web3ClientProviders[e])}))),await n._Web3ClientGetProvidersPromise[e]},setProviderEndpoints:EI,setProvider:AI};let TI=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];TI.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],TI.solana=["solana"];let II=()=>(null==hI()._Web3ClientCacheStore&&(hI()._Web3ClientCacheStore={}),hI()._Web3ClientCacheStore),kI=()=>(null==hI()._Web3ClientPromiseStore&&(hI()._Web3ClientPromiseStore={}),hI()._Web3ClientPromiseStore),LI=function({key:e}){kI()[e]=void 0},xI=function({call:e,key:t,expires:n=0}){return new Promise(((r,i)=>{let o,a=function({key:e}){return kI()[e]}({key:t=JSON.stringify(t)});if(a)return a.then(r).catch(i);(function({key:e,promise:t}){return kI()[e]=t,t})({key:t,promise:new Promise(((a,s)=>0===n?e().then((e=>{r(e),a(e)})).catch((e=>{i(e),s(e)})):(o=function({key:e,expires:t}){let n=II()[e];if(function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([n,"optionalAccess",e=>e.expiresAt])>Date.now())return n.value}({key:t,expires:n}),o?(r(o),a(o),o):void e().then((e=>{e&&function({key:e,value:t,expires:n}){II()[e]={expiresAt:Date.now()+n,value:t}}({key:t,value:e,expires:n}),r(e),a(e)})).catch((e=>{i(e),s(e)})))))}).then((()=>{LI({key:t})})).catch((()=>{LI({key:t})}))}))};const SI=async e=>{if(TI.evm.includes(e))return await bI.getProvider(e);if(TI.solana.includes(e))return await NI.getProvider(e);throw"Unknown blockchain: "+e},jI=e=>`(${e.map((e=>"tuple"===e.type?jI(e.components):e.type)).join(",")})`;var CI=({provider:e,from:t,to:n,value:r,method:i,api:o,params:a})=>{if(void 0===o)return e.estimateGas({from:t,to:n,value:r});{let s=new PN(n,o,e),u=s.interface.fragments.find((e=>e.name==i)),c=(({contract:e,method:t,params:n})=>{let r=e.interface.fragments.find((e=>e.name==t));return n instanceof Array?n:n instanceof Object?r.inputs.map((e=>n[e.name])):void 0})({contract:s,method:i,params:a});void 0===s[i]&&(i=`${i}(${u.inputs.map((e=>"tuple"===e.type?jI(e.components):e.type)).join(",")})`);let l=s.estimateGas[i];return c?l(...c,{from:t,value:r}):l({from:t,value:r})}};let DI=async function({blockchain:e,from:t,to:n,value:r,method:i,api:o,params:a,cache:s}){if(!TI.includes(e))throw"Unknown blockchain: "+e;void 0===r&&(r="0");const u=await SI(e);return await xI({expires:s||0,key:[e,t,n,r,i,a],call:async()=>CI({provider:u,from:t,to:n,value:r,method:i,api:o,params:a})})};const OI=({address:e,api:t,method:n,params:r,provider:i,block:o})=>{const a=new PN(e,t,i),s=(({contract:e,method:t,params:n})=>e.interface.fragments.find((e=>e.name==t)).inputs.map(((e,t)=>Array.isArray(n)?n[t]:n[e.name])))({contract:a,method:n,params:r}),u=a.interface.fragments.find((e=>e.name===n));return void 0===a[n]&&(n=`${n}(${u.inputs.map((e=>e.type)).join(",")})`),u&&"nonpayable"===u.stateMutability?a.callStatic[n](...s,{blockTag:o}):a[n](...s,{blockTag:o})},zI=({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a})=>n?OI({address:t,api:n,method:r,params:i,provider:a,block:o}):"latestBlockNumber"===r?a.getBlockNumber():"balance"===r?(({address:e,provider:t})=>t.getBalance(e))({address:t,provider:a}):"transactionCount"===r?(({address:e,provider:t})=>t.getTransactionCount(e))({address:t,provider:a}):void 0;const _I=async({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a,providers:s})=>{try{if(null==r||"getAccountInfo"===r)return null==n&&(n=Tf),await(async({address:e,api:t,method:n,params:r,provider:i,block:o})=>{const a=await i.getAccountInfo(new yc(e));if(a&&a.data)return t.decode(a.data)})({address:t,api:n,method:r,params:i,provider:a,block:o});if("getProgramAccounts"===r)return await a.getProgramAccounts(new yc(t),i).then((e=>n?e.map((e=>(e.data=n.decode(e.account.data),e))):e));if("getTokenAccountBalance"===r)return await a.getTokenAccountBalance(new yc(t));if("latestBlockNumber"===r)return await a.getSlot(i||void 0);if("balance"===r)return await(({address:e,provider:t})=>t.getBalance(new yc(e)))({address:t,provider:a})}catch(u){if(s&&u&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((e=>u.toString().match(e)))){let u=s[s.indexOf(a)+1]||s[0];return _I({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:u,providers:s})}throw u}};const PI=async function(e,t){const{blockchain:n,address:r,method:i}=(e=>{if("object"==typeof e)return e;let t=e.match(/(?\w+):\/\/(?[\w\d]+)(\/(?[\w\d]+)*)?/);return null==t.groups.part2?t.groups.part1.match(/\d/)?{blockchain:t.groups.blockchain,address:t.groups.part1}:{blockchain:t.groups.blockchain,method:t.groups.part1}:{blockchain:t.groups.blockchain,address:t.groups.part1,method:t.groups.part2}})(e),{api:o,params:a,cache:s,block:u,timeout:c,strategy:l,cacheKey:d}=("object"==typeof e?e:t)||{};return await xI({expires:s||0,key:d||[n,r,i,a,u],call:async()=>{if(TI.evm.includes(n))return await(async({blockchain:e,address:t,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{if(s=s||pI().strategy||"failover",a=a||pI().timeout||void 0,"fastest"===s){const s=await bI.getProviders(e);let u=[];const c=s.map((a=>new Promise((s=>{u.push(zI({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a}).then(s))})))),l=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a||1e4)));return u=Promise.all(u.map((e=>new Promise((t=>{e.catch(t)}))))).then((()=>{})),Promise.race([...c,l,u])}{const s=await bI.getProvider(e),u=zI({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:s});return a?(a=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a))),Promise.race([u,a])):u}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});if(TI.solana.includes(n))return await(async({blockchain:e,address:t,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{s=s||pI().strategy||"failover",a=a||pI().timeout||void 0;const u=await NI.getProviders(e);if("fastest"===s){let s=[];const c=u.map((a=>new Promise((u=>{s.push(_I({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a}).then(u))})))),l=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a||1e4)));return s=Promise.all(s.map((e=>new Promise((t=>{e.catch(t)}))))).then((()=>{})),Promise.race([...c,l,s])}{const s=await NI.getProvider(e),c=_I({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:s,providers:u});return a?(a=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a))),Promise.race([c,a])):c}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});throw"Unknown blockchain: "+n}})};var BI=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=92)}([function(e,t,n){(function(e){n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"o",(function(){return y})),n.d(t,"n",(function(){return m})),n.d(t,"p",(function(){return g})),n.d(t,"A",(function(){return v})),n.d(t,"z",(function(){return b})),n.d(t,"B",(function(){return w})),n.d(t,"v",(function(){return M})),n.d(t,"u",(function(){return A})),n.d(t,"s",(function(){return T})),n.d(t,"r",(function(){return I})),n.d(t,"t",(function(){return k})),n.d(t,"q",(function(){return L})),n.d(t,"m",(function(){return x})),n.d(t,"l",(function(){return S})),n.d(t,"k",(function(){return j})),n.d(t,"j",(function(){return C})),n.d(t,"x",(function(){return O})),n.d(t,"a",(function(){return z})),n.d(t,"y",(function(){return _})),n.d(t,"w",(function(){return P}));var r=n(22),i=n.n(r),o=n(49),a=n.n(o);function s(e){return new Uint8Array(e)}function u(e,t=!1){const n=e.toString("hex");return t?z(n):n}function c(e){return e.toString("utf8")}function l(e){return e.readUIntBE(0,e.length)}function d(e){return a()(e)}function h(e,t=!1){return u(d(e),t)}function p(e){return c(d(e))}function f(e){return l(d(e))}function y(t){return e.from(O(t),"hex")}function m(e){return s(y(e))}function g(e){return c(y(e))}function v(t){return e.from(t,"utf8")}function b(e){return s(v(e))}function w(e,t=!1){return u(v(e),t)}function M(e){return d(N(E(e)))}function A(e){return N(E(e))}function E(e){return D((e>>>0).toString(2))}function N(e){return new Uint8Array(function(e,t=8){const n=D(e).match(new RegExp(`.{${t}}`,"gi"));return Array.from(n||[])}(e).map((e=>parseInt(e,2))))}function T(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function I(t){return e.isBuffer(t)}function k(e){return i.a.strict(e)&&!I(e)}function L(e){return!k(e)&&!I(e)&&void 0!==e.byteLength}function x(e){return I(e)?"buffer":k(e)?"typed-array":L(e)?"array-buffer":Array.isArray(e)?"array":typeof e}function S(e){return function(e){return!("string"!=typeof e||!new RegExp(/^[01]+$/).test(e))&&e.length%8==0}(e)?"binary":T(e)?"hex":"utf8"}function j(...t){return e.concat(t)}function C(...e){let t=[];return e.forEach((e=>t=t.concat(Array.from(e)))),new Uint8Array([...t])}function D(e,t=8,n="0"){return function(e,t,n="0"){return function(e,t,n,r="0"){const i=t-e.length;let o=e;if(i>0){const t=r.repeat(i);o=n?t+e:e+t}return o}(e,t,!0,n)}(e,function(e,t=8){const n=e%t;return n?(e-n)/t*t+t:e}(e.length,t),n)}function O(e){return e.replace(/^0x/,"")}function z(e){return e.startsWith("0x")?e:"0x"+e}function _(e){return(e=D(e=O(e),2))&&(e=z(e)),e}function P(e){const t=e.startsWith("0x");return e=(e=O(e)).startsWith("0")?e.substring(1):e,t?z(e):e}}).call(this,n(18).Buffer)},function(e,t,n){n.d(t,"g",(function(){return r.detectEnv})),n.d(t,"r",(function(){return r.isMobile})),n.d(t,"m",(function(){return r.isBrowser})),n.d(t,"k",(function(){return r.getLocation})),n.d(t,"i",(function(){return r.getClientMeta})),n.d(t,"B",(function(){return r.setLocal})),n.d(t,"j",(function(){return r.getLocal})),n.d(t,"A",(function(){return r.removeLocal})),n.d(t,"v",(function(){return r.mobileLinkChoiceKey})),n.d(t,"C",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"w",(function(){return T})),n.d(t,"x",(function(){return I})),n.d(t,"z",(function(){return m})),n.d(t,"D",(function(){return g})),n.d(t,"h",(function(){return k})),n.d(t,"u",(function(){return C})),n.d(t,"y",(function(){return D})),n.d(t,"l",(function(){return x})),n.d(t,"a",(function(){return S})),n.d(t,"o",(function(){return b})),n.d(t,"q",(function(){return w})),n.d(t,"p",(function(){return M})),n.d(t,"n",(function(){return A})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return N}));var r=n(21);const i=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],o=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];var a=n(16),s=n.n(a),u=n(0);function c(e){return u.b(new Uint8Array(e))}function l(e,t){return u.c(new Uint8Array(e),!t)}function d(e){return u.f(e).buffer}function h(e){return u.n(e).buffer}function p(e,t){const n=u.x(u.y(new s.a(e).toString(16)));return t?n:u.a(n)}var f=n(50);function y(e){return u.y(e)}const m=n(51).payloadId;function g(){return((e,t)=>{for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t})()}function v(e,t){return u.s(e,t)}function b(e){return void 0!==e.method}function w(e){return void 0!==e.result}function M(e){return void 0!==e.error}function A(e){return void 0!==e.event}function E(e){return i.includes(e)||e.startsWith("wc_")}function N(e){return!!e.method.startsWith("wc_")||!o.includes(e.method)}function T(e){var t,n;return(n=e)&&n.length&&!v(e[0])&&(e[0]=(t=e[0],u.B(t,!0))),e}function I(e){if(void 0!==e.type&&"0"!==e.type)return e;if(void 0===e.from||!(t=e.from)||"0x"!==t.toLowerCase().substring(0,2)||!/^(0x)?[0-9a-f]{40}$/i.test(t)||!/^(0x)?[0-9a-f]{40}$/.test(t)&&!/^(0x)?[0-9A-F]{40}$/.test(t)&&t!==function(e){e=Object(u.x)(e.toLowerCase());const t=Object(u.x)(Object(f.keccak_256)((n=e,u.A(n))));var n;let r="";for(let n=0;n7?r+=e[n].toUpperCase():r+=e[n];return Object(u.a)(r)}(t))throw new Error("Transaction object must include a valid 'from' value.");var t;function n(e){let t=e;var n;return("number"==typeof e||"string"==typeof e&&!function(e){return""===e||"string"==typeof e&&""===e.trim()}(e))&&(v(e)?"string"==typeof e&&(t=y(e)):t=p(e)),"string"==typeof t&&(n=t,t=u.w(u.a(n))),t}const r={from:y(e.from),to:void 0===e.to?void 0:y(e.to),gasPrice:void 0===e.gasPrice?"":n(e.gasPrice),gas:void 0===e.gas?void 0===e.gasLimit?"":n(e.gasLimit):n(e.gas),value:void 0===e.value?"":n(e.value),nonce:void 0===e.nonce?"":n(e.nonce),data:void 0===e.data?"":y(e.data)||"0x"},i=["gasPrice","gas","value","nonce"];return Object.keys(r).forEach((e=>{(void 0===r[e]||"string"==typeof r[e]&&!r[e].trim().length)&&i.includes(e)&&delete r[e]})),r}function k(e){const t=e.message||"Failed or Rejected Request";let n=-32e3;if(e&&!e.code)switch(t){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3}const r={code:n,message:t};return e.data&&(r.data=e.data),r}var L=n(23);function x(e){const t=-1!==e.indexOf("?")?e.indexOf("?"):void 0;return void 0!==t?e.substr(t):""}function S(e,t){let n=j(e);return n=Object.assign(Object.assign({},n),t),function(e){return L.stringify(e)}(n)}function j(e){return L.parse(e)}function C(e){return void 0!==e.bridge}function D(e){const t=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),i=function(e){const t=e.split("@");return{handshakeTopic:t[0],version:parseInt(t[1],10)}}(e.substring(t+1,n)),o=function(e){const t=j(e);return{key:t.key||"",bridge:t.bridge||""}}(void 0!==n?e.substr(n):"");return Object.assign(Object.assign({protocol:r},i),o)}},function(e,t,n){n.d(t,"b",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"h",(function(){return r})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"l",(function(){return f}));const r=512,i=256,o=256,a="AES-CBC",s="SHA-"+i,u="HMAC",c="SHA-256",l="SHA-512",d="encrypt",h="decrypt",p="sign",f="verify"},function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return u}));const r="INTERNAL_ERROR",i="SERVER_ERROR",o=[-32700,-32600,-32601,-32602,-32603],a=[-32e3,-32099],s={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[r]:{code:-32603,message:"Internal error"},[i]:{code:-32e3,message:"Server error"}},u=i},function(e,t,n){function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function i(e){const t=r(e);if(!t)throw new Error(e+" is not defined in Window");return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=i,t.getDocumentOrThrow=function(){return i("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return i("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return i("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return i("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return i("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(67),t),i(n(68),t)},function(e,t,n){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return d}));var r=n(5),i=n(2);async function o(e,t=i.a){return r.getSubtleCrypto().importKey("raw",e,function(e){return e===i.a?{length:i.b,name:i.a}:{hash:{name:i.f},name:i.e}}(t),!0,function(e){return e===i.a?[i.d,i.c]:[i.k,i.l]}(t))}async function a(e,t,n){const a=r.getSubtleCrypto(),s=await o(t,i.a),u=await a.encrypt({iv:e,name:i.a},s,n);return new Uint8Array(u)}async function s(e,t,n){const a=r.getSubtleCrypto(),s=await o(t,i.a),u=await a.decrypt({iv:e,name:i.a},s,n);return new Uint8Array(u)}async function u(e,t){const n=r.getSubtleCrypto(),a=await o(e,i.e),s=await n.sign({length:i.g,name:i.e},a,t);return new Uint8Array(s)}async function c(e,t){const n=r.getSubtleCrypto(),a=await o(e,i.e),s=await n.sign({length:i.h,name:i.e},a,t);return new Uint8Array(s)}async function l(e){const t=r.getSubtleCrypto(),n=await t.digest({name:i.i},e);return new Uint8Array(n)}async function d(e){const t=r.getSubtleCrypto(),n=await t.digest({name:i.j},e);return new Uint8Array(n)}},function(e,t){var n,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},function(e,t,n){var r=n(44),i=n(45);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},function(e,t,n){n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(3);function i(e){return r.c.includes(e)}function o(e){return Object.keys(r.f).includes(e)?r.f[e]:r.f[r.a]}function a(e){return Object.values(r.f).find((t=>t.code===e))||r.f[r.a]}},function(e,t,n){var r=n(19);o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}();var i=o.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function o(e,t,n){return o.TYPED_ARRAY_SUPPORT||this instanceof o?"number"==typeof e?u(this,e):function(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(n<0||t.byteLength=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function s(e,t){var n;return o.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t)).__proto__=o.prototype:(null===(n=e)&&(n=new o(t)),n.length=t),n}function u(e,t){var n=s(e,t<0?0:0|a(t));if(!o.TYPED_ARRAY_SUPPORT)for(var r=0;r55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function d(e){return o.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:l(e).length)}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(e,t,n){void 0===t||void 0===n&&"string"==typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,n,r){return function(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}(l(t,e.length-n),e,n,r)}(this,e,t,n)},o.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i1)for(var n=1;n=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","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"],l=[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],d=[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];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=l[e],p=d[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var y=f.modn(p).toString(e);n=(f=f.idivn(p)).isZero()?y+n:c[h-y.length]+y+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],f=8191&p,y=p>>>13,m=0|a[2],g=8191&m,v=m>>>13,b=0|a[3],w=8191&b,M=b>>>13,A=0|a[4],E=8191&A,N=A>>>13,T=0|a[5],I=8191&T,k=T>>>13,L=0|a[6],x=8191&L,S=L>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,_=O>>>13,P=0|a[9],B=8191&P,R=P>>>13,U=0|s[0],W=8191&U,Q=U>>>13,Y=0|s[1],F=8191&Y,V=Y>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,ee=K>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,he=le>>>13,pe=0|s[9],fe=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(c+(r=Math.imul(d,W))|0)+((8191&(i=(i=Math.imul(d,Q))+Math.imul(h,W)|0))<<13)|0;c=((o=Math.imul(h,Q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(f,W),i=(i=Math.imul(f,Q))+Math.imul(y,W)|0,o=Math.imul(y,Q);var ge=(c+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,F)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,W),i=(i=Math.imul(g,Q))+Math.imul(v,W)|0,o=Math.imul(v,Q),r=r+Math.imul(f,F)|0,i=(i=i+Math.imul(f,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,W),i=(i=Math.imul(w,Q))+Math.imul(M,W)|0,o=Math.imul(M,Q),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,W),i=(i=Math.imul(E,Q))+Math.imul(N,W)|0,o=Math.imul(N,Q),r=r+Math.imul(w,F)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,W),i=(i=Math.imul(I,Q))+Math.imul(k,W)|0,o=Math.imul(k,Q),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0;var Me=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(x,W),i=(i=Math.imul(x,Q))+Math.imul(S,W)|0,o=Math.imul(S,Q),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0;var Ae=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,W),i=(i=Math.imul(C,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,Q))+Math.imul(_,W)|0,o=Math.imul(_,Q),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Ne=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,Q))+Math.imul(R,W)|0,o=Math.imul(R,Q),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(_,F)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Te=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ye)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,ye)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,he)|0;var Ie=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ye)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var ke=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,ye)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,he)|0;var Le=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(M,fe)|0))<<13)|0;c=((o=o+Math.imul(M,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,ee))+Math.imul(R,$)|0,o=Math.imul(R,ee),r=r+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var xe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(N,fe)|0))<<13)|0;c=((o=o+Math.imul(N,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,ne),i=(i=Math.imul(B,re))+Math.imul(R,ne)|0,o=Math.imul(R,re),r=r+Math.imul(z,oe)|0,i=(i=i+Math.imul(z,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,he)|0;var Se=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ye)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,ye)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(R,oe)|0,o=Math.imul(R,ae),r=r+Math.imul(z,ue)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,he)|0;var je=(c+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,ye)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,ue),i=(i=Math.imul(B,ce))+Math.imul(R,ue)|0,o=Math.imul(R,ce),r=r+Math.imul(z,de)|0,i=(i=i+Math.imul(z,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Ce=(c+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ye)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,de),i=(i=Math.imul(B,he))+Math.imul(R,de)|0,o=Math.imul(R,he);var De=(c+(r=r+Math.imul(z,fe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ye)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(c+(r=Math.imul(B,fe))|0)+((8191&(i=(i=Math.imul(B,ye))+Math.imul(R,fe)|0))<<13)|0;return c=((o=Math.imul(R,ye))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,u[0]=me,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=Me,u[6]=Ae,u[7]=Ee,u[8]=Ne,u[9]=Te,u[10]=Ie,u[11]=ke,u[12]=Le,u[13]=xe,u[14]=Se,u[15]=je,u[16]=Ce,u[17]=De,u[18]=Oe,0!==c&&(u[19]=c,n.length++),n};function f(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):f(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-o|d>>>o,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var f=0,y=1;0==(n.words[0]&y)&&f<26;++f,y<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(u)):(n.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,h=1;0==(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new A(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(v,g),v.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new b;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return m[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},A.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,i),h=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),f=a;0!==p.cmp(s);){for(var y=p,m=0;0!==y.cmp(s);m++)y=y.redSqr();r(m=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(54)(e))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(60);r.__exportStar(n(61),t),r.__exportStar(n(62),t)},function(e,t,n){(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var r=n(56),i=n(57),o=n(58);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return N(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function N(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function z(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function _(e,t,n,r,o){return o||z(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,o){return o||z(e,0,n,8),i.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return M(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return _(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return _(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(13))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},function(e,t,n){n.r(t),n.d(t,"detectEnv",(function(){return a})),n.d(t,"detectOS",(function(){return s})),n.d(t,"isAndroid",(function(){return u})),n.d(t,"isIOS",(function(){return c})),n.d(t,"isMobile",(function(){return l})),n.d(t,"isNode",(function(){return d})),n.d(t,"isBrowser",(function(){return h})),n.d(t,"getFromWindow",(function(){return p})),n.d(t,"getFromWindowOrThrow",(function(){return f})),n.d(t,"getDocumentOrThrow",(function(){return y})),n.d(t,"getDocument",(function(){return m})),n.d(t,"getNavigatorOrThrow",(function(){return g})),n.d(t,"getNavigator",(function(){return v})),n.d(t,"getLocationOrThrow",(function(){return b})),n.d(t,"getLocation",(function(){return w})),n.d(t,"getCryptoOrThrow",(function(){return M})),n.d(t,"getCrypto",(function(){return A})),n.d(t,"getLocalStorageOrThrow",(function(){return E})),n.d(t,"getLocalStorage",(function(){return T})),n.d(t,"getClientMeta",(function(){return N})),n.d(t,"safeJsonParse",(function(){return I})),n.d(t,"safeJsonStringify",(function(){return k})),n.d(t,"setLocal",(function(){return L})),n.d(t,"getLocal",(function(){return x})),n.d(t,"removeLocal",(function(){return S})),n.d(t,"mobileLinkChoiceKey",(function(){return j})),n.d(t,"formatIOSMobile",(function(){return C})),n.d(t,"saveMobileLinkInfo",(function(){return D})),n.d(t,"getMobileRegistryEntry",(function(){return O})),n.d(t,"getMobileLinkRegistry",(function(){return z})),n.d(t,"getWalletRegistryUrl",(function(){return P})),n.d(t,"getDappRegistryUrl",(function(){return R})),n.d(t,"formatMobileRegistryEntry",(function(){return B})),n.d(t,"formatMobileRegistry",(function(){return U}));var r=n(47),i=n(4),o=n(48);function a(e){return Object(o.a)(e)}function s(){const e=a();return e&&e.os?e.os:void 0}function u(){const e=s();return!!e&&e.toLowerCase().includes("android")}function c(){const e=s();return!!e&&(e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1)}function l(){return!!s()&&(u()||c())}function d(){const e=a();return!(!e||!e.name)&&"node"===e.name.toLowerCase()}function h(){return!d()&&!!v()}const p=i.getFromWindow,f=i.getFromWindowOrThrow,y=i.getDocumentOrThrow,m=i.getDocument,g=i.getNavigatorOrThrow,v=i.getNavigator,b=i.getLocationOrThrow,w=i.getLocation,M=i.getCryptoOrThrow,A=i.getCrypto,E=i.getLocalStorageOrThrow,T=i.getLocalStorage;function N(){return r.getWindowMetadata()}const I=function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return JSON.parse(e)}catch(t){return e}},k=function(e){return"string"==typeof e?e:JSON.stringify(e)};function L(e,t){const n=k(t),r=T();r&&r.setItem(e,n)}function x(e){let t=null,n=null;const r=T();return r&&(n=r.getItem(e)),t=n?I(n):n,t}function S(e){const t=T();t&&t.removeItem(e)}const j="WALLETCONNECT_DEEPLINK_CHOICE";function C(e,t){const n=encodeURIComponent(e);return t.universalLink?`${t.universalLink}/wc?uri=${n}`:t.deepLink?`${t.deepLink}${t.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function D(e){const t=e.href.split("?")[0];L(j,Object.assign(Object.assign({},e),{href:t}))}function O(e,t){return e.filter((e=>e.name.toLowerCase().includes(t.toLowerCase())))[0]}function z(e,t){let n=e;return t&&(n=t.map((t=>O(e,t))).filter(Boolean)),n}const _="https://registry.walletconnect.com";function P(){return _+"/api/v2/wallets"}function R(){return _+"/api/v2/dapps"}function B(e,t="mobile"){var n;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:null!==(n=e.image_url.sm)&&void 0!==n?n:"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function U(e,t="mobile"){return Object.values(e).filter((e=>!!e[t].universal||!!e[t].native)).map((e=>B(e,t)))}},function(e,t){e.exports=i,i.strict=o,i.loose=a;var n=Object.prototype.toString,r={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function i(e){return o(e)||a(e)}function o(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function a(e){return r[n.call(e)]}},function(e,t,n){const r=n(63),i=n(64),o=n(65);function a(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function c(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function l(e){const t=(e=c(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.split("").indexOf(e.arrayFormatSeparator)>-1?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=d(n[e],t);else r[e]=d(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort(((e,t)=>Number(e)-Number(t))).map((e=>t[e])):t}(n):e[t]=n,e}),Object.create(null))}t.extract=l,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[",i,"]"].join("")]:[...n,[s(t,e),"[",s(i,e),"]=",s(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[]"].join("")]:[...n,[s(t,e),"[]=",s(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[s(t,e),"=",s(r,e)].join("")]:[[n,s(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,s(t,e)]:[...n,[s(t,e),"=",s(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?s(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):s(n,t)+"="+s(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:h(l(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=c(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let u=t.stringify(a,n);u&&(u="?"+u);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l="#"+s(e.fragmentIdentifier,n)),`${r}${u}${l}`}},function(e,t,n){var r=n(17);n.o(r,"payloadId")&&n.d(t,"payloadId",(function(){return r.payloadId})),r.isNode},function(e,t,n){function r(){return Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3))}n.d(t,"a",(function(){return r})),n(9),n(3)},function(e,t,n){},function(e,t,n){n(28)},function(e,t,n){n(29),n(14),n(30),n(31)},function(e,t){},function(e,t,n){var r=n(14);r.a,r.a},function(e,t){},function(e,t,n){},function(e,t,n){},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(5);function i(e){return r.getBrowerCrypto().getRandomValues(new Uint8Array(e))}},function(e,t,n){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(6);function i(e,t,n){return Object(r.b)(e,t,n)}function o(e,t,n){return Object(r.a)(e,t,n)}},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(6);async function i(e,t){return await Object(r.c)(e,t)}n(15)},function(e,t,n){var r=n(5);n.o(r,"isConstantTime")&&n.d(t,"isConstantTime",(function(){return r.isConstantTime}))},function(e,t,n){},function(e,t){},function(e,t,n){function r(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r8?2.5:2.7)+"vw":"inherit";return s.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:o,rel:"noopener noreferrer",target:"_blank"},s.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+i+"') "+t,backgroundSize:"100%"}}),s.createElement("div",{style:{fontSize:a},className:"walletconnect-connect__button__text"},r))}function h(e){var t=i.isAndroid(),n=s.useState(""),r=n[0],o=n[1],a=s.useState(""),u=a[0],h=a[1],p=s.useState(1),f=p[0],y=p[1],m=u?e.links.filter((function(e){return e.name.toLowerCase().includes(u.toLowerCase())})):e.links,g=e.errorMessage,v=u||m.length>5,b=Math.ceil(m.length/12),w=[12*(f-1)+1,12*f],M=m.length?m.filter((function(e,t){return t+1>=w[0]&&t+1<=w[1]})):[],A=!(t||!(b>1)),E=void 0;return s.createElement("div",null,s.createElement("p",{id:"walletconnect-qrcode-text",className:"walletconnect-qrcode__text"},t?e.text.connect_mobile_wallet:e.text.choose_preferred_wallet),!t&&s.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:function(e){o(e.target.value),clearTimeout(E),e.target.value?E=setTimeout((function(){h(e.target.value),y(1)}),1e3):(o(""),h(""),y(1))}}),s.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(t?"__android":v&&m.length?"__wrap":"")},t?s.createElement(c,{name:e.text.connect,color:"rgb(64, 153, 255)",href:e.uri,onClick:s.useCallback((function(){i.saveMobileLinkInfo({name:"Unknown",href:e.uri})}),[])}):M.length?M.map((function(t){var n=t.color,r=t.name,o=t.shortName,a=t.logo,u=i.formatIOSMobile(e.uri,t),c=s.useCallback((function(){i.saveMobileLinkInfo({name:r,href:u})}),[M]);return v?s.createElement(d,{color:n,href:u,name:o||r,logo:a,onClick:c}):s.createElement(l,{color:n,href:u,name:r,logo:a,onClick:c})})):s.createElement(s.Fragment,null,s.createElement("p",null,g.length?e.errorMessage:e.links.length&&!m.length?e.text.no_wallets_found:e.text.loading))),A&&s.createElement("div",{className:"walletconnect-modal__footer"},Array(b).fill(0).map((function(e,t){var n=t+1,r=f===n;return s.createElement("a",{style:{margin:"auto 10px",fontWeight:r?"bold":"normal"},onClick:function(){return y(n)}},n)}))))}function p(e){var t=!!e.message.trim();return s.createElement("div",{className:"walletconnect-qrcode__notification"+(t?" notification__show":"")},e.message)}function f(e){var t=s.useState(""),n=t[0],r=t[1],i=s.useState(""),u=i[0],c=i[1];return s.useEffect((function(){try{return Promise.resolve(function(e){try{var t="";return Promise.resolve(o.toString(e,{margin:0,type:"svg"})).then((function(e){return"string"==typeof e&&(t=e.replace("0||s.useEffect((function(){!function(){try{if(t)return Promise.resolve();c(!0);var o=function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){var t=e.qrcodeModalOptions&&e.qrcodeModalOptions.registryUrl?e.qrcodeModalOptions.registryUrl:i.getWalletRegistryUrl();return Promise.resolve(fetch(t)).then((function(t){return Promise.resolve(t.json()).then((function(t){var o=t.listings,a=n?"mobile":"desktop",s=i.getMobileLinkRegistry(i.formatMobileRegistry(o,a),r);c(!1),p(!0),S(s.length?"":e.text.no_supported_wallets),k(s);var u=1===s.length;u&&(M(i.formatIOSMobile(e.uri,s[0])),g(!0)),T(u)}))}))}),(function(t){c(!1),p(!0),S(e.text.something_went_wrong),console.error(t)}));Promise.resolve(o&&o.then?o.then((function(){})):void 0)}catch(e){return Promise.reject(e)}}()}))};j();var C=n?m:!m;return s.createElement("div",{id:"walletconnect-qrcode-modal",className:"walletconnect-qrcode__base animated fadeIn"},s.createElement("div",{className:"walletconnect-modal__base"},s.createElement(u,{onClose:e.onClose}),E&&m?s.createElement("div",{className:"walletconnect-modal__single_wallet"},s.createElement("a",{onClick:function(){return i.saveMobileLinkInfo({name:I[0].name,href:w})},href:w,rel:"noopener noreferrer",target:"_blank"},e.text.connect_with+" "+(E?I[0].name:"")+" ›")):t||a||!a&&I.length?s.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(C?" right__selected":"")},s.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?s.createElement(s.Fragment,null,s.createElement("a",{onClick:function(){return g(!1),j()}},e.text.mobile),s.createElement("a",{onClick:function(){return g(!0)}},e.text.qrcode)):s.createElement(s.Fragment,null,s.createElement("a",{onClick:function(){return g(!0)}},e.text.qrcode),s.createElement("a",{onClick:function(){return g(!1),j()}},e.text.desktop))):null,s.createElement("div",null,m||!t&&!a&&!I.length?s.createElement(f,Object.assign({},v)):s.createElement(h,Object.assign({},v,{links:I,errorMessage:x})))))}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var m={de:{choose_preferred_wallet:"Wähle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterstützten Wallet",no_wallets_found:"keine Wallet gefunden"},en:{choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},es:{choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera móvil",scan_qrcode_with_wallet:"Escanea el código QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo salió mal",no_supported_wallets:"Todavía no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},fr:{choose_preferred_wallet:"Choisissez votre portefeuille préféré",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copié!",connect_with:"Connectez-vous à l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourné",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouvé"},ko:{choose_preferred_wallet:"원하는 지갑을 선택하세요",connect_mobile_wallet:"모바일 지갑과 연결",scan_qrcode_with_wallet:"WalletConnect 지원 지갑에서 QR코드를 스캔하세요",connect:"연결",qrcode:"QR 코드",mobile:"모바일",desktop:"데스크탑",copy_to_clipboard:"클립보드에 복사",copied_to_clipboard:"클립보드에 복사되었습니다!",connect_with:"와 연결하다",loading:"로드 중...",something_went_wrong:"문제가 발생했습니다.",no_supported_wallets:"아직 지원되는 지갑이 없습니다",no_wallets_found:"지갑을 찾을 수 없습니다"},pt:{choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se à carteira móvel",scan_qrcode_with_wallet:"Ler o código QR com uma carteira compatível com WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda não há carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},zh:{choose_preferred_wallet:"选择你的钱包",connect_mobile_wallet:"连接至移动端钱包",scan_qrcode_with_wallet:"使用兼容 WalletConnect 的钱包扫描二维码",connect:"连接",qrcode:"二维码",mobile:"移动",desktop:"桌面",copy_to_clipboard:"复制到剪贴板",copied_to_clipboard:"复制到剪贴板成功!",connect_with:"通过以下方式连接",loading:"正在加载...",something_went_wrong:"出了问题",no_supported_wallets:"目前还没有支持的钱包",no_wallets_found:"没有找到钱包"},fa:{choose_preferred_wallet:"کیف پول مورد نظر خود را انتخاب کنید",connect_mobile_wallet:"به کیف پول موبایل وصل شوید",scan_qrcode_with_wallet:"کد QR را با یک کیف پول سازگار با WalletConnect اسکن کنید",connect:"اتصال",qrcode:"کد QR",mobile:"سیار",desktop:"دسکتاپ",copy_to_clipboard:"کپی به کلیپ بورد",copied_to_clipboard:"در کلیپ بورد کپی شد!",connect_with:"ارتباط با",loading:"...بارگذاری",something_went_wrong:"مشکلی پیش آمد",no_supported_wallets:"هنوز هیچ کیف پول پشتیبانی شده ای وجود ندارد",no_wallets_found:"هیچ کیف پولی پیدا نشد"}};function g(){var e=i.getDocumentOrThrow(),t=e.getElementById("walletconnect-qrcode-modal");t&&(t.className=t.className.replace("fadeIn","fadeOut"),setTimeout((function(){var t=e.getElementById("walletconnect-wrapper");t&&e.body.removeChild(t)}),300))}function v(e){return function(){g(),e&&e()}}var b=function(){return void 0!==t&&void 0!==t.versions&&void 0!==t.versions.node},w={open:function(e,t,n){console.log(e),b()?function(e){o.toString(e,{type:"terminal"}).then(console.log)}(e):function(e,t,n){!function(){var e=i.getDocumentOrThrow(),t=e.getElementById("walletconnect-style-sheet");t&&e.head.removeChild(t);var n=e.createElement("style");n.setAttribute("id","walletconnect-style-sheet"),n.innerText=':root {\n --animation-duration: 300ms;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n#walletconnect-wrapper {\n -webkit-user-select: none;\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n pointer-events: none;\n position: fixed;\n top: 0;\n user-select: none;\n width: 100%;\n z-index: 99999999999999;\n}\n\n.walletconnect-modal__headerLogo {\n height: 21px;\n}\n\n.walletconnect-modal__header p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n align-items: flex-start;\n display: flex;\n flex: 1;\n margin-left: 5px;\n}\n\n.walletconnect-modal__close__wrapper {\n position: absolute;\n top: 0px;\n right: 0px;\n z-index: 10000;\n background: white;\n border-radius: 26px;\n padding: 6px;\n box-sizing: border-box;\n width: 26px;\n height: 26px;\n cursor: pointer;\n}\n\n.walletconnect-modal__close__icon {\n position: relative;\n top: 7px;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(45deg);\n}\n\n.walletconnect-modal__close__line1 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n}\n\n.walletconnect-modal__close__line2 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n transform: rotate(90deg);\n}\n\n.walletconnect-qrcode__base {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n background: rgba(37, 41, 46, 0.95);\n height: 100%;\n left: 0;\n pointer-events: auto;\n position: fixed;\n top: 0;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n width: 100%;\n will-change: opacity;\n padding: 40px;\n box-sizing: border-box;\n}\n\n.walletconnect-qrcode__text {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 10px 0 20px 0;\n text-align: center;\n width: 100%;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-qrcode__text {\n font-size: 4vw;\n }\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-qrcode__text {\n font-size: 14px;\n }\n}\n\n.walletconnect-qrcode__image {\n width: calc(100% - 30px);\n box-sizing: border-box;\n cursor: none;\n margin: 0 auto;\n}\n\n.walletconnect-qrcode__notification {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 16px;\n padding: 16px 20px;\n border-radius: 16px;\n text-align: center;\n transition: all 0.1s ease-in-out;\n background: white;\n color: black;\n margin-bottom: -60px;\n opacity: 0;\n}\n\n.walletconnect-qrcode__notification.notification__show {\n opacity: 1;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__header {\n height: 130px;\n }\n .walletconnect-modal__base {\n overflow: auto;\n }\n}\n\n@media only screen and (min-device-width: 415px) and (max-width: 768px) {\n #content {\n max-width: 768px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 375px) and (max-width: 415px) {\n #content {\n max-width: 414px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 320px) and (max-width: 375px) {\n #content {\n max-width: 375px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (max-width: 320px) {\n #content {\n max-width: 320px;\n box-sizing: border-box;\n }\n}\n\n.walletconnect-modal__base {\n -webkit-font-smoothing: antialiased;\n background: #ffffff;\n border-radius: 24px;\n box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4);\n font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font,\n -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,\n "Open Sans", "Helvetica Neue", sans-serif;\n margin-top: 41px;\n padding: 24px 24px 22px;\n pointer-events: auto;\n position: relative;\n text-align: center;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n will-change: transform;\n overflow: visible;\n transform: translateY(-50%);\n top: 50%;\n max-width: 500px;\n margin: auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__base {\n padding: 24px 12px;\n }\n}\n\n.walletconnect-modal__base .hidden {\n transform: translateY(150%);\n transition: 0.125s cubic-bezier(0.4, 0, 1, 1);\n}\n\n.walletconnect-modal__header {\n align-items: center;\n display: flex;\n height: 26px;\n left: 0;\n justify-content: space-between;\n position: absolute;\n top: -42px;\n width: 100%;\n}\n\n.walletconnect-modal__base .wc-logo {\n align-items: center;\n display: flex;\n height: 26px;\n margin-top: 15px;\n padding-bottom: 15px;\n pointer-events: auto;\n}\n\n.walletconnect-modal__base .wc-logo div {\n background-color: #3399ff;\n height: 21px;\n margin-right: 5px;\n mask-image: url("images/wc-logo.svg") center no-repeat;\n width: 32px;\n}\n\n.walletconnect-modal__base .wc-logo p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n}\n\n.walletconnect-modal__base h2 {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 0 0 19px 0;\n text-align: center;\n width: 100%;\n}\n\n.walletconnect-modal__base__row {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n align-items: center;\n border-radius: 20px;\n cursor: pointer;\n display: flex;\n height: 56px;\n justify-content: space-between;\n padding: 0 15px;\n position: relative;\n margin: 0px 0px 8px;\n text-align: left;\n transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n will-change: transform;\n text-decoration: none;\n}\n\n.walletconnect-modal__base__row:hover {\n background: rgba(60, 66, 82, 0.06);\n}\n\n.walletconnect-modal__base__row:active {\n background: rgba(60, 66, 82, 0.06);\n transform: scale(0.975);\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.walletconnect-modal__base__row__h3 {\n color: #25292e;\n font-size: 20px;\n font-weight: 700;\n margin: 0;\n padding-bottom: 3px;\n}\n\n.walletconnect-modal__base__row__right {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n\n.walletconnect-modal__base__row__right__app-icon {\n border-radius: 8px;\n height: 34px;\n margin: 0 11px 2px 0;\n width: 34px;\n background-size: 100%;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-modal__base__row__right__caret {\n height: 18px;\n opacity: 0.3;\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n width: 8px;\n will-change: opacity;\n}\n\n.walletconnect-modal__base__row:hover .caret,\n.walletconnect-modal__base__row:active .caret {\n opacity: 0.6;\n}\n\n.walletconnect-modal__mobile__toggle {\n width: 80%;\n display: flex;\n margin: 0 auto;\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n margin-bottom: 18px;\n background: #d4d5d9;\n}\n\n.walletconnect-modal__single_wallet {\n display: flex;\n justify-content: center;\n margin-top: 7px;\n margin-bottom: 18px;\n}\n\n.walletconnect-modal__single_wallet a {\n cursor: pointer;\n color: rgb(64, 153, 255);\n font-size: 21px;\n font-weight: 800;\n text-decoration: none !important;\n margin: 0 auto;\n}\n\n.walletconnect-modal__mobile__toggle_selector {\n width: calc(50% - 8px);\n background: white;\n position: absolute;\n border-radius: 5px;\n height: calc(100% - 8px);\n top: 4px;\n transition: all 0.2s ease-in-out;\n transform: translate3d(4px, 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector {\n transform: translate3d(calc(100% + 12px), 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle a {\n font-size: 12px;\n width: 50%;\n text-align: center;\n padding: 8px;\n margin: 0;\n font-weight: 600;\n z-index: 1;\n}\n\n.walletconnect-modal__footer {\n display: flex;\n justify-content: center;\n margin-top: 20px;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__footer {\n margin-top: 5vw;\n }\n}\n\n.walletconnect-modal__footer a {\n cursor: pointer;\n color: #898d97;\n font-size: 15px;\n margin: 0 auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__footer a {\n font-size: 14px;\n }\n}\n\n.walletconnect-connect__buttons__wrapper {\n max-height: 44vh;\n}\n\n.walletconnect-connect__buttons__wrapper__android {\n margin: 50% 0;\n}\n\n.walletconnect-connect__buttons__wrapper__wrap {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n margin: 10px 0;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__buttons__wrapper__wrap {\n margin-top: 40px;\n }\n}\n\n.walletconnect-connect__button {\n background-color: rgb(64, 153, 255);\n padding: 12px;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(255, 255, 255);\n font-weight: 500;\n}\n\n.walletconnect-connect__button__icon_anchor {\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 8px;\n width: 42px;\n justify-self: center;\n flex-direction: column;\n text-decoration: none !important;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-connect__button__icon_anchor {\n margin: 4px;\n }\n}\n\n.walletconnect-connect__button__icon {\n border-radius: 10px;\n height: 42px;\n margin: 0;\n width: 42px;\n background-size: cover !important;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-connect__button__text {\n color: #424952;\n font-size: 2.7vw;\n text-decoration: none !important;\n padding: 0;\n margin-top: 1.8vw;\n font-weight: 600;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__button__text {\n font-size: 16px;\n margin-top: 12px;\n }\n}\n\n.walletconnect-search__input {\n border: none;\n background: #d4d5d9;\n border-style: none;\n padding: 8px 16px;\n outline: none;\n font-style: normal;\n font-stretch: normal;\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: normal;\n text-align: left;\n border-radius: 8px;\n width: calc(100% - 16px);\n margin: 0;\n margin-bottom: 8px;\n}\n',e.head.appendChild(n)}();var r,o=function(){var e=i.getDocumentOrThrow(),t=e.createElement("div");return t.setAttribute("id","walletconnect-wrapper"),e.body.appendChild(t),t}();s.render(s.createElement(y,{text:(r=i.getNavigatorOrThrow().language.split("-")[0]||"en",m[r]||m.en),uri:e,onClose:v(t),qrcodeModalOptions:n}),o)}(e,t,n)},close:function(){b()||g()}};e.exports=w}).call(this,n(12))},function(e,t,n){var r=n(20),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}}},function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},function(e,t){var n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",r="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(r,"g"),t.NUMERIC=new RegExp("[0-9]+","g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+n+"$"),o=new RegExp("^[0-9]+$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var i=n.modules.size,o=n.modules.data,a=t.getScale(i,r),s=Math.floor((i+2*r.margin)*a),u=r.margin*a,c=[r.color.light,r.color.dark],l=0;l=u&&d>=u&&lr.getAttribute(e))).filter((e=>!!e&&t.includes(e)));if(i.length&&i){const e=r.getAttribute("content");if(e)return e}}return""}const i=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),r=[];for(let e=0;e-1){const e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const r=t.pathname.split("/");r.pop(),n+=r.join("/")+"/"+e}r.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;r.push(n)}else r.push(e)}}return r}(),name:i}}},function(e,t,n){(function(e){n.d(t,"a",(function(){return d}));var r=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},i=function(t){this.version=t,this.type="node",this.name="node",this.os=e.platform},o=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},a=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},u=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,c=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],l=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?p(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?p(navigator.userAgent):void 0!==e&&e.version?new i(e.version.slice(1)):null}function h(e){return""!==e&&c.reduce((function(t,n){var r=n[0],i=n[1];if(t)return t;var o=i.exec(e);return!!o&&[r,o]}),!1)}function p(e){var t=h(e);if(!t)return null;var n=t[0],i=t[1];if("searchbot"===n)return new a;var s=i[1]&&i[1].split(/[._]/).slice(0,3);s?s.length<3&&(s=function(){for(var e=0,t=0,n=arguments.length;t=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function z(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function _(e,t,n,r,o){return o||z(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,o){return o||z(e,0,n,8),i.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return M(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return _(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return _(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(13))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},function(e,t,n){n.r(t),n.d(t,"detectEnv",(function(){return a})),n.d(t,"detectOS",(function(){return s})),n.d(t,"isAndroid",(function(){return u})),n.d(t,"isIOS",(function(){return c})),n.d(t,"isMobile",(function(){return l})),n.d(t,"isNode",(function(){return d})),n.d(t,"isBrowser",(function(){return h})),n.d(t,"getFromWindow",(function(){return p})),n.d(t,"getFromWindowOrThrow",(function(){return f})),n.d(t,"getDocumentOrThrow",(function(){return y})),n.d(t,"getDocument",(function(){return m})),n.d(t,"getNavigatorOrThrow",(function(){return g})),n.d(t,"getNavigator",(function(){return v})),n.d(t,"getLocationOrThrow",(function(){return b})),n.d(t,"getLocation",(function(){return w})),n.d(t,"getCryptoOrThrow",(function(){return M})),n.d(t,"getCrypto",(function(){return A})),n.d(t,"getLocalStorageOrThrow",(function(){return E})),n.d(t,"getLocalStorage",(function(){return N})),n.d(t,"getClientMeta",(function(){return T})),n.d(t,"safeJsonParse",(function(){return I})),n.d(t,"safeJsonStringify",(function(){return k})),n.d(t,"setLocal",(function(){return L})),n.d(t,"getLocal",(function(){return x})),n.d(t,"removeLocal",(function(){return S})),n.d(t,"mobileLinkChoiceKey",(function(){return j})),n.d(t,"formatIOSMobile",(function(){return C})),n.d(t,"saveMobileLinkInfo",(function(){return D})),n.d(t,"getMobileRegistryEntry",(function(){return O})),n.d(t,"getMobileLinkRegistry",(function(){return z})),n.d(t,"getWalletRegistryUrl",(function(){return P})),n.d(t,"getDappRegistryUrl",(function(){return B})),n.d(t,"formatMobileRegistryEntry",(function(){return R})),n.d(t,"formatMobileRegistry",(function(){return U}));var r=n(47),i=n(4),o=n(48);function a(e){return Object(o.a)(e)}function s(){const e=a();return e&&e.os?e.os:void 0}function u(){const e=s();return!!e&&e.toLowerCase().includes("android")}function c(){const e=s();return!!e&&(e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1)}function l(){return!!s()&&(u()||c())}function d(){const e=a();return!(!e||!e.name)&&"node"===e.name.toLowerCase()}function h(){return!d()&&!!v()}const p=i.getFromWindow,f=i.getFromWindowOrThrow,y=i.getDocumentOrThrow,m=i.getDocument,g=i.getNavigatorOrThrow,v=i.getNavigator,b=i.getLocationOrThrow,w=i.getLocation,M=i.getCryptoOrThrow,A=i.getCrypto,E=i.getLocalStorageOrThrow,N=i.getLocalStorage;function T(){return r.getWindowMetadata()}const I=function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return JSON.parse(e)}catch(t){return e}},k=function(e){return"string"==typeof e?e:JSON.stringify(e)};function L(e,t){const n=k(t),r=N();r&&r.setItem(e,n)}function x(e){let t=null,n=null;const r=N();return r&&(n=r.getItem(e)),t=n?I(n):n,t}function S(e){const t=N();t&&t.removeItem(e)}const j="WALLETCONNECT_DEEPLINK_CHOICE";function C(e,t){const n=encodeURIComponent(e);return t.universalLink?`${t.universalLink}/wc?uri=${n}`:t.deepLink?`${t.deepLink}${t.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function D(e){const t=e.href.split("?")[0];L(j,Object.assign(Object.assign({},e),{href:t}))}function O(e,t){return e.filter((e=>e.name.toLowerCase().includes(t.toLowerCase())))[0]}function z(e,t){let n=e;return t&&(n=t.map((t=>O(e,t))).filter(Boolean)),n}const _="https://registry.walletconnect.com";function P(){return _+"/api/v2/wallets"}function B(){return _+"/api/v2/dapps"}function R(e,t="mobile"){var n;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:null!==(n=e.image_url.sm)&&void 0!==n?n:"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function U(e,t="mobile"){return Object.values(e).filter((e=>!!e[t].universal||!!e[t].native)).map((e=>R(e,t)))}},function(e,t){e.exports=i,i.strict=o,i.loose=a;var n=Object.prototype.toString,r={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function i(e){return o(e)||a(e)}function o(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function a(e){return r[n.call(e)]}},function(e,t,n){const r=n(63),i=n(64),o=n(65);function a(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function c(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function l(e){const t=(e=c(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.split("").indexOf(e.arrayFormatSeparator)>-1?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=d(n[e],t);else r[e]=d(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort(((e,t)=>Number(e)-Number(t))).map((e=>t[e])):t}(n):e[t]=n,e}),Object.create(null))}t.extract=l,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[",i,"]"].join("")]:[...n,[s(t,e),"[",s(i,e),"]=",s(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[]"].join("")]:[...n,[s(t,e),"[]=",s(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[s(t,e),"=",s(r,e)].join("")]:[[n,s(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,s(t,e)]:[...n,[s(t,e),"=",s(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?s(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):s(n,t)+"="+s(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:h(l(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=c(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let u=t.stringify(a,n);u&&(u="?"+u);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l="#"+s(e.fragmentIdentifier,n)),`${r}${u}${l}`}},function(e,t,n){var r=n(17);n.o(r,"payloadId")&&n.d(t,"payloadId",(function(){return r.payloadId})),r.isNode},function(e,t,n){function r(){return Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3))}n.d(t,"a",(function(){return r})),n(9),n(3)},function(e,t,n){},function(e,t,n){n(28)},function(e,t,n){n(29),n(14),n(30),n(31)},function(e,t){},function(e,t,n){var r=n(14);r.a,r.a},function(e,t){},function(e,t,n){},function(e,t,n){},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(5);function i(e){return r.getBrowerCrypto().getRandomValues(new Uint8Array(e))}},function(e,t,n){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(6);function i(e,t,n){return Object(r.b)(e,t,n)}function o(e,t,n){return Object(r.a)(e,t,n)}},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(6);async function i(e,t){return await Object(r.c)(e,t)}n(15)},function(e,t,n){var r=n(5);n.o(r,"isConstantTime")&&n.d(t,"isConstantTime",(function(){return r.isConstantTime}))},function(e,t,n){},function(e,t){},function(e,t,n){function r(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r8?2.5:2.7)+"vw":"inherit";return s.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:o,rel:"noopener noreferrer",target:"_blank"},s.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+i+"') "+t,backgroundSize:"100%"}}),s.createElement("div",{style:{fontSize:a},className:"walletconnect-connect__button__text"},r))}function h(e){var t=i.isAndroid(),n=s.useState(""),r=n[0],o=n[1],a=s.useState(""),u=a[0],h=a[1],p=s.useState(1),f=p[0],y=p[1],m=u?e.links.filter((function(e){return e.name.toLowerCase().includes(u.toLowerCase())})):e.links,g=e.errorMessage,v=u||m.length>5,b=Math.ceil(m.length/12),w=[12*(f-1)+1,12*f],M=m.length?m.filter((function(e,t){return t+1>=w[0]&&t+1<=w[1]})):[],A=!(t||!(b>1)),E=void 0;return s.createElement("div",null,s.createElement("p",{id:"walletconnect-qrcode-text",className:"walletconnect-qrcode__text"},t?e.text.connect_mobile_wallet:e.text.choose_preferred_wallet),!t&&s.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:function(e){o(e.target.value),clearTimeout(E),e.target.value?E=setTimeout((function(){h(e.target.value),y(1)}),1e3):(o(""),h(""),y(1))}}),s.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(t?"__android":v&&m.length?"__wrap":"")},t?s.createElement(c,{name:e.text.connect,color:"rgb(64, 153, 255)",href:e.uri,onClick:s.useCallback((function(){i.saveMobileLinkInfo({name:"Unknown",href:e.uri})}),[])}):M.length?M.map((function(t){var n=t.color,r=t.name,o=t.shortName,a=t.logo,u=i.formatIOSMobile(e.uri,t),c=s.useCallback((function(){i.saveMobileLinkInfo({name:r,href:u})}),[M]);return v?s.createElement(d,{color:n,href:u,name:o||r,logo:a,onClick:c}):s.createElement(l,{color:n,href:u,name:r,logo:a,onClick:c})})):s.createElement(s.Fragment,null,s.createElement("p",null,g.length?e.errorMessage:e.links.length&&!m.length?e.text.no_wallets_found:e.text.loading))),A&&s.createElement("div",{className:"walletconnect-modal__footer"},Array(b).fill(0).map((function(e,t){var n=t+1,r=f===n;return s.createElement("a",{style:{margin:"auto 10px",fontWeight:r?"bold":"normal"},onClick:function(){return y(n)}},n)}))))}function p(e){var t=!!e.message.trim();return s.createElement("div",{className:"walletconnect-qrcode__notification"+(t?" notification__show":"")},e.message)}function f(e){var t=s.useState(""),n=t[0],r=t[1],i=s.useState(""),u=i[0],c=i[1];return s.useEffect((function(){try{return Promise.resolve(function(e){try{var t="";return Promise.resolve(o.toString(e,{margin:0,type:"svg"})).then((function(e){return"string"==typeof e&&(t=e.replace("0||s.useEffect((function(){!function(){try{if(t)return Promise.resolve();c(!0);var o=function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){var t=e.qrcodeModalOptions&&e.qrcodeModalOptions.registryUrl?e.qrcodeModalOptions.registryUrl:i.getWalletRegistryUrl();return Promise.resolve(fetch(t)).then((function(t){return Promise.resolve(t.json()).then((function(t){var o=t.listings,a=n?"mobile":"desktop",s=i.getMobileLinkRegistry(i.formatMobileRegistry(o,a),r);c(!1),p(!0),S(s.length?"":e.text.no_supported_wallets),k(s);var u=1===s.length;u&&(M(i.formatIOSMobile(e.uri,s[0])),g(!0)),N(u)}))}))}),(function(t){c(!1),p(!0),S(e.text.something_went_wrong),console.error(t)}));Promise.resolve(o&&o.then?o.then((function(){})):void 0)}catch(e){return Promise.reject(e)}}()}))};j();var C=n?m:!m;return s.createElement("div",{id:"walletconnect-qrcode-modal",className:"walletconnect-qrcode__base animated fadeIn"},s.createElement("div",{className:"walletconnect-modal__base"},s.createElement(u,{onClose:e.onClose}),E&&m?s.createElement("div",{className:"walletconnect-modal__single_wallet"},s.createElement("a",{onClick:function(){return i.saveMobileLinkInfo({name:I[0].name,href:w})},href:w,rel:"noopener noreferrer",target:"_blank"},e.text.connect_with+" "+(E?I[0].name:"")+" ›")):t||a||!a&&I.length?s.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(C?" right__selected":"")},s.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?s.createElement(s.Fragment,null,s.createElement("a",{onClick:function(){return g(!1),j()}},e.text.mobile),s.createElement("a",{onClick:function(){return g(!0)}},e.text.qrcode)):s.createElement(s.Fragment,null,s.createElement("a",{onClick:function(){return g(!0)}},e.text.qrcode),s.createElement("a",{onClick:function(){return g(!1),j()}},e.text.desktop))):null,s.createElement("div",null,m||!t&&!a&&!I.length?s.createElement(f,Object.assign({},v)):s.createElement(h,Object.assign({},v,{links:I,errorMessage:x})))))}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var m={de:{choose_preferred_wallet:"Wähle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterstützten Wallet",no_wallets_found:"keine Wallet gefunden"},en:{choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},es:{choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera móvil",scan_qrcode_with_wallet:"Escanea el código QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo salió mal",no_supported_wallets:"Todavía no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},fr:{choose_preferred_wallet:"Choisissez votre portefeuille préféré",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copié!",connect_with:"Connectez-vous à l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourné",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouvé"},ko:{choose_preferred_wallet:"원하는 지갑을 선택하세요",connect_mobile_wallet:"모바일 지갑과 연결",scan_qrcode_with_wallet:"WalletConnect 지원 지갑에서 QR코드를 스캔하세요",connect:"연결",qrcode:"QR 코드",mobile:"모바일",desktop:"데스크탑",copy_to_clipboard:"클립보드에 복사",copied_to_clipboard:"클립보드에 복사되었습니다!",connect_with:"와 연결하다",loading:"로드 중...",something_went_wrong:"문제가 발생했습니다.",no_supported_wallets:"아직 지원되는 지갑이 없습니다",no_wallets_found:"지갑을 찾을 수 없습니다"},pt:{choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se à carteira móvel",scan_qrcode_with_wallet:"Ler o código QR com uma carteira compatível com WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda não há carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},zh:{choose_preferred_wallet:"选择你的钱包",connect_mobile_wallet:"连接至移动端钱包",scan_qrcode_with_wallet:"使用兼容 WalletConnect 的钱包扫描二维码",connect:"连接",qrcode:"二维码",mobile:"移动",desktop:"桌面",copy_to_clipboard:"复制到剪贴板",copied_to_clipboard:"复制到剪贴板成功!",connect_with:"通过以下方式连接",loading:"正在加载...",something_went_wrong:"出了问题",no_supported_wallets:"目前还没有支持的钱包",no_wallets_found:"没有找到钱包"},fa:{choose_preferred_wallet:"کیف پول مورد نظر خود را انتخاب کنید",connect_mobile_wallet:"به کیف پول موبایل وصل شوید",scan_qrcode_with_wallet:"کد QR را با یک کیف پول سازگار با WalletConnect اسکن کنید",connect:"اتصال",qrcode:"کد QR",mobile:"سیار",desktop:"دسکتاپ",copy_to_clipboard:"کپی به کلیپ بورد",copied_to_clipboard:"در کلیپ بورد کپی شد!",connect_with:"ارتباط با",loading:"...بارگذاری",something_went_wrong:"مشکلی پیش آمد",no_supported_wallets:"هنوز هیچ کیف پول پشتیبانی شده ای وجود ندارد",no_wallets_found:"هیچ کیف پولی پیدا نشد"}};function g(){var e=i.getDocumentOrThrow(),t=e.getElementById("walletconnect-qrcode-modal");t&&(t.className=t.className.replace("fadeIn","fadeOut"),setTimeout((function(){var t=e.getElementById("walletconnect-wrapper");t&&e.body.removeChild(t)}),300))}function v(e){return function(){g(),e&&e()}}var b=function(){return void 0!==t&&void 0!==t.versions&&void 0!==t.versions.node},w={open:function(e,t,n){console.log(e),b()?function(e){o.toString(e,{type:"terminal"}).then(console.log)}(e):function(e,t,n){!function(){var e=i.getDocumentOrThrow(),t=e.getElementById("walletconnect-style-sheet");t&&e.head.removeChild(t);var n=e.createElement("style");n.setAttribute("id","walletconnect-style-sheet"),n.innerText=':root {\n --animation-duration: 300ms;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n#walletconnect-wrapper {\n -webkit-user-select: none;\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n pointer-events: none;\n position: fixed;\n top: 0;\n user-select: none;\n width: 100%;\n z-index: 99999999999999;\n}\n\n.walletconnect-modal__headerLogo {\n height: 21px;\n}\n\n.walletconnect-modal__header p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n align-items: flex-start;\n display: flex;\n flex: 1;\n margin-left: 5px;\n}\n\n.walletconnect-modal__close__wrapper {\n position: absolute;\n top: 0px;\n right: 0px;\n z-index: 10000;\n background: white;\n border-radius: 26px;\n padding: 6px;\n box-sizing: border-box;\n width: 26px;\n height: 26px;\n cursor: pointer;\n}\n\n.walletconnect-modal__close__icon {\n position: relative;\n top: 7px;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(45deg);\n}\n\n.walletconnect-modal__close__line1 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n}\n\n.walletconnect-modal__close__line2 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n transform: rotate(90deg);\n}\n\n.walletconnect-qrcode__base {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n background: rgba(37, 41, 46, 0.95);\n height: 100%;\n left: 0;\n pointer-events: auto;\n position: fixed;\n top: 0;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n width: 100%;\n will-change: opacity;\n padding: 40px;\n box-sizing: border-box;\n}\n\n.walletconnect-qrcode__text {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 10px 0 20px 0;\n text-align: center;\n width: 100%;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-qrcode__text {\n font-size: 4vw;\n }\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-qrcode__text {\n font-size: 14px;\n }\n}\n\n.walletconnect-qrcode__image {\n width: calc(100% - 30px);\n box-sizing: border-box;\n cursor: none;\n margin: 0 auto;\n}\n\n.walletconnect-qrcode__notification {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 16px;\n padding: 16px 20px;\n border-radius: 16px;\n text-align: center;\n transition: all 0.1s ease-in-out;\n background: white;\n color: black;\n margin-bottom: -60px;\n opacity: 0;\n}\n\n.walletconnect-qrcode__notification.notification__show {\n opacity: 1;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__header {\n height: 130px;\n }\n .walletconnect-modal__base {\n overflow: auto;\n }\n}\n\n@media only screen and (min-device-width: 415px) and (max-width: 768px) {\n #content {\n max-width: 768px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 375px) and (max-width: 415px) {\n #content {\n max-width: 414px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 320px) and (max-width: 375px) {\n #content {\n max-width: 375px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (max-width: 320px) {\n #content {\n max-width: 320px;\n box-sizing: border-box;\n }\n}\n\n.walletconnect-modal__base {\n -webkit-font-smoothing: antialiased;\n background: #ffffff;\n border-radius: 24px;\n box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4);\n font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font,\n -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,\n "Open Sans", "Helvetica Neue", sans-serif;\n margin-top: 41px;\n padding: 24px 24px 22px;\n pointer-events: auto;\n position: relative;\n text-align: center;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n will-change: transform;\n overflow: visible;\n transform: translateY(-50%);\n top: 50%;\n max-width: 500px;\n margin: auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__base {\n padding: 24px 12px;\n }\n}\n\n.walletconnect-modal__base .hidden {\n transform: translateY(150%);\n transition: 0.125s cubic-bezier(0.4, 0, 1, 1);\n}\n\n.walletconnect-modal__header {\n align-items: center;\n display: flex;\n height: 26px;\n left: 0;\n justify-content: space-between;\n position: absolute;\n top: -42px;\n width: 100%;\n}\n\n.walletconnect-modal__base .wc-logo {\n align-items: center;\n display: flex;\n height: 26px;\n margin-top: 15px;\n padding-bottom: 15px;\n pointer-events: auto;\n}\n\n.walletconnect-modal__base .wc-logo div {\n background-color: #3399ff;\n height: 21px;\n margin-right: 5px;\n mask-image: url("images/wc-logo.svg") center no-repeat;\n width: 32px;\n}\n\n.walletconnect-modal__base .wc-logo p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n}\n\n.walletconnect-modal__base h2 {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 0 0 19px 0;\n text-align: center;\n width: 100%;\n}\n\n.walletconnect-modal__base__row {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n align-items: center;\n border-radius: 20px;\n cursor: pointer;\n display: flex;\n height: 56px;\n justify-content: space-between;\n padding: 0 15px;\n position: relative;\n margin: 0px 0px 8px;\n text-align: left;\n transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n will-change: transform;\n text-decoration: none;\n}\n\n.walletconnect-modal__base__row:hover {\n background: rgba(60, 66, 82, 0.06);\n}\n\n.walletconnect-modal__base__row:active {\n background: rgba(60, 66, 82, 0.06);\n transform: scale(0.975);\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.walletconnect-modal__base__row__h3 {\n color: #25292e;\n font-size: 20px;\n font-weight: 700;\n margin: 0;\n padding-bottom: 3px;\n}\n\n.walletconnect-modal__base__row__right {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n\n.walletconnect-modal__base__row__right__app-icon {\n border-radius: 8px;\n height: 34px;\n margin: 0 11px 2px 0;\n width: 34px;\n background-size: 100%;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-modal__base__row__right__caret {\n height: 18px;\n opacity: 0.3;\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n width: 8px;\n will-change: opacity;\n}\n\n.walletconnect-modal__base__row:hover .caret,\n.walletconnect-modal__base__row:active .caret {\n opacity: 0.6;\n}\n\n.walletconnect-modal__mobile__toggle {\n width: 80%;\n display: flex;\n margin: 0 auto;\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n margin-bottom: 18px;\n background: #d4d5d9;\n}\n\n.walletconnect-modal__single_wallet {\n display: flex;\n justify-content: center;\n margin-top: 7px;\n margin-bottom: 18px;\n}\n\n.walletconnect-modal__single_wallet a {\n cursor: pointer;\n color: rgb(64, 153, 255);\n font-size: 21px;\n font-weight: 800;\n text-decoration: none !important;\n margin: 0 auto;\n}\n\n.walletconnect-modal__mobile__toggle_selector {\n width: calc(50% - 8px);\n background: white;\n position: absolute;\n border-radius: 5px;\n height: calc(100% - 8px);\n top: 4px;\n transition: all 0.2s ease-in-out;\n transform: translate3d(4px, 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector {\n transform: translate3d(calc(100% + 12px), 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle a {\n font-size: 12px;\n width: 50%;\n text-align: center;\n padding: 8px;\n margin: 0;\n font-weight: 600;\n z-index: 1;\n}\n\n.walletconnect-modal__footer {\n display: flex;\n justify-content: center;\n margin-top: 20px;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__footer {\n margin-top: 5vw;\n }\n}\n\n.walletconnect-modal__footer a {\n cursor: pointer;\n color: #898d97;\n font-size: 15px;\n margin: 0 auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__footer a {\n font-size: 14px;\n }\n}\n\n.walletconnect-connect__buttons__wrapper {\n max-height: 44vh;\n}\n\n.walletconnect-connect__buttons__wrapper__android {\n margin: 50% 0;\n}\n\n.walletconnect-connect__buttons__wrapper__wrap {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n margin: 10px 0;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__buttons__wrapper__wrap {\n margin-top: 40px;\n }\n}\n\n.walletconnect-connect__button {\n background-color: rgb(64, 153, 255);\n padding: 12px;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(255, 255, 255);\n font-weight: 500;\n}\n\n.walletconnect-connect__button__icon_anchor {\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 8px;\n width: 42px;\n justify-self: center;\n flex-direction: column;\n text-decoration: none !important;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-connect__button__icon_anchor {\n margin: 4px;\n }\n}\n\n.walletconnect-connect__button__icon {\n border-radius: 10px;\n height: 42px;\n margin: 0;\n width: 42px;\n background-size: cover !important;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-connect__button__text {\n color: #424952;\n font-size: 2.7vw;\n text-decoration: none !important;\n padding: 0;\n margin-top: 1.8vw;\n font-weight: 600;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__button__text {\n font-size: 16px;\n margin-top: 12px;\n }\n}\n\n.walletconnect-search__input {\n border: none;\n background: #d4d5d9;\n border-style: none;\n padding: 8px 16px;\n outline: none;\n font-style: normal;\n font-stretch: normal;\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: normal;\n text-align: left;\n border-radius: 8px;\n width: calc(100% - 16px);\n margin: 0;\n margin-bottom: 8px;\n}\n',e.head.appendChild(n)}();var r,o=function(){var e=i.getDocumentOrThrow(),t=e.createElement("div");return t.setAttribute("id","walletconnect-wrapper"),e.body.appendChild(t),t}();s.render(s.createElement(y,{text:(r=i.getNavigatorOrThrow().language.split("-")[0]||"en",m[r]||m.en),uri:e,onClose:v(t),qrcodeModalOptions:n}),o)}(e,t,n)},close:function(){b()||g()}};e.exports=w}).call(this,n(12))},function(e,t,n){var r=n(20),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}}},function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},function(e,t){var n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",r="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(r,"g"),t.NUMERIC=new RegExp("[0-9]+","g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+n+"$"),o=new RegExp("^[0-9]+$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var i=n.modules.size,o=n.modules.data,a=t.getScale(i,r),s=Math.floor((i+2*r.margin)*a),u=r.margin*a,c=[r.color.light,r.color.dark],l=0;l=u&&d>=u&&lr.getAttribute(e))).filter((e=>!!e&&t.includes(e)));if(i.length&&i){const e=r.getAttribute("content");if(e)return e}}return""}const i=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),r=[];for(let e=0;e-1){const e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const r=t.pathname.split("/");r.pop(),n+=r.join("/")+"/"+e}r.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;r.push(n)}else r.push(e)}}return r}(),name:i}}},function(e,t,n){(function(e){n.d(t,"a",(function(){return d}));var r=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},i=function(t){this.version=t,this.type="node",this.name="node",this.os=e.platform},o=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},a=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},u=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,c=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],l=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?p(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?p(navigator.userAgent):void 0!==e&&e.version?new i(e.version.slice(1)):null}function h(e){return""!==e&&c.reduce((function(t,n){var r=n[0],i=n[1];if(t)return t;var o=i.exec(e);return!!o&&[r,o]}),!1)}function p(e){var t=h(e);if(!t)return null;var n=t[0],i=t[1];if("searchbot"===n)return new a;var s=i[1]&&i[1].split(/[._]/).slice(0,3);s?s.length<3&&(s=function(){for(var e=0,t=0,n=arguments.length;t>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function P(e,t,n){_.call(this,e,t,n)}_.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(a);t=!0}for(var r,i,o=this.blocks,s=this.byteCount,u=e.length,c=this.blockCount,l=0,d=this.s;l>2]|=e[l]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=s){for(this.start=r-s,this.block=o[c],r=0;r>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},_.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(a);t=!0}var r=0,i=e.length;if(t)r=i;else for(var o=0;o=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(e),r},_.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];a%t==0&&(R(n),o=0)}return i&&(e=n[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},_.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%n==0&&R(r)}return o&&(e=s<<2,t=r[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},P.prototype=new _,P.prototype.finalize=function(){return this.encode(this.outputBits,!0),_.prototype.finalize.call(this)};var R=function(e){var t,n,r,i,o,a,s,u,c,l,d,h,p,f,y,g,v,b,w,M,A,E,T,N,I,k,L,x,S,j,C,D,O,z,_,P,R,B,U,W,Q,Y,F,V,H,G,q,Z,J,X,K,$,ee,te,ne,re,ie,oe,ae,se,ue,ce,le;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(u<<1|c>>>31),n=o^(c<<1|u>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(l<<1|d>>>31),n=s^(d<<1|l>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=u^(h<<1|p>>>31),n=c^(p<<1|h>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=l^(i<<1|o>>>31),n=d^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,f=e[0],y=e[1],G=e[11]<<4|e[10]>>>28,q=e[10]<<4|e[11]>>>28,x=e[20]<<3|e[21]>>>29,S=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,Y=e[40]<<18|e[41]>>>14,F=e[41]<<18|e[40]>>>14,z=e[2]<<1|e[3]>>>31,_=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,j=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,P=e[14]<<6|e[15]>>>26,R=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,K=e[35]<<15|e[34]>>>17,D=e[45]<<29|e[44]>>>3,O=e[44]<<29|e[45]>>>3,N=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,B=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,M=e[36]<<21|e[37]>>>11,A=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,H=e[9]<<27|e[8]>>>5,k=e[18]<<20|e[19]>>>12,L=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,W=e[38]<<8|e[39]>>>24,Q=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,T=e[49]<<14|e[48]>>>18,e[0]=f^~g&b,e[1]=y^~v&w,e[10]=N^~k&x,e[11]=I^~L&S,e[20]=z^~P&B,e[21]=_^~R&U,e[30]=V^~G&Z,e[31]=H^~q&J,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=g^~b&M,e[3]=v^~w&A,e[12]=k^~x&j,e[13]=L^~S&C,e[22]=P^~B&W,e[23]=R^~U&Q,e[32]=G^~Z&X,e[33]=q^~J&K,e[42]=re^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~M&E,e[5]=w^~A&T,e[14]=x^~j&D,e[15]=S^~C&O,e[24]=B^~W&Y,e[25]=U^~Q&F,e[34]=Z^~X&$,e[35]=J^~K&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=M^~E&f,e[7]=A^~T&y,e[16]=j^~D&N,e[17]=C^~O&I,e[26]=W^~Y&z,e[27]=Q^~F&_,e[36]=X^~$&V,e[37]=K^~ee&H,e[46]=se^~ce&te,e[47]=ue^~le&ne,e[8]=E^~f&g,e[9]=T^~y&v,e[18]=D^~N&k,e[19]=O^~I&L,e[28]=Y^~z&P,e[29]=F^~_&R,e[38]=$^~V&G,e[39]=ee^~H&q,e[48]=ce^~te&re,e[49]=le^~ne&ie,e[0]^=m[r],e[1]^=m[r+1]};if(l)e.exports=L;else{for(S=0;Sthis._socketCreate()))}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return 0===this.readyState}set connected(e){}get connected(){return 1===this.readyState}set closing(e){}get closing(){return 2===this.readyState}set closed(e){}get closed(){return 3===this.readyState}open(){this._socketCreate()}close(){this._socketClose()}send(e,t,n){if(!t||"string"!=typeof t)throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;const e=function(e,t,n){var i,o;const a=(e.startsWith("https")?e.replace("https","wss"):e.startsWith("http")?e.replace("http","ws"):e).split("?"),s=Object(r.m)()?{protocol:t,version:n,env:"browser",host:(null===(i=Object(r.k)())||void 0===i?void 0:i.host)||""}:{protocol:t,version:n,env:(null===(o=Object(r.g)())||void 0===o?void 0:o.name)||""},u=Object(r.a)(Object(r.l)(a[1]||""),s);return a[0]+"?"+u}(this._url,this._protocol,this._version);if(this._nextSocket=new o(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=e=>this._socketReceive(e),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=e=>this._socketError(e),this._nextSocket.onclose=()=>{setTimeout((()=>{this._nextSocket=null,this._socketCreate()}),1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const t=JSON.stringify(e);this._socket&&1===this._socket.readyState?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch(e){return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&1===this._socket.readyState){const e=this._events.filter((e=>"message"===e.event));e&&e.length&&e.forEach((e=>e.callback(t)))}}_socketError(e){const t=this._events.filter((e=>"error"===e.event));t&&t.length&&t.forEach((t=>t.callback(e)))}_queueSubscriptions(){this._subscriptions.forEach((e=>this._queue.push({topic:e,type:"sub",payload:"",silent:!0}))),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach((e=>this._socketSend(e))),this._queue=[]}}}).call(this,n(13))},function(e,t,n){t.a=class{constructor(){this._eventEmitters=[],"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",(()=>this.trigger("online"))),window.addEventListener("offline",(()=>this.trigger("offline"))))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter((t=>t.event===e))),t.forEach((e=>{e.callback()}))}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,d=s>0?a-4:a;for(n=0;n>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){ + */!function(){var a="input is invalid type",s="object"==typeof window,u=s?window:{};u.JS_SHA3_NO_WINDOW&&(s=!1);var c=!s&&"object"==typeof self;!u.JS_SHA3_NO_NODE_JS&&"object"==typeof r&&r.versions&&r.versions.node?u=i:c&&(u=self);var l=!u.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,d=n(59),h=!u.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),f=[4,1024,262144,67108864],y=[0,8,16,24],m=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],g=[224,256,384,512],v=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!u.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!h||!u.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var M=function(e,t,n){return function(r){return new _(e,t,e).update(r)[n]()}},A=function(e,t,n){return function(r,i){return new _(e,t,i).update(r)[n]()}},E=function(e,t,n){return function(t,r,i,o){return L["cshake"+e].update(t,r,i,o)[n]()}},N=function(e,t,n){return function(t,r,i,o){return L["kmac"+e].update(t,r,i,o)[n]()}},T=function(e,t,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function P(e,t,n){_.call(this,e,t,n)}_.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(a);t=!0}for(var r,i,o=this.blocks,s=this.byteCount,u=e.length,c=this.blockCount,l=0,d=this.s;l>2]|=e[l]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=s){for(this.start=r-s,this.block=o[c],r=0;r>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},_.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(a);t=!0}var r=0,i=e.length;if(t)r=i;else for(var o=0;o=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(e),r},_.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];a%t==0&&(B(n),o=0)}return i&&(e=n[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},_.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%n==0&&B(r)}return o&&(e=s<<2,t=r[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},P.prototype=new _,P.prototype.finalize=function(){return this.encode(this.outputBits,!0),_.prototype.finalize.call(this)};var B=function(e){var t,n,r,i,o,a,s,u,c,l,d,h,p,f,y,g,v,b,w,M,A,E,N,T,I,k,L,x,S,j,C,D,O,z,_,P,B,R,U,W,Q,Y,F,V,H,G,q,Z,J,X,K,$,ee,te,ne,re,ie,oe,ae,se,ue,ce,le;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(u<<1|c>>>31),n=o^(c<<1|u>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(l<<1|d>>>31),n=s^(d<<1|l>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=u^(h<<1|p>>>31),n=c^(p<<1|h>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=l^(i<<1|o>>>31),n=d^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,f=e[0],y=e[1],G=e[11]<<4|e[10]>>>28,q=e[10]<<4|e[11]>>>28,x=e[20]<<3|e[21]>>>29,S=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,Y=e[40]<<18|e[41]>>>14,F=e[41]<<18|e[40]>>>14,z=e[2]<<1|e[3]>>>31,_=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,j=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,P=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,K=e[35]<<15|e[34]>>>17,D=e[45]<<29|e[44]>>>3,O=e[44]<<29|e[45]>>>3,T=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,R=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,M=e[36]<<21|e[37]>>>11,A=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,H=e[9]<<27|e[8]>>>5,k=e[18]<<20|e[19]>>>12,L=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,W=e[38]<<8|e[39]>>>24,Q=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,N=e[49]<<14|e[48]>>>18,e[0]=f^~g&b,e[1]=y^~v&w,e[10]=T^~k&x,e[11]=I^~L&S,e[20]=z^~P&R,e[21]=_^~B&U,e[30]=V^~G&Z,e[31]=H^~q&J,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=g^~b&M,e[3]=v^~w&A,e[12]=k^~x&j,e[13]=L^~S&C,e[22]=P^~R&W,e[23]=B^~U&Q,e[32]=G^~Z&X,e[33]=q^~J&K,e[42]=re^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~M&E,e[5]=w^~A&N,e[14]=x^~j&D,e[15]=S^~C&O,e[24]=R^~W&Y,e[25]=U^~Q&F,e[34]=Z^~X&$,e[35]=J^~K&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=M^~E&f,e[7]=A^~N&y,e[16]=j^~D&T,e[17]=C^~O&I,e[26]=W^~Y&z,e[27]=Q^~F&_,e[36]=X^~$&V,e[37]=K^~ee&H,e[46]=se^~ce&te,e[47]=ue^~le&ne,e[8]=E^~f&g,e[9]=N^~y&v,e[18]=D^~T&k,e[19]=O^~I&L,e[28]=Y^~z&P,e[29]=F^~_&B,e[38]=$^~V&G,e[39]=ee^~H&q,e[48]=ce^~te&re,e[49]=le^~ne&ie,e[0]^=m[r],e[1]^=m[r+1]};if(l)e.exports=L;else{for(S=0;Sthis._socketCreate()))}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return 0===this.readyState}set connected(e){}get connected(){return 1===this.readyState}set closing(e){}get closing(){return 2===this.readyState}set closed(e){}get closed(){return 3===this.readyState}open(){this._socketCreate()}close(){this._socketClose()}send(e,t,n){if(!t||"string"!=typeof t)throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;const e=function(e,t,n){var i,o;const a=(e.startsWith("https")?e.replace("https","wss"):e.startsWith("http")?e.replace("http","ws"):e).split("?"),s=Object(r.m)()?{protocol:t,version:n,env:"browser",host:(null===(i=Object(r.k)())||void 0===i?void 0:i.host)||""}:{protocol:t,version:n,env:(null===(o=Object(r.g)())||void 0===o?void 0:o.name)||""},u=Object(r.a)(Object(r.l)(a[1]||""),s);return a[0]+"?"+u}(this._url,this._protocol,this._version);if(this._nextSocket=new o(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=e=>this._socketReceive(e),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=e=>this._socketError(e),this._nextSocket.onclose=()=>{setTimeout((()=>{this._nextSocket=null,this._socketCreate()}),1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const t=JSON.stringify(e);this._socket&&1===this._socket.readyState?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch(e){return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&1===this._socket.readyState){const e=this._events.filter((e=>"message"===e.event));e&&e.length&&e.forEach((e=>e.callback(t)))}}_socketError(e){const t=this._events.filter((e=>"error"===e.event));t&&t.length&&t.forEach((t=>t.callback(e)))}_queueSubscriptions(){this._subscriptions.forEach((e=>this._queue.push({topic:e,type:"sub",payload:"",silent:!0}))),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach((e=>this._socketSend(e))),this._queue=[]}}}).call(this,n(13))},function(e,t,n){t.a=class{constructor(){this._eventEmitters=[],"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",(()=>this.trigger("online"))),window.addEventListener("offline",(()=>this.trigger("offline"))))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter((t=>t.event===e))),t.forEach((e=>{e.callback()}))}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,d=s>0?a-4:a;for(n=0;n>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return h})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return y})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return v})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return M})),n.d(t,"__makeTemplateObject",(function(){return A})),n.d(t,"__importStar",(function(){return E})),n.d(t,"__importDefault",(function(){return T})),n.d(t,"__classPrivateFieldGet",(function(){return N})),n.d(t,"__classPrivateFieldSet",(function(){return I})); +t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return h})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return y})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return v})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return M})),n.d(t,"__makeTemplateObject",(function(){return A})),n.d(t,"__importStar",(function(){return E})),n.d(t,"__importDefault",(function(){return N})),n.d(t,"__classPrivateFieldGet",(function(){return T})),n.d(t,"__classPrivateFieldSet",(function(){return I})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -48,7 +49,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof v?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function M(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function N(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){(function(e){function n(){return(null==e?void 0:e.crypto)||(null==e?void 0:e.msCrypto)||{}}function r(){const e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=r,t.isBrowserCryptoAvailable=function(){return!!n()&&!!r()}}).call(this,n(13))},function(e,t,n){(function(e){function n(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function r(){return void 0!==e&&void 0!==e.versions&&void 0!==e.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=n,t.isNode=r,t.isBrowser=function(){return!n()&&!r()}}).call(this,n(12))},function(e,t,n){e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()))},function(e,t,n){var r=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r),n=1;n{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},function(e,t,n){(function(e){function n(){return(null==e?void 0:e.crypto)||(null==e?void 0:e.msCrypto)||{}}function r(){const e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=r,t.isBrowserCryptoAvailable=function(){return!!n()&&!!r()}}).call(this,n(13))},function(e,t,n){(function(e){function n(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function r(){return void 0!==e&&void 0!==e.versions&&void 0!==e.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=n,t.isNode=r,t.isBrowser=function(){return!n()&&!r()}}).call(this,n(12))},function(e,t,n){var r=n(70),i=n(71),o=n(88),a=n(89);function s(e,t,n,o,a){var s=[].slice.call(arguments,1),u=s.length,c="function"==typeof s[u-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(u<1)throw new Error("Too few arguments provided");return 1===u?(n=t,t=o=void 0):2!==u||t.getContext||(o=n,n=t,t=void 0),new Promise((function(r,a){try{var s=i.create(n,o);r(e(s,t,o))}catch(e){a(e)}}))}if(u<2)throw new Error("Too few arguments provided");2===u?(a=n,n=t,t=o=void 0):3===u&&(t.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=n,n=t,t=void 0));try{var l=i.create(n,o);a(null,e(l,t,o))}catch(e){a(e)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return a.render(e,n)}))},function(e,t){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},function(e,t,n){var r=n(10),i=n(7),o=n(20),a=n(72),s=n(73),u=n(74),c=n(75),l=n(76),d=n(43),h=n(77),p=n(80),f=n(81),y=n(8),m=n(82),g=n(19);function v(e,t,n){var r,i,o=e.size,a=f.getEncodedBits(t,n);for(r=0;r<15;r++)i=1==(a>>r&1),r<6?e.set(r,8,i,!0):r<8?e.set(r+1,8,i,!0):e.set(o-15+r,8,i,!0),r<8?e.set(8,o-r-1,i,!0):r<9?e.set(8,15-r-1+1,i,!0):e.set(8,15-r-1,i,!0);e.set(o-8,8,1,!0)}function b(e,t,n){var o=new a;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),y.getCharCountIndicator(t.mode,e)),t.write(o)}));var s=8*(i.getSymbolTotalCodewords(e)-d.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);for(var u=(s-o.getLengthInBits())/8,c=0;c=0&&s<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===s||6===s)||s>=2&&s<=4&&u>=2&&u<=4?e.set(o+s,a+u,!0,!0):e.set(o+s,a+u,!1,!0))}(w,t),function(e){for(var t=e.size,n=8;n=7&&function(e,t){for(var n,r,i,o=e.size,a=p.getEncodedBits(t),s=0;s<18;s++)n=Math.floor(s/3),r=s%3+o-8-3,i=1==(a>>s&1),e.set(n,r,i,!0),e.set(r,n,i,!0)}(w,t),function(e,t){for(var n=e.size,r=-1,i=n-1,o=7,a=0,s=n-1;s>0;s-=2)for(6===s&&s--;;){for(var u=0;u<2;u++)if(!e.isReserved(i,s-u)){var c=!1;a>>o&1)),e.set(i,s-u,c),-1==--o&&(a++,o=7)}if((i+=r)<0||n<=i){i-=r,r=-r;break}}}(w,f),isNaN(r)&&(r=l.getBestMask(w,v.bind(null,w,n))),l.applyMask(r,w),v(w,n,r),{modules:w,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}(e,n,a,r)}},function(e,t){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},function(e,t,n){var r=n(10);function i(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=r.alloc(e*e),this.reservedBit=r.alloc(e*e)}i.prototype.set=function(e,t,n,r){var i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},i.prototype.get=function(e,t){return this.data[e*this.size+t]},i.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},i.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=i},function(e,t,n){var r=n(7).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7],a=1;a=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,n=0,r=0,i=0,o=null,a=null,s=0;s=5&&(n+=r-5+3),o=c,r=1),(c=e.get(u,s))===a?i++:(i>=5&&(n+=i-5+3),a=c,i=1)}r>=5&&(n+=r-5+3),i>=5&&(n+=i-5+3)}return n},t.getPenaltyN2=function(e){for(var t=e.size,n=0,r=0;r=10&&(1488===r||93===r)&&n++,i=i<<1&2047|e.get(a,o),a>=10&&(1488===i||93===i)&&n++}return 40*n},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,r=0;r0){var u=r.alloc(this.degree);return a.copy(u,s),u}return a},e.exports=a},function(e,t,n){var r=n(10),i=n(79);t.mul=function(e,t){for(var n=r.alloc(e.length+t.length-1),o=0;o=0;){for(var o=n[0],a=0;a1)return function(e,n){for(var r=1;r<=40;r++)if(d(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(var i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;r.getBCHDigit(t)-c>=0;)t^=7973<=0;)o^=1335<=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(a))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},function(e,t,n){var r=n(8);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);var i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))},e.exports=i},function(e,t,n){var r=n(8),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=r.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},function(e,t,n){var r=n(10),i=n(8);function o(e){this.mode=i.BYTE,this.data=r.from(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(var t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},function(e,t,n){var r={single_source_shortest_paths:function(e,t,n){var i={},o={};o[t]=0;var a,s,u,c,l,d,h,p=r.PriorityQueue.make();for(p.push(t,0);!p.empty();)for(u in s=(a=p.pop()).value,c=a.cost,l=e[s]||{})l.hasOwnProperty(u)&&(d=c+l[u],h=o[u],(void 0===o[u]||h>d)&&(o[u]=d,p.push(u,d),i[u]=s));if(void 0!==n&&void 0===o[n]){var f=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(f)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var i=r.single_source_shortest_paths(e,t,n);return r.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var t,n=r.PriorityQueue,i={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=r},function(e,t,n){var r=n(46);t.render=function(e,t,n){var i=n,o=t;void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=r.getOptions(i);var a=r.getImageWidth(e.modules.size,i),s=o.getContext("2d"),u=s.createImageData(a,a);return r.qrToImageData(u.data,e,i),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,o,a),s.putImageData(u,0,0),o},t.renderToDataURL=function(e,n,r){var i=r;void 0!==i||n&&n.getContext||(i=n,n=void 0),i||(i={});var o=t.render(e,n,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},function(e,t,n){var r=n(46);function i(e,t){var n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function o(e,t,n){var r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){var a=r.getOptions(t),s=e.modules.size,u=e.modules.data,c=s+2*a.margin,l=a.color.light.a?"':"",d="0&&c>0&&e[u-1]||(r+=a?o("M",c+n,.5+l+n):o("m",i,0),i=0,a=!1),c+1',h='viewBox="0 0 '+c+" "+c+'"',p=''+l+d+"\n";return"function"==typeof n&&n(null,p),p}},function(e,t,n){var r=n(91),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,u,c,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r`https://${e}.bridge.walletconnect.org`));var s=n(11),u=n(0);async function c(e){const t=(e||256)/8,n=s.randomBytes(t);return Object(i.d)(u.b(n))}async function l(e,t){const n=u.n(e.data),r=u.n(e.iv),i=u.n(e.hmac),o=u.c(i,!1),a=u.j(n,r),c=await s.hmacSha256Sign(t,a),l=u.c(c,!1);return u.x(o)===u.x(l)}async function d(e,t,n){const r=u.f(Object(i.b)(t)),o=n||await c(128),a=u.f(Object(i.b)(o)),l=u.c(a,!1),d=JSON.stringify(e),h=u.z(d),p=await s.aesCbcEncrypt(a,r,h),f=u.c(p,!1),y=u.j(p,a),m=await s.hmacSha256Sign(r,y);return{data:f,hmac:u.c(m,!1),iv:l}}async function h(e,t){const n=u.f(Object(i.b)(t));if(!n)throw new Error("Missing key: required for decryption");if(!await l(e,n))return null;const r=u.n(e.data),o=u.n(e.iv),a=await s.aesCbcDecrypt(o,n,r),c=u.e(a);let d;try{d=JSON.parse(c)}catch(e){return null}return d}var p=class extends class{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter((t=>t.event!==e))}trigger(e){let t,n=[];t=Object(i.o)(e)?e.method:Object(i.q)(e)||Object(i.p)(e)?"response:"+e.id:Object(i.n)(e)?e.event:"",t&&(n=this._eventEmitters.filter((e=>e.event===t))),n&&n.length||Object(i.s)(t)||Object(i.n)(t)||(n=this._eventEmitters.filter((e=>"call_request"===e.event))),n.forEach((t=>{if(Object(i.p)(e)){const n=new Error(e.error.message);t.callback(n,null)}else t.callback(null,e)}))}},this._clientMeta=Object(i.i)()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new class{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null;const t=Object(i.j)(this.storageId);return t&&Object(i.u)(t)&&(e=t),e}setSession(e){return Object(i.B)(this.storageId,e),e}removeSession(){Object(i.A)(this.storageId)}}(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...i.C,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error("Missing one of the required parameters: bridge / uri / session");var t;e.connectorOpts.bridge&&(this.bridge=function(e){return"walletconnect.org"===function(e){return function(e){let t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return t=t.split(":")[0],t=t.split("?")[0],t}(e).split(".").slice(-2).join(".")}(e)}(t=e.connectorOpts.bridge)?a[Math.floor(Math.random()*a.length)]:t),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new o.a({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const t=Object(i.e)(e);this._key=t}get key(){return this._key?Object(i.c)(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=Object(i.D)()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=Object(i.i)()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:t,bridge:n,key:r}=this._parseUri(e);this.handshakeTopic=t,this.bridge=n,this.key=r}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,t){const n={event:e,callback:t};this._eventManager.subscribe(n)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=Object(i.D)(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",(()=>{throw new Error("User close QRCode Modal")}));const n=()=>{this.killSession()};try{const e=await this._sendCallRequest(t);return e&&n(),e}catch(e){throw n(),e}}async connect(e){if(!this._qrcodeModal)throw new Error("QRCode Modal not provided");return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise((async(e,t)=>{this.on("modal_closed",(()=>t(new Error("User close QRCode Modal")))),this.on("connect",((n,r)=>{if(n)return t(n);e(r.params[0])}))})))}async createSession(e){if(this._connected)throw new Error("Session currently connected");if(this.pending)return;this._key=await this._generateKey();const t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=Object(i.D)(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error("Session currently connected");this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error("Session currently connected");const t=e&&e.message?e.message:"Session Rejected",n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error("Session currently disconnected");this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const t=e?e.message:"Session Disconnected",n=this._formatRequest({method:"wc_sessionUpdate",params:[{approved:!1,chainId:null,networkId:null,accounts:null}]});await this._sendRequest(n),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw new Error("Session currently disconnected");const t=Object(i.x)(e),n=this._formatRequest({method:"eth_sendTransaction",params:[t]});return await this._sendCallRequest(n)}async signTransaction(e){if(!this._connected)throw new Error("Session currently disconnected");const t=Object(i.x)(e),n=this._formatRequest({method:"eth_signTransaction",params:[t]});return await this._sendCallRequest(n)}async signMessage(e){if(!this._connected)throw new Error("Session currently disconnected");const t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw new Error("Session currently disconnected");e=Object(i.w)(e);const t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw new Error("Session currently disconnected");const t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise(((t,n)=>{this._subscribeToResponse(e.id,((e,r)=>{if(e)n(e);else{if(!r)throw new Error("Missing JSON RPC response");t(r)}}))}))}async sendCustomRequest(e,t){if(!this._connected)throw new Error("Session currently disconnected");switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return Object(i.f)(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params&&(e.params[0]=Object(i.x)(e.params[0]));break;case"personal_sign":e.params&&(e.params=Object(i.w)(e.params))}const n=this._formatRequest(e);return await this._sendCallRequest(n,t)}approveRequest(e){if(!Object(i.q)(e))throw new Error('JSON-RPC success response must include "result" field');{const t=this._formatResponse(e);this._sendResponse(t)}}rejectRequest(e){if(!Object(i.p)(e))throw new Error('JSON-RPC error response must include "error" field');{const t=this._formatResponse(e);this._sendResponse(t)}}transportClose(){this._transport.close()}async _sendRequest(e,t){const n=this._formatRequest(e),r=await this._encrypt(n),o=void 0!==(null==t?void 0:t.topic)?t.topic:this.peerId,a=JSON.stringify(r),s=void 0!==(null==t?void 0:t.forcePushNotification)?!t.forcePushNotification:Object(i.t)(n);this._transport.send(a,o,s)}async _sendResponse(e){const t=await this._encrypt(e),n=this.peerId,r=JSON.stringify(t);this._transport.send(r,n,!0)}async _sendSessionRequest(e,t,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(void 0===e.method)throw new Error('JSON RPC request must have valid "method" value');return{id:void 0===e.id?Object(i.z)():e.id,jsonrpc:"2.0",method:e.method,params:void 0===e.params?[]:e.params}}_formatResponse(e){if(void 0===e.id)throw new Error('JSON RPC request must have valid "id" value');const t={id:e.id,jsonrpc:"2.0"};if(Object(i.p)(e)){const n=Object(i.h)(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}if(Object(i.q)(e))return Object.assign(Object.assign({},t),e);throw new Error("JSON RPC response format is invalid")}_handleSessionDisconnect(e){const t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Object(i.A)(i.v)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t&&t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let t;try{t=JSON.parse(e.payload)}catch(e){return}const n=await this._decrypt(t);n&&this._eventManager.trigger(n)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on("response:"+e,t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,((e,n)=>{e?this._handleSessionResponse(e.message):Object(i.q)(n)?this._handleSessionResponse(t,n.result):n.error&&n.error.message?this._handleSessionResponse(n.error.message):this._handleSessionResponse(t)}))}_subscribeToCallResponse(e){return new Promise(((t,n)=>{this._subscribeToResponse(e,((e,r)=>{e?n(e):Object(i.q)(r)?t(r.result):r.error&&r.error.message?n(r.error):n(new Error("JSON RPC response format is invalid"))}))}))}_subscribeToInternalEvents(){this.on("display_uri",(()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,(()=>{this._eventManager.trigger({event:"modal_closed",params:[]})}),this._qrcodeModalOptions)})),this.on("connect",(()=>{this._qrcodeModal&&this._qrcodeModal.close()})),this.on("call_request_sent",((e,t)=>{const{request:n}=t.params[0];if(Object(i.r)()&&this._signingMethods.includes(n.method)){const e=Object(i.j)(i.v);e&&(window.location.href=e.href)}})),this.on("wc_sessionRequest",((e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;const n=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(n)})),this.on("wc_sessionUpdate",((e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.params[0])}))}_initTransport(){this._transport.on("message",(e=>this._handleIncomingMessages(e))),this._transport.on("open",(()=>this._eventManager.trigger({event:"transport_open",params:[]}))),this._transport.on("close",(()=>this._eventManager.trigger({event:"transport_close",params:[]}))),this._transport.on("error",(()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]}))),this._transport.open()}_formatUri(){return`${this.protocol}:${this.handshakeTopic}@${this.version}?bridge=${encodeURIComponent(this.bridge)}&key=${this.key}`}_parseUri(e){const t=Object(i.y)(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const e=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");const n=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");return{handshakeTopic:e,bridge:n,key:t.key}}throw new Error("URI format is invalid")}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){const t=this._key;return this._cryptoLib&&t?await this._cryptoLib.encrypt(e,t):null}async _decrypt(e){const t=this._key;return this._cryptoLib&&t?await this._cryptoLib.decrypt(e,t):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||"string"!=typeof e.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||"string"!=typeof e.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||"string"!=typeof e.token)throw Error("Invalid or missing pushServerOpts.token parameter value");const t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",(async(n,r)=>{if(n)throw n;if(e.peerMeta){const e=r.params[0].peerMeta.name;t.peerName=e}try{const n=await fetch(e.url+"/new",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});if(!(await n.json()).success)throw Error("Failed to register in Push Server")}catch(n){throw Error("Failed to register in Push Server")}}))}}{constructor(e,t){super({cryptoLib:r,connectorOpts:e,pushServerOpts:t})}},f=n(42),y=n.n(f)},function(e,t,n){n.r(t),n.d(t,"useState",(function(){return Z})),n.d(t,"useReducer",(function(){return J})),n.d(t,"useEffect",(function(){return X})),n.d(t,"useLayoutEffect",(function(){return K})),n.d(t,"useRef",(function(){return $})),n.d(t,"useImperativeHandle",(function(){return ee})),n.d(t,"useMemo",(function(){return te})),n.d(t,"useCallback",(function(){return ne})),n.d(t,"useContext",(function(){return re})),n.d(t,"useDebugValue",(function(){return ie})),n.d(t,"useErrorBoundary",(function(){return oe})),n.d(t,"createElement",(function(){return y})),n.d(t,"createContext",(function(){return R})),n.d(t,"createRef",(function(){return g})),n.d(t,"Fragment",(function(){return v})),n.d(t,"Component",(function(){return b})),n.d(t,"version",(function(){return Pe})),n.d(t,"Children",(function(){return ve})),n.d(t,"render",(function(){return je})),n.d(t,"hydrate",(function(){return Ce})),n.d(t,"unmountComponentAtNode",(function(){return We})),n.d(t,"createPortal",(function(){return Le})),n.d(t,"createFactory",(function(){return Re})),n.d(t,"cloneElement",(function(){return Ue})),n.d(t,"isValidElement",(function(){return Be})),n.d(t,"findDOMNode",(function(){return Qe})),n.d(t,"PureComponent",(function(){return pe})),n.d(t,"memo",(function(){return fe})),n.d(t,"forwardRef",(function(){return me})),n.d(t,"unstable_batchedUpdates",(function(){return Ye})),n.d(t,"Suspense",(function(){return Me})),n.d(t,"SuspenseList",(function(){return Te})),n.d(t,"lazy",(function(){return Ee}));var r,i,o,a,s,u,c,l={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var r,i=arguments,o={};for(r in t)"key"!==r&&"ref"!==r&&(o[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r2&&(t.children=d.slice.call(arguments,2)),n={},t)"key"!==r&&"ref"!==r&&(n[r]=t[r]);return m(e.type,n,t.key||e.key,t.ref||e.ref,null)}function R(e){var t={},n={__c:"__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,i=this;return this.getChildContext||(r=[],this.getChildContext=function(){return t[n.__c]=i,t},this.shouldComponentUpdate=function(e){i.props.value!==e.value&&r.some((function(t){t.context=e.value,A(t)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Consumer.contextType=n,n.Provider.__=n,n}r={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return A(n.__E=n)}catch(t){e=t}throw e}},b.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),A(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},b.prototype.render=v,i=[],o=0,a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=l,c=0;var B,U,W,Q=0,Y=[],F=r.__r,V=r.diffed,H=r.__c,G=r.unmount;function q(e,t){r.__h&&r.__h(U,e,Q||t),Q=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Z(e){return Q=1,J(le,e)}function J(e,t,n){var r=q(B++,2);return r.__c||(r.__c=U,r.__=[n?n(t):le(void 0,t),function(t){var n=e(r.__[0],t);r.__[0]!==n&&(r.__[0]=n,r.__c.setState({}))}]),r.__}function X(e,t){var n=q(B++,3);!r.__s&&ce(n.__H,t)&&(n.__=e,n.__H=t,U.__H.__h.push(n))}function K(e,t){var n=q(B++,4);!r.__s&&ce(n.__H,t)&&(n.__=e,n.__H=t,U.__h.push(n))}function $(e){return Q=5,te((function(){return{current:e}}),[])}function ee(e,t,n){Q=6,K((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function te(e,t){var n=q(B++,7);return ce(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function ne(e,t){return Q=8,te((function(){return e}),t)}function re(e){var t=U.context[e.__c],n=q(B++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(U)),t.props.value):e.__}function ie(e,t){r.useDebugValue&&r.useDebugValue(t?t(e):e)}function oe(e){var t=q(B++,10),n=Z();return t.__=e,U.componentDidCatch||(U.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function ae(){Y.some((function(e){if(e.__P)try{e.__H.__h.forEach(se),e.__H.__h.forEach(ue),e.__H.__h=[]}catch(t){return e.__H.__h=[],r.__e(t,e.__v),!0}})),Y=[]}function se(e){e.t&&e.t()}function ue(e){var t=e.__();"function"==typeof t&&(e.t=t)}function ce(e,t){return!e||t.some((function(t,n){return t!==e[n]}))}function le(e,t){return"function"==typeof t?t(e):t}function de(e,t){for(var n in t)e[n]=t[n];return e}function he(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}r.__r=function(e){F&&F(e),B=0,(U=e.__c).__H&&(U.__H.__h.forEach(se),U.__H.__h.forEach(ue),U.__H.__h=[])},r.diffed=function(e){V&&V(e);var t=e.__c;if(t){var n=t.__H;n&&n.__h.length&&(1!==Y.push(t)&&W===r.requestAnimationFrame||((W=r.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);"undefined"!=typeof window&&(t=requestAnimationFrame(n))})(ae))}},r.__c=function(e,t){t.some((function(e){try{e.__h.forEach(se),e.__h=e.__h.filter((function(e){return!e.__||ue(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],r.__e(n,e.__v)}})),H&&H(e,t)},r.unmount=function(e){G&&G(e);var t=e.__c;if(t){var n=t.__H;if(n)try{n.__.forEach((function(e){return e.t&&e.t()}))}catch(e){r.__e(e,t.__v)}}};var pe=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).isPureReactComponent=!0,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.shouldComponentUpdate=function(e,t){return he(this.props,e)||he(this.state,t)},r}(b);function fe(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:he(this.props,e)}function r(t){return this.shouldComponentUpdate=n,y(e,de({},t))}return r.prototype.isReactComponent=!0,r.displayName="Memo("+(e.displayName||e.name)+")",r.t=!0,r}var ye=r.__b;function me(e){function t(t){var n=de({},t);return delete n.ref,e(n,t.ref)}return t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}r.__b=function(e){e.type&&e.type.t&&e.ref&&(e.props.ref=e.ref,e.ref=null),ye&&ye(e)};var ge=function(e,t){return e?N(e).reduce((function(e,n,r){return e.concat(t(n,r))}),[]):null},ve={map:ge,forEach:ge,count:function(e){return e?N(e).length:0},only:function(e){if(1!==(e=N(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:N},be=r.__e;function we(e){return e&&((e=de({},e)).__c=null,e.__k=e.__k&&e.__k.map(we)),e}function Me(){this.__u=0,this.o=null,this.__b=null}function Ae(e){var t=e.__.__c;return t&&t.u&&t.u(e)}function Ee(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return y(n,i)}return i.displayName="Lazy",i.t=!0,i}function Te(){this.i=null,this.l=null}r.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return r.__c(e,t.__c);be(e,t,n)},(Me.prototype=new b).__c=function(e,t){var n=this;null==n.o&&(n.o=[]),n.o.push(t);var r=Ae(n.__v),i=!1,o=function(){i||(i=!0,r?r(a):a())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){o(),t.__c&&t.__c()};var a=function(){var e;if(!--n.__u)for(n.__v.__k[0]=n.state.u,n.setState({u:n.__b=null});e=n.o.pop();)e.forceUpdate()};n.__u++||n.setState({u:n.__b=n.__v.__k[0]}),e.then(o,o)},Me.prototype.render=function(e,t){return this.__b&&(this.__v.__k[0]=we(this.__b),this.__b=null),[y(b,null,t.u?null:e.children),t.u&&e.fallback]};var Ne=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));function g(e,t){return e.includes(":")?[e]:t.chains||[]}const v="base10",b="base16",w="base64pad",M="utf8",A=1;function E(){const e=u.generateKeyPair();return{privateKey:Object(c.toString)(e.secretKey,b),publicKey:Object(c.toString)(e.publicKey,b)}}function T(){const e=Object(a.randomBytes)(32);return Object(c.toString)(e,b)}function N(e,t){const n=u.sharedKey(Object(c.fromString)(e,b),Object(c.fromString)(t,b)),r=new o.HKDF(s.SHA256,n).expand(32);return Object(c.toString)(r,b)}function I(e){const t=Object(s.hash)(Object(c.fromString)(e,b));return Object(c.toString)(t,b)}function k(e){const t=Object(s.hash)(Object(c.fromString)(e,M));return Object(c.toString)(t,b)}function L(e){return Number(Object(c.toString)(e,v))}function x(e){const t=function(e){return Object(c.fromString)(""+e,v)}(typeof e.type<"u"?e.type:0);if(L(t)===A&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof e.senderPublicKey<"u"?Object(c.fromString)(e.senderPublicKey,b):void 0,r=typeof e.iv<"u"?Object(c.fromString)(e.iv,b):Object(a.randomBytes)(12);return function(e){if(L(e.type)===A){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Object(c.toString)(Object(c.concat)([e.type,e.senderPublicKey,e.iv,e.sealed]),w)}return Object(c.toString)(Object(c.concat)([e.type,e.iv,e.sealed]),w)}({type:t,sealed:new i.ChaCha20Poly1305(Object(c.fromString)(e.symKey,b)).seal(r,Object(c.fromString)(e.message,M)),iv:r,senderPublicKey:n})}function S(e){const t=new i.ChaCha20Poly1305(Object(c.fromString)(e.symKey,b)),{sealed:n,iv:r}=j(e.encoded),o=t.open(r,n);if(null===o)throw new Error("Failed to decrypt");return Object(c.toString)(o,M)}function j(e){const t=Object(c.fromString)(e,w),n=t.slice(0,1);if(L(n)===A){const e=33,r=e+12,i=t.slice(1,e),o=t.slice(e,r);return{type:n,sealed:t.slice(r),iv:o,senderPublicKey:i}}const r=t.slice(1,13);return{type:n,sealed:t.slice(13),iv:r}}function C(e,t){const n=j(e);return D({type:L(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?Object(c.toString)(n.senderPublicKey,b):void 0,receiverPublicKey:null==t?void 0:t.receiverPublicKey})}function D(e){const t=(null==e?void 0:e.type)||0;if(t===A){if(typeof(null==e?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(null==e?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:null==e?void 0:e.senderPublicKey,receiverPublicKey:null==e?void 0:e.receiverPublicKey}}function O(e){return e.type===A&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var z=Object.defineProperty,_=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,B=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t)=>{for(var n in t||(t={}))P.call(t,n)&&B(e,n,t[n]);if(_)for(var n of _(t))R.call(t,n)&&B(e,n,t[n]);return e};const W="react-native",Q="browser",Y="js";function F(){return typeof e<"u"&&typeof e.versions<"u"&&typeof e.versions.node<"u"}function V(){return!Object(h.getDocument)()&&!!Object(h.getNavigator)()&&"ReactNative"===navigator.product}function H(){return!F()&&!!Object(h.getNavigator)()}function G(){return V()?W:F()?"node":H()?Q:"unknown"}function q(){return Object(p.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function Z(e,t,n){const i=function(){if(G()===W&&typeof r<"u"&&typeof(null==r?void 0:r.Platform)<"u"){const{OS:e,Version:t}=r.Platform;return[e,t].join("-")}const e=Object(l.a)();if(null===e)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),o=function(){var e;const t=G();return t===Q?[t,(null==(e=Object(h.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),[Y,n].join("-"),i,o].join("/")}function J({protocol:e,version:t,relayUrl:n,sdkVersion:r,auth:i,projectId:o,useOnCloseEvent:a}){const s=n.split("?"),u={auth:i,ua:Z(e,t,r),projectId:o,useOnCloseEvent:a||void 0},c=function(e,t){let n=f.parse(e);return n=U(U({},n),t),f.stringify(n)}(s[1]||"",u);return s[0]+"?"+c}function X(e,t){return e.filter((e=>t.includes(e))).length===e.length}function K(e){return Object.fromEntries(e.entries())}function $(e){return new Map(Object.entries(e))}function ee(e=d.FIVE_MINUTES,t){const n=Object(d.toMiliseconds)(e||d.FIVE_MINUTES);let r,i,o;return{resolve:e=>{o&&r&&(clearTimeout(o),r(e))},reject:e=>{o&&i&&(clearTimeout(o),i(e))},done:()=>new Promise(((e,a)=>{o=setTimeout((()=>{a(new Error(t))}),n),r=e,i=a}))}}function te(e,t,n){return new Promise(((r,i)=>m(this,null,(function*(){const o=setTimeout((()=>i(new Error(n))),t);try{const t=yield e;r(t)}catch(e){i(e)}clearTimeout(o)}))))}function ne(e,t){if("string"==typeof t&&t.startsWith(e+":"))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw new Error('Value must be "string" for expirer target type: topic');return"topic:"+t}if("id"===e.toLowerCase()){if("number"!=typeof t)throw new Error('Value must be "number" for expirer target type: id');return"id:"+t}throw new Error("Unknown expirer target type: "+e)}function re(e){return ne("topic",e)}function ie(e){return ne("id",e)}function oe(e){const[t,n]=e.split(":"),r={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof n)r.topic=n;else{if("id"!==t||!Number.isInteger(Number(n)))throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${n}`);r.id=Number(n)}return r}function ae(e,t){return Object(d.fromMiliseconds)((t||Date.now())+Object(d.toMiliseconds)(e))}function se(e){return Date.now()>=Object(d.toMiliseconds)(e)}function ue(e,t){return`${e}${t?":"+t:""}`}function ce(e){return m(this,arguments,(function*({id:e,topic:t,wcDeepLink:n}){try{if(!n)return;const i="string"==typeof n?JSON.parse(n):n;let o=null==i?void 0:i.href;if("string"!=typeof o)return;o.endsWith("/")&&(o=o.slice(0,-1));const a=`${o}/wc?requestId=${e}&sessionTopic=${t}`,s=G();s===Q?a.startsWith("https://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):s===W&&typeof(null==r?void 0:r.Linking)<"u"&&(yield r.Linking.openURL(a))}catch(e){console.error(e)}}))}function le(e){return(null==e?void 0:e.relay)||{protocol:"irn"}}function de(e){const t=y.RELAY_JSONRPC[e];if(typeof t>"u")throw new Error("Relay Protocol not supported: "+e);return t}var he=Object.defineProperty,pe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,me=(e,t,n)=>t in e?he(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function ge(e,t="-"){const n={},r="relay"+t;return Object.keys(e).forEach((t=>{if(t.startsWith(r)){const i=t.replace(r,""),o=e[t];n[i]=o}})),n}function ve(e){const t=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),i=e.substring(t+1,n).split("@"),o=typeof n<"u"?e.substring(n):"",a=f.parse(o);return{protocol:r,topic:be(i[0]),version:parseInt(i[1],10),symKey:a.symKey,relay:ge(a)}}function be(e){return e.startsWith("//")?e.substring(2):e}function we(e){return`${e.protocol}:${e.topic}@${e.version}?`+f.stringify(((e,t)=>{for(var n in t||(t={}))fe.call(t,n)&&me(e,n,t[n]);if(pe)for(var n of pe(t))ye.call(t,n)&&me(e,n,t[n]);return e})({symKey:e.symKey},function(e,t="-"){const n={};return Object.keys(e).forEach((r=>{const i="relay"+t+r;e[r]&&(n[i]=e[r])})),n}(e.relay)))}function Me(e){const t=[];return e.forEach((e=>{const[n,r]=e.split(":");t.push(`${n}:${r}`)})),t}function Ae(e,t){const n=We(e,t);if(n)throw new Error(n.message);const r={};for(const[t,n]of Object.entries(e))r[t]={methods:n.methods,events:n.events,chains:n.accounts.map((e=>`${e.split(":")[0]}:${e.split(":")[1]}`))};return r}const Ee={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Te={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ne(e,t){const{message:n,code:r}=Te[e];return{message:t?`${n} ${t}`:n,code:r}}function Ie(e,t){const{message:n,code:r}=Ee[e];return{message:t?`${n} ${t}`:n,code:r}}function ke(e,t){return!!Array.isArray(e)&&(!(typeof t<"u"&&e.length)||e.every(t))}function Le(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function xe(e){return typeof e>"u"}function Se(e,t){return!(!t||!xe(e))||"string"==typeof e&&!!e.trim().length}function je(e,t){return!(!t||!xe(e))||"number"==typeof e&&!isNaN(e)}function Ce(e,t){const{requiredNamespaces:n}=t,r=Object.keys(e.namespaces),i=Object.keys(n);let o=!0;return!!X(i,r)&&(r.forEach((t=>{const{accounts:r,methods:i,events:a}=e.namespaces[t],s=Me(r),u=n[t];X(g(t,u),s)&&X(u.methods,i)&&X(u.events,a)||(o=!1)})),o)}function De(e){return!(!Se(e,!1)||!e.includes(":"))&&2===e.split(":").length}function Oe(e){if(Se(e,!1))try{return typeof new URL(e)<"u"}catch(e){return!1}return!1}function ze(e){var t;return null==(t=null==e?void 0:e.proposer)?void 0:t.publicKey}function _e(e){return null==e?void 0:e.topic}function Pe(e,t){let n=null;return Se(null==e?void 0:e.publicKey,!1)||(n=Ne("MISSING_OR_INVALID",t+" controller public key should be a string")),n}function Re(e){let t=!0;return ke(e)?e.length&&(t=e.every((e=>Se(e,!1)))):t=!1,t}function Be(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=function(e,t){let n=null;return Re(null==e?void 0:e.methods)?Re(null==e?void 0:e.events)||(n=Ie("UNSUPPORTED_EVENTS",t+", events should be an array of strings or empty array for no events")):n=Ie("UNSUPPORTED_METHODS",t+", methods should be an array of strings or empty array for no methods"),n}(e,t+", namespace");r&&(n=r)})),n}function Ue(e,t,n){let r=null;if(e&&Le(e)){const i=Be(e,t);i&&(r=i);const o=function(e,t,n){let r=null;return Object.entries(e).forEach((([e,i])=>{if(r)return;const o=function(e,t,n){let r=null;return ke(t)&&t.length?t.forEach((e=>{r||De(e)||(r=Ie("UNSUPPORTED_CHAINS",`${n}, chain ${e} should be a string and conform to "namespace:chainId" format`))})):De(e)||(r=Ie("UNSUPPORTED_CHAINS",n+', chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }')),r}(e,g(e,i),`${t} ${n}`);o&&(r=o)})),r}(e,t,n);o&&(r=o)}else r=Ne("MISSING_OR_INVALID",`${t}, ${n} should be an object with data`);return r}function We(e,t){let n=null;if(e&&Le(e)){const r=Be(e,t);r&&(n=r);const i=function(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=function(e,t){let n=null;return ke(e)?e.forEach((e=>{n||function(e){if(Se(e,!1)&&e.includes(":")){const t=e.split(":");if(3===t.length){const e=t[0]+":"+t[1];return!!t[2]&&De(e)}}return!1}(e)||(n=Ie("UNSUPPORTED_ACCOUNTS",`${t}, account ${e} should be a string and conform to "namespace:chainId:address" format`))})):n=Ie("UNSUPPORTED_ACCOUNTS",t+', accounts should be an array of strings conforming to "namespace:chainId:address" format'),n}(null==e?void 0:e.accounts,t+" namespace");r&&(n=r)})),n}(e,t);i&&(n=i)}else n=Ne("MISSING_OR_INVALID",t+", namespaces should be an object with data");return n}function Qe(e){return Se(e.protocol,!0)}function Ye(e,t){let n=!1;return t&&!e?n=!0:e&&ke(e)&&e.length&&e.forEach((e=>{n=Qe(e)})),n}function Fe(e){return"number"==typeof e}function Ve(e){return typeof e<"u"&&null!==typeof e}function He(e){return!!(e&&"object"==typeof e&&e.code&&je(e.code,!1)&&e.message&&Se(e.message,!1))}function Ge(e){return!(xe(e)||!Se(e.method,!1))}function qe(e){return!(xe(e)||xe(e.result)&&xe(e.error)||!je(e.id,!1)||!Se(e.jsonrpc,!1))}function Ze(e){return!(xe(e)||!Se(e.name,!1))}function Je(e,t){return!(!De(t)||!function(e){const t=[];return Object.values(e).forEach((e=>{t.push(...Me(e.accounts))})),t}(e).includes(t))}function Xe(e,t,n){return!!Se(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Me(e.accounts).includes(t)&&n.push(...e.methods)})),n}(e,t).includes(n)}function Ke(e,t,n){return!!Se(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Me(e.accounts).includes(t)&&n.push(...e.events)})),n}(e,t).includes(n)}function $e(e,t,n){let r=null;const i=function(e){const t={};return Object.keys(e).forEach((n=>{var r;n.includes(":")?t[n]=e[n]:null==(r=e[n].chains)||r.forEach((r=>{t[r]={methods:e[n].methods,events:e[n].events}}))})),t}(e),o=function(e){const t={};return Object.keys(e).forEach((n=>{if(n.includes(":"))t[n]=e[n];else{const r=Me(e[n].accounts);null==r||r.forEach((r=>{t[r]={accounts:e[n].accounts.filter((e=>e.includes(r+":"))),methods:e[n].methods,events:e[n].events}}))}})),t}(t),a=Object.keys(i),s=Object.keys(o),u=et(Object.keys(e)),c=et(Object.keys(t)),l=u.filter((e=>!c.includes(e)));return l.length&&(r=Ne("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces.\n Required: ${l.toString()}\n Received: ${Object.keys(t).toString()}`)),X(a,s)||(r=Ne("NON_CONFORMING_NAMESPACES",`${n} namespaces chains don't satisfy required namespaces.\n Required: ${a.toString()}\n Approved: ${s.toString()}`)),Object.keys(t).forEach((e=>{if(!e.includes(":")||r)return;const i=Me(t[e].accounts);i.includes(e)||(r=Ne("NON_CONFORMING_NAMESPACES",`${n} namespaces accounts don't satisfy namespace accounts for ${e}\n Required: ${e}\n Approved: ${i.toString()}`))})),a.forEach((e=>{r||(X(i[e].methods,o[e].methods)?X(i[e].events,o[e].events)||(r=Ne("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${e}`)):r=Ne("NON_CONFORMING_NAMESPACES",`${n} namespaces methods don't satisfy namespace methods for ${e}`))})),r}function et(e){return[...new Set(e.map((e=>e.includes(":")?e.split(":")[0]:e)))]}function tt(e,t){return je(e,!1)&&e<=t.max&&e>=t.min}}).call(this,n(31),n(25))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(76),t),r.__exportStar(n(81),t),r.__exportStar(n(82),t),r.__exportStar(n(44),t)},function(e,t,n){n(7);var r=n(21);n.d(t,"parseConnectionError",(function(){return r.d}));var i=n(54);n.o(i,"IJsonRpcProvider")&&n.d(t,"IJsonRpcProvider",(function(){return i.IJsonRpcProvider})),n.o(i,"formatJsonRpcError")&&n.d(t,"formatJsonRpcError",(function(){return i.formatJsonRpcError})),n.o(i,"formatJsonRpcRequest")&&n.d(t,"formatJsonRpcRequest",(function(){return i.formatJsonRpcRequest})),n.o(i,"formatJsonRpcResult")&&n.d(t,"formatJsonRpcResult",(function(){return i.formatJsonRpcResult})),n.o(i,"getBigIntRpcId")&&n.d(t,"getBigIntRpcId",(function(){return i.getBigIntRpcId})),n.o(i,"isJsonRpcError")&&n.d(t,"isJsonRpcError",(function(){return i.isJsonRpcError})),n.o(i,"isJsonRpcRequest")&&n.d(t,"isJsonRpcRequest",(function(){return i.isJsonRpcRequest})),n.o(i,"isJsonRpcResponse")&&n.d(t,"isJsonRpcResponse",(function(){return i.isJsonRpcResponse})),n.o(i,"isJsonRpcResult")&&n.d(t,"isJsonRpcResult",(function(){return i.isJsonRpcResult})),n.o(i,"isLocalhostUrl")&&n.d(t,"isLocalhostUrl",(function(){return i.isLocalhostUrl})),n.o(i,"isReactNative")&&n.d(t,"isReactNative",(function(){return i.isReactNative})),n.o(i,"isWsUrl")&&n.d(t,"isWsUrl",(function(){return i.isWsUrl}));var o=n(55);n.d(t,"formatJsonRpcError",(function(){return o.a})),n.d(t,"formatJsonRpcRequest",(function(){return o.b})),n.d(t,"formatJsonRpcResult",(function(){return o.c})),n.d(t,"getBigIntRpcId",(function(){return o.d})),n(56);var a=n(62);n.d(t,"IJsonRpcProvider",(function(){return a.a}));var s=n(57);n.d(t,"isLocalhostUrl",(function(){return s.a})),n.d(t,"isWsUrl",(function(){return s.b}));var u=n(58);n.d(t,"isJsonRpcError",(function(){return u.a})),n.d(t,"isJsonRpcRequest",(function(){return u.b})),n.d(t,"isJsonRpcResponse",(function(){return u.c})),n.d(t,"isJsonRpcResult",(function(){return u.d}))},function(e,t,n){n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"l",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"m",(function(){return f})),n.d(t,"n",(function(){return y})),n.d(t,"j",(function(){return m}));const r="EdDSA",i="JWT",o=".",a="base64url",s="utf8",u="utf8",c=":",l="did",d="key",h="base58btc",p="z",f="K36",y=32,m=32},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.pino=void 0;const r=n(11),i=r.__importDefault(n(86));Object.defineProperty(t,"pino",{enumerable:!0,get:function(){return i.default}}),r.__exportStar(n(47),t),r.__exportStar(n(88),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(111),i=n(40),o=n(112),a=n(15),s=n(18),u=n(113);t.compare=r.compare,t.concat=i.concat,t.equals=o.equals,t.fromString=a.fromString,t.toString=s.toString,t.xor=u.xor},function(e,t,n){var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=m(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},s.prototype.listenerCount=y,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return u}));const r="INTERNAL_ERROR",i="SERVER_ERROR",o=[-32700,-32600,-32601,-32602,-32603],a=[-32e3,-32099],s={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[r]:{code:-32603,message:"Internal error"},[i]:{code:-32e3,message:"Server error"}},u=i},function(e,t,n){function r(e,t,n="string"){if(!e[t]||typeof e[t]!==n)throw new Error(`Missing or invalid "${t}" param`)}function i(e,t,n){return!!(n.length?function(e,t){return Array.isArray(e)?e.length>=t:Object.keys(e).length>=t}(e,t.length):function(e,t){return Array.isArray(e)?e.length===t:Object.keys(e).length===t}(e,t.length))&&function(e,t){let n=!0;return t.forEach((t=>{t in e||(n=!1)})),n}(e,t)}function o(e,t,n="_"){const r=e.split(n);return r[r.length-1].trim().toLowerCase()===t.trim().toLowerCase()}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){(function(e){n.d(t,"a",(function(){return rn})),n.d(t,"b",(function(){return yt})),n.d(t,"c",(function(){return tt})),n.d(t,"d",(function(){return it})),n.d(t,"e",(function(){return Vt}));var r=n(6),i=n.n(r),o=n(63),a=n.n(o),s=n(24),u=n(4),c=n(10),l=n(23),d=n(28),h=n(0),p=n(5),f=n(1),y=n(69),m=n(2),g=n(70),v=n(64),b=n.n(v),w=Object.defineProperty,M=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,T=(e,t,n)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))A.call(t,n)&&T(e,n,t[n]);if(M)for(var n of M(t))E.call(t,n)&&T(e,n,t[n]);return e},I=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));const k=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")};class L{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class x{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return j(this,e)}}class S{constructor(e){this.decoders=e}or(e){return j(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const j=(e,t)=>new S(N(N({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t}));class C{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new L(e,t,n),this.decoder=new x(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const D=({name:e,prefix:t,encode:n,decode:r})=>new C(e,t,n,r),O=({prefix:e,name:t,alphabet:n})=>{const{encode:r,decode:i}=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,a=new Uint8Array(o);e[t];){var l=n[e.charCodeAt(t)];if(255===l)return;for(var d=0,h=o-1;(0!==l||d>>0,a[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var p=o-i;p!==o&&0===a[p];)p++;for(var f=new Uint8Array(r+(o-p)),y=r;p!==o;)f[y++]=a[p++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var a=(o-i)*l+1>>>0,c=new Uint8Array(a);i!==o;){for(var d=t[i],h=0,p=a-1;(0!==d||h>>0,c[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=a-r;f!==a&&0===c[f];)f++;for(var y=u.repeat(n);fk(i(e))})},z=({name:e,prefix:t,bitsPerChar:n,alphabet:r})=>D({prefix:t,name:e,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],i=(1<n;)a-=n,o+=t[i&s>>a];if(a&&(o+=t[i&s<((e,t,n,r)=>{const i={};for(let e=0;e=8&&(s-=8,a[c++]=255&u>>s)}if(s>=n||255&u<<8-s)throw new SyntaxError("Unexpected end of data");return a})(t,r,n,e)}),_=D({prefix:"\0",name:"identity",encode:e=>(e=>(new TextDecoder).decode(e))(e),decode:e=>(e=>(new TextEncoder).encode(e))(e)});var P=Object.freeze({__proto__:null,identity:_});const R=z({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var B=Object.freeze({__proto__:null,base2:R});const U=z({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var W=Object.freeze({__proto__:null,base8:U});const Q=O({prefix:"9",name:"base10",alphabet:"0123456789"});var Y=Object.freeze({__proto__:null,base10:Q});const F=z({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),V=z({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var H=Object.freeze({__proto__:null,base16:F,base16upper:V});const G=z({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),q=z({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Z=z({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),J=z({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),X=z({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),K=z({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),$=z({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),ee=z({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),te=z({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var ne=Object.freeze({__proto__:null,base32:G,base32upper:q,base32pad:Z,base32padupper:J,base32hex:X,base32hexupper:K,base32hexpad:$,base32hexpadupper:ee,base32z:te});const re=O({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),ie=O({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var oe=Object.freeze({__proto__:null,base36:re,base36upper:ie});const ae=O({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),se=O({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var ue=Object.freeze({__proto__:null,base58btc:ae,base58flickr:se});const ce=z({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),le=z({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),de=z({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),he=z({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var pe=Object.freeze({__proto__:null,base64:ce,base64pad:le,base64url:de,base64urlpad:he});const fe=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),ye=fe.reduce(((e,t,n)=>(e[n]=t,e)),[]),me=fe.reduce(((e,t,n)=>(e[t.codePointAt(0)]=n,e)),[]),ge=D({prefix:"🚀",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+ye[t]),"")},decode:function(e){const t=[];for(const n of e){const e=me[n.codePointAt(0)];if(void 0===e)throw new Error("Non-base256emoji character: "+n);t.push(e)}return new Uint8Array(t)}});var ve=Object.freeze({__proto__:null,base256emoji:ge}),be=Math.pow(2,31),we=Math.pow(2,7),Me=Math.pow(2,14),Ae=Math.pow(2,21),Ee=Math.pow(2,28),Te=Math.pow(2,35),Ne=Math.pow(2,42),Ie=Math.pow(2,49),ke=Math.pow(2,56),Le=Math.pow(2,63),xe=function e(t,n,r){n=n||[];for(var i=r=r||0;t>=be;)n[r++]=255&t|128,t/=128;for(;-128&t;)n[r++]=255&t|128,t>>>=7;return n[r]=0|t,e.bytes=r-i+1,n},Se=function(e){return e(xe(e,t,n),t),Ce=e=>Se(e),De=(e,t)=>{const n=t.byteLength,r=Ce(e),i=r+Ce(n),o=new Uint8Array(i+n);return je(e,o,0),je(n,o,r),o.set(t,i),new Oe(e,n,t,o)};class Oe{constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}}const ze=({name:e,code:t,encode:n})=>new _e(e,t,n);class _e{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?De(this.code,t):t.then((e=>De(this.code,e)))}throw Error("Unknown type, must be binary type")}}const Pe=e=>t=>I(void 0,null,(function*(){return new Uint8Array(yield crypto.subtle.digest(e,t))})),Re=ze({name:"sha2-256",code:18,encode:Pe("SHA-256")}),Be=ze({name:"sha2-512",code:19,encode:Pe("SHA-512")});var Ue=Object.freeze({__proto__:null,sha256:Re,sha512:Be});const We=k,Qe={code:0,name:"identity",encode:We,digest:e=>De(0,We(e))};var Ye=Object.freeze({__proto__:null,identity:Qe});new TextEncoder,new TextDecoder;const Fe=N(N(N(N(N(N(N(N(N(N({},P),B),W),Y),H),ne),oe),ue),pe),ve);function Ve(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function He(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}N(N({},Ue),Ye);const Ge=He("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),qe=He("ascii","a",(e=>{let t="a";for(let n=0;n{const t=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?Ve(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}((e=e.substring(1)).length);for(let n=0;nI(this,null,(function*(){if(!this.initialized){const e=yield this.getKeyChain();typeof e<"u"&&(this.keychain=e),this.initialized=!0}})),this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=(e,t)=>I(this,null,(function*(){this.isInitialized(),this.keychain.set(e,t),yield this.persist()})),this.get=e=>{this.isInitialized();const t=this.keychain.get(e);if(typeof t>"u"){const{message:t}=Object(h.s)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t},this.del=e=>I(this,null,(function*(){this.isInitialized(),this.keychain.delete(e),yield this.persist()})),this.core=e,this.logger=Object(u.generateChildLogger)(t,this.name)}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}setKeyChain(e){return I(this,null,(function*(){yield this.core.storage.setItem(this.storageKey,Object(h.db)(e))}))}getKeyChain(){return I(this,null,(function*(){const e=yield this.core.storage.getItem(this.storageKey);return typeof e<"u"?Object(h.eb)(e):void 0}))}persist(){return I(this,null,(function*(){yield this.setKeyChain(this.keychain)}))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class bt{constructor(e,t,n){this.core=e,this.logger=t,this.name="crypto",this.initialized=!1,this.init=()=>I(this,null,(function*(){this.initialized||(yield this.keychain.init(),this.initialized=!0)})),this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=()=>I(this,null,(function*(){this.isInitialized();const e=yield this.getClientSeed(),t=d.generateKeyPair(e);return d.encodeIss(t.publicKey)})),this.generateKeyPair=()=>{this.isInitialized();const e=Object(h.p)();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=e=>I(this,null,(function*(){this.isInitialized();const t=yield this.getClientSeed(),n=d.generateKeyPair(t),r=Object(h.q)(),i=$e;return yield d.signJWT(r,e,i,n)})),this.generateSharedKey=(e,t,n)=>{this.isInitialized();const r=this.getPrivateKey(e),i=Object(h.h)(r,t);return this.setSymKey(i,n)},this.setSymKey=(e,t)=>I(this,null,(function*(){this.isInitialized();const n=t||Object(h.y)(e);return yield this.keychain.set(n,e),n})),this.deleteKeyPair=e=>I(this,null,(function*(){this.isInitialized(),yield this.keychain.del(e)})),this.deleteSymKey=e=>I(this,null,(function*(){this.isInitialized(),yield this.keychain.del(e)})),this.encode=(e,t,n)=>I(this,null,(function*(){this.isInitialized();const r=Object(h.ib)(n),i=Object(l.b)(t);if(Object(h.I)(r)){const t=r.senderPublicKey,n=r.receiverPublicKey;e=yield this.generateSharedKey(t,n)}const o=this.getSymKey(e),{type:a,senderPublicKey:s}=r;return Object(h.j)({type:a,symKey:o,message:i,senderPublicKey:s})})),this.decode=(e,t,n)=>I(this,null,(function*(){this.isInitialized();const r=Object(h.hb)(t,n);if(Object(h.I)(r)){const t=r.receiverPublicKey,n=r.senderPublicKey;e=yield this.generateSharedKey(t,n)}try{const n=this.getSymKey(e),r=Object(h.g)({symKey:n,encoded:t});return Object(l.a)(r)}catch(t){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${yield this.getClientId()}'`),this.logger.error(t)}})),this.getPayloadType=e=>{const t=Object(h.i)(e);return Object(h.f)(t.type)},this.getPayloadSenderPublicKey=e=>{const t=Object(h.i)(e);return t.senderPublicKey?Object(p.toString)(t.senderPublicKey,h.a):void 0},this.core=e,this.logger=Object(u.generateChildLogger)(t,this.name),this.keychain=n||new vt(this.core,this.logger)}get context(){return Object(u.getLoggerContext)(this.logger)}setPrivateKey(e,t){return I(this,null,(function*(){return yield this.keychain.set(e,t),e}))}getPrivateKey(e){return this.keychain.get(e)}getClientSeed(){return I(this,null,(function*(){let e="";try{e=this.keychain.get(Ke)}catch(t){e=Object(h.q)(),yield this.keychain.set(Ke,e)}return function(e,t="utf8"){const n=Ze[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode(`${n.prefix}${e}`):Ve(globalThis.Buffer.from(e,"utf-8"))}(e,"base16")}))}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class wt extends c.e{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=Je,this.init=()=>I(this,null,(function*(){if(!this.initialized){this.logger.trace("Initialized");try{const e=yield this.getRelayerMessages();typeof e<"u"&&(this.messages=e),this.logger.debug("Successfully Restored records for "+this.name),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(e){this.logger.debug("Failed to Restore records for "+this.name),this.logger.error(e)}finally{this.initialized=!0}}})),this.set=(e,t)=>I(this,null,(function*(){this.isInitialized();const n=Object(h.z)(t);let r=this.messages.get(e);return typeof r>"u"&&(r={}),typeof r[n]<"u"||(r[n]=t,this.messages.set(e,r),yield this.persist()),n})),this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>"u"&&(t={}),t},this.has=(e,t)=>(this.isInitialized(),typeof this.get(e)[Object(h.z)(t)]<"u"),this.del=e=>I(this,null,(function*(){this.isInitialized(),this.messages.delete(e),yield this.persist()})),this.logger=Object(u.generateChildLogger)(e,this.name),this.core=t}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}setRelayerMessages(e){return I(this,null,(function*(){yield this.core.storage.setItem(this.storageKey,Object(h.db)(e))}))}getRelayerMessages(){return I(this,null,(function*(){const e=yield this.core.storage.getItem(this.storageKey);return typeof e<"u"?Object(h.eb)(e):void 0}))}persist(){return I(this,null,(function*(){yield this.setRelayerMessages(this.messages)}))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Mt extends c.f{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new r.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=Object(f.toMiliseconds)(f.TEN_SECONDS),this.queueTimeout=Object(f.toMiliseconds)(f.FIVE_SECONDS),this.needsTransportRestart=!1,this.publish=(e,t,n)=>I(this,null,(function*(){this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:n}});try{const r=(null==n?void 0:n.ttl)||et,i=Object(h.u)(n),o=(null==n?void 0:n.prompt)||!1,a=(null==n?void 0:n.tag)||0,s=(null==n?void 0:n.id)||Object(m.getBigIntRpcId)().toString(),u={topic:e,message:t,opts:{ttl:r,relay:i,prompt:o,tag:a,id:s}},c=setTimeout((()=>this.queue.set(s,u)),this.queueTimeout);try{yield yield Object(h.e)(this.rpcPublish(e,t,r,i,o,a,s),this.publishTimeout),clearTimeout(c),this.relayer.events.emit(it.publish,u)}catch(e){return this.logger.debug("Publishing Payload stalled"),void(this.needsTransportRestart=!0)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:n}})}catch(e){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(e),e}})),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=Object(u.generateChildLogger)(t,this.name),this.registerEventListeners()}get context(){return Object(u.getLoggerContext)(this.logger)}rpcPublish(e,t,n,r,i,o,a){var s,u,c,l;const d={method:Object(h.t)(r.protocol).publish,params:{topic:e,message:t,ttl:n,prompt:i,tag:o},id:a};return Object(h.J)(null==(s=d.params)?void 0:s.prompt)&&(null==(u=d.params)||delete u.prompt),Object(h.J)(null==(c=d.params)?void 0:c.tag)&&(null==(l=d.params)||delete l.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:d}),this.relayer.request(d)}onPublish(e){this.queue.delete(e)}checkQueue(){this.queue.forEach((e=>I(this,null,(function*(){const{topic:t,message:n,opts:r}=e;yield this.publish(t,n,r)}))))}registerEventListeners(){this.relayer.core.heartbeat.on(s.HEARTBEAT_EVENTS.pulse,(()=>{if(this.needsTransportRestart)return this.needsTransportRestart=!1,void this.relayer.events.emit(it.connection_stalled);this.checkQueue()})),this.relayer.on(it.message_ack,(e=>{this.onPublish(e.id.toString())}))}}class At{constructor(){this.map=new Map,this.set=(e,t)=>{const n=this.get(e);this.exists(e,t)||this.map.set(e,[...n,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u")return void this.map.delete(e);if(!this.map.has(e))return;const n=this.get(e);if(!this.exists(e,t))return;const r=n.filter((e=>e!==t));r.length?this.map.set(e,r):this.map.delete(e)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Et=Object.defineProperty,Tt=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,xt=(e,t,n)=>t in e?Et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,St=(e,t)=>{for(var n in t||(t={}))kt.call(t,n)&&xt(e,n,t[n]);if(It)for(var n of It(t))Lt.call(t,n)&&xt(e,n,t[n]);return e},jt=(e,t)=>Tt(e,Nt(t));class Ct extends c.j{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new At,this.events=new r.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=Je,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=()=>I(this,null,(function*(){this.initialized||(this.logger.trace("Initialized"),yield this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=yield this.relayer.core.crypto.getClientId())})),this.subscribe=(e,t)=>I(this,null,(function*(){yield this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{const n=Object(h.u)(t),r={topic:e,relay:n};this.pending.set(e,r);const i=yield this.rpcSubscribe(e,n);return this.onSubscribe(i,r),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}}),i}catch(e){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(e),e}})),this.unsubscribe=(e,t)=>I(this,null,(function*(){yield this.restartToComplete(),this.isInitialized(),typeof(null==t?void 0:t.id)<"u"?yield this.unsubscribeById(e,t.id,t):yield this.unsubscribeByTopic(e,t)})),this.isSubscribed=e=>I(this,null,(function*(){return!!this.topics.includes(e)||(yield new Promise(((t,n)=>{const r=new f.Watch;r.start(this.pendingSubscriptionWatchLabel);const i=setInterval((()=>{!this.pending.has(e)&&this.topics.includes(e)&&(clearInterval(i),r.stop(this.pendingSubscriptionWatchLabel),t(!0)),r.elapsed(this.pendingSubscriptionWatchLabel)>=lt&&(clearInterval(i),r.stop(this.pendingSubscriptionWatchLabel),n(new Error("Subscription resolution timeout")))}),this.pollingInterval)})).catch((()=>!1)))})),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.restart=()=>I(this,null,(function*(){this.restartInProgress=!0,yield this.restore(),yield this.reset(),this.restartInProgress=!1})),this.relayer=e,this.logger=Object(u.generateChildLogger)(t,this.name),this.clientId=""}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let n=!1;try{n=this.getSubscription(e).topic===t}catch(e){}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}unsubscribeByTopic(e,t){return I(this,null,(function*(){const n=this.topicMap.get(e);yield Promise.all(n.map((n=>I(this,null,(function*(){return yield this.unsubscribeById(e,n,t)})))))}))}unsubscribeById(e,t,n){return I(this,null,(function*(){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}});try{const r=Object(h.u)(n);yield this.rpcUnsubscribe(e,t,r);const i=Object(h.w)("USER_DISCONNECTED",`${this.name}, ${e}`);yield this.onUnsubscribe(e,t,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}})}catch(e){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(e),e}}))}rpcSubscribe(e,t){return I(this,null,(function*(){const n={method:Object(h.t)(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{yield yield Object(h.e)(this.relayer.request(n),this.subscribeTimeout)}catch(e){this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(it.connection_stalled)}return Object(h.z)(e+this.clientId)}))}rpcBatchSubscribe(e){return I(this,null,(function*(){if(!e.length)return;const t=e[0].relay,n={method:Object(h.t)(t.protocol).batchSubscribe,params:{topics:e.map((e=>e.topic))}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return yield yield Object(h.e)(this.relayer.request(n),this.subscribeTimeout)}catch(e){this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(it.connection_stalled)}}))}rpcUnsubscribe(e,t,n){const r={method:Object(h.t)(n.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r}),this.relayer.request(r)}onSubscribe(e,t){this.setSubscription(e,jt(St({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach((e=>{this.setSubscription(e.id,St({},e)),this.pending.delete(e.topic)}))}onUnsubscribe(e,t,n){return I(this,null,(function*(){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,n),yield this.relayer.messages.del(e)}))}setRelayerSubscriptions(e){return I(this,null,(function*(){yield this.relayer.core.storage.setItem(this.storageKey,e)}))}getRelayerSubscriptions(){return I(this,null,(function*(){return yield this.relayer.core.storage.getItem(this.storageKey)}))}setSubscription(e,t){this.subscriptions.has(e)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t))}addSubscription(e,t){this.subscriptions.set(e,St({},t)),this.topicMap.set(t.topic,e),this.events.emit(st,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});const t=this.subscriptions.get(e);if(!t){const{message:t}=Object(h.s)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});const n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(ut,jt(St({},n),{reason:t}))}persist(){return I(this,null,(function*(){yield this.setRelayerSubscriptions(this.values),this.events.emit("subscription_sync")}))}reset(){return I(this,null,(function*(){if(this.cached.length){const e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t"u"||!e.length)return;if(this.subscriptions.size){const{message:e}=Object(h.s)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored subscriptions for "+this.name),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug("Failed to Restore subscriptions for "+this.name),this.logger.error(e)}}))}batchSubscribe(e){return I(this,null,(function*(){if(!e.length)return;const t=yield this.rpcBatchSubscribe(e);Object(h.K)(t)&&this.onBatchSubscribe(t.map(((t,n)=>jt(St({},e[n]),{id:t}))))}))}onConnect(){return I(this,null,(function*(){this.restartInProgress||(yield this.restart(),this.onEnable())}))}onDisconnect(){this.onDisable()}checkPending(){return I(this,null,(function*(){if(this.relayer.transportExplicitlyClosed)return;const e=[];this.pending.forEach((t=>{e.push(t)})),yield this.batchSubscribe(e)}))}registerEventListeners(){this.relayer.core.heartbeat.on(s.HEARTBEAT_EVENTS.pulse,(()=>I(this,null,(function*(){yield this.checkPending()})))),this.relayer.on(it.connect,(()=>I(this,null,(function*(){yield this.onConnect()})))),this.relayer.on(it.disconnect,(()=>{this.onDisconnect()})),this.events.on(st,(e=>I(this,null,(function*(){const t=st;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,data:e}),yield this.persist()})))),this.events.on(ut,(e=>I(this,null,(function*(){const t=ut;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,data:e}),yield this.persist()}))))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}restartToComplete(){return I(this,null,(function*(){this.restartInProgress&&(yield new Promise((e=>{const t=setInterval((()=>{this.restartInProgress||(clearInterval(t),e())}),this.pollingInterval)})))}))}}var Dt=Object.defineProperty,Ot=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,Pt=(e,t,n)=>t in e?Dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class Rt extends c.g{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new r.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.request=e=>I(this,null,(function*(){this.logger.debug("Publishing Request Payload");try{return yield this.toEstablishConnection(),yield this.provider.request(e)}catch(e){throw this.logger.debug("Failed to Publish Request"),this.logger.error(e),e}})),this.core=e.core,this.logger=typeof e.logger<"u"&&"string"!=typeof e.logger?Object(u.generateChildLogger)(e.logger,this.name):Object(u.pino)(Object(u.getDefaultLoggerOptions)({level:e.logger||"error"})),this.messages=new wt(this.logger,e.core),this.subscriber=new Ct(this,this.logger),this.publisher=new Mt(this,this.logger),this.relayUrl=(null==e?void 0:e.relayUrl)||nt,this.projectId=e.projectId,this.provider={}}init(){return I(this,null,(function*(){this.logger.trace("Initialized"),yield this.createProvider(),yield Promise.all([this.messages.init(),this.subscriber.init()]);try{yield this.transportOpen()}catch(e){this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${rt}...`),yield this.restartTransport(rt)}this.registerEventListeners(),this.initialized=!0,setTimeout((()=>I(this,null,(function*(){0===this.subscriber.topics.length&&(this.logger.info("No topics subscribed to after init, closing transport"),yield this.transportClose(),this.transportExplicitlyClosed=!1)}))),1e4)}))}get context(){return Object(u.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}publish(e,t,n){return I(this,null,(function*(){this.isInitialized(),yield this.publisher.publish(e,t,n),yield this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}))}subscribe(e,t){return I(this,null,(function*(){var n;this.isInitialized();let r=(null==(n=this.subscriber.topicMap.get(e))?void 0:n[0])||"";return r||(yield Promise.all([new Promise((t=>{this.subscriber.once(st,(n=>{n.topic===e&&t()}))})),new Promise((n=>I(this,null,(function*(){r=yield this.subscriber.subscribe(e,t),n()}))))]),r)}))}unsubscribe(e,t){return I(this,null,(function*(){this.isInitialized(),yield this.subscriber.unsubscribe(e,t)}))}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}transportClose(){return I(this,null,(function*(){this.transportExplicitlyClosed=!0,this.connected&&(yield this.provider.disconnect(),this.events.emit(it.transport_closed))}))}transportOpen(e){return I(this,null,(function*(){if(this.transportExplicitlyClosed=!1,!this.reconnecting){this.relayUrl=e||this.relayUrl,this.reconnecting=!0;try{yield Promise.all([new Promise((e=>{this.initialized||e(),this.subscriber.once(ct,(()=>{e()}))})),yield Promise.race([new Promise(((e,t)=>I(this,null,(function*(){yield Object(h.e)(this.provider.connect(),1e4,"Socket stalled when trying to connect to "+this.relayUrl).catch((e=>t(e))).then((()=>e())).finally((()=>this.removeListener(it.transport_closed,this.rejectTransportOpen)))})))),new Promise((e=>this.once(it.transport_closed,this.rejectTransportOpen)))])])}catch(e){this.logger.error(e);const t=e;if(!this.isConnectionStalled(t.message))throw e;this.events.emit(it.transport_closed)}finally{this.reconnecting=!1}}}))}restartTransport(e){return I(this,null,(function*(){this.transportExplicitlyClosed||this.reconnecting||(this.relayUrl=e||this.relayUrl,this.connected&&(yield Promise.all([new Promise((e=>{this.provider.once(ot,(()=>{e()}))})),this.transportClose()])),yield this.createProvider(),yield this.transportOpen())}))}isConnectionStalled(e){return this.staleConnectionErrors.some((t=>e.includes(t)))}rejectTransportOpen(){throw new Error("Attempt to connect to relay via `transportOpen` has stalled. Retrying...")}createProvider(){return I(this,null,(function*(){const e=yield this.core.crypto.signJWT(this.relayUrl);this.provider=new y.a(new g.a(Object(h.m)({sdkVersion:"2.9.2",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0}))),this.registerProviderListeners()}))}recordMessageEvent(e){return I(this,null,(function*(){const{topic:t,message:n}=e;yield this.messages.set(t,n)}))}shouldIgnoreMessageEvent(e){return I(this,null,(function*(){const{topic:t,message:n}=e;if(!n||0===n.length)return this.logger.debug("Ignoring invalid/empty message: "+n),!0;if(!(yield this.subscriber.isSubscribed(t)))return this.logger.debug("Ignoring message for non-subscribed topic "+t),!0;const r=this.messages.has(t,n);return r&&this.logger.debug("Ignoring duplicate message: "+n),r}))}onProviderPayload(e){return I(this,null,(function*(){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),Object(m.isJsonRpcRequest)(e)){if(!e.method.endsWith("_subscription"))return;const t=e.params,{topic:n,message:r,publishedAt:i}=t.data,o={topic:n,message:r,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(((e,t)=>{for(var n in t||(t={}))zt.call(t,n)&&Pt(e,n,t[n]);if(Ot)for(var n of Ot(t))_t.call(t,n)&&Pt(e,n,t[n]);return e})({type:"event",event:t.id},o)),this.events.emit(t.id,o),yield this.acknowledgePayload(e),yield this.onMessageEvent(o)}else Object(m.isJsonRpcResponse)(e)&&this.events.emit(it.message_ack,e)}))}onMessageEvent(e){return I(this,null,(function*(){(yield this.shouldIgnoreMessageEvent(e))||(this.events.emit(it.message,e),yield this.recordMessageEvent(e))}))}acknowledgePayload(e){return I(this,null,(function*(){const t=Object(m.formatJsonRpcResult)(e.id,!0);yield this.provider.connection.send(t)}))}registerProviderListeners(){this.provider.on("payload",(e=>this.onProviderPayload(e))),this.provider.on("connect",(()=>{this.events.emit(it.connect)})),this.provider.on(ot,(()=>{this.onProviderDisconnect()})),this.provider.on("error",(e=>{this.logger.error(e),this.events.emit(it.error,e)}))}registerEventListeners(){this.events.on(it.connection_stalled,(()=>I(this,null,(function*(){yield this.restartTransport()}))))}onProviderDisconnect(){this.events.emit(it.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout((()=>I(this,null,(function*(){yield this.restartTransport()}))),Object(f.toMiliseconds)(at))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}toEstablishConnection(){return I(this,null,(function*(){if(!this.connected){if(this.connecting)return yield new Promise((e=>{const t=setInterval((()=>{this.connected&&(clearInterval(t),e())}),this.connectionStatusPollingInterval)}));yield this.restartTransport()}}))}}var Bt=Object.defineProperty,Ut=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Yt=(e,t,n)=>t in e?Bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ft=(e,t)=>{for(var n in t||(t={}))Wt.call(t,n)&&Yt(e,n,t[n]);if(Ut)for(var n of Ut(t))Qt.call(t,n)&&Yt(e,n,t[n]);return e};class Vt extends c.i{constructor(e,t,n,r=Je,i){super(e,t,n,r),this.core=e,this.logger=t,this.name=n,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Je,this.init=()=>I(this,null,(function*(){this.initialized||(this.logger.trace("Initialized"),yield this.restore(),this.cached.forEach((e=>{this.getKey&&null!==e&&!Object(h.J)(e)?this.map.set(this.getKey(e),e):Object(h.E)(e)?this.map.set(e.id,e):Object(h.H)(e)&&this.map.set(e.topic,e)})),this.cached=[],this.initialized=!0)})),this.set=(e,t)=>I(this,null,(function*(){this.isInitialized(),this.map.has(e)?yield this.update(e,t):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:e,value:t}),this.map.set(e,t),yield this.persist())})),this.get=e=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter((t=>Object.keys(e).every((n=>b()(t[n],e[n]))))):this.values),this.update=(e,t)=>I(this,null,(function*(){this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:e,update:t});const n=Ft(Ft({},this.getData(e)),t);this.map.set(e,n),yield this.persist()})),this.delete=(e,t)=>I(this,null,(function*(){this.isInitialized(),this.map.has(e)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:e,reason:t}),this.map.delete(e),yield this.persist())})),this.logger=Object(u.generateChildLogger)(t,this.name),this.storagePrefix=r,this.getKey=i}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}setDataStore(e){return I(this,null,(function*(){yield this.core.storage.setItem(this.storageKey,e)}))}getDataStore(){return I(this,null,(function*(){return yield this.core.storage.getItem(this.storageKey)}))}getData(e){const t=this.map.get(e);if(!t){const{message:t}=Object(h.s)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(t),new Error(t)}return t}persist(){return I(this,null,(function*(){yield this.setDataStore(this.values)}))}restore(){return I(this,null,(function*(){try{const e=yield this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){const{message:e}=Object(h.s)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored value for "+this.name),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug("Failed to Restore value for "+this.name),this.logger.error(e)}}))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Ht{constructor(e,t){this.core=e,this.logger=t,this.name="pairing",this.version="0.3",this.events=new i.a,this.initialized=!1,this.storagePrefix=Je,this.ignoredPayloadTypes=[h.b],this.registeredMethods=[],this.init=()=>I(this,null,(function*(){this.initialized||(yield this.pairings.init(),yield this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))})),this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=()=>I(this,null,(function*(){this.isInitialized();const e=Object(h.q)(),t=yield this.core.crypto.setSymKey(e),n=Object(h.c)(f.FIVE_MINUTES),r={protocol:tt},i={topic:t,expiry:n,relay:r,active:!1},o=Object(h.o)({protocol:this.core.protocol,version:this.core.version,topic:t,symKey:e,relay:r});return yield this.pairings.set(t,i),yield this.core.relayer.subscribe(t),this.core.expirer.set(t,n),{topic:t,uri:o}})),this.pair=e=>I(this,null,(function*(){this.isInitialized(),this.isValidPair(e);const{topic:t,symKey:n,relay:r}=Object(h.gb)(e.uri);if(this.pairings.keys.includes(t))throw new Error("Pairing already exists: "+t);if(this.core.crypto.hasKeys(t))throw new Error("Keychain already exists: "+t);const i=Object(h.c)(f.FIVE_MINUTES),o={topic:t,relay:r,expiry:i,active:!1};return yield this.pairings.set(t,o),yield this.core.crypto.setSymKey(n,t),yield this.core.relayer.subscribe(t,{relay:r}),this.core.expirer.set(t,i),e.activatePairing&&(yield this.activate({topic:t})),o})),this.activate=e=>I(this,[e],(function*({topic:e}){this.isInitialized();const t=Object(h.c)(f.THIRTY_DAYS);yield this.pairings.update(e,{active:!0,expiry:t}),this.core.expirer.set(e,t)})),this.ping=e=>I(this,null,(function*(){this.isInitialized(),yield this.isValidPing(e);const{topic:t}=e;if(this.pairings.keys.includes(t)){const e=yield this.sendRequest(t,"wc_pairingPing",{}),{done:n,resolve:r,reject:i}=Object(h.d)();this.events.once(Object(h.k)("pairing_ping",e),(({error:e})=>{e?i(e):r()})),yield n()}})),this.updateExpiry=e=>I(this,[e],(function*({topic:e,expiry:t}){this.isInitialized(),yield this.pairings.update(e,{expiry:t})})),this.updateMetadata=e=>I(this,[e],(function*({topic:e,metadata:t}){this.isInitialized(),yield this.pairings.update(e,{peerMetadata:t})})),this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=e=>I(this,null,(function*(){this.isInitialized(),yield this.isValidDisconnect(e);const{topic:t}=e;this.pairings.keys.includes(t)&&(yield this.sendRequest(t,"wc_pairingDelete",Object(h.w)("USER_DISCONNECTED")),yield this.deletePairing(t))})),this.sendRequest=(e,t,n)=>I(this,null,(function*(){const r=Object(m.formatJsonRpcRequest)(t,n),i=yield this.core.crypto.encode(e,r),o=dt[t].req;return this.core.history.set(e,r),this.core.relayer.publish(e,i,o),r.id})),this.sendResult=(e,t,n)=>I(this,null,(function*(){const r=Object(m.formatJsonRpcResult)(e,n),i=yield this.core.crypto.encode(t,r),o=yield this.core.history.get(t,e),a=dt[o.request.method].res;yield this.core.relayer.publish(t,i,a),yield this.core.history.resolve(r)})),this.sendError=(e,t,n)=>I(this,null,(function*(){const r=Object(m.formatJsonRpcError)(e,n),i=yield this.core.crypto.encode(t,r),o=yield this.core.history.get(t,e),a=dt[o.request.method]?dt[o.request.method].res:dt.unregistered_method.res;yield this.core.relayer.publish(t,i,a),yield this.core.history.resolve(r)})),this.deletePairing=(e,t)=>I(this,null,(function*(){yield this.core.relayer.unsubscribe(e),yield Promise.all([this.pairings.delete(e,Object(h.w)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])})),this.cleanup=()=>I(this,null,(function*(){const e=this.pairings.getAll().filter((e=>Object(h.C)(e.expiry)));yield Promise.all(e.map((e=>this.deletePairing(e.topic))))})),this.onRelayEventRequest=e=>{const{topic:t,payload:n}=e;switch(n.method){case"wc_pairingPing":return this.onPairingPingRequest(t,n);case"wc_pairingDelete":return this.onPairingDeleteRequest(t,n);default:return this.onUnknownRpcMethodRequest(t,n)}},this.onRelayEventResponse=e=>I(this,null,(function*(){const{topic:t,payload:n}=e,r=(yield this.core.history.get(t,n.id)).request.method;return"wc_pairingPing"===r?this.onPairingPingResponse(t,n):this.onUnknownRpcMethodResponse(r)})),this.onPairingPingRequest=(e,t)=>I(this,null,(function*(){const{id:n}=t;try{this.isValidPing({topic:e}),yield this.sendResult(n,e,!0),this.events.emit("pairing_ping",{id:n,topic:e})}catch(t){yield this.sendError(n,e,t),this.logger.error(t)}})),this.onPairingPingResponse=(e,t)=>{const{id:n}=t;setTimeout((()=>{Object(m.isJsonRpcResult)(t)?this.events.emit(Object(h.k)("pairing_ping",n),{}):Object(m.isJsonRpcError)(t)&&this.events.emit(Object(h.k)("pairing_ping",n),{error:t.error})}),500)},this.onPairingDeleteRequest=(e,t)=>I(this,null,(function*(){const{id:n}=t;try{this.isValidDisconnect({topic:e}),yield this.deletePairing(e),this.events.emit("pairing_delete",{id:n,topic:e})}catch(t){yield this.sendError(n,e,t),this.logger.error(t)}})),this.onUnknownRpcMethodRequest=(e,t)=>I(this,null,(function*(){const{id:n,method:r}=t;try{if(this.registeredMethods.includes(r))return;const t=Object(h.w)("WC_METHOD_UNSUPPORTED",r);yield this.sendError(n,e,t),this.logger.error(t)}catch(t){yield this.sendError(n,e,t),this.logger.error(t)}})),this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error(Object(h.w)("WC_METHOD_UNSUPPORTED",e))},this.isValidPair=e=>{if(!Object(h.U)(e)){const{message:t}=Object(h.s)("MISSING_OR_INVALID","pair() params: "+e);throw new Error(t)}if(!Object(h.cb)(e.uri)){const{message:t}=Object(h.s)("MISSING_OR_INVALID","pair() uri: "+e.uri);throw new Error(t)}},this.isValidPing=e=>I(this,null,(function*(){if(!Object(h.U)(e)){const{message:t}=Object(h.s)("MISSING_OR_INVALID","ping() params: "+e);throw new Error(t)}const{topic:t}=e;yield this.isValidPairingTopic(t)})),this.isValidDisconnect=e=>I(this,null,(function*(){if(!Object(h.U)(e)){const{message:t}=Object(h.s)("MISSING_OR_INVALID","disconnect() params: "+e);throw new Error(t)}const{topic:t}=e;yield this.isValidPairingTopic(t)})),this.isValidPairingTopic=e=>I(this,null,(function*(){if(!Object(h.bb)(e,!1)){const{message:t}=Object(h.s)("MISSING_OR_INVALID","pairing topic should be a string: "+e);throw new Error(t)}if(!this.pairings.keys.includes(e)){const{message:t}=Object(h.s)("NO_MATCHING_KEY","pairing topic doesn't exist: "+e);throw new Error(t)}if(Object(h.C)(this.pairings.get(e).expiry)){yield this.deletePairing(e);const{message:t}=Object(h.s)("EXPIRED","pairing topic: "+e);throw new Error(t)}})),this.core=e,this.logger=Object(u.generateChildLogger)(t,this.name),this.pairings=new Vt(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Object(u.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(it.message,(e=>I(this,null,(function*(){const{topic:t,message:n}=e;if(!this.pairings.keys.includes(t)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const r=yield this.core.crypto.decode(t,n);try{Object(m.isJsonRpcRequest)(r)?(this.core.history.set(t,r),this.onRelayEventRequest({topic:t,payload:r})):Object(m.isJsonRpcResponse)(r)&&(yield this.core.history.resolve(r),yield this.onRelayEventResponse({topic:t,payload:r}),this.core.history.delete(t,r.id))}catch(e){this.logger.error(e)}}))))}registerExpirerEvents(){this.core.expirer.on(yt.expired,(e=>I(this,null,(function*(){const{topic:t}=Object(h.fb)(e.target);t&&this.pairings.keys.includes(t)&&(yield this.deletePairing(t,!0),this.events.emit("pairing_expire",{topic:t}))}))))}}class Gt extends c.d{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new r.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Je,this.init=()=>I(this,null,(function*(){this.initialized||(this.logger.trace("Initialized"),yield this.restore(),this.cached.forEach((e=>this.records.set(e.id,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)})),this.set=(e,t,n)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:e,request:t,chainId:n}),this.records.has(t.id))return;const r={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:n,expiry:Object(h.c)(f.THIRTY_DAYS)};this.records.set(r.id,r),this.events.emit(ht,r)},this.resolve=e=>I(this,null,(function*(){if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:e}),!this.records.has(e.id))return;const t=yield this.getRecord(e.id);typeof t.response>"u"&&(t.response=Object(m.isJsonRpcError)(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.events.emit(pt,t))})),this.get=(e,t)=>I(this,null,(function*(){return this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:e,id:t}),yield this.getRecord(t)})),this.delete=(e,t)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:t}),this.values.forEach((n=>{if(n.topic===e){if(typeof t<"u"&&n.id!==t)return;this.records.delete(n.id),this.events.emit(ft,n)}}))},this.exists=(e,t)=>I(this,null,(function*(){return this.isInitialized(),!!this.records.has(t)&&(yield this.getRecord(t)).topic===e})),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=Object(u.generateChildLogger)(t,this.name)}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const e=[];return this.values.forEach((t=>{if(typeof t.response<"u")return;const n={topic:t.topic,request:Object(m.formatJsonRpcRequest)(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(n)})),e}setJsonRpcRecords(e){return I(this,null,(function*(){yield this.core.storage.setItem(this.storageKey,e)}))}getJsonRpcRecords(){return I(this,null,(function*(){return yield this.core.storage.getItem(this.storageKey)}))}getRecord(e){this.isInitialized();const t=this.records.get(e);if(!t){const{message:t}=Object(h.s)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t}persist(){return I(this,null,(function*(){yield this.setJsonRpcRecords(this.values),this.events.emit("history_sync")}))}restore(){return I(this,null,(function*(){try{const e=yield this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){const{message:e}=Object(h.s)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored records for "+this.name),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug("Failed to Restore records for "+this.name),this.logger.error(e)}}))}registerEventListeners(){this.events.on(ht,(e=>{const t=ht;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,record:e}),this.persist()})),this.events.on(pt,(e=>{const t=pt;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,record:e}),this.persist()})),this.events.on(ft,(e=>{const t=ft;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,record:e}),this.persist()})),this.core.heartbeat.on(s.HEARTBEAT_EVENTS.pulse,(()=>{this.cleanup()}))}cleanup(){try{this.records.forEach((e=>{Object(f.toMiliseconds)(e.expiry||0)-Date.now()<=0&&(this.logger.info("Deleting expired history log: "+e.id),this.delete(e.topic,e.id))}))}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class qt extends c.c{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new r.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Je,this.init=()=>I(this,null,(function*(){this.initialized||(this.logger.trace("Initialized"),yield this.restore(),this.cached.forEach((e=>this.expirations.set(e.target,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)})),this.has=e=>{try{const t=this.formatTarget(e);return typeof this.getExpiration(t)<"u"}catch(e){return!1}},this.set=(e,t)=>{this.isInitialized();const n=this.formatTarget(e),r={target:n,expiry:t};this.expirations.set(n,r),this.checkExpiry(n,r),this.events.emit(yt.created,{target:n,expiration:r})},this.get=e=>{this.isInitialized();const t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){const t=this.formatTarget(e),n=this.getExpiration(t);this.expirations.delete(t),this.events.emit(yt.deleted,{target:t,expiration:n})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=Object(u.generateChildLogger)(t,this.name)}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if("string"==typeof e)return Object(h.n)(e);if("number"==typeof e)return Object(h.l)(e);const{message:t}=Object(h.s)("UNKNOWN_TYPE","Target type: "+typeof e);throw new Error(t)}setExpirations(e){return I(this,null,(function*(){yield this.core.storage.setItem(this.storageKey,e)}))}getExpirations(){return I(this,null,(function*(){return yield this.core.storage.getItem(this.storageKey)}))}persist(){return I(this,null,(function*(){yield this.setExpirations(this.values),this.events.emit(yt.sync)}))}restore(){return I(this,null,(function*(){try{const e=yield this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){const{message:e}=Object(h.s)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored expirations for "+this.name),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug("Failed to Restore expirations for "+this.name),this.logger.error(e)}}))}getExpiration(e){const t=this.expirations.get(e);if(!t){const{message:t}=Object(h.s)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(t),new Error(t)}return t}checkExpiry(e,t){const{expiry:n}=t;Object(f.toMiliseconds)(n)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(yt.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach(((e,t)=>this.checkExpiry(t,e)))}registerEventListeners(){this.core.heartbeat.on(s.HEARTBEAT_EVENTS.pulse,(()=>this.checkExpirations())),this.events.on(yt.created,(e=>{const t=yt.created;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(yt.expired,(e=>{const t=yt.expired;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(yt.deleted,(e=>{const t=yt.deleted;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,data:e}),this.persist()}))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Zt extends c.k{constructor(t,n){super(t,n),this.projectId=t,this.logger=n,this.name=mt,this.initialized=!1,this.init=e=>I(this,null,(function*(){Object(h.F)()||!Object(h.A)()||(this.verifyUrl=(null==e?void 0:e.verifyUrl)||gt,yield this.createIframe())})),this.register=e=>I(this,null,(function*(){var t;if(this.initialized||(yield this.init()),this.iframe)try{null==(t=this.iframe.contentWindow)||t.postMessage(e.attestationId,this.verifyUrl),this.logger.info(`postMessage sent: ${e.attestationId} ${this.verifyUrl}`)}catch(e){}})),this.resolve=e=>I(this,null,(function*(){var t;if(this.isDevEnv)return"";this.logger.info("resolving attestation: "+e.attestationId);const n=this.startAbortTimer(f.FIVE_SECONDS),r=yield fetch(`${this.verifyUrl}/attestation/${e.attestationId}`,{signal:this.abortController.signal});return clearTimeout(n),200===r.status?null==(t=yield r.json())?void 0:t.origin:""})),this.createIframe=()=>I(this,null,(function*(){try{yield Promise.race([new Promise(((e,t)=>{if(document.getElementById(mt))return e();const n=document.createElement("iframe");n.setAttribute("id",mt),n.setAttribute("src",`${this.verifyUrl}/${this.projectId}`),n.style.display="none",n.addEventListener("load",(()=>{this.initialized=!0,e()})),n.addEventListener("error",(e=>{t(e)})),document.body.append(n),this.iframe=n})),new Promise((e=>{setTimeout((()=>e("iframe load timeout")),Object(f.toMiliseconds)(f.ONE_SECOND/2))}))])}catch(e){this.logger.error("Verify iframe failed to load: "+this.verifyUrl),this.logger.error(e)}})),this.logger=Object(u.generateChildLogger)(n,this.name),this.verifyUrl=gt,this.abortController=new AbortController,this.isDevEnv=Object(h.D)()&&e.env.IS_VITEST}get context(){return Object(u.getLoggerContext)(this.logger)}startAbortTimer(e){return setTimeout((()=>this.abortController.abort()),Object(f.toMiliseconds)(e))}}var Jt=Object.defineProperty,Xt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,en=(e,t,n)=>t in e?Jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tn=(e,t)=>{for(var n in t||(t={}))Kt.call(t,n)&&en(e,n,t[n]);if(Xt)for(var n of Xt(t))$t.call(t,n)&&en(e,n,t[n]);return e};class nn extends c.a{constructor(e){super(e),this.protocol="wc",this.version=2,this.name="core",this.events=new r.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.projectId=null==e?void 0:e.projectId,this.relayUrl=(null==e?void 0:e.relayUrl)||nt;const t=typeof(null==e?void 0:e.logger)<"u"&&"string"!=typeof(null==e?void 0:e.logger)?e.logger:Object(u.pino)(Object(u.getDefaultLoggerOptions)({level:(null==e?void 0:e.logger)||"error"}));this.logger=Object(u.generateChildLogger)(t,this.name),this.heartbeat=new s.HeartBeat,this.crypto=new bt(this,this.logger,null==e?void 0:e.keychain),this.history=new Gt(this,this.logger),this.expirer=new qt(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new a.a(tn(tn({},Xe),null==e?void 0:e.storageOptions)),this.relayer=new Rt({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Ht(this,this.logger),this.verify=new Zt(this.projectId||"",this.logger)}static init(e){return I(this,null,(function*(){const t=new nn(e);yield t.initialize();const n=yield t.crypto.getClientId();return yield t.storage.setItem("WALLETCONNECT_CLIENT_ID",n),t}))}get context(){return Object(u.getLoggerContext)(this.logger)}start(){return I(this,null,(function*(){this.initialized||(yield this.initialize())}))}initialize(){return I(this,null,(function*(){this.logger.trace("Initialized");try{yield this.crypto.init(),yield this.history.init(),yield this.expirer.init(),yield this.relayer.init(),yield this.heartbeat.init(),yield this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn("Core Initialization Failure at epoch "+Date.now(),e),this.logger.error(e.message),e}}))}}const rn=nn}).call(this,n(31))},function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return f}));var r=n(19),i=n(6),o=n.n(i);class a extends r.IEvents{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class s extends r.IEvents{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class u{constructor(e,t){this.logger=e,this.core=t}}class c extends r.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}}class l extends r.IEvents{constructor(e){super()}}class d{constructor(e,t,n,r){this.core=e,this.logger=t,this.name=n}}class h extends r.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}}class p extends r.IEvents{constructor(e,t){super(),this.core=e,this.logger=t}}class f{constructor(e,t){this.projectId=e,this.logger=t}}o.a;class y{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}i.EventEmitter;class m{constructor(e){this.client=e}}},function(e,t,n){n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return h})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return y})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return v})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return M})),n.d(t,"__makeTemplateObject",(function(){return A})),n.d(t,"__importStar",(function(){return E})),n.d(t,"__importDefault",(function(){return T})),n.d(t,"__classPrivateFieldGet",(function(){return N})),n.d(t,"__classPrivateFieldSet",(function(){return I})); +var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof v?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function M(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function N(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){(function(e){function n(){return(null==e?void 0:e.crypto)||(null==e?void 0:e.msCrypto)||{}}function r(){const e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=r,t.isBrowserCryptoAvailable=function(){return!!n()&&!!r()}}).call(this,n(13))},function(e,t,n){(function(e){function n(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function r(){return void 0!==e&&void 0!==e.versions&&void 0!==e.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=n,t.isNode=r,t.isBrowser=function(){return!n()&&!r()}}).call(this,n(12))},function(e,t,n){e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()))},function(e,t,n){var r=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r),n=1;n{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},function(e,t,n){(function(e){function n(){return(null==e?void 0:e.crypto)||(null==e?void 0:e.msCrypto)||{}}function r(){const e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=r,t.isBrowserCryptoAvailable=function(){return!!n()&&!!r()}}).call(this,n(13))},function(e,t,n){(function(e){function n(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function r(){return void 0!==e&&void 0!==e.versions&&void 0!==e.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=n,t.isNode=r,t.isBrowser=function(){return!n()&&!r()}}).call(this,n(12))},function(e,t,n){var r=n(70),i=n(71),o=n(88),a=n(89);function s(e,t,n,o,a){var s=[].slice.call(arguments,1),u=s.length,c="function"==typeof s[u-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(u<1)throw new Error("Too few arguments provided");return 1===u?(n=t,t=o=void 0):2!==u||t.getContext||(o=n,n=t,t=void 0),new Promise((function(r,a){try{var s=i.create(n,o);r(e(s,t,o))}catch(e){a(e)}}))}if(u<2)throw new Error("Too few arguments provided");2===u?(a=n,n=t,t=o=void 0):3===u&&(t.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=n,n=t,t=void 0));try{var l=i.create(n,o);a(null,e(l,t,o))}catch(e){a(e)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return a.render(e,n)}))},function(e,t){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},function(e,t,n){var r=n(10),i=n(7),o=n(20),a=n(72),s=n(73),u=n(74),c=n(75),l=n(76),d=n(43),h=n(77),p=n(80),f=n(81),y=n(8),m=n(82),g=n(19);function v(e,t,n){var r,i,o=e.size,a=f.getEncodedBits(t,n);for(r=0;r<15;r++)i=1==(a>>r&1),r<6?e.set(r,8,i,!0):r<8?e.set(r+1,8,i,!0):e.set(o-15+r,8,i,!0),r<8?e.set(8,o-r-1,i,!0):r<9?e.set(8,15-r-1+1,i,!0):e.set(8,15-r-1,i,!0);e.set(o-8,8,1,!0)}function b(e,t,n){var o=new a;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),y.getCharCountIndicator(t.mode,e)),t.write(o)}));var s=8*(i.getSymbolTotalCodewords(e)-d.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);for(var u=(s-o.getLengthInBits())/8,c=0;c=0&&s<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===s||6===s)||s>=2&&s<=4&&u>=2&&u<=4?e.set(o+s,a+u,!0,!0):e.set(o+s,a+u,!1,!0))}(w,t),function(e){for(var t=e.size,n=8;n=7&&function(e,t){for(var n,r,i,o=e.size,a=p.getEncodedBits(t),s=0;s<18;s++)n=Math.floor(s/3),r=s%3+o-8-3,i=1==(a>>s&1),e.set(n,r,i,!0),e.set(r,n,i,!0)}(w,t),function(e,t){for(var n=e.size,r=-1,i=n-1,o=7,a=0,s=n-1;s>0;s-=2)for(6===s&&s--;;){for(var u=0;u<2;u++)if(!e.isReserved(i,s-u)){var c=!1;a>>o&1)),e.set(i,s-u,c),-1==--o&&(a++,o=7)}if((i+=r)<0||n<=i){i-=r,r=-r;break}}}(w,f),isNaN(r)&&(r=l.getBestMask(w,v.bind(null,w,n))),l.applyMask(r,w),v(w,n,r),{modules:w,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}(e,n,a,r)}},function(e,t){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},function(e,t,n){var r=n(10);function i(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=r.alloc(e*e),this.reservedBit=r.alloc(e*e)}i.prototype.set=function(e,t,n,r){var i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},i.prototype.get=function(e,t){return this.data[e*this.size+t]},i.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},i.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=i},function(e,t,n){var r=n(7).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7],a=1;a=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,n=0,r=0,i=0,o=null,a=null,s=0;s=5&&(n+=r-5+3),o=c,r=1),(c=e.get(u,s))===a?i++:(i>=5&&(n+=i-5+3),a=c,i=1)}r>=5&&(n+=r-5+3),i>=5&&(n+=i-5+3)}return n},t.getPenaltyN2=function(e){for(var t=e.size,n=0,r=0;r=10&&(1488===r||93===r)&&n++,i=i<<1&2047|e.get(a,o),a>=10&&(1488===i||93===i)&&n++}return 40*n},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,r=0;r0){var u=r.alloc(this.degree);return a.copy(u,s),u}return a},e.exports=a},function(e,t,n){var r=n(10),i=n(79);t.mul=function(e,t){for(var n=r.alloc(e.length+t.length-1),o=0;o=0;){for(var o=n[0],a=0;a1)return function(e,n){for(var r=1;r<=40;r++)if(d(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(var i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;r.getBCHDigit(t)-c>=0;)t^=7973<=0;)o^=1335<=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(a))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},function(e,t,n){var r=n(8);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);var i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))},e.exports=i},function(e,t,n){var r=n(8),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=r.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},function(e,t,n){var r=n(10),i=n(8);function o(e){this.mode=i.BYTE,this.data=r.from(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(var t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},function(e,t,n){var r={single_source_shortest_paths:function(e,t,n){var i={},o={};o[t]=0;var a,s,u,c,l,d,h,p=r.PriorityQueue.make();for(p.push(t,0);!p.empty();)for(u in s=(a=p.pop()).value,c=a.cost,l=e[s]||{})l.hasOwnProperty(u)&&(d=c+l[u],h=o[u],(void 0===o[u]||h>d)&&(o[u]=d,p.push(u,d),i[u]=s));if(void 0!==n&&void 0===o[n]){var f=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(f)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var i=r.single_source_shortest_paths(e,t,n);return r.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var t,n=r.PriorityQueue,i={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=r},function(e,t,n){var r=n(46);t.render=function(e,t,n){var i=n,o=t;void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=r.getOptions(i);var a=r.getImageWidth(e.modules.size,i),s=o.getContext("2d"),u=s.createImageData(a,a);return r.qrToImageData(u.data,e,i),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,o,a),s.putImageData(u,0,0),o},t.renderToDataURL=function(e,n,r){var i=r;void 0!==i||n&&n.getContext||(i=n,n=void 0),i||(i={});var o=t.render(e,n,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},function(e,t,n){var r=n(46);function i(e,t){var n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function o(e,t,n){var r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){var a=r.getOptions(t),s=e.modules.size,u=e.modules.data,c=s+2*a.margin,l=a.color.light.a?"':"",d="0&&c>0&&e[u-1]||(r+=a?o("M",c+n,.5+l+n):o("m",i,0),i=0,a=!1),c+1',h='viewBox="0 0 '+c+" "+c+'"',p=''+l+d+"\n";return"function"==typeof n&&n(null,p),p}},function(e,t,n){var r=n(91),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,u,c,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r`https://${e}.bridge.walletconnect.org`));var s=n(11),u=n(0);async function c(e){const t=(e||256)/8,n=s.randomBytes(t);return Object(i.d)(u.b(n))}async function l(e,t){const n=u.n(e.data),r=u.n(e.iv),i=u.n(e.hmac),o=u.c(i,!1),a=u.j(n,r),c=await s.hmacSha256Sign(t,a),l=u.c(c,!1);return u.x(o)===u.x(l)}async function d(e,t,n){const r=u.f(Object(i.b)(t)),o=n||await c(128),a=u.f(Object(i.b)(o)),l=u.c(a,!1),d=JSON.stringify(e),h=u.z(d),p=await s.aesCbcEncrypt(a,r,h),f=u.c(p,!1),y=u.j(p,a),m=await s.hmacSha256Sign(r,y);return{data:f,hmac:u.c(m,!1),iv:l}}async function h(e,t){const n=u.f(Object(i.b)(t));if(!n)throw new Error("Missing key: required for decryption");if(!await l(e,n))return null;const r=u.n(e.data),o=u.n(e.iv),a=await s.aesCbcDecrypt(o,n,r),c=u.e(a);let d;try{d=JSON.parse(c)}catch(e){return null}return d}var p=class extends class{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter((t=>t.event!==e))}trigger(e){let t,n=[];t=Object(i.o)(e)?e.method:Object(i.q)(e)||Object(i.p)(e)?"response:"+e.id:Object(i.n)(e)?e.event:"",t&&(n=this._eventEmitters.filter((e=>e.event===t))),n&&n.length||Object(i.s)(t)||Object(i.n)(t)||(n=this._eventEmitters.filter((e=>"call_request"===e.event))),n.forEach((t=>{if(Object(i.p)(e)){const n=new Error(e.error.message);t.callback(n,null)}else t.callback(null,e)}))}},this._clientMeta=Object(i.i)()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new class{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null;const t=Object(i.j)(this.storageId);return t&&Object(i.u)(t)&&(e=t),e}setSession(e){return Object(i.B)(this.storageId,e),e}removeSession(){Object(i.A)(this.storageId)}}(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...i.C,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error("Missing one of the required parameters: bridge / uri / session");var t;e.connectorOpts.bridge&&(this.bridge=function(e){return"walletconnect.org"===function(e){return function(e){let t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return t=t.split(":")[0],t=t.split("?")[0],t}(e).split(".").slice(-2).join(".")}(e)}(t=e.connectorOpts.bridge)?a[Math.floor(Math.random()*a.length)]:t),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new o.a({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const t=Object(i.e)(e);this._key=t}get key(){return this._key?Object(i.c)(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=Object(i.D)()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=Object(i.i)()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:t,bridge:n,key:r}=this._parseUri(e);this.handshakeTopic=t,this.bridge=n,this.key=r}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,t){const n={event:e,callback:t};this._eventManager.subscribe(n)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=Object(i.D)(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",(()=>{throw new Error("User close QRCode Modal")}));const n=()=>{this.killSession()};try{const e=await this._sendCallRequest(t);return e&&n(),e}catch(e){throw n(),e}}async connect(e){if(!this._qrcodeModal)throw new Error("QRCode Modal not provided");return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise((async(e,t)=>{this.on("modal_closed",(()=>t(new Error("User close QRCode Modal")))),this.on("connect",((n,r)=>{if(n)return t(n);e(r.params[0])}))})))}async createSession(e){if(this._connected)throw new Error("Session currently connected");if(this.pending)return;this._key=await this._generateKey();const t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=Object(i.D)(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error("Session currently connected");this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error("Session currently connected");const t=e&&e.message?e.message:"Session Rejected",n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error("Session currently disconnected");this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const t=e?e.message:"Session Disconnected",n=this._formatRequest({method:"wc_sessionUpdate",params:[{approved:!1,chainId:null,networkId:null,accounts:null}]});await this._sendRequest(n),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw new Error("Session currently disconnected");const t=Object(i.x)(e),n=this._formatRequest({method:"eth_sendTransaction",params:[t]});return await this._sendCallRequest(n)}async signTransaction(e){if(!this._connected)throw new Error("Session currently disconnected");const t=Object(i.x)(e),n=this._formatRequest({method:"eth_signTransaction",params:[t]});return await this._sendCallRequest(n)}async signMessage(e){if(!this._connected)throw new Error("Session currently disconnected");const t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw new Error("Session currently disconnected");e=Object(i.w)(e);const t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw new Error("Session currently disconnected");const t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise(((t,n)=>{this._subscribeToResponse(e.id,((e,r)=>{if(e)n(e);else{if(!r)throw new Error("Missing JSON RPC response");t(r)}}))}))}async sendCustomRequest(e,t){if(!this._connected)throw new Error("Session currently disconnected");switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return Object(i.f)(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params&&(e.params[0]=Object(i.x)(e.params[0]));break;case"personal_sign":e.params&&(e.params=Object(i.w)(e.params))}const n=this._formatRequest(e);return await this._sendCallRequest(n,t)}approveRequest(e){if(!Object(i.q)(e))throw new Error('JSON-RPC success response must include "result" field');{const t=this._formatResponse(e);this._sendResponse(t)}}rejectRequest(e){if(!Object(i.p)(e))throw new Error('JSON-RPC error response must include "error" field');{const t=this._formatResponse(e);this._sendResponse(t)}}transportClose(){this._transport.close()}async _sendRequest(e,t){const n=this._formatRequest(e),r=await this._encrypt(n),o=void 0!==(null==t?void 0:t.topic)?t.topic:this.peerId,a=JSON.stringify(r),s=void 0!==(null==t?void 0:t.forcePushNotification)?!t.forcePushNotification:Object(i.t)(n);this._transport.send(a,o,s)}async _sendResponse(e){const t=await this._encrypt(e),n=this.peerId,r=JSON.stringify(t);this._transport.send(r,n,!0)}async _sendSessionRequest(e,t,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(void 0===e.method)throw new Error('JSON RPC request must have valid "method" value');return{id:void 0===e.id?Object(i.z)():e.id,jsonrpc:"2.0",method:e.method,params:void 0===e.params?[]:e.params}}_formatResponse(e){if(void 0===e.id)throw new Error('JSON RPC request must have valid "id" value');const t={id:e.id,jsonrpc:"2.0"};if(Object(i.p)(e)){const n=Object(i.h)(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}if(Object(i.q)(e))return Object.assign(Object.assign({},t),e);throw new Error("JSON RPC response format is invalid")}_handleSessionDisconnect(e){const t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Object(i.A)(i.v)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t&&t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let t;try{t=JSON.parse(e.payload)}catch(e){return}const n=await this._decrypt(t);n&&this._eventManager.trigger(n)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on("response:"+e,t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,((e,n)=>{e?this._handleSessionResponse(e.message):Object(i.q)(n)?this._handleSessionResponse(t,n.result):n.error&&n.error.message?this._handleSessionResponse(n.error.message):this._handleSessionResponse(t)}))}_subscribeToCallResponse(e){return new Promise(((t,n)=>{this._subscribeToResponse(e,((e,r)=>{e?n(e):Object(i.q)(r)?t(r.result):r.error&&r.error.message?n(r.error):n(new Error("JSON RPC response format is invalid"))}))}))}_subscribeToInternalEvents(){this.on("display_uri",(()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,(()=>{this._eventManager.trigger({event:"modal_closed",params:[]})}),this._qrcodeModalOptions)})),this.on("connect",(()=>{this._qrcodeModal&&this._qrcodeModal.close()})),this.on("call_request_sent",((e,t)=>{const{request:n}=t.params[0];if(Object(i.r)()&&this._signingMethods.includes(n.method)){const e=Object(i.j)(i.v);e&&(window.location.href=e.href)}})),this.on("wc_sessionRequest",((e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;const n=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(n)})),this.on("wc_sessionUpdate",((e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.params[0])}))}_initTransport(){this._transport.on("message",(e=>this._handleIncomingMessages(e))),this._transport.on("open",(()=>this._eventManager.trigger({event:"transport_open",params:[]}))),this._transport.on("close",(()=>this._eventManager.trigger({event:"transport_close",params:[]}))),this._transport.on("error",(()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]}))),this._transport.open()}_formatUri(){return`${this.protocol}:${this.handshakeTopic}@${this.version}?bridge=${encodeURIComponent(this.bridge)}&key=${this.key}`}_parseUri(e){const t=Object(i.y)(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const e=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");const n=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");return{handshakeTopic:e,bridge:n,key:t.key}}throw new Error("URI format is invalid")}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){const t=this._key;return this._cryptoLib&&t?await this._cryptoLib.encrypt(e,t):null}async _decrypt(e){const t=this._key;return this._cryptoLib&&t?await this._cryptoLib.decrypt(e,t):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||"string"!=typeof e.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||"string"!=typeof e.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||"string"!=typeof e.token)throw Error("Invalid or missing pushServerOpts.token parameter value");const t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",(async(n,r)=>{if(n)throw n;if(e.peerMeta){const e=r.params[0].peerMeta.name;t.peerName=e}try{const n=await fetch(e.url+"/new",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});if(!(await n.json()).success)throw Error("Failed to register in Push Server")}catch(n){throw Error("Failed to register in Push Server")}}))}}{constructor(e,t){super({cryptoLib:r,connectorOpts:e,pushServerOpts:t})}},f=n(42),y=n.n(f)},function(e,t,n){n.r(t),n.d(t,"useState",(function(){return Z})),n.d(t,"useReducer",(function(){return J})),n.d(t,"useEffect",(function(){return X})),n.d(t,"useLayoutEffect",(function(){return K})),n.d(t,"useRef",(function(){return $})),n.d(t,"useImperativeHandle",(function(){return ee})),n.d(t,"useMemo",(function(){return te})),n.d(t,"useCallback",(function(){return ne})),n.d(t,"useContext",(function(){return re})),n.d(t,"useDebugValue",(function(){return ie})),n.d(t,"useErrorBoundary",(function(){return oe})),n.d(t,"createElement",(function(){return y})),n.d(t,"createContext",(function(){return B})),n.d(t,"createRef",(function(){return g})),n.d(t,"Fragment",(function(){return v})),n.d(t,"Component",(function(){return b})),n.d(t,"version",(function(){return Pe})),n.d(t,"Children",(function(){return ve})),n.d(t,"render",(function(){return je})),n.d(t,"hydrate",(function(){return Ce})),n.d(t,"unmountComponentAtNode",(function(){return We})),n.d(t,"createPortal",(function(){return Le})),n.d(t,"createFactory",(function(){return Be})),n.d(t,"cloneElement",(function(){return Ue})),n.d(t,"isValidElement",(function(){return Re})),n.d(t,"findDOMNode",(function(){return Qe})),n.d(t,"PureComponent",(function(){return pe})),n.d(t,"memo",(function(){return fe})),n.d(t,"forwardRef",(function(){return me})),n.d(t,"unstable_batchedUpdates",(function(){return Ye})),n.d(t,"Suspense",(function(){return Me})),n.d(t,"SuspenseList",(function(){return Ne})),n.d(t,"lazy",(function(){return Ee}));var r,i,o,a,s,u,c,l={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var r,i=arguments,o={};for(r in t)"key"!==r&&"ref"!==r&&(o[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r2&&(t.children=d.slice.call(arguments,2)),n={},t)"key"!==r&&"ref"!==r&&(n[r]=t[r]);return m(e.type,n,t.key||e.key,t.ref||e.ref,null)}function B(e){var t={},n={__c:"__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,i=this;return this.getChildContext||(r=[],this.getChildContext=function(){return t[n.__c]=i,t},this.shouldComponentUpdate=function(e){i.props.value!==e.value&&r.some((function(t){t.context=e.value,A(t)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Consumer.contextType=n,n.Provider.__=n,n}r={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return A(n.__E=n)}catch(t){e=t}throw e}},b.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),A(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},b.prototype.render=v,i=[],o=0,a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=l,c=0;var R,U,W,Q=0,Y=[],F=r.__r,V=r.diffed,H=r.__c,G=r.unmount;function q(e,t){r.__h&&r.__h(U,e,Q||t),Q=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Z(e){return Q=1,J(le,e)}function J(e,t,n){var r=q(R++,2);return r.__c||(r.__c=U,r.__=[n?n(t):le(void 0,t),function(t){var n=e(r.__[0],t);r.__[0]!==n&&(r.__[0]=n,r.__c.setState({}))}]),r.__}function X(e,t){var n=q(R++,3);!r.__s&&ce(n.__H,t)&&(n.__=e,n.__H=t,U.__H.__h.push(n))}function K(e,t){var n=q(R++,4);!r.__s&&ce(n.__H,t)&&(n.__=e,n.__H=t,U.__h.push(n))}function $(e){return Q=5,te((function(){return{current:e}}),[])}function ee(e,t,n){Q=6,K((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function te(e,t){var n=q(R++,7);return ce(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function ne(e,t){return Q=8,te((function(){return e}),t)}function re(e){var t=U.context[e.__c],n=q(R++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(U)),t.props.value):e.__}function ie(e,t){r.useDebugValue&&r.useDebugValue(t?t(e):e)}function oe(e){var t=q(R++,10),n=Z();return t.__=e,U.componentDidCatch||(U.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function ae(){Y.some((function(e){if(e.__P)try{e.__H.__h.forEach(se),e.__H.__h.forEach(ue),e.__H.__h=[]}catch(t){return e.__H.__h=[],r.__e(t,e.__v),!0}})),Y=[]}function se(e){e.t&&e.t()}function ue(e){var t=e.__();"function"==typeof t&&(e.t=t)}function ce(e,t){return!e||t.some((function(t,n){return t!==e[n]}))}function le(e,t){return"function"==typeof t?t(e):t}function de(e,t){for(var n in t)e[n]=t[n];return e}function he(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}r.__r=function(e){F&&F(e),R=0,(U=e.__c).__H&&(U.__H.__h.forEach(se),U.__H.__h.forEach(ue),U.__H.__h=[])},r.diffed=function(e){V&&V(e);var t=e.__c;if(t){var n=t.__H;n&&n.__h.length&&(1!==Y.push(t)&&W===r.requestAnimationFrame||((W=r.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);"undefined"!=typeof window&&(t=requestAnimationFrame(n))})(ae))}},r.__c=function(e,t){t.some((function(e){try{e.__h.forEach(se),e.__h=e.__h.filter((function(e){return!e.__||ue(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],r.__e(n,e.__v)}})),H&&H(e,t)},r.unmount=function(e){G&&G(e);var t=e.__c;if(t){var n=t.__H;if(n)try{n.__.forEach((function(e){return e.t&&e.t()}))}catch(e){r.__e(e,t.__v)}}};var pe=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).isPureReactComponent=!0,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.shouldComponentUpdate=function(e,t){return he(this.props,e)||he(this.state,t)},r}(b);function fe(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:he(this.props,e)}function r(t){return this.shouldComponentUpdate=n,y(e,de({},t))}return r.prototype.isReactComponent=!0,r.displayName="Memo("+(e.displayName||e.name)+")",r.t=!0,r}var ye=r.__b;function me(e){function t(t){var n=de({},t);return delete n.ref,e(n,t.ref)}return t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}r.__b=function(e){e.type&&e.type.t&&e.ref&&(e.props.ref=e.ref,e.ref=null),ye&&ye(e)};var ge=function(e,t){return e?T(e).reduce((function(e,n,r){return e.concat(t(n,r))}),[]):null},ve={map:ge,forEach:ge,count:function(e){return e?T(e).length:0},only:function(e){if(1!==(e=T(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:T},be=r.__e;function we(e){return e&&((e=de({},e)).__c=null,e.__k=e.__k&&e.__k.map(we)),e}function Me(){this.__u=0,this.o=null,this.__b=null}function Ae(e){var t=e.__.__c;return t&&t.u&&t.u(e)}function Ee(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return y(n,i)}return i.displayName="Lazy",i.t=!0,i}function Ne(){this.i=null,this.l=null}r.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return r.__c(e,t.__c);be(e,t,n)},(Me.prototype=new b).__c=function(e,t){var n=this;null==n.o&&(n.o=[]),n.o.push(t);var r=Ae(n.__v),i=!1,o=function(){i||(i=!0,r?r(a):a())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){o(),t.__c&&t.__c()};var a=function(){var e;if(!--n.__u)for(n.__v.__k[0]=n.state.u,n.setState({u:n.__b=null});e=n.o.pop();)e.forceUpdate()};n.__u++||n.setState({u:n.__b=n.__v.__k[0]}),e.then(o,o)},Me.prototype.render=function(e,t){return this.__b&&(this.__v.__k[0]=we(this.__b),this.__b=null),[y(b,null,t.u?null:e.children),t.u&&e.fallback]};var Te=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));function g(e,t){return e.includes(":")?[e]:t.chains||[]}const v="base10",b="base16",w="base64pad",M="utf8",A=1;function E(){const e=u.generateKeyPair();return{privateKey:Object(c.toString)(e.secretKey,b),publicKey:Object(c.toString)(e.publicKey,b)}}function N(){const e=Object(a.randomBytes)(32);return Object(c.toString)(e,b)}function T(e,t){const n=u.sharedKey(Object(c.fromString)(e,b),Object(c.fromString)(t,b)),r=new o.HKDF(s.SHA256,n).expand(32);return Object(c.toString)(r,b)}function I(e){const t=Object(s.hash)(Object(c.fromString)(e,b));return Object(c.toString)(t,b)}function k(e){const t=Object(s.hash)(Object(c.fromString)(e,M));return Object(c.toString)(t,b)}function L(e){return Number(Object(c.toString)(e,v))}function x(e){const t=function(e){return Object(c.fromString)(""+e,v)}(typeof e.type<"u"?e.type:0);if(L(t)===A&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof e.senderPublicKey<"u"?Object(c.fromString)(e.senderPublicKey,b):void 0,r=typeof e.iv<"u"?Object(c.fromString)(e.iv,b):Object(a.randomBytes)(12);return function(e){if(L(e.type)===A){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Object(c.toString)(Object(c.concat)([e.type,e.senderPublicKey,e.iv,e.sealed]),w)}return Object(c.toString)(Object(c.concat)([e.type,e.iv,e.sealed]),w)}({type:t,sealed:new i.ChaCha20Poly1305(Object(c.fromString)(e.symKey,b)).seal(r,Object(c.fromString)(e.message,M)),iv:r,senderPublicKey:n})}function S(e){const t=new i.ChaCha20Poly1305(Object(c.fromString)(e.symKey,b)),{sealed:n,iv:r}=j(e.encoded),o=t.open(r,n);if(null===o)throw new Error("Failed to decrypt");return Object(c.toString)(o,M)}function j(e){const t=Object(c.fromString)(e,w),n=t.slice(0,1);if(L(n)===A){const e=33,r=e+12,i=t.slice(1,e),o=t.slice(e,r);return{type:n,sealed:t.slice(r),iv:o,senderPublicKey:i}}const r=t.slice(1,13);return{type:n,sealed:t.slice(13),iv:r}}function C(e,t){const n=j(e);return D({type:L(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?Object(c.toString)(n.senderPublicKey,b):void 0,receiverPublicKey:null==t?void 0:t.receiverPublicKey})}function D(e){const t=(null==e?void 0:e.type)||0;if(t===A){if(typeof(null==e?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(null==e?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:null==e?void 0:e.senderPublicKey,receiverPublicKey:null==e?void 0:e.receiverPublicKey}}function O(e){return e.type===A&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var z=Object.defineProperty,_=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,R=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t)=>{for(var n in t||(t={}))P.call(t,n)&&R(e,n,t[n]);if(_)for(var n of _(t))B.call(t,n)&&R(e,n,t[n]);return e};const W="react-native",Q="browser",Y="js";function F(){return typeof e<"u"&&typeof e.versions<"u"&&typeof e.versions.node<"u"}function V(){return!Object(h.getDocument)()&&!!Object(h.getNavigator)()&&"ReactNative"===navigator.product}function H(){return!F()&&!!Object(h.getNavigator)()}function G(){return V()?W:F()?"node":H()?Q:"unknown"}function q(){return Object(p.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function Z(e,t,n){const i=function(){if(G()===W&&typeof r<"u"&&typeof(null==r?void 0:r.Platform)<"u"){const{OS:e,Version:t}=r.Platform;return[e,t].join("-")}const e=Object(l.a)();if(null===e)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),o=function(){var e;const t=G();return t===Q?[t,(null==(e=Object(h.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),[Y,n].join("-"),i,o].join("/")}function J({protocol:e,version:t,relayUrl:n,sdkVersion:r,auth:i,projectId:o,useOnCloseEvent:a}){const s=n.split("?"),u={auth:i,ua:Z(e,t,r),projectId:o,useOnCloseEvent:a||void 0},c=function(e,t){let n=f.parse(e);return n=U(U({},n),t),f.stringify(n)}(s[1]||"",u);return s[0]+"?"+c}function X(e,t){return e.filter((e=>t.includes(e))).length===e.length}function K(e){return Object.fromEntries(e.entries())}function $(e){return new Map(Object.entries(e))}function ee(e=d.FIVE_MINUTES,t){const n=Object(d.toMiliseconds)(e||d.FIVE_MINUTES);let r,i,o;return{resolve:e=>{o&&r&&(clearTimeout(o),r(e))},reject:e=>{o&&i&&(clearTimeout(o),i(e))},done:()=>new Promise(((e,a)=>{o=setTimeout((()=>{a(new Error(t))}),n),r=e,i=a}))}}function te(e,t,n){return new Promise(((r,i)=>m(this,null,(function*(){const o=setTimeout((()=>i(new Error(n))),t);try{const t=yield e;r(t)}catch(e){i(e)}clearTimeout(o)}))))}function ne(e,t){if("string"==typeof t&&t.startsWith(e+":"))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw new Error('Value must be "string" for expirer target type: topic');return"topic:"+t}if("id"===e.toLowerCase()){if("number"!=typeof t)throw new Error('Value must be "number" for expirer target type: id');return"id:"+t}throw new Error("Unknown expirer target type: "+e)}function re(e){return ne("topic",e)}function ie(e){return ne("id",e)}function oe(e){const[t,n]=e.split(":"),r={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof n)r.topic=n;else{if("id"!==t||!Number.isInteger(Number(n)))throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${n}`);r.id=Number(n)}return r}function ae(e,t){return Object(d.fromMiliseconds)((t||Date.now())+Object(d.toMiliseconds)(e))}function se(e){return Date.now()>=Object(d.toMiliseconds)(e)}function ue(e,t){return`${e}${t?":"+t:""}`}function ce(e){return m(this,arguments,(function*({id:e,topic:t,wcDeepLink:n}){try{if(!n)return;const i="string"==typeof n?JSON.parse(n):n;let o=null==i?void 0:i.href;if("string"!=typeof o)return;o.endsWith("/")&&(o=o.slice(0,-1));const a=`${o}/wc?requestId=${e}&sessionTopic=${t}`,s=G();s===Q?a.startsWith("https://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):s===W&&typeof(null==r?void 0:r.Linking)<"u"&&(yield r.Linking.openURL(a))}catch(e){console.error(e)}}))}function le(e){return(null==e?void 0:e.relay)||{protocol:"irn"}}function de(e){const t=y.RELAY_JSONRPC[e];if(typeof t>"u")throw new Error("Relay Protocol not supported: "+e);return t}var he=Object.defineProperty,pe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,me=(e,t,n)=>t in e?he(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function ge(e,t="-"){const n={},r="relay"+t;return Object.keys(e).forEach((t=>{if(t.startsWith(r)){const i=t.replace(r,""),o=e[t];n[i]=o}})),n}function ve(e){const t=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),i=e.substring(t+1,n).split("@"),o=typeof n<"u"?e.substring(n):"",a=f.parse(o);return{protocol:r,topic:be(i[0]),version:parseInt(i[1],10),symKey:a.symKey,relay:ge(a)}}function be(e){return e.startsWith("//")?e.substring(2):e}function we(e){return`${e.protocol}:${e.topic}@${e.version}?`+f.stringify(((e,t)=>{for(var n in t||(t={}))fe.call(t,n)&&me(e,n,t[n]);if(pe)for(var n of pe(t))ye.call(t,n)&&me(e,n,t[n]);return e})({symKey:e.symKey},function(e,t="-"){const n={};return Object.keys(e).forEach((r=>{const i="relay"+t+r;e[r]&&(n[i]=e[r])})),n}(e.relay)))}function Me(e){const t=[];return e.forEach((e=>{const[n,r]=e.split(":");t.push(`${n}:${r}`)})),t}function Ae(e,t){const n=We(e,t);if(n)throw new Error(n.message);const r={};for(const[t,n]of Object.entries(e))r[t]={methods:n.methods,events:n.events,chains:n.accounts.map((e=>`${e.split(":")[0]}:${e.split(":")[1]}`))};return r}const Ee={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Ne={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Te(e,t){const{message:n,code:r}=Ne[e];return{message:t?`${n} ${t}`:n,code:r}}function Ie(e,t){const{message:n,code:r}=Ee[e];return{message:t?`${n} ${t}`:n,code:r}}function ke(e,t){return!!Array.isArray(e)&&(!(typeof t<"u"&&e.length)||e.every(t))}function Le(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function xe(e){return typeof e>"u"}function Se(e,t){return!(!t||!xe(e))||"string"==typeof e&&!!e.trim().length}function je(e,t){return!(!t||!xe(e))||"number"==typeof e&&!isNaN(e)}function Ce(e,t){const{requiredNamespaces:n}=t,r=Object.keys(e.namespaces),i=Object.keys(n);let o=!0;return!!X(i,r)&&(r.forEach((t=>{const{accounts:r,methods:i,events:a}=e.namespaces[t],s=Me(r),u=n[t];X(g(t,u),s)&&X(u.methods,i)&&X(u.events,a)||(o=!1)})),o)}function De(e){return!(!Se(e,!1)||!e.includes(":"))&&2===e.split(":").length}function Oe(e){if(Se(e,!1))try{return typeof new URL(e)<"u"}catch(e){return!1}return!1}function ze(e){var t;return null==(t=null==e?void 0:e.proposer)?void 0:t.publicKey}function _e(e){return null==e?void 0:e.topic}function Pe(e,t){let n=null;return Se(null==e?void 0:e.publicKey,!1)||(n=Te("MISSING_OR_INVALID",t+" controller public key should be a string")),n}function Be(e){let t=!0;return ke(e)?e.length&&(t=e.every((e=>Se(e,!1)))):t=!1,t}function Re(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=function(e,t){let n=null;return Be(null==e?void 0:e.methods)?Be(null==e?void 0:e.events)||(n=Ie("UNSUPPORTED_EVENTS",t+", events should be an array of strings or empty array for no events")):n=Ie("UNSUPPORTED_METHODS",t+", methods should be an array of strings or empty array for no methods"),n}(e,t+", namespace");r&&(n=r)})),n}function Ue(e,t,n){let r=null;if(e&&Le(e)){const i=Re(e,t);i&&(r=i);const o=function(e,t,n){let r=null;return Object.entries(e).forEach((([e,i])=>{if(r)return;const o=function(e,t,n){let r=null;return ke(t)&&t.length?t.forEach((e=>{r||De(e)||(r=Ie("UNSUPPORTED_CHAINS",`${n}, chain ${e} should be a string and conform to "namespace:chainId" format`))})):De(e)||(r=Ie("UNSUPPORTED_CHAINS",n+', chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }')),r}(e,g(e,i),`${t} ${n}`);o&&(r=o)})),r}(e,t,n);o&&(r=o)}else r=Te("MISSING_OR_INVALID",`${t}, ${n} should be an object with data`);return r}function We(e,t){let n=null;if(e&&Le(e)){const r=Re(e,t);r&&(n=r);const i=function(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=function(e,t){let n=null;return ke(e)?e.forEach((e=>{n||function(e){if(Se(e,!1)&&e.includes(":")){const t=e.split(":");if(3===t.length){const e=t[0]+":"+t[1];return!!t[2]&&De(e)}}return!1}(e)||(n=Ie("UNSUPPORTED_ACCOUNTS",`${t}, account ${e} should be a string and conform to "namespace:chainId:address" format`))})):n=Ie("UNSUPPORTED_ACCOUNTS",t+', accounts should be an array of strings conforming to "namespace:chainId:address" format'),n}(null==e?void 0:e.accounts,t+" namespace");r&&(n=r)})),n}(e,t);i&&(n=i)}else n=Te("MISSING_OR_INVALID",t+", namespaces should be an object with data");return n}function Qe(e){return Se(e.protocol,!0)}function Ye(e,t){let n=!1;return t&&!e?n=!0:e&&ke(e)&&e.length&&e.forEach((e=>{n=Qe(e)})),n}function Fe(e){return"number"==typeof e}function Ve(e){return typeof e<"u"&&null!==typeof e}function He(e){return!!(e&&"object"==typeof e&&e.code&&je(e.code,!1)&&e.message&&Se(e.message,!1))}function Ge(e){return!(xe(e)||!Se(e.method,!1))}function qe(e){return!(xe(e)||xe(e.result)&&xe(e.error)||!je(e.id,!1)||!Se(e.jsonrpc,!1))}function Ze(e){return!(xe(e)||!Se(e.name,!1))}function Je(e,t){return!(!De(t)||!function(e){const t=[];return Object.values(e).forEach((e=>{t.push(...Me(e.accounts))})),t}(e).includes(t))}function Xe(e,t,n){return!!Se(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Me(e.accounts).includes(t)&&n.push(...e.methods)})),n}(e,t).includes(n)}function Ke(e,t,n){return!!Se(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Me(e.accounts).includes(t)&&n.push(...e.events)})),n}(e,t).includes(n)}function $e(e,t,n){let r=null;const i=function(e){const t={};return Object.keys(e).forEach((n=>{var r;n.includes(":")?t[n]=e[n]:null==(r=e[n].chains)||r.forEach((r=>{t[r]={methods:e[n].methods,events:e[n].events}}))})),t}(e),o=function(e){const t={};return Object.keys(e).forEach((n=>{if(n.includes(":"))t[n]=e[n];else{const r=Me(e[n].accounts);null==r||r.forEach((r=>{t[r]={accounts:e[n].accounts.filter((e=>e.includes(r+":"))),methods:e[n].methods,events:e[n].events}}))}})),t}(t),a=Object.keys(i),s=Object.keys(o),u=et(Object.keys(e)),c=et(Object.keys(t)),l=u.filter((e=>!c.includes(e)));return l.length&&(r=Te("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces.\n Required: ${l.toString()}\n Received: ${Object.keys(t).toString()}`)),X(a,s)||(r=Te("NON_CONFORMING_NAMESPACES",`${n} namespaces chains don't satisfy required namespaces.\n Required: ${a.toString()}\n Approved: ${s.toString()}`)),Object.keys(t).forEach((e=>{if(!e.includes(":")||r)return;const i=Me(t[e].accounts);i.includes(e)||(r=Te("NON_CONFORMING_NAMESPACES",`${n} namespaces accounts don't satisfy namespace accounts for ${e}\n Required: ${e}\n Approved: ${i.toString()}`))})),a.forEach((e=>{r||(X(i[e].methods,o[e].methods)?X(i[e].events,o[e].events)||(r=Te("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${e}`)):r=Te("NON_CONFORMING_NAMESPACES",`${n} namespaces methods don't satisfy namespace methods for ${e}`))})),r}function et(e){return[...new Set(e.map((e=>e.includes(":")?e.split(":")[0]:e)))]}function tt(e,t){return je(e,!1)&&e<=t.max&&e>=t.min}}).call(this,n(31),n(25))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(76),t),r.__exportStar(n(81),t),r.__exportStar(n(82),t),r.__exportStar(n(44),t)},function(e,t,n){n(7);var r=n(21);n.d(t,"parseConnectionError",(function(){return r.d}));var i=n(54);n.o(i,"IJsonRpcProvider")&&n.d(t,"IJsonRpcProvider",(function(){return i.IJsonRpcProvider})),n.o(i,"formatJsonRpcError")&&n.d(t,"formatJsonRpcError",(function(){return i.formatJsonRpcError})),n.o(i,"formatJsonRpcRequest")&&n.d(t,"formatJsonRpcRequest",(function(){return i.formatJsonRpcRequest})),n.o(i,"formatJsonRpcResult")&&n.d(t,"formatJsonRpcResult",(function(){return i.formatJsonRpcResult})),n.o(i,"getBigIntRpcId")&&n.d(t,"getBigIntRpcId",(function(){return i.getBigIntRpcId})),n.o(i,"isJsonRpcError")&&n.d(t,"isJsonRpcError",(function(){return i.isJsonRpcError})),n.o(i,"isJsonRpcRequest")&&n.d(t,"isJsonRpcRequest",(function(){return i.isJsonRpcRequest})),n.o(i,"isJsonRpcResponse")&&n.d(t,"isJsonRpcResponse",(function(){return i.isJsonRpcResponse})),n.o(i,"isJsonRpcResult")&&n.d(t,"isJsonRpcResult",(function(){return i.isJsonRpcResult})),n.o(i,"isLocalhostUrl")&&n.d(t,"isLocalhostUrl",(function(){return i.isLocalhostUrl})),n.o(i,"isReactNative")&&n.d(t,"isReactNative",(function(){return i.isReactNative})),n.o(i,"isWsUrl")&&n.d(t,"isWsUrl",(function(){return i.isWsUrl}));var o=n(55);n.d(t,"formatJsonRpcError",(function(){return o.a})),n.d(t,"formatJsonRpcRequest",(function(){return o.b})),n.d(t,"formatJsonRpcResult",(function(){return o.c})),n.d(t,"getBigIntRpcId",(function(){return o.d})),n(56);var a=n(62);n.d(t,"IJsonRpcProvider",(function(){return a.a}));var s=n(57);n.d(t,"isLocalhostUrl",(function(){return s.a})),n.d(t,"isWsUrl",(function(){return s.b}));var u=n(58);n.d(t,"isJsonRpcError",(function(){return u.a})),n.d(t,"isJsonRpcRequest",(function(){return u.b})),n.d(t,"isJsonRpcResponse",(function(){return u.c})),n.d(t,"isJsonRpcResult",(function(){return u.d}))},function(e,t,n){n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"l",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"m",(function(){return f})),n.d(t,"n",(function(){return y})),n.d(t,"j",(function(){return m}));const r="EdDSA",i="JWT",o=".",a="base64url",s="utf8",u="utf8",c=":",l="did",d="key",h="base58btc",p="z",f="K36",y=32,m=32},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.pino=void 0;const r=n(11),i=r.__importDefault(n(86));Object.defineProperty(t,"pino",{enumerable:!0,get:function(){return i.default}}),r.__exportStar(n(47),t),r.__exportStar(n(88),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(111),i=n(40),o=n(112),a=n(15),s=n(18),u=n(113);t.compare=r.compare,t.concat=i.concat,t.equals=o.equals,t.fromString=a.fromString,t.toString=s.toString,t.xor=u.xor},function(e,t,n){var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=m(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},s.prototype.listenerCount=y,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return u}));const r="INTERNAL_ERROR",i="SERVER_ERROR",o=[-32700,-32600,-32601,-32602,-32603],a=[-32e3,-32099],s={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[r]:{code:-32603,message:"Internal error"},[i]:{code:-32e3,message:"Server error"}},u=i},function(e,t,n){function r(e,t,n="string"){if(!e[t]||typeof e[t]!==n)throw new Error(`Missing or invalid "${t}" param`)}function i(e,t,n){return!!(n.length?function(e,t){return Array.isArray(e)?e.length>=t:Object.keys(e).length>=t}(e,t.length):function(e,t){return Array.isArray(e)?e.length===t:Object.keys(e).length===t}(e,t.length))&&function(e,t){let n=!0;return t.forEach((t=>{t in e||(n=!1)})),n}(e,t)}function o(e,t,n="_"){const r=e.split(n);return r[r.length-1].trim().toLowerCase()===t.trim().toLowerCase()}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){(function(e){n.d(t,"a",(function(){return rn})),n.d(t,"b",(function(){return yt})),n.d(t,"c",(function(){return tt})),n.d(t,"d",(function(){return it})),n.d(t,"e",(function(){return Vt}));var r=n(6),i=n.n(r),o=n(63),a=n.n(o),s=n(24),u=n(4),c=n(10),l=n(23),d=n(28),h=n(0),p=n(5),f=n(1),y=n(69),m=n(2),g=n(70),v=n(64),b=n.n(v),w=Object.defineProperty,M=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,N=(e,t,n)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||(t={}))A.call(t,n)&&N(e,n,t[n]);if(M)for(var n of M(t))E.call(t,n)&&N(e,n,t[n]);return e},I=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));const k=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")};class L{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class x{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return j(this,e)}}class S{constructor(e){this.decoders=e}or(e){return j(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const j=(e,t)=>new S(T(T({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t}));class C{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new L(e,t,n),this.decoder=new x(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const D=({name:e,prefix:t,encode:n,decode:r})=>new C(e,t,n,r),O=({prefix:e,name:t,alphabet:n})=>{const{encode:r,decode:i}=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,a=new Uint8Array(o);e[t];){var l=n[e.charCodeAt(t)];if(255===l)return;for(var d=0,h=o-1;(0!==l||d>>0,a[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var p=o-i;p!==o&&0===a[p];)p++;for(var f=new Uint8Array(r+(o-p)),y=r;p!==o;)f[y++]=a[p++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var a=(o-i)*l+1>>>0,c=new Uint8Array(a);i!==o;){for(var d=t[i],h=0,p=a-1;(0!==d||h>>0,c[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=a-r;f!==a&&0===c[f];)f++;for(var y=u.repeat(n);fk(i(e))})},z=({name:e,prefix:t,bitsPerChar:n,alphabet:r})=>D({prefix:t,name:e,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],i=(1<n;)a-=n,o+=t[i&s>>a];if(a&&(o+=t[i&s<((e,t,n,r)=>{const i={};for(let e=0;e=8&&(s-=8,a[c++]=255&u>>s)}if(s>=n||255&u<<8-s)throw new SyntaxError("Unexpected end of data");return a})(t,r,n,e)}),_=D({prefix:"\0",name:"identity",encode:e=>(e=>(new TextDecoder).decode(e))(e),decode:e=>(e=>(new TextEncoder).encode(e))(e)});var P=Object.freeze({__proto__:null,identity:_});const B=z({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var R=Object.freeze({__proto__:null,base2:B});const U=z({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var W=Object.freeze({__proto__:null,base8:U});const Q=O({prefix:"9",name:"base10",alphabet:"0123456789"});var Y=Object.freeze({__proto__:null,base10:Q});const F=z({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),V=z({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var H=Object.freeze({__proto__:null,base16:F,base16upper:V});const G=z({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),q=z({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Z=z({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),J=z({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),X=z({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),K=z({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),$=z({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),ee=z({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),te=z({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var ne=Object.freeze({__proto__:null,base32:G,base32upper:q,base32pad:Z,base32padupper:J,base32hex:X,base32hexupper:K,base32hexpad:$,base32hexpadupper:ee,base32z:te});const re=O({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),ie=O({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var oe=Object.freeze({__proto__:null,base36:re,base36upper:ie});const ae=O({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),se=O({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var ue=Object.freeze({__proto__:null,base58btc:ae,base58flickr:se});const ce=z({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),le=z({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),de=z({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),he=z({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var pe=Object.freeze({__proto__:null,base64:ce,base64pad:le,base64url:de,base64urlpad:he});const fe=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),ye=fe.reduce(((e,t,n)=>(e[n]=t,e)),[]),me=fe.reduce(((e,t,n)=>(e[t.codePointAt(0)]=n,e)),[]),ge=D({prefix:"🚀",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+ye[t]),"")},decode:function(e){const t=[];for(const n of e){const e=me[n.codePointAt(0)];if(void 0===e)throw new Error("Non-base256emoji character: "+n);t.push(e)}return new Uint8Array(t)}});var ve=Object.freeze({__proto__:null,base256emoji:ge}),be=Math.pow(2,31),we=Math.pow(2,7),Me=Math.pow(2,14),Ae=Math.pow(2,21),Ee=Math.pow(2,28),Ne=Math.pow(2,35),Te=Math.pow(2,42),Ie=Math.pow(2,49),ke=Math.pow(2,56),Le=Math.pow(2,63),xe=function e(t,n,r){n=n||[];for(var i=r=r||0;t>=be;)n[r++]=255&t|128,t/=128;for(;-128&t;)n[r++]=255&t|128,t>>>=7;return n[r]=0|t,e.bytes=r-i+1,n},Se=function(e){return e(xe(e,t,n),t),Ce=e=>Se(e),De=(e,t)=>{const n=t.byteLength,r=Ce(e),i=r+Ce(n),o=new Uint8Array(i+n);return je(e,o,0),je(n,o,r),o.set(t,i),new Oe(e,n,t,o)};class Oe{constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}}const ze=({name:e,code:t,encode:n})=>new _e(e,t,n);class _e{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?De(this.code,t):t.then((e=>De(this.code,e)))}throw Error("Unknown type, must be binary type")}}const Pe=e=>t=>I(void 0,null,(function*(){return new Uint8Array(yield crypto.subtle.digest(e,t))})),Be=ze({name:"sha2-256",code:18,encode:Pe("SHA-256")}),Re=ze({name:"sha2-512",code:19,encode:Pe("SHA-512")});var Ue=Object.freeze({__proto__:null,sha256:Be,sha512:Re});const We=k,Qe={code:0,name:"identity",encode:We,digest:e=>De(0,We(e))};var Ye=Object.freeze({__proto__:null,identity:Qe});new TextEncoder,new TextDecoder;const Fe=T(T(T(T(T(T(T(T(T(T({},P),R),W),Y),H),ne),oe),ue),pe),ve);function Ve(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function He(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}T(T({},Ue),Ye);const Ge=He("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),qe=He("ascii","a",(e=>{let t="a";for(let n=0;n{const t=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?Ve(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}((e=e.substring(1)).length);for(let n=0;nI(this,null,(function*(){if(!this.initialized){const e=yield this.getKeyChain();typeof e<"u"&&(this.keychain=e),this.initialized=!0}})),this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=(e,t)=>I(this,null,(function*(){this.isInitialized(),this.keychain.set(e,t),yield this.persist()})),this.get=e=>{this.isInitialized();const t=this.keychain.get(e);if(typeof t>"u"){const{message:t}=Object(h.s)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t},this.del=e=>I(this,null,(function*(){this.isInitialized(),this.keychain.delete(e),yield this.persist()})),this.core=e,this.logger=Object(u.generateChildLogger)(t,this.name)}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}setKeyChain(e){return I(this,null,(function*(){yield this.core.storage.setItem(this.storageKey,Object(h.db)(e))}))}getKeyChain(){return I(this,null,(function*(){const e=yield this.core.storage.getItem(this.storageKey);return typeof e<"u"?Object(h.eb)(e):void 0}))}persist(){return I(this,null,(function*(){yield this.setKeyChain(this.keychain)}))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class bt{constructor(e,t,n){this.core=e,this.logger=t,this.name="crypto",this.initialized=!1,this.init=()=>I(this,null,(function*(){this.initialized||(yield this.keychain.init(),this.initialized=!0)})),this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=()=>I(this,null,(function*(){this.isInitialized();const e=yield this.getClientSeed(),t=d.generateKeyPair(e);return d.encodeIss(t.publicKey)})),this.generateKeyPair=()=>{this.isInitialized();const e=Object(h.p)();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=e=>I(this,null,(function*(){this.isInitialized();const t=yield this.getClientSeed(),n=d.generateKeyPair(t),r=Object(h.q)(),i=$e;return yield d.signJWT(r,e,i,n)})),this.generateSharedKey=(e,t,n)=>{this.isInitialized();const r=this.getPrivateKey(e),i=Object(h.h)(r,t);return this.setSymKey(i,n)},this.setSymKey=(e,t)=>I(this,null,(function*(){this.isInitialized();const n=t||Object(h.y)(e);return yield this.keychain.set(n,e),n})),this.deleteKeyPair=e=>I(this,null,(function*(){this.isInitialized(),yield this.keychain.del(e)})),this.deleteSymKey=e=>I(this,null,(function*(){this.isInitialized(),yield this.keychain.del(e)})),this.encode=(e,t,n)=>I(this,null,(function*(){this.isInitialized();const r=Object(h.ib)(n),i=Object(l.b)(t);if(Object(h.I)(r)){const t=r.senderPublicKey,n=r.receiverPublicKey;e=yield this.generateSharedKey(t,n)}const o=this.getSymKey(e),{type:a,senderPublicKey:s}=r;return Object(h.j)({type:a,symKey:o,message:i,senderPublicKey:s})})),this.decode=(e,t,n)=>I(this,null,(function*(){this.isInitialized();const r=Object(h.hb)(t,n);if(Object(h.I)(r)){const t=r.receiverPublicKey,n=r.senderPublicKey;e=yield this.generateSharedKey(t,n)}try{const n=this.getSymKey(e),r=Object(h.g)({symKey:n,encoded:t});return Object(l.a)(r)}catch(t){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${yield this.getClientId()}'`),this.logger.error(t)}})),this.getPayloadType=e=>{const t=Object(h.i)(e);return Object(h.f)(t.type)},this.getPayloadSenderPublicKey=e=>{const t=Object(h.i)(e);return t.senderPublicKey?Object(p.toString)(t.senderPublicKey,h.a):void 0},this.core=e,this.logger=Object(u.generateChildLogger)(t,this.name),this.keychain=n||new vt(this.core,this.logger)}get context(){return Object(u.getLoggerContext)(this.logger)}setPrivateKey(e,t){return I(this,null,(function*(){return yield this.keychain.set(e,t),e}))}getPrivateKey(e){return this.keychain.get(e)}getClientSeed(){return I(this,null,(function*(){let e="";try{e=this.keychain.get(Ke)}catch(t){e=Object(h.q)(),yield this.keychain.set(Ke,e)}return function(e,t="utf8"){const n=Ze[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode(`${n.prefix}${e}`):Ve(globalThis.Buffer.from(e,"utf-8"))}(e,"base16")}))}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class wt extends c.e{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=Je,this.init=()=>I(this,null,(function*(){if(!this.initialized){this.logger.trace("Initialized");try{const e=yield this.getRelayerMessages();typeof e<"u"&&(this.messages=e),this.logger.debug("Successfully Restored records for "+this.name),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(e){this.logger.debug("Failed to Restore records for "+this.name),this.logger.error(e)}finally{this.initialized=!0}}})),this.set=(e,t)=>I(this,null,(function*(){this.isInitialized();const n=Object(h.z)(t);let r=this.messages.get(e);return typeof r>"u"&&(r={}),typeof r[n]<"u"||(r[n]=t,this.messages.set(e,r),yield this.persist()),n})),this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>"u"&&(t={}),t},this.has=(e,t)=>(this.isInitialized(),typeof this.get(e)[Object(h.z)(t)]<"u"),this.del=e=>I(this,null,(function*(){this.isInitialized(),this.messages.delete(e),yield this.persist()})),this.logger=Object(u.generateChildLogger)(e,this.name),this.core=t}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}setRelayerMessages(e){return I(this,null,(function*(){yield this.core.storage.setItem(this.storageKey,Object(h.db)(e))}))}getRelayerMessages(){return I(this,null,(function*(){const e=yield this.core.storage.getItem(this.storageKey);return typeof e<"u"?Object(h.eb)(e):void 0}))}persist(){return I(this,null,(function*(){yield this.setRelayerMessages(this.messages)}))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Mt extends c.f{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new r.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=Object(f.toMiliseconds)(f.TEN_SECONDS),this.queueTimeout=Object(f.toMiliseconds)(f.FIVE_SECONDS),this.needsTransportRestart=!1,this.publish=(e,t,n)=>I(this,null,(function*(){this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:n}});try{const r=(null==n?void 0:n.ttl)||et,i=Object(h.u)(n),o=(null==n?void 0:n.prompt)||!1,a=(null==n?void 0:n.tag)||0,s=(null==n?void 0:n.id)||Object(m.getBigIntRpcId)().toString(),u={topic:e,message:t,opts:{ttl:r,relay:i,prompt:o,tag:a,id:s}},c=setTimeout((()=>this.queue.set(s,u)),this.queueTimeout);try{yield yield Object(h.e)(this.rpcPublish(e,t,r,i,o,a,s),this.publishTimeout),clearTimeout(c),this.relayer.events.emit(it.publish,u)}catch(e){return this.logger.debug("Publishing Payload stalled"),void(this.needsTransportRestart=!0)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:n}})}catch(e){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(e),e}})),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=Object(u.generateChildLogger)(t,this.name),this.registerEventListeners()}get context(){return Object(u.getLoggerContext)(this.logger)}rpcPublish(e,t,n,r,i,o,a){var s,u,c,l;const d={method:Object(h.t)(r.protocol).publish,params:{topic:e,message:t,ttl:n,prompt:i,tag:o},id:a};return Object(h.J)(null==(s=d.params)?void 0:s.prompt)&&(null==(u=d.params)||delete u.prompt),Object(h.J)(null==(c=d.params)?void 0:c.tag)&&(null==(l=d.params)||delete l.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:d}),this.relayer.request(d)}onPublish(e){this.queue.delete(e)}checkQueue(){this.queue.forEach((e=>I(this,null,(function*(){const{topic:t,message:n,opts:r}=e;yield this.publish(t,n,r)}))))}registerEventListeners(){this.relayer.core.heartbeat.on(s.HEARTBEAT_EVENTS.pulse,(()=>{if(this.needsTransportRestart)return this.needsTransportRestart=!1,void this.relayer.events.emit(it.connection_stalled);this.checkQueue()})),this.relayer.on(it.message_ack,(e=>{this.onPublish(e.id.toString())}))}}class At{constructor(){this.map=new Map,this.set=(e,t)=>{const n=this.get(e);this.exists(e,t)||this.map.set(e,[...n,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u")return void this.map.delete(e);if(!this.map.has(e))return;const n=this.get(e);if(!this.exists(e,t))return;const r=n.filter((e=>e!==t));r.length?this.map.set(e,r):this.map.delete(e)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Et=Object.defineProperty,Nt=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,xt=(e,t,n)=>t in e?Et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,St=(e,t)=>{for(var n in t||(t={}))kt.call(t,n)&&xt(e,n,t[n]);if(It)for(var n of It(t))Lt.call(t,n)&&xt(e,n,t[n]);return e},jt=(e,t)=>Nt(e,Tt(t));class Ct extends c.j{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new At,this.events=new r.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=Je,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=()=>I(this,null,(function*(){this.initialized||(this.logger.trace("Initialized"),yield this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=yield this.relayer.core.crypto.getClientId())})),this.subscribe=(e,t)=>I(this,null,(function*(){yield this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{const n=Object(h.u)(t),r={topic:e,relay:n};this.pending.set(e,r);const i=yield this.rpcSubscribe(e,n);return this.onSubscribe(i,r),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}}),i}catch(e){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(e),e}})),this.unsubscribe=(e,t)=>I(this,null,(function*(){yield this.restartToComplete(),this.isInitialized(),typeof(null==t?void 0:t.id)<"u"?yield this.unsubscribeById(e,t.id,t):yield this.unsubscribeByTopic(e,t)})),this.isSubscribed=e=>I(this,null,(function*(){return!!this.topics.includes(e)||(yield new Promise(((t,n)=>{const r=new f.Watch;r.start(this.pendingSubscriptionWatchLabel);const i=setInterval((()=>{!this.pending.has(e)&&this.topics.includes(e)&&(clearInterval(i),r.stop(this.pendingSubscriptionWatchLabel),t(!0)),r.elapsed(this.pendingSubscriptionWatchLabel)>=lt&&(clearInterval(i),r.stop(this.pendingSubscriptionWatchLabel),n(new Error("Subscription resolution timeout")))}),this.pollingInterval)})).catch((()=>!1)))})),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.restart=()=>I(this,null,(function*(){this.restartInProgress=!0,yield this.restore(),yield this.reset(),this.restartInProgress=!1})),this.relayer=e,this.logger=Object(u.generateChildLogger)(t,this.name),this.clientId=""}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let n=!1;try{n=this.getSubscription(e).topic===t}catch(e){}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}unsubscribeByTopic(e,t){return I(this,null,(function*(){const n=this.topicMap.get(e);yield Promise.all(n.map((n=>I(this,null,(function*(){return yield this.unsubscribeById(e,n,t)})))))}))}unsubscribeById(e,t,n){return I(this,null,(function*(){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}});try{const r=Object(h.u)(n);yield this.rpcUnsubscribe(e,t,r);const i=Object(h.w)("USER_DISCONNECTED",`${this.name}, ${e}`);yield this.onUnsubscribe(e,t,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}})}catch(e){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(e),e}}))}rpcSubscribe(e,t){return I(this,null,(function*(){const n={method:Object(h.t)(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{yield yield Object(h.e)(this.relayer.request(n),this.subscribeTimeout)}catch(e){this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(it.connection_stalled)}return Object(h.z)(e+this.clientId)}))}rpcBatchSubscribe(e){return I(this,null,(function*(){if(!e.length)return;const t=e[0].relay,n={method:Object(h.t)(t.protocol).batchSubscribe,params:{topics:e.map((e=>e.topic))}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return yield yield Object(h.e)(this.relayer.request(n),this.subscribeTimeout)}catch(e){this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(it.connection_stalled)}}))}rpcUnsubscribe(e,t,n){const r={method:Object(h.t)(n.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r}),this.relayer.request(r)}onSubscribe(e,t){this.setSubscription(e,jt(St({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach((e=>{this.setSubscription(e.id,St({},e)),this.pending.delete(e.topic)}))}onUnsubscribe(e,t,n){return I(this,null,(function*(){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,n),yield this.relayer.messages.del(e)}))}setRelayerSubscriptions(e){return I(this,null,(function*(){yield this.relayer.core.storage.setItem(this.storageKey,e)}))}getRelayerSubscriptions(){return I(this,null,(function*(){return yield this.relayer.core.storage.getItem(this.storageKey)}))}setSubscription(e,t){this.subscriptions.has(e)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t))}addSubscription(e,t){this.subscriptions.set(e,St({},t)),this.topicMap.set(t.topic,e),this.events.emit(st,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});const t=this.subscriptions.get(e);if(!t){const{message:t}=Object(h.s)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});const n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(ut,jt(St({},n),{reason:t}))}persist(){return I(this,null,(function*(){yield this.setRelayerSubscriptions(this.values),this.events.emit("subscription_sync")}))}reset(){return I(this,null,(function*(){if(this.cached.length){const e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t"u"||!e.length)return;if(this.subscriptions.size){const{message:e}=Object(h.s)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored subscriptions for "+this.name),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug("Failed to Restore subscriptions for "+this.name),this.logger.error(e)}}))}batchSubscribe(e){return I(this,null,(function*(){if(!e.length)return;const t=yield this.rpcBatchSubscribe(e);Object(h.K)(t)&&this.onBatchSubscribe(t.map(((t,n)=>jt(St({},e[n]),{id:t}))))}))}onConnect(){return I(this,null,(function*(){this.restartInProgress||(yield this.restart(),this.onEnable())}))}onDisconnect(){this.onDisable()}checkPending(){return I(this,null,(function*(){if(this.relayer.transportExplicitlyClosed)return;const e=[];this.pending.forEach((t=>{e.push(t)})),yield this.batchSubscribe(e)}))}registerEventListeners(){this.relayer.core.heartbeat.on(s.HEARTBEAT_EVENTS.pulse,(()=>I(this,null,(function*(){yield this.checkPending()})))),this.relayer.on(it.connect,(()=>I(this,null,(function*(){yield this.onConnect()})))),this.relayer.on(it.disconnect,(()=>{this.onDisconnect()})),this.events.on(st,(e=>I(this,null,(function*(){const t=st;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,data:e}),yield this.persist()})))),this.events.on(ut,(e=>I(this,null,(function*(){const t=ut;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,data:e}),yield this.persist()}))))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}restartToComplete(){return I(this,null,(function*(){this.restartInProgress&&(yield new Promise((e=>{const t=setInterval((()=>{this.restartInProgress||(clearInterval(t),e())}),this.pollingInterval)})))}))}}var Dt=Object.defineProperty,Ot=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,Pt=(e,t,n)=>t in e?Dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class Bt extends c.g{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new r.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.request=e=>I(this,null,(function*(){this.logger.debug("Publishing Request Payload");try{return yield this.toEstablishConnection(),yield this.provider.request(e)}catch(e){throw this.logger.debug("Failed to Publish Request"),this.logger.error(e),e}})),this.core=e.core,this.logger=typeof e.logger<"u"&&"string"!=typeof e.logger?Object(u.generateChildLogger)(e.logger,this.name):Object(u.pino)(Object(u.getDefaultLoggerOptions)({level:e.logger||"error"})),this.messages=new wt(this.logger,e.core),this.subscriber=new Ct(this,this.logger),this.publisher=new Mt(this,this.logger),this.relayUrl=(null==e?void 0:e.relayUrl)||nt,this.projectId=e.projectId,this.provider={}}init(){return I(this,null,(function*(){this.logger.trace("Initialized"),yield this.createProvider(),yield Promise.all([this.messages.init(),this.subscriber.init()]);try{yield this.transportOpen()}catch(e){this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${rt}...`),yield this.restartTransport(rt)}this.registerEventListeners(),this.initialized=!0,setTimeout((()=>I(this,null,(function*(){0===this.subscriber.topics.length&&(this.logger.info("No topics subscribed to after init, closing transport"),yield this.transportClose(),this.transportExplicitlyClosed=!1)}))),1e4)}))}get context(){return Object(u.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}publish(e,t,n){return I(this,null,(function*(){this.isInitialized(),yield this.publisher.publish(e,t,n),yield this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}))}subscribe(e,t){return I(this,null,(function*(){var n;this.isInitialized();let r=(null==(n=this.subscriber.topicMap.get(e))?void 0:n[0])||"";return r||(yield Promise.all([new Promise((t=>{this.subscriber.once(st,(n=>{n.topic===e&&t()}))})),new Promise((n=>I(this,null,(function*(){r=yield this.subscriber.subscribe(e,t),n()}))))]),r)}))}unsubscribe(e,t){return I(this,null,(function*(){this.isInitialized(),yield this.subscriber.unsubscribe(e,t)}))}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}transportClose(){return I(this,null,(function*(){this.transportExplicitlyClosed=!0,this.connected&&(yield this.provider.disconnect(),this.events.emit(it.transport_closed))}))}transportOpen(e){return I(this,null,(function*(){if(this.transportExplicitlyClosed=!1,!this.reconnecting){this.relayUrl=e||this.relayUrl,this.reconnecting=!0;try{yield Promise.all([new Promise((e=>{this.initialized||e(),this.subscriber.once(ct,(()=>{e()}))})),yield Promise.race([new Promise(((e,t)=>I(this,null,(function*(){yield Object(h.e)(this.provider.connect(),1e4,"Socket stalled when trying to connect to "+this.relayUrl).catch((e=>t(e))).then((()=>e())).finally((()=>this.removeListener(it.transport_closed,this.rejectTransportOpen)))})))),new Promise((e=>this.once(it.transport_closed,this.rejectTransportOpen)))])])}catch(e){this.logger.error(e);const t=e;if(!this.isConnectionStalled(t.message))throw e;this.events.emit(it.transport_closed)}finally{this.reconnecting=!1}}}))}restartTransport(e){return I(this,null,(function*(){this.transportExplicitlyClosed||this.reconnecting||(this.relayUrl=e||this.relayUrl,this.connected&&(yield Promise.all([new Promise((e=>{this.provider.once(ot,(()=>{e()}))})),this.transportClose()])),yield this.createProvider(),yield this.transportOpen())}))}isConnectionStalled(e){return this.staleConnectionErrors.some((t=>e.includes(t)))}rejectTransportOpen(){throw new Error("Attempt to connect to relay via `transportOpen` has stalled. Retrying...")}createProvider(){return I(this,null,(function*(){const e=yield this.core.crypto.signJWT(this.relayUrl);this.provider=new y.a(new g.a(Object(h.m)({sdkVersion:"2.9.2",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0}))),this.registerProviderListeners()}))}recordMessageEvent(e){return I(this,null,(function*(){const{topic:t,message:n}=e;yield this.messages.set(t,n)}))}shouldIgnoreMessageEvent(e){return I(this,null,(function*(){const{topic:t,message:n}=e;if(!n||0===n.length)return this.logger.debug("Ignoring invalid/empty message: "+n),!0;if(!(yield this.subscriber.isSubscribed(t)))return this.logger.debug("Ignoring message for non-subscribed topic "+t),!0;const r=this.messages.has(t,n);return r&&this.logger.debug("Ignoring duplicate message: "+n),r}))}onProviderPayload(e){return I(this,null,(function*(){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),Object(m.isJsonRpcRequest)(e)){if(!e.method.endsWith("_subscription"))return;const t=e.params,{topic:n,message:r,publishedAt:i}=t.data,o={topic:n,message:r,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(((e,t)=>{for(var n in t||(t={}))zt.call(t,n)&&Pt(e,n,t[n]);if(Ot)for(var n of Ot(t))_t.call(t,n)&&Pt(e,n,t[n]);return e})({type:"event",event:t.id},o)),this.events.emit(t.id,o),yield this.acknowledgePayload(e),yield this.onMessageEvent(o)}else Object(m.isJsonRpcResponse)(e)&&this.events.emit(it.message_ack,e)}))}onMessageEvent(e){return I(this,null,(function*(){(yield this.shouldIgnoreMessageEvent(e))||(this.events.emit(it.message,e),yield this.recordMessageEvent(e))}))}acknowledgePayload(e){return I(this,null,(function*(){const t=Object(m.formatJsonRpcResult)(e.id,!0);yield this.provider.connection.send(t)}))}registerProviderListeners(){this.provider.on("payload",(e=>this.onProviderPayload(e))),this.provider.on("connect",(()=>{this.events.emit(it.connect)})),this.provider.on(ot,(()=>{this.onProviderDisconnect()})),this.provider.on("error",(e=>{this.logger.error(e),this.events.emit(it.error,e)}))}registerEventListeners(){this.events.on(it.connection_stalled,(()=>I(this,null,(function*(){yield this.restartTransport()}))))}onProviderDisconnect(){this.events.emit(it.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout((()=>I(this,null,(function*(){yield this.restartTransport()}))),Object(f.toMiliseconds)(at))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}toEstablishConnection(){return I(this,null,(function*(){if(!this.connected){if(this.connecting)return yield new Promise((e=>{const t=setInterval((()=>{this.connected&&(clearInterval(t),e())}),this.connectionStatusPollingInterval)}));yield this.restartTransport()}}))}}var Rt=Object.defineProperty,Ut=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Yt=(e,t,n)=>t in e?Rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ft=(e,t)=>{for(var n in t||(t={}))Wt.call(t,n)&&Yt(e,n,t[n]);if(Ut)for(var n of Ut(t))Qt.call(t,n)&&Yt(e,n,t[n]);return e};class Vt extends c.i{constructor(e,t,n,r=Je,i){super(e,t,n,r),this.core=e,this.logger=t,this.name=n,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Je,this.init=()=>I(this,null,(function*(){this.initialized||(this.logger.trace("Initialized"),yield this.restore(),this.cached.forEach((e=>{this.getKey&&null!==e&&!Object(h.J)(e)?this.map.set(this.getKey(e),e):Object(h.E)(e)?this.map.set(e.id,e):Object(h.H)(e)&&this.map.set(e.topic,e)})),this.cached=[],this.initialized=!0)})),this.set=(e,t)=>I(this,null,(function*(){this.isInitialized(),this.map.has(e)?yield this.update(e,t):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:e,value:t}),this.map.set(e,t),yield this.persist())})),this.get=e=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter((t=>Object.keys(e).every((n=>b()(t[n],e[n]))))):this.values),this.update=(e,t)=>I(this,null,(function*(){this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:e,update:t});const n=Ft(Ft({},this.getData(e)),t);this.map.set(e,n),yield this.persist()})),this.delete=(e,t)=>I(this,null,(function*(){this.isInitialized(),this.map.has(e)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:e,reason:t}),this.map.delete(e),yield this.persist())})),this.logger=Object(u.generateChildLogger)(t,this.name),this.storagePrefix=r,this.getKey=i}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}setDataStore(e){return I(this,null,(function*(){yield this.core.storage.setItem(this.storageKey,e)}))}getDataStore(){return I(this,null,(function*(){return yield this.core.storage.getItem(this.storageKey)}))}getData(e){const t=this.map.get(e);if(!t){const{message:t}=Object(h.s)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(t),new Error(t)}return t}persist(){return I(this,null,(function*(){yield this.setDataStore(this.values)}))}restore(){return I(this,null,(function*(){try{const e=yield this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){const{message:e}=Object(h.s)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored value for "+this.name),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug("Failed to Restore value for "+this.name),this.logger.error(e)}}))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Ht{constructor(e,t){this.core=e,this.logger=t,this.name="pairing",this.version="0.3",this.events=new i.a,this.initialized=!1,this.storagePrefix=Je,this.ignoredPayloadTypes=[h.b],this.registeredMethods=[],this.init=()=>I(this,null,(function*(){this.initialized||(yield this.pairings.init(),yield this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))})),this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=()=>I(this,null,(function*(){this.isInitialized();const e=Object(h.q)(),t=yield this.core.crypto.setSymKey(e),n=Object(h.c)(f.FIVE_MINUTES),r={protocol:tt},i={topic:t,expiry:n,relay:r,active:!1},o=Object(h.o)({protocol:this.core.protocol,version:this.core.version,topic:t,symKey:e,relay:r});return yield this.pairings.set(t,i),yield this.core.relayer.subscribe(t),this.core.expirer.set(t,n),{topic:t,uri:o}})),this.pair=e=>I(this,null,(function*(){this.isInitialized(),this.isValidPair(e);const{topic:t,symKey:n,relay:r}=Object(h.gb)(e.uri);if(this.pairings.keys.includes(t))throw new Error("Pairing already exists: "+t);if(this.core.crypto.hasKeys(t))throw new Error("Keychain already exists: "+t);const i=Object(h.c)(f.FIVE_MINUTES),o={topic:t,relay:r,expiry:i,active:!1};return yield this.pairings.set(t,o),yield this.core.crypto.setSymKey(n,t),yield this.core.relayer.subscribe(t,{relay:r}),this.core.expirer.set(t,i),e.activatePairing&&(yield this.activate({topic:t})),o})),this.activate=e=>I(this,[e],(function*({topic:e}){this.isInitialized();const t=Object(h.c)(f.THIRTY_DAYS);yield this.pairings.update(e,{active:!0,expiry:t}),this.core.expirer.set(e,t)})),this.ping=e=>I(this,null,(function*(){this.isInitialized(),yield this.isValidPing(e);const{topic:t}=e;if(this.pairings.keys.includes(t)){const e=yield this.sendRequest(t,"wc_pairingPing",{}),{done:n,resolve:r,reject:i}=Object(h.d)();this.events.once(Object(h.k)("pairing_ping",e),(({error:e})=>{e?i(e):r()})),yield n()}})),this.updateExpiry=e=>I(this,[e],(function*({topic:e,expiry:t}){this.isInitialized(),yield this.pairings.update(e,{expiry:t})})),this.updateMetadata=e=>I(this,[e],(function*({topic:e,metadata:t}){this.isInitialized(),yield this.pairings.update(e,{peerMetadata:t})})),this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=e=>I(this,null,(function*(){this.isInitialized(),yield this.isValidDisconnect(e);const{topic:t}=e;this.pairings.keys.includes(t)&&(yield this.sendRequest(t,"wc_pairingDelete",Object(h.w)("USER_DISCONNECTED")),yield this.deletePairing(t))})),this.sendRequest=(e,t,n)=>I(this,null,(function*(){const r=Object(m.formatJsonRpcRequest)(t,n),i=yield this.core.crypto.encode(e,r),o=dt[t].req;return this.core.history.set(e,r),this.core.relayer.publish(e,i,o),r.id})),this.sendResult=(e,t,n)=>I(this,null,(function*(){const r=Object(m.formatJsonRpcResult)(e,n),i=yield this.core.crypto.encode(t,r),o=yield this.core.history.get(t,e),a=dt[o.request.method].res;yield this.core.relayer.publish(t,i,a),yield this.core.history.resolve(r)})),this.sendError=(e,t,n)=>I(this,null,(function*(){const r=Object(m.formatJsonRpcError)(e,n),i=yield this.core.crypto.encode(t,r),o=yield this.core.history.get(t,e),a=dt[o.request.method]?dt[o.request.method].res:dt.unregistered_method.res;yield this.core.relayer.publish(t,i,a),yield this.core.history.resolve(r)})),this.deletePairing=(e,t)=>I(this,null,(function*(){yield this.core.relayer.unsubscribe(e),yield Promise.all([this.pairings.delete(e,Object(h.w)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])})),this.cleanup=()=>I(this,null,(function*(){const e=this.pairings.getAll().filter((e=>Object(h.C)(e.expiry)));yield Promise.all(e.map((e=>this.deletePairing(e.topic))))})),this.onRelayEventRequest=e=>{const{topic:t,payload:n}=e;switch(n.method){case"wc_pairingPing":return this.onPairingPingRequest(t,n);case"wc_pairingDelete":return this.onPairingDeleteRequest(t,n);default:return this.onUnknownRpcMethodRequest(t,n)}},this.onRelayEventResponse=e=>I(this,null,(function*(){const{topic:t,payload:n}=e,r=(yield this.core.history.get(t,n.id)).request.method;return"wc_pairingPing"===r?this.onPairingPingResponse(t,n):this.onUnknownRpcMethodResponse(r)})),this.onPairingPingRequest=(e,t)=>I(this,null,(function*(){const{id:n}=t;try{this.isValidPing({topic:e}),yield this.sendResult(n,e,!0),this.events.emit("pairing_ping",{id:n,topic:e})}catch(t){yield this.sendError(n,e,t),this.logger.error(t)}})),this.onPairingPingResponse=(e,t)=>{const{id:n}=t;setTimeout((()=>{Object(m.isJsonRpcResult)(t)?this.events.emit(Object(h.k)("pairing_ping",n),{}):Object(m.isJsonRpcError)(t)&&this.events.emit(Object(h.k)("pairing_ping",n),{error:t.error})}),500)},this.onPairingDeleteRequest=(e,t)=>I(this,null,(function*(){const{id:n}=t;try{this.isValidDisconnect({topic:e}),yield this.deletePairing(e),this.events.emit("pairing_delete",{id:n,topic:e})}catch(t){yield this.sendError(n,e,t),this.logger.error(t)}})),this.onUnknownRpcMethodRequest=(e,t)=>I(this,null,(function*(){const{id:n,method:r}=t;try{if(this.registeredMethods.includes(r))return;const t=Object(h.w)("WC_METHOD_UNSUPPORTED",r);yield this.sendError(n,e,t),this.logger.error(t)}catch(t){yield this.sendError(n,e,t),this.logger.error(t)}})),this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error(Object(h.w)("WC_METHOD_UNSUPPORTED",e))},this.isValidPair=e=>{if(!Object(h.U)(e)){const{message:t}=Object(h.s)("MISSING_OR_INVALID","pair() params: "+e);throw new Error(t)}if(!Object(h.cb)(e.uri)){const{message:t}=Object(h.s)("MISSING_OR_INVALID","pair() uri: "+e.uri);throw new Error(t)}},this.isValidPing=e=>I(this,null,(function*(){if(!Object(h.U)(e)){const{message:t}=Object(h.s)("MISSING_OR_INVALID","ping() params: "+e);throw new Error(t)}const{topic:t}=e;yield this.isValidPairingTopic(t)})),this.isValidDisconnect=e=>I(this,null,(function*(){if(!Object(h.U)(e)){const{message:t}=Object(h.s)("MISSING_OR_INVALID","disconnect() params: "+e);throw new Error(t)}const{topic:t}=e;yield this.isValidPairingTopic(t)})),this.isValidPairingTopic=e=>I(this,null,(function*(){if(!Object(h.bb)(e,!1)){const{message:t}=Object(h.s)("MISSING_OR_INVALID","pairing topic should be a string: "+e);throw new Error(t)}if(!this.pairings.keys.includes(e)){const{message:t}=Object(h.s)("NO_MATCHING_KEY","pairing topic doesn't exist: "+e);throw new Error(t)}if(Object(h.C)(this.pairings.get(e).expiry)){yield this.deletePairing(e);const{message:t}=Object(h.s)("EXPIRED","pairing topic: "+e);throw new Error(t)}})),this.core=e,this.logger=Object(u.generateChildLogger)(t,this.name),this.pairings=new Vt(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Object(u.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(it.message,(e=>I(this,null,(function*(){const{topic:t,message:n}=e;if(!this.pairings.keys.includes(t)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const r=yield this.core.crypto.decode(t,n);try{Object(m.isJsonRpcRequest)(r)?(this.core.history.set(t,r),this.onRelayEventRequest({topic:t,payload:r})):Object(m.isJsonRpcResponse)(r)&&(yield this.core.history.resolve(r),yield this.onRelayEventResponse({topic:t,payload:r}),this.core.history.delete(t,r.id))}catch(e){this.logger.error(e)}}))))}registerExpirerEvents(){this.core.expirer.on(yt.expired,(e=>I(this,null,(function*(){const{topic:t}=Object(h.fb)(e.target);t&&this.pairings.keys.includes(t)&&(yield this.deletePairing(t,!0),this.events.emit("pairing_expire",{topic:t}))}))))}}class Gt extends c.d{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new r.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Je,this.init=()=>I(this,null,(function*(){this.initialized||(this.logger.trace("Initialized"),yield this.restore(),this.cached.forEach((e=>this.records.set(e.id,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)})),this.set=(e,t,n)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:e,request:t,chainId:n}),this.records.has(t.id))return;const r={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:n,expiry:Object(h.c)(f.THIRTY_DAYS)};this.records.set(r.id,r),this.events.emit(ht,r)},this.resolve=e=>I(this,null,(function*(){if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:e}),!this.records.has(e.id))return;const t=yield this.getRecord(e.id);typeof t.response>"u"&&(t.response=Object(m.isJsonRpcError)(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.events.emit(pt,t))})),this.get=(e,t)=>I(this,null,(function*(){return this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:e,id:t}),yield this.getRecord(t)})),this.delete=(e,t)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:t}),this.values.forEach((n=>{if(n.topic===e){if(typeof t<"u"&&n.id!==t)return;this.records.delete(n.id),this.events.emit(ft,n)}}))},this.exists=(e,t)=>I(this,null,(function*(){return this.isInitialized(),!!this.records.has(t)&&(yield this.getRecord(t)).topic===e})),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=Object(u.generateChildLogger)(t,this.name)}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const e=[];return this.values.forEach((t=>{if(typeof t.response<"u")return;const n={topic:t.topic,request:Object(m.formatJsonRpcRequest)(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(n)})),e}setJsonRpcRecords(e){return I(this,null,(function*(){yield this.core.storage.setItem(this.storageKey,e)}))}getJsonRpcRecords(){return I(this,null,(function*(){return yield this.core.storage.getItem(this.storageKey)}))}getRecord(e){this.isInitialized();const t=this.records.get(e);if(!t){const{message:t}=Object(h.s)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t}persist(){return I(this,null,(function*(){yield this.setJsonRpcRecords(this.values),this.events.emit("history_sync")}))}restore(){return I(this,null,(function*(){try{const e=yield this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){const{message:e}=Object(h.s)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored records for "+this.name),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug("Failed to Restore records for "+this.name),this.logger.error(e)}}))}registerEventListeners(){this.events.on(ht,(e=>{const t=ht;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,record:e}),this.persist()})),this.events.on(pt,(e=>{const t=pt;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,record:e}),this.persist()})),this.events.on(ft,(e=>{const t=ft;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,record:e}),this.persist()})),this.core.heartbeat.on(s.HEARTBEAT_EVENTS.pulse,(()=>{this.cleanup()}))}cleanup(){try{this.records.forEach((e=>{Object(f.toMiliseconds)(e.expiry||0)-Date.now()<=0&&(this.logger.info("Deleting expired history log: "+e.id),this.delete(e.topic,e.id))}))}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class qt extends c.c{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new r.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Je,this.init=()=>I(this,null,(function*(){this.initialized||(this.logger.trace("Initialized"),yield this.restore(),this.cached.forEach((e=>this.expirations.set(e.target,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)})),this.has=e=>{try{const t=this.formatTarget(e);return typeof this.getExpiration(t)<"u"}catch(e){return!1}},this.set=(e,t)=>{this.isInitialized();const n=this.formatTarget(e),r={target:n,expiry:t};this.expirations.set(n,r),this.checkExpiry(n,r),this.events.emit(yt.created,{target:n,expiration:r})},this.get=e=>{this.isInitialized();const t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){const t=this.formatTarget(e),n=this.getExpiration(t);this.expirations.delete(t),this.events.emit(yt.deleted,{target:t,expiration:n})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=Object(u.generateChildLogger)(t,this.name)}get context(){return Object(u.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if("string"==typeof e)return Object(h.n)(e);if("number"==typeof e)return Object(h.l)(e);const{message:t}=Object(h.s)("UNKNOWN_TYPE","Target type: "+typeof e);throw new Error(t)}setExpirations(e){return I(this,null,(function*(){yield this.core.storage.setItem(this.storageKey,e)}))}getExpirations(){return I(this,null,(function*(){return yield this.core.storage.getItem(this.storageKey)}))}persist(){return I(this,null,(function*(){yield this.setExpirations(this.values),this.events.emit(yt.sync)}))}restore(){return I(this,null,(function*(){try{const e=yield this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){const{message:e}=Object(h.s)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored expirations for "+this.name),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug("Failed to Restore expirations for "+this.name),this.logger.error(e)}}))}getExpiration(e){const t=this.expirations.get(e);if(!t){const{message:t}=Object(h.s)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(t),new Error(t)}return t}checkExpiry(e,t){const{expiry:n}=t;Object(f.toMiliseconds)(n)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(yt.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach(((e,t)=>this.checkExpiry(t,e)))}registerEventListeners(){this.core.heartbeat.on(s.HEARTBEAT_EVENTS.pulse,(()=>this.checkExpirations())),this.events.on(yt.created,(e=>{const t=yt.created;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(yt.expired,(e=>{const t=yt.expired;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(yt.deleted,(e=>{const t=yt.deleted;this.logger.info("Emitting "+t),this.logger.debug({type:"event",event:t,data:e}),this.persist()}))}isInitialized(){if(!this.initialized){const{message:e}=Object(h.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Zt extends c.k{constructor(t,n){super(t,n),this.projectId=t,this.logger=n,this.name=mt,this.initialized=!1,this.init=e=>I(this,null,(function*(){Object(h.F)()||!Object(h.A)()||(this.verifyUrl=(null==e?void 0:e.verifyUrl)||gt,yield this.createIframe())})),this.register=e=>I(this,null,(function*(){var t;if(this.initialized||(yield this.init()),this.iframe)try{null==(t=this.iframe.contentWindow)||t.postMessage(e.attestationId,this.verifyUrl),this.logger.info(`postMessage sent: ${e.attestationId} ${this.verifyUrl}`)}catch(e){}})),this.resolve=e=>I(this,null,(function*(){var t;if(this.isDevEnv)return"";this.logger.info("resolving attestation: "+e.attestationId);const n=this.startAbortTimer(f.FIVE_SECONDS),r=yield fetch(`${this.verifyUrl}/attestation/${e.attestationId}`,{signal:this.abortController.signal});return clearTimeout(n),200===r.status?null==(t=yield r.json())?void 0:t.origin:""})),this.createIframe=()=>I(this,null,(function*(){try{yield Promise.race([new Promise(((e,t)=>{if(document.getElementById(mt))return e();const n=document.createElement("iframe");n.setAttribute("id",mt),n.setAttribute("src",`${this.verifyUrl}/${this.projectId}`),n.style.display="none",n.addEventListener("load",(()=>{this.initialized=!0,e()})),n.addEventListener("error",(e=>{t(e)})),document.body.append(n),this.iframe=n})),new Promise((e=>{setTimeout((()=>e("iframe load timeout")),Object(f.toMiliseconds)(f.ONE_SECOND/2))}))])}catch(e){this.logger.error("Verify iframe failed to load: "+this.verifyUrl),this.logger.error(e)}})),this.logger=Object(u.generateChildLogger)(n,this.name),this.verifyUrl=gt,this.abortController=new AbortController,this.isDevEnv=Object(h.D)()&&e.env.IS_VITEST}get context(){return Object(u.getLoggerContext)(this.logger)}startAbortTimer(e){return setTimeout((()=>this.abortController.abort()),Object(f.toMiliseconds)(e))}}var Jt=Object.defineProperty,Xt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,en=(e,t,n)=>t in e?Jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tn=(e,t)=>{for(var n in t||(t={}))Kt.call(t,n)&&en(e,n,t[n]);if(Xt)for(var n of Xt(t))$t.call(t,n)&&en(e,n,t[n]);return e};class nn extends c.a{constructor(e){super(e),this.protocol="wc",this.version=2,this.name="core",this.events=new r.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.projectId=null==e?void 0:e.projectId,this.relayUrl=(null==e?void 0:e.relayUrl)||nt;const t=typeof(null==e?void 0:e.logger)<"u"&&"string"!=typeof(null==e?void 0:e.logger)?e.logger:Object(u.pino)(Object(u.getDefaultLoggerOptions)({level:(null==e?void 0:e.logger)||"error"}));this.logger=Object(u.generateChildLogger)(t,this.name),this.heartbeat=new s.HeartBeat,this.crypto=new bt(this,this.logger,null==e?void 0:e.keychain),this.history=new Gt(this,this.logger),this.expirer=new qt(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new a.a(tn(tn({},Xe),null==e?void 0:e.storageOptions)),this.relayer=new Bt({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Ht(this,this.logger),this.verify=new Zt(this.projectId||"",this.logger)}static init(e){return I(this,null,(function*(){const t=new nn(e);yield t.initialize();const n=yield t.crypto.getClientId();return yield t.storage.setItem("WALLETCONNECT_CLIENT_ID",n),t}))}get context(){return Object(u.getLoggerContext)(this.logger)}start(){return I(this,null,(function*(){this.initialized||(yield this.initialize())}))}initialize(){return I(this,null,(function*(){this.logger.trace("Initialized");try{yield this.crypto.init(),yield this.history.init(),yield this.expirer.init(),yield this.relayer.init(),yield this.heartbeat.init(),yield this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn("Core Initialization Failure at epoch "+Date.now(),e),this.logger.error(e.message),e}}))}}const rn=nn}).call(this,n(31))},function(e,t,n){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return f}));var r=n(19),i=n(6),o=n.n(i);class a extends r.IEvents{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class s extends r.IEvents{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class u{constructor(e,t){this.logger=e,this.core=t}}class c extends r.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}}class l extends r.IEvents{constructor(e){super()}}class d{constructor(e,t,n,r){this.core=e,this.logger=t,this.name=n}}class h extends r.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}}class p extends r.IEvents{constructor(e,t){super(),this.core=e,this.logger=t}}class f{constructor(e,t){this.projectId=e,this.logger=t}}o.a;class y{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}i.EventEmitter;class m{constructor(e){this.client=e}}},function(e,t,n){n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return h})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return y})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return v})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return M})),n.d(t,"__makeTemplateObject",(function(){return A})),n.d(t,"__importStar",(function(){return E})),n.d(t,"__importDefault",(function(){return N})),n.d(t,"__classPrivateFieldGet",(function(){return T})),n.d(t,"__classPrivateFieldSet",(function(){return I})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -63,7 +64,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof v?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function M(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function N(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;tt in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(i)for(var n of i(t))a.call(t,n)&&s(e,n,t[n]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(97),l=n(16);class d{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class h{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return f(this,e)}}class p{constructor(e){this.decoders=e}or(e){return f(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const f=(e,t)=>new p(u(u({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t}));class y{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new d(e,t,n),this.decoder=new h(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const m=({name:e,prefix:t,encode:n,decode:r})=>new y(e,t,n,r);t.Codec=y,t.baseX=({prefix:e,name:t,alphabet:n})=>{const{encode:r,decode:i}=c(n,t);return m({prefix:e,name:t,encode:r,decode:e=>l.coerce(i(e))})},t.from=m,t.or=f,t.rfc4648=({name:e,prefix:t,bitsPerChar:n,alphabet:r})=>m({prefix:t,name:e,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],i=(1<n;)a-=n,o+=t[i&s>>a];if(a&&(o+=t[i&s<((e,t,n,r)=>{const i={};for(let e=0;e=8&&(s-=8,a[c++]=255&u>>s)}if(s>=n||255&u<<8-s)throw new SyntaxError("Unexpected end of data");return a})(t,r,n,e)})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(32);t.fromString=function(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode(`${n.prefix}${e}`):i.asUint8Array(globalThis.Buffer.from(e,"utf-8"))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=new Uint8Array(0);t.coerce=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},t.empty=r,t.equals=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n{const t=e.match(/../g);return t?new Uint8Array(t.map((e=>parseInt(e,16)))):r},t.fromString=e=>(new TextEncoder).encode(e),t.isBinary=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),t.toHex=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),""),t.toString=e=>(new TextDecoder).decode(e)},function(e,t,n){n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return p}));var r=n(40),i=n(18),o=n(15),a=n(3);function s(e){return function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return JSON.parse(e)}catch(t){return e}}(Object(i.toString)(Object(o.fromString)(e,a.g),a.e))}function u(e){return Object(i.toString)(Object(o.fromString)("string"==typeof(t=e)?t:JSON.stringify(t),a.e),a.g);var t}function c(e){const t=Object(o.fromString)(a.m,a.l),n=a.k+Object(i.toString)(Object(r.concat)([t,e]),a.l);return[a.d,a.c,n].join(a.b)}function l(e){const[t,n,r]=e.split(a.b);if(t!==a.d||n!==a.c)throw new Error('Issuer must be a DID with method "key"');if(r.slice(0,1)!==a.k)throw new Error("Issuer must be a key in mulicodec format");const s=Object(o.fromString)(r.slice(1),a.l);if(Object(i.toString)(s.slice(0,2),a.l)!==a.m)throw new Error('Issuer must be a public key with type "Ed25519"');const u=s.slice(2);if(u.length!==a.n)throw new Error("Issuer must be a public key with length 32 bytes");return u}function d(e){return Object(o.fromString)([u(e.header),u(e.payload)].join(a.f),a.a)}function h(e){return[u(e.header),u(e.payload),(t=e.signature,Object(i.toString)(t,a.g))].join(a.f);var t}function p(e){const t=e.split(a.f);var n;return{header:s(t[0]),payload:s(t[1]),signature:(n=t[2],Object(o.fromString)(n,a.g)),data:Object(o.fromString)(t.slice(0,2).join(a.f),a.a)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(49);t.toString=function(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},function(e,t,n){n.r(t),n.d(t,"IEvents",(function(){return r}));class r{}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const r=n(89),i=n(26),o=n(12);function a(e,n=t.defaultRandomSource){return n.randomBytes(e)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=a,t.randomUint32=function(e=t.defaultRandomSource){const n=a(4,e),r=(0,i.readUint32LE)(n);return(0,o.wipe)(n),r};const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function u(e,n=s,r=t.defaultRandomSource){if(n.length<2)throw new Error("randomString charset is too short");if(n.length>256)throw new Error("randomString charset is too long");let i="";const u=n.length,c=256-256%u;for(;e>0;){const t=a(Math.ceil(256*e/c),r);for(let r=0;r0;r++){const o=t[r];ot.code===e))||r.f[r.a]}function s(e,t,n){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${n} RPC url at ${t}`):e}},function(e,t,n){function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function i(e){const t=r(e);if(!t)throw new Error(e+" is not defined in Window");return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=i,t.getDocumentOrThrow=function(){return i("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return i("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return i("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return i("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return i("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},function(e,t,n){function r(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return(e=>{const t=e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(t,((e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t))})(e)}catch(t){return e}}function i(e){return"string"==typeof e?e:(t=e,JSON.stringify(t,((e,t)=>"bigint"==typeof t?t.toString()+"n":t))||"");var t}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(75),t),r.__exportStar(n(45),t),r.__exportStar(n(46),t)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(93);function i(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function o(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function u(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function l(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function h(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),l(e/4294967296>>>0,t,n),l(e>>>0,t,n+4),t}function p(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),d(e>>>0,t,n),d(e/4294967296>>>0,t,n+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=o,t.writeInt16LE=o,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=u,t.readUint32LE=c,t.writeUint32BE=l,t.writeInt32BE=l,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var n=a(e,t),r=a(e,t+4);return 4294967296*n+r-4294967296*(r>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var n=u(e,t);return 4294967296*u(e,t+4)+n-4294967296*(n>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var n=c(e,t);return 4294967296*c(e,t+4)+n},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=p,t.writeInt64LE=p,t.readUintBE=function(e,t,n){if(void 0===n&&(n=0),e%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,i=1,o=e/8+n-1;o>=n;o--)r+=t[o]*i,i*=256;return r},t.readUintLE=function(e,t,n){if(void 0===n&&(n=0),e%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,i=1,o=n;o=i;a--)n[a]=t/o&255,o*=256;return n},t.writeUintLE=function(e,t,n,i){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,a=i;a{const n=t.byteLength,r=i.encodingLength(e),a=r+i.encodingLength(n),s=new Uint8Array(a+n);return i.encodeTo(e,s,0),i.encodeTo(n,s,r),s.set(t,a),new o(e,n,t,s)},t.decode=e=>{const t=r.coerce(e),[n,a]=i.decode(t),[s,u]=i.decode(t.subarray(a)),c=t.subarray(a+u);if(c.byteLength!==s)throw new Error("Incorrect length");return new o(n,s,c,t)},t.equals=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&r.equals(e.bytes,t.bytes)},function(e,t,n){var r=n(48);n.d(t,"generateKeyPair",(function(){return r.a})),n.d(t,"signJWT",(function(){return r.b})),n(3);var i=n(53);n.o(i,"encodeIss")&&n.d(t,"encodeIss",(function(){return i.encodeIss}));var o=n(17);n.d(t,"encodeIss",(function(){return o.d}))},function(e,t,n){(function(e){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}));const r=()=>"undefined"!=typeof WebSocket?WebSocket:void 0!==e&&void 0!==e.WebSocket?e.WebSocket:"undefined"!=typeof window&&void 0!==window.WebSocket?window.WebSocket:"undefined"!=typeof self&&void 0!==self.WebSocket?self.WebSocket:n(116),i=()=>"undefined"!=typeof WebSocket||void 0!==e&&void 0!==e.WebSocket||"undefined"!=typeof window&&void 0!==window.WebSocket||"undefined"!=typeof self&&void 0!==self.WebSocket,o=e=>e.split("?")[0]}).call(this,n(25))},function(e,t,n){const r=n(122),i=n(123),o=n(124),a=n(125),s=Symbol("encodeFragmentIdentifier");function u(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?i(e):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function f(e,t){u((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&l(n,e).includes(e.arrayFormatSeparator);n=o?l(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>l(t,e))):null===n?n:l(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?l(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>l(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:l(a,t),n(l(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=p(n[e],t);else r[e]=p(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort(((e,t)=>Number(e)-Number(t))).map((e=>t[e])):t}(n):e[t]=n,e}),Object.create(null))}t.extract=h,t.parse=f,t.stringify=(e,t)=>{if(!e)return"";u((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:f(h(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=d(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let u=t.stringify(a,n);u&&(u="?"+u);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l="#"+(n[s]?c(e.fragmentIdentifier,n):e.fragmentIdentifier)),`${r}${u}${l}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:u}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:u},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=s(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d1)for(var n=1;n[r.decode(e,t),r.decode.bytes],t.encodeTo=(e,t,n=0)=>(r.encode(e,t,n),t),t.encodingLength=e=>r.encodingLength(e)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(114),t),r.__exportStar(n(115),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.convertSecretKeyToX25519=t.convertPublicKeyToX25519=t.verify=t.sign=t.extractPublicKeyFromSecretKey=t.generateKeyPair=t.generateKeyPairFromSeed=t.SEED_LENGTH=t.SECRET_KEY_LENGTH=t.PUBLIC_KEY_LENGTH=t.SIGNATURE_LENGTH=void 0;const r=n(20),i=n(94),o=n(12);function a(e){const t=new Float64Array(16);if(e)for(let n=0;n>16&1),n[e-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,m(r,n,1-e)}for(let t=0;t<16;t++)e[2*t]=255&r[t],e[2*t+1]=r[t]>>8}function v(e,t){let n=0;for(let r=0;r<32;r++)n|=e[r]^t[r];return(1&n-1>>>8)-1}function b(e,t){const n=new Uint8Array(32),r=new Uint8Array(32);return g(n,e),g(r,t),v(n,r)}function w(e){const t=new Uint8Array(32);return g(t,e),1&t[0]}function M(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]+n[r]}function A(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]-n[r]}function E(e,t,n){let r,i,o=0,a=0,s=0,u=0,c=0,l=0,d=0,h=0,p=0,f=0,y=0,m=0,g=0,v=0,b=0,w=0,M=0,A=0,E=0,T=0,N=0,I=0,k=0,L=0,x=0,S=0,j=0,C=0,D=0,O=0,z=0,_=n[0],P=n[1],R=n[2],B=n[3],U=n[4],W=n[5],Q=n[6],Y=n[7],F=n[8],V=n[9],H=n[10],G=n[11],q=n[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v+=38*O,b+=38*z,i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,o+=i-1+37*(i-1),i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=u,e[4]=c,e[5]=l,e[6]=d,e[7]=h,e[8]=p,e[9]=f,e[10]=y,e[11]=m,e[12]=g,e[13]=v,e[14]=b,e[15]=w}function T(e,t){E(e,t,t)}function N(e,t){const n=a();let r;for(r=0;r<16;r++)n[r]=t[r];for(r=253;r>=0;r--)T(n,n),2!==r&&4!==r&&E(n,n,t);for(r=0;r<16;r++)e[r]=n[r]}function I(e,t){const n=a(),r=a(),i=a(),o=a(),s=a(),u=a(),c=a(),d=a(),h=a();A(n,e[1],e[0]),A(h,t[1],t[0]),E(n,n,h),M(r,e[0],e[1]),M(h,t[0],t[1]),E(r,r,h),E(i,e[3],t[3]),E(i,i,l),E(o,e[2],t[2]),M(o,o,o),A(s,r,n),A(u,o,i),M(c,o,i),M(d,r,n),E(e[0],s,u),E(e[1],d,c),E(e[2],c,u),E(e[3],s,d)}function k(e,t,n){for(let r=0;r<4;r++)m(e[r],t[r],n)}function L(e,t){const n=a(),r=a(),i=a();N(i,t[2]),E(n,t[0],i),E(r,t[1],i),g(e,r),e[31]^=w(n)<<7}function x(e,t,n){f(e[0],s),f(e[1],u),f(e[2],u),f(e[3],s);for(let r=255;r>=0;--r){const i=n[r/8|0]>>(7&r)&1;k(e,t,i),I(t,e),I(e,e),k(e,t,i)}}function S(e,t){const n=[a(),a(),a(),a()];f(n[0],d),f(n[1],h),f(n[2],u),E(n[3],d,h),x(e,n,t)}function j(e){if(e.length!==t.SEED_LENGTH)throw new Error(`ed25519: seed must be ${t.SEED_LENGTH} bytes`);const n=(0,i.hash)(e);n[0]&=248,n[31]&=127,n[31]|=64;const r=new Uint8Array(32),o=[a(),a(),a(),a()];S(o,n),L(r,o);const s=new Uint8Array(64);return s.set(e),s.set(r,32),{publicKey:r,secretKey:s}}t.generateKeyPairFromSeed=j,t.generateKeyPair=function(e){const t=(0,r.randomBytes)(32,e),n=j(t);return(0,o.wipe)(t),n},t.extractPublicKeyFromSecretKey=function(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${t.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))};const C=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function D(e,t){let n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i>4)*C[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*C[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function O(e){const t=new Float64Array(64);for(let n=0;n<64;n++)t[n]=e[n];for(let t=0;t<64;t++)e[t]=0;D(e,t)}function z(e,t){const n=a(),r=a(),i=a(),o=a(),l=a(),d=a(),h=a();return f(e[2],u),function(e,t){for(let n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}(e[1],t),T(i,e[1]),E(o,i,c),A(i,i,e[2]),M(o,e[2],o),T(l,o),T(d,l),E(h,d,l),E(n,h,i),E(n,n,o),function(e,t){const n=a();let r;for(r=0;r<16;r++)n[r]=t[r];for(r=250;r>=0;r--)T(n,n),1!==r&&E(n,n,t);for(r=0;r<16;r++)e[r]=n[r]}(n,n),E(n,n,i),E(n,n,o),E(n,n,o),E(e[0],n,o),T(r,e[0]),E(r,r,o),b(r,i)&&E(e[0],e[0],p),T(r,e[0]),E(r,r,o),b(r,i)?-1:(w(e[0])===t[31]>>7&&A(e[0],s,e[0]),E(e[3],e[0],e[1]),0)}t.sign=function(e,t){const n=new Float64Array(64),r=[a(),a(),a(),a()],o=(0,i.hash)(e.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;const s=new Uint8Array(64);s.set(o.subarray(32),32);const u=new i.SHA512;u.update(s.subarray(32)),u.update(t);const c=u.digest();u.clean(),O(c),S(r,c),L(s,r),u.reset(),u.update(s.subarray(0,32)),u.update(e.subarray(32)),u.update(t);const l=u.digest();O(l);for(let e=0;e<32;e++)n[e]=c[e];for(let e=0;e<32;e++)for(let t=0;t<32;t++)n[e+t]+=l[e]*o[t];return D(s.subarray(32),n),s},t.verify=function(e,n,r){const o=new Uint8Array(32),s=[a(),a(),a(),a()],u=[a(),a(),a(),a()];if(r.length!==t.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${t.SIGNATURE_LENGTH} bytes`);if(z(u,e))return!1;const c=new i.SHA512;c.update(r.subarray(0,32)),c.update(e),c.update(n);const l=c.digest();return O(l),x(s,u,l),S(u,r.subarray(32)),I(s,u),L(o,s),!v(r,o)},t.convertPublicKeyToX25519=function(e){let t=[a(),a(),a(),a()];if(z(t,e))throw new Error("Ed25519: invalid public key");let n=a(),r=a(),i=t[1];M(n,u,i),A(r,u,i),N(r,r),E(n,n,r);let o=new Uint8Array(32);return g(o,n),o},t.convertSecretKeyToX25519=function(e){const t=(0,i.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;const n=new Uint8Array(t.subarray(0,32));return(0,o.wipe)(t),n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),i=n(12);t.DIGEST_LENGTH=32,t.BLOCK_SIZE=64;var o=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=s(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,i=t/536870912|0,o=t<<3,a=t%64<56?64:128;this._buffer[n]=128;for(var u=n+1;u0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA256=o;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(e,t,n,i,o){for(;o>=64;){for(var s=t[0],u=t[1],c=t[2],l=t[3],d=t[4],h=t[5],p=t[6],f=t[7],y=0;y<16;y++){var m=i+4*y;e[y]=r.readUint32BE(n,m)}for(y=16;y<64;y++){var g=e[y-2],v=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10,b=((g=e[y-15])>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;e[y]=(v+e[y-7]|0)+(b+e[y-16]|0)}for(y=0;y<64;y++)v=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&p)|0)+(f+(a[y]+e[y]|0)|0)|0,b=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&u^s&c^u&c)|0,f=p,p=h,h=d,d=l+v|0,l=c,c=u,u=s,s=v+b|0;t[0]+=s,t[1]+=u,t[2]+=c,t[3]+=l,t[4]+=d,t[5]+=h,t[6]+=p,t[7]+=f,i+=64,o-=64}return i}t.hash=function(e){var t=new o;t.update(e);var n=t.digest();return t.clean(),n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(32);t.alloc=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.alloc?r.asUint8Array(globalThis.Buffer.alloc(e)):new Uint8Array(e)},t.allocUnsafe=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?r.asUint8Array(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(27);class i{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?r.create(this.code,t):t.then((e=>r.create(this.code,e)))}throw Error("Unknown type, must be binary type")}}t.Hasher=i,t.from=({name:e,code:t,encode:n})=>new i(e,t,n)},function(e,t,n){function r(e,t){if(e.length!==t.length)return 0;for(var n=0,r=0;r>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,n){return~(e-1)&t|e-1&n},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(37),i=n(32);t.concat=function(e,t){t||(t=e.reduce(((e,t)=>e+t.length),0));const n=r.allocUnsafe(t);let o=0;for(const t of e)n.set(t,o),o+=t.length;return i.asUint8Array(n)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(118),i=n(119),o=n(12),a=n(26),s=n(39);t.KEY_LENGTH=32,t.NONCE_LENGTH=12,t.TAG_LENGTH=16;var u=new Uint8Array(16),c=function(){function e(e){if(this.nonceLength=t.NONCE_LENGTH,this.tagLength=t.TAG_LENGTH,e.length!==t.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var a=new Uint8Array(16);a.set(e,a.length-e.length);var s=new Uint8Array(32);r.stream(this._key,a,s,4);var u,c=t.length+this.tagLength;if(i){if(i.length!==c)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(c);return r.streamXOR(this._key,a,t,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),s,u.subarray(0,u.length-this.tagLength),n),o.wipe(a),u},e.prototype.open=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&s.update(u.subarray(r.length%16))),s.update(n),n.length%16>0&&s.update(u.subarray(n.length%16));var c=new Uint8Array(8);r&&a.writeUint64LE(r.length,c),s.update(c),a.writeUint64LE(n.length,c),s.update(c);for(var l=s.digest(),d=0;d=0;--e){const t=n[e>>>3]>>>(7&e)&1;c(i,a,t),c(f,y,t),l(m,i,f),d(i,i,f),l(f,a,y),d(a,a,y),p(y,m),p(g,i),h(i,f,i),h(f,a,m),l(m,i,f),d(i,i,f),p(a,i),d(f,y,g),h(i,f,s),l(i,i,y),h(f,f,i),h(i,y,g),h(y,a,r),p(a,m),c(i,a,t),c(f,y,t)}for(let e=0;e<16;e++)r[e+16]=i[e],r[e+32]=f[e],r[e+48]=a[e],r[e+64]=y[e];const v=r.subarray(32),b=r.subarray(16);!function(e,t){const n=o();for(let e=0;e<16;e++)n[e]=t[e];for(let e=253;e>=0;e--)p(n,n),2!==e&&4!==e&&h(n,n,t);for(let t=0;t<16;t++)e[t]=n[t]}(v,v),h(b,b,v);const w=new Uint8Array(32);return function(e,t){const n=o(),r=o();for(let e=0;e<16;e++)r[e]=t[e];u(r),u(r),u(r);for(let e=0;e<2;e++){n[0]=r[0]-65517;for(let e=1;e<15;e++)n[e]=r[e]-65535-(n[e-1]>>16&1),n[e-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,c(r,n,1-e)}for(let t=0;t<16;t++)e[2*t]=255&r[t],e[2*t+1]=r[t]>>8}(w,b),w}function y(e){return f(e,a)}function m(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${t.SECRET_KEY_LENGTH} bytes`);const n=new Uint8Array(e);return{publicKey:y(n),secretKey:n}}t.scalarMult=f,t.scalarMultBase=y,t.generateKeyPairFromSeed=m,t.generateKeyPair=function(e){const t=(0,r.randomBytes)(32,e),n=m(t);return(0,i.wipe)(t),n},t.sharedKey=function(e,n,r=!1){if(e.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(n.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const i=f(e,n);if(r){let e=0;for(let t=0;tvoid 0===t?null:t))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(79),t),r.__exportStar(n(80),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n(11).__exportStar(n(84),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n(11).__exportStar(n(85),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PINO_CUSTOM_CONTEXT_KEY=t.PINO_LOGGER_DEFAULTS=void 0,t.PINO_LOGGER_DEFAULTS={level:"info"},t.PINO_CUSTOM_CONTEXT_KEY="custom_context"},function(e,t,n){n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(35),i=n(20),o=n(1),a=n(3),s=n(17),u=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));function c(e=Object(i.randomBytes)(a.j)){return r.generateKeyPairFromSeed(e)}function l(e,t,n,i){return u(this,arguments,(function*(e,t,n,i,u=Object(o.fromMiliseconds)(Date.now())){const c={alg:a.h,typ:a.i},l={iss:Object(s.d)(i.publicKey),sub:e,aud:t,iat:u,exp:u+n},d=Object(s.c)({header:c,payload:l}),h=r.sign(i.secretKey,d);return Object(s.e)({header:c,payload:l,signature:h})}))}},function(e,t,n){var r=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=n(95),c=n(37);function l(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const d=l("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),h=l("ascii","a",(e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=c.allocUnsafe(e.length);for(let n=0;n{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(i)for(var n of i(t))a.call(t,n)&&s(e,n,t[n]);return e})({utf8:d,"utf-8":d,hex:u.bases.base16,latin1:h,ascii:h,binary:h},u.bases);e.exports=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);const i=r.rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),o=r.rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),a=r.rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),s=r.rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),u=r.rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),c=r.rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),l=r.rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),d=r.rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),h=r.rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});t.base32=i,t.base32hex=u,t.base32hexpad=l,t.base32hexpadupper=d,t.base32hexupper=c,t.base32pad=a,t.base32padupper=s,t.base32upper=o,t.base32z=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);const i=r.baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),o=r.baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});t.base58btc=i,t.base58flickr=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(33),i=n(27),o=n(51),a=n(50),s=n(16);class u{constructor(e,t,n,r){this.code=t,this.version=e,this.multihash=n,this.bytes=r,this.byteOffset=r.byteOffset,this.byteLength=r.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:g,byteLength:g,code:m,version:m,multihash:m,bytes:m,_baseCache:g,asCID:g})}toV0(){if(0===this.version)return this;{const{code:e,multihash:t}=this;if(e!==h)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==p)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return u.createV0(t)}}toV1(){switch(this.version){case 0:{const{code:e,digest:t}=this.multihash,n=i.create(e,t);return u.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&i.equals(this.multihash,e.multihash)}toString(e){const{bytes:t,version:n,_baseCache:r}=this;return 0===n?l(t,r,e||o.base58btc.encoder):d(t,r,e||a.base32.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return v(/^0\.0/,b),!(!e||!e[y]&&e.asCID!==e)}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof u)return e;if(null!=e&&e.asCID===e){const{version:t,code:n,multihash:r,bytes:i}=e;return new u(t,n,r,i||f(t,n,r.bytes))}if(null!=e&&!0===e[y]){const{version:t,multihash:n,code:r}=e,o=i.decode(n);return u.create(t,r,o)}return null}static create(e,t,n){if("number"!=typeof t)throw new Error("String codecs are no longer supported");switch(e){case 0:if(t!==h)throw new Error(`Version 0 CID must use dag-pb (code: ${h}) block encoding`);return new u(e,t,n,n.bytes);case 1:{const r=f(e,t,n.bytes);return new u(e,t,n,r)}default:throw new Error("Invalid version")}}static createV0(e){return u.create(0,h,e)}static createV1(e,t){return u.create(1,e,t)}static decode(e){const[t,n]=u.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){const t=u.inspectBytes(e),n=t.size-t.multihashSize,r=s.coerce(e.subarray(n,n+t.multihashSize));if(r.byteLength!==t.multihashSize)throw new Error("Incorrect length");const o=r.subarray(t.multihashSize-t.digestSize),a=new i.Digest(t.multihashCode,t.digestSize,o,r);return[0===t.version?u.createV0(a):u.createV1(t.codec,a),e.subarray(t.size)]}static inspectBytes(e){let t=0;const n=()=>{const[n,i]=r.decode(e.subarray(t));return t+=i,n};let i=n(),o=h;if(18===i?(i=0,t=0):1===i&&(o=n()),0!==i&&1!==i)throw new RangeError("Invalid CID version "+i);const a=t,s=n(),u=n(),c=t+u;return{version:i,codec:o,multihashCode:s,digestSize:u,multihashSize:c-a,size:c}}static parse(e,t){const[n,r]=c(e,t),i=u.decode(r);return i._baseCache.set(n,e),i}}const c=(e,t)=>{switch(e[0]){case"Q":{const n=t||o.base58btc;return[o.base58btc.prefix,n.decode(`${o.base58btc.prefix}${e}`)]}case o.base58btc.prefix:{const n=t||o.base58btc;return[o.base58btc.prefix,n.decode(e)]}case a.base32.prefix:{const n=t||a.base32;return[a.base32.prefix,n.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},l=(e,t,n)=>{const{prefix:r}=n;if(r!==o.base58btc.prefix)throw Error(`Cannot string encode V0 in ${n.name} encoding`);const i=t.get(r);if(null==i){const i=n.encode(e).slice(1);return t.set(r,i),i}return i},d=(e,t,n)=>{const{prefix:r}=n,i=t.get(r);if(null==i){const i=n.encode(e);return t.set(r,i),i}return i},h=112,p=18,f=(e,t,n)=>{const i=r.encodingLength(e),o=i+r.encodingLength(t),a=new Uint8Array(o+n.byteLength);return r.encodeTo(e,a,0),r.encodeTo(t,a,i),a.set(n,o),a},y=Symbol.for("@ipld/js-cid/CID"),m={writable:!1,configurable:!1,enumerable:!0},g={writable:!1,enumerable:!1,configurable:!1},v=(e,t)=>{if(!e.test("0.0.0-dev"))throw new Error(t);console.warn(t)},b="CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n // Make sure to use cid instead of value\n doSomethingWithCID(cid)\n}\n";t.CID=u},function(e,t){},function(e,t,n){var r=n(34);n.o(r,"IJsonRpcProvider")&&n.d(t,"IJsonRpcProvider",(function(){return r.IJsonRpcProvider})),n.o(r,"formatJsonRpcError")&&n.d(t,"formatJsonRpcError",(function(){return r.formatJsonRpcError})),n.o(r,"formatJsonRpcRequest")&&n.d(t,"formatJsonRpcRequest",(function(){return r.formatJsonRpcRequest})),n.o(r,"formatJsonRpcResult")&&n.d(t,"formatJsonRpcResult",(function(){return r.formatJsonRpcResult})),n.o(r,"getBigIntRpcId")&&n.d(t,"getBigIntRpcId",(function(){return r.getBigIntRpcId})),n.o(r,"isJsonRpcError")&&n.d(t,"isJsonRpcError",(function(){return r.isJsonRpcError})),n.o(r,"isJsonRpcRequest")&&n.d(t,"isJsonRpcRequest",(function(){return r.isJsonRpcRequest})),n.o(r,"isJsonRpcResponse")&&n.d(t,"isJsonRpcResponse",(function(){return r.isJsonRpcResponse})),n.o(r,"isJsonRpcResult")&&n.d(t,"isJsonRpcResult",(function(){return r.isJsonRpcResult})),n.o(r,"isLocalhostUrl")&&n.d(t,"isLocalhostUrl",(function(){return r.isLocalhostUrl})),n.o(r,"isReactNative")&&n.d(t,"isReactNative",(function(){return r.isReactNative})),n.o(r,"isWsUrl")&&n.d(t,"isWsUrl",(function(){return r.isWsUrl})),r.isNode},function(e,t,n){n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(21),i=n(7);function o(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function a(e=6){return BigInt(o(e))}function s(e,t,n){return{id:n||o(),jsonrpc:"2.0",method:e,params:t}}function u(e,t){return{id:e,jsonrpc:"2.0",result:t}}function c(e,t,n){return{id:e,jsonrpc:"2.0",error:l(t,n)}}function l(e,t){return void 0===e?Object(r.a)(i.b):("string"==typeof e&&(e=Object.assign(Object.assign({},Object(r.a)(i.d)),{message:e})),void 0!==t&&(e.data=t),Object(r.c)(e.code)&&(e=Object(r.b)(e.code)),e)}},function(e,t,n){},function(e,t,n){function r(e){return function(e,t){const n=function(e){const t=e.match(new RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==n&&new RegExp(t).test(n)}(e,"^wss?:")}function i(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){function r(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function i(e){return r(e)&&"method"in e}function o(e){return r(e)&&(a(e)||s(e))}function a(e){return"result"in e}function s(e){return"error"in e}n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s}))},function(e,t){},function(e,t,n){n(8),n(13)},function(e,t,n){n.d(t,"a",(function(){return r}));const r={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}}},function(e,t,n){n.d(t,"a",(function(){return r}));class r extends class extends class{}{constructor(){super()}}{constructor(e){super()}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.KeyValueStorage=void 0;const r=n(11),i=n(43),o=r.__importDefault(n(71)),a=n(72);class s{constructor(){this.localStorage=o.default}getKeys(){return r.__awaiter(this,void 0,void 0,(function*(){return Object.keys(this.localStorage)}))}getEntries(){return r.__awaiter(this,void 0,void 0,(function*(){return Object.entries(this.localStorage).map(a.parseEntry)}))}getItem(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.localStorage.getItem(e);if(null!==t)return i.safeJsonParse(t)}))}setItem(e,t){return r.__awaiter(this,void 0,void 0,(function*(){this.localStorage.setItem(e,i.safeJsonStringify(t))}))}removeItem(e){return r.__awaiter(this,void 0,void 0,(function*(){this.localStorage.removeItem(e)}))}}t.KeyValueStorage=s,t.default=s},function(e,t,n){(function(e,n){var r="[object Arguments]",i="[object Map]",o="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[r]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[i]=c["[object Number]"]=c[o]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var l="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,h=l||d||Function("return this")(),p=t&&!t.nodeType&&t,f=p&&"object"==typeof n&&n&&!n.nodeType&&n,y=f&&f.exports===p,m=y&&l.process,g=function(){try{return m&&m.binding&&m.binding("util")}catch(e){}}(),v=g&&g.isTypedArray;function b(e,t){for(var n=-1,r=null==e?0:e.length;++ns))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var l=-1,d=!0,h=2&n?new oe:void 0;for(o.set(e,t),o.set(t,e);++l-1},re.prototype.set=function(e,t){var n=this.__data__,r=se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(F||re),string:new ne}},ie.prototype.delete=function(e){var t=pe(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return pe(this,e).get(e)},ie.prototype.has=function(e){return pe(this,e).has(e)},ie.prototype.set=function(e,t){var n=pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},oe.prototype.add=oe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oe.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new re,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!F||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(r)}return n.set(e,t),this.size=n.size,this};var ye=U?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ie(e){return null!=e&&"object"==typeof e}var ke=v?function(e){return function(t){return e(t)}}(v):function(e){return Ie(e)&&Te(e.length)&&!!c[ue(e)]};function Le(e){return null!=(t=e)&&Te(t.length)&&!Ee(t)?function(e,t){var n=Me(e),r=!n&&we(e),i=!n&&!r&&Ae(e),o=!n&&!r&&!i&&ke(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;nr.getAttribute(e))).filter((e=>!!e&&t.includes(e)));if(i.length&&i){const e=r.getAttribute("content");if(e)return e}}return""}const i=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),r=[];for(let e=0;e-1){const e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const r=t.pathname.split("/");r.pop(),n+=r.join("/")+"/"+e}r.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;r.push(n)}else r.push(e)}}return r}(),name:i}}},function(e,t,n){var r=n(59);n.o(r,"RELAY_JSONRPC")&&n.d(t,"RELAY_JSONRPC",(function(){return r.RELAY_JSONRPC})),n(60);var i=n(61);n.d(t,"RELAY_JSONRPC",(function(){return i.a})),n(13)},function(e,t,n){(function(e){n.d(t,"a",(function(){return h}));var r=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;inew Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));class a extends i.IJsonRpcProvider{constructor(e){super(e),this.events=new r.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}connect(){return o(this,arguments,(function*(e=this.connection){yield this.open(e)}))}disconnect(){return o(this,null,(function*(){yield this.close()}))}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}request(e,t){return o(this,null,(function*(){return this.requestStrict(Object(i.formatJsonRpcRequest)(e.method,e.params||[],e.id||Object(i.getBigIntRpcId)().toString()),t)}))}requestStrict(e,t){return o(this,null,(function*(){return new Promise(((n,r)=>o(this,null,(function*(){if(!this.connection.connected)try{yield this.open()}catch(e){r(e)}this.events.on(""+e.id,(e=>{Object(i.isJsonRpcError)(e)?r(e.error):n(e.result)}));try{yield this.connection.send(e,t)}catch(e){r(e)}}))))}))}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),Object(i.isJsonRpcResponse)(e)?this.events.emit(""+e.id,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}open(){return o(this,arguments,(function*(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(yield this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),yield this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}))}close(){return o(this,null,(function*(){yield this.connection.close()}))}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",(e=>this.onPayload(e))),this.connection.on("close",(e=>this.onClose(e))),this.connection.on("error",(e=>this.events.emit("error",e))),this.connection.on("register_error",(e=>this.onClose())),this.hasRegisteredEventListeners=!0)}}},function(e,t,n){var r=n(6),i=n(23),o=n(2),a=n(29),s=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));const u=Object(a.b)();t.a=class{constructor(e){if(this.url=e,this.events=new r.EventEmitter,this.registering=!1,!Object(o.isWsUrl)(e))throw new Error("Provided URL is not compatible with WebSocket connection: "+e);this.url=e}get connected(){return void 0!==this.socket}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}open(){return s(this,arguments,(function*(e=this.url){yield this.register(e)}))}close(){return s(this,null,(function*(){return new Promise(((e,t)=>{void 0!==this.socket?(this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close()):t(new Error("Connection already closed"))}))}))}send(e,t){return s(this,null,(function*(){void 0===this.socket&&(this.socket=yield this.register());try{this.socket.send(Object(i.b)(e))}catch(t){this.onError(e.id,t)}}))}register(e=this.url){if(!Object(o.isWsUrl)(e))throw new Error("Provided URL is not compatible with WebSocket connection: "+e);if(this.registering){const e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise(((e,t)=>{this.events.once("register_error",(e=>{this.resetMaxListeners(),t(e)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),void 0===this.socket)return t(new Error("WebSocket connection is missing or invalid"));e(this.socket)}))}))}return this.url=e,this.registering=!0,new Promise(((t,n)=>{const r=Object(o.isReactNative)()?void 0:{rejectUnauthorized:!Object(o.isLocalhostUrl)(e)},i=new u(e,[],r);Object(a.a)()?i.onerror=e=>{const t=e;n(this.emitError(t.error))}:i.on("error",(e=>{n(this.emitError(e))})),i.onopen=()=>{this.onOpen(i),t(i)}}))}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(void 0===e.data)return;const t="string"==typeof e.data?Object(i.a)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const n=this.parseError(t),r=n.message||n.toString(),i=Object(o.formatJsonRpcError)(e,r);this.events.emit("payload",i)}parseError(e,t=this.url){return Object(o.parseConnectionError)(e,Object(a.c)(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){const t=this.parseError(new Error((null==e?void 0:e.message)||"WebSocket connection failed for host: "+Object(a.c)(this.url)));return this.events.emit("register_error",t),t}}},function(e,t,n){(function(t){!function(){let n;function r(){}n=r,n.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},n.prototype.setItem=function(e,t){this[e]=String(t)},n.prototype.removeItem=function(e){delete this[e]},n.prototype.clear=function(){const e=this;Object.keys(e).forEach((function(t){e[t]=void 0,delete e[t]}))},n.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},n.prototype.__defineGetter__("length",(function(){return Object.keys(this).length})),void 0!==t&&t.localStorage?e.exports=t.localStorage:"undefined"!=typeof window&&window.localStorage?e.exports=window.localStorage:e.exports=new r}()}).call(this,n(25))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(73),t),r.__exportStar(n(74),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IKeyValueStorage=void 0,t.IKeyValueStorage=class{}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.parseEntry=void 0;const r=n(43);t.parseEntry=function(e){var t;return[e[0],r.safeJsonParse(null!==(t=e[1])&&void 0!==t?t:"")]}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HeartBeat=void 0;const r=n(11),i=n(6),o=n(1),a=n(45),s=n(46);class u extends a.IHeartBeat{constructor(e){super(e),this.events=new i.EventEmitter,this.interval=s.HEARTBEAT_INTERVAL,this.interval=(null==e?void 0:e.interval)||s.HEARTBEAT_INTERVAL}static init(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=new u(e);return yield t.init(),t}))}init(){return r.__awaiter(this,void 0,void 0,(function*(){yield this.initialize()}))}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}initialize(){return r.__awaiter(this,void 0,void 0,(function*(){this.intervalRef=setInterval((()=>this.pulse()),o.toMiliseconds(this.interval))}))}pulse(){this.events.emit(s.HEARTBEAT_EVENTS.pulse)}}t.HeartBeat=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(77),t),r.__exportStar(n(78),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise((t=>{setTimeout((()=>{t(!0)}),e)}))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;const r=n(44);t.toMiliseconds=function(e){return e*r.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/r.ONE_THOUSAND)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error("Watch already started for label: "+e);this.timestamps.set(e,{started:Date.now()})}stop(e){const t=this.get(e);if(void 0!==t.elapsed)throw new Error("Watch already stopped for label: "+e);const n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){const t=this.timestamps.get(e);if(void 0===t)throw new Error("No timestamp found for label: "+e);return t}elapsed(e){const t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=r,t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n(11).__exportStar(n(83),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0,t.IWatch=class{}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IHeartBeat=void 0;const r=n(19);class i extends r.IEvents{constructor(e){super()}}t.IHeartBeat=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HEARTBEAT_EVENTS=t.HEARTBEAT_INTERVAL=void 0;const r=n(1);t.HEARTBEAT_INTERVAL=r.FIVE_SECONDS,t.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}},function(e,t,n){const r=n(87);e.exports=a;const i=function(){function e(e){return void 0!==e&&e}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{},o={mapHttpRequest:f,mapHttpResponse:f,wrapRequestSerializer:y,wrapResponseSerializer:y,wrapErrorSerializer:y,req:f,res:f,err:function(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const n in e)void 0===t[n]&&(t[n]=e[n]);return t}};function a(e){(e=e||{}).browser=e.browser||{};const t=e.browser.transmit;if(t&&"function"!=typeof t.send)throw Error("pino: transmit option must have a send function");const n=e.browser.write||i;e.browser.write&&(e.browser.asObject=!0);const r=e.serializers||{},o=function(e,t){return Array.isArray(e)?e.filter((function(e){return"!stdSerializers.err"!==e})):!0===e&&Object.keys(t)}(e.browser.serialize,r);let u=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(u=!1),"function"==typeof n&&(n.error=n.fatal=n.warn=n.info=n.debug=n.trace=n),!1===e.enabled&&(e.level="silent");const d=e.level||"info",f=Object.create(n);f.log||(f.log=m),Object.defineProperty(f,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(f,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,s(y,f,"error","log"),s(y,f,"fatal","error"),s(y,f,"warn","error"),s(y,f,"info","log"),s(y,f,"debug","log"),s(y,f,"trace","log")}});const y={transmit:t,serialize:o,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:p(e)};return f.levels=a.levels,f.level=d,f.setMaxListeners=f.getMaxListeners=f.emit=f.addListener=f.on=f.prependListener=f.once=f.prependOnceListener=f.removeListener=f.removeAllListeners=f.listeners=f.listenerCount=f.eventNames=f.write=f.flush=m,f.serializers=r,f._serialize=o,f._stdErrSerialize=u,f.child=function(n,i){if(!n)throw new Error("missing bindings for child Pino");i=i||{},o&&n.serializers&&(i.serializers=n.serializers);const a=i.serializers;if(o&&a){var s=Object.assign({},r,a),u=!0===e.browser.serialize?Object.keys(s):o;delete n.serializers,c([n],u,s,this._stdErrSerialize)}function d(e){this._childLevel=1+(0|e._childLevel),this.error=l(e,n,"error"),this.fatal=l(e,n,"fatal"),this.warn=l(e,n,"warn"),this.info=l(e,n,"info"),this.debug=l(e,n,"debug"),this.trace=l(e,n,"trace"),s&&(this.serializers=s,this._serialize=u),t&&(this._logEvent=h([].concat(e._logEvent.bindings,n)))}return d.prototype=this,new d(this)},t&&(f._logEvent=h()),f}function s(e,t,n,r){const o=Object.getPrototypeOf(t);t[n]=t.levelVal>t.levels.values[n]?m:o[n]?o[n]:i[n]||i[r]||m,function(e,t,n){var r;(e.transmit||t[n]!==m)&&(t[n]=(r=t[n],function(){const o=e.timestamp(),s=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var h=0;h-1&&r in n&&(e[i][r]=n[r](e[i][r]))}function l(e,t,n){return function(){const r=new Array(1+arguments.length);r[0]=t;for(var i=1;i-1?d:0,e.charCodeAt(p+1)){case 100:case 102:if(l>=u)break;if(null==t[l])break;d=u)break;if(null==t[l])break;d=u)break;if(void 0===t[l])break;d",d=p+2,p++;break}c+=i(t[l]),d=p+2,p++;break;case 115:if(l>=u)break;d>>16&65535)*r+n*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),i=n(12);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var o=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,n){if(void 0===n&&(n=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var r=0;if(this._bytesHashed+=n,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[r++],n--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(n>=this.blockSize&&(r=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,r,n),n%=this.blockSize);n>0;)this._buffer[this._bufferLength++]=e[r++],n--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,i=t/536870912|0,o=t<<3,a=t%128<112?128:256;this._buffer[n]=128;for(var u=n+1;u0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.stateHi),i.wipe(e.stateLo),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=o;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function s(e,t,n,i,o,s,u){for(var c,l,d,h,p,f,y,m,g=n[0],v=n[1],b=n[2],w=n[3],M=n[4],A=n[5],E=n[6],T=n[7],N=i[0],I=i[1],k=i[2],L=i[3],x=i[4],S=i[5],j=i[6],C=i[7];u>=128;){for(var D=0;D<16;D++){var O=8*D+s;e[D]=r.readUint32BE(o,O),t[D]=r.readUint32BE(o,O+4)}for(D=0;D<80;D++){var z,_,P=g,R=v,B=b,U=w,W=M,Q=A,Y=E,F=N,V=I,H=k,G=L,q=x,Z=S,J=j;if(p=65535&(l=C),f=l>>>16,y=65535&(c=T),m=c>>>16,p+=65535&(l=(x>>>14|M<<18)^(x>>>18|M<<14)^(M>>>9|x<<23)),f+=l>>>16,y+=65535&(c=(M>>>14|x<<18)^(M>>>18|x<<14)^(x>>>9|M<<23)),m+=c>>>16,p+=65535&(l=x&S^~x&j),f+=l>>>16,y+=65535&(c=M&A^~M&E),m+=c>>>16,c=a[2*D],p+=65535&(l=a[2*D+1]),f+=l>>>16,y+=65535&c,m+=c>>>16,c=e[D%16],f+=(l=t[D%16])>>>16,y+=65535&c,m+=c>>>16,y+=(f+=(p+=65535&l)>>>16)>>>16,p=65535&(l=h=65535&p|f<<16),f=l>>>16,y=65535&(c=d=65535&y|(m+=y>>>16)<<16),m=c>>>16,p+=65535&(l=(N>>>28|g<<4)^(g>>>2|N<<30)^(g>>>7|N<<25)),f+=l>>>16,y+=65535&(c=(g>>>28|N<<4)^(N>>>2|g<<30)^(N>>>7|g<<25)),m+=c>>>16,f+=(l=N&I^N&k^I&k)>>>16,y+=65535&(c=g&v^g&b^v&b),m+=c>>>16,z=65535&(y+=(f+=(p+=65535&l)>>>16)>>>16)|(m+=y>>>16)<<16,_=65535&p|f<<16,p=65535&(l=G),f=l>>>16,y=65535&(c=U),m=c>>>16,f+=(l=h)>>>16,y+=65535&(c=d),m+=c>>>16,v=P,b=R,w=B,M=U=65535&(y+=(f+=(p+=65535&l)>>>16)>>>16)|(m+=y>>>16)<<16,A=W,E=Q,T=Y,g=z,I=F,k=V,L=H,x=G=65535&p|f<<16,S=q,j=Z,C=J,N=_,D%16==15)for(O=0;O<16;O++)c=e[O],p=65535&(l=t[O]),f=l>>>16,y=65535&c,m=c>>>16,c=e[(O+9)%16],p+=65535&(l=t[(O+9)%16]),f+=l>>>16,y+=65535&c,m+=c>>>16,d=e[(O+1)%16],p+=65535&(l=((h=t[(O+1)%16])>>>1|d<<31)^(h>>>8|d<<24)^(h>>>7|d<<25)),f+=l>>>16,y+=65535&(c=(d>>>1|h<<31)^(d>>>8|h<<24)^d>>>7),m+=c>>>16,d=e[(O+14)%16],f+=(l=((h=t[(O+14)%16])>>>19|d<<13)^(d>>>29|h<<3)^(h>>>6|d<<26))>>>16,y+=65535&(c=(d>>>19|h<<13)^(h>>>29|d<<3)^d>>>6),m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,e[O]=65535&y|m<<16,t[O]=65535&p|f<<16}p=65535&(l=N),f=l>>>16,y=65535&(c=g),m=c>>>16,c=n[0],f+=(l=i[0])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[0]=g=65535&y|m<<16,i[0]=N=65535&p|f<<16,p=65535&(l=I),f=l>>>16,y=65535&(c=v),m=c>>>16,c=n[1],f+=(l=i[1])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[1]=v=65535&y|m<<16,i[1]=I=65535&p|f<<16,p=65535&(l=k),f=l>>>16,y=65535&(c=b),m=c>>>16,c=n[2],f+=(l=i[2])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[2]=b=65535&y|m<<16,i[2]=k=65535&p|f<<16,p=65535&(l=L),f=l>>>16,y=65535&(c=w),m=c>>>16,c=n[3],f+=(l=i[3])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[3]=w=65535&y|m<<16,i[3]=L=65535&p|f<<16,p=65535&(l=x),f=l>>>16,y=65535&(c=M),m=c>>>16,c=n[4],f+=(l=i[4])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[4]=M=65535&y|m<<16,i[4]=x=65535&p|f<<16,p=65535&(l=S),f=l>>>16,y=65535&(c=A),m=c>>>16,c=n[5],f+=(l=i[5])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[5]=A=65535&y|m<<16,i[5]=S=65535&p|f<<16,p=65535&(l=j),f=l>>>16,y=65535&(c=E),m=c>>>16,c=n[6],f+=(l=i[6])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[6]=E=65535&y|m<<16,i[6]=j=65535&p|f<<16,p=65535&(l=C),f=l>>>16,y=65535&(c=T),m=c>>>16,c=n[7],f+=(l=i[7])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[7]=T=65535&y|m<<16,i[7]=C=65535&p|f<<16,s+=128,u-=128}return s}t.hash=function(e){var t=new o;t.update(e);var n=t.digest();return t.clean(),n}},function(e,t,n){var r=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(i)for(var n of i(t))a.call(t,n)&&s(e,n,t[n]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(96),l=n(98),d=n(99),h=n(100),p=n(101),f=n(50),y=n(102),m=n(51),g=n(103),v=n(104),b=n(105),w=n(107),M=n(108),A=n(109);n(110);var E=n(52),T=n(38),N=n(27),I=n(33),k=n(16);const L=u(u(u(u(u(u(u(u(u(u({},c),l),d),h),p),f),y),m),g),v),x=u(u({},b),w),S={raw:M,json:A};t.CID=E.CID,t.hasher=T,t.digest=N,t.varint=I,t.bytes=k,t.bases=L,t.codecs=S,t.hashes=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),i=n(16);const o=r.from({prefix:"\0",name:"identity",encode:e=>i.toString(e),decode:e=>i.fromString(e)});t.identity=o},function(e,t,n){e.exports=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,a=new Uint8Array(o);e[t];){var l=n[e.charCodeAt(t)];if(255===l)return;for(var d=0,h=o-1;(0!==l||d>>0,a[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var p=o-i;p!==o&&0===a[p];)p++;for(var f=new Uint8Array(r+(o-p)),y=r;p!==o;)f[y++]=a[p++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var a=(o-i)*l+1>>>0,c=new Uint8Array(a);i!==o;){for(var d=t[i],h=0,p=a-1;(0!==d||h>>0,c[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=a-r;f!==a&&0===c[f];)f++;for(var y=u.repeat(n);f(e[n]=t,e)),[]),a=i.reduce(((e,t,n)=>(e[t.codePointAt(0)]=n,e)),[]),s=r.from({prefix:"🚀",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+o[t]),"")},decode:function(e){const t=[];for(const n of e){const e=a[n.codePointAt(0)];if(void 0===e)throw new Error("Non-base256emoji character: "+n);t.push(e)}return new Uint8Array(t)}});t.base256emoji=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(38);const i=e=>t=>{return n=this,null,r=function*(){return new Uint8Array(yield crypto.subtle.digest(e,t))},new Promise(((e,t)=>{var i=e=>{try{a(r.next(e))}catch(e){t(e)}},o=e=>{try{a(r.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,o);a((r=r.apply(n,null)).next())}));var n,r},o=r.from({name:"sha2-256",code:18,encode:i("SHA-256")}),a=r.from({name:"sha2-512",code:19,encode:i("SHA-512")});t.sha256=o,t.sha512=a},function(e,t,n){var r=Math.pow(2,31),i=Math.pow(2,7),o=Math.pow(2,14),a=Math.pow(2,21),s=Math.pow(2,28),u=Math.pow(2,35),c=Math.pow(2,42),l=Math.pow(2,49),d=Math.pow(2,56),h=Math.pow(2,63),p={encode:function e(t,n,i){n=n||[];for(var o=i=i||0;t>=r;)n[i++]=255&t|128,t/=128;for(;-128&t;)n[i++]=255&t|128,t>>>=7;return n[i]=0|t,e.bytes=i-o+1,n},decode:function e(t,n){var r,i=0,o=0,a=n=n||0,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");r=t[a++],i+=o<28?(127&r)<=128);return e.bytes=a-n,i},encodingLength:function(e){return ei.create(0,o(e))};t.identity=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.code=85,t.decode=e=>r.coerce(e),t.encode=e=>r.coerce(e),t.name="raw"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=new TextEncoder,i=new TextDecoder;t.code=512,t.decode=e=>JSON.parse(i.decode(e)),t.encode=e=>r.encode(JSON.stringify(e)),t.name="json"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(52),i=n(33),o=n(16),a=n(38),s=n(27);t.CID=r.CID,t.varint=i,t.bytes=o,t.hasher=a,t.digest=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.compare=function(e,t){for(let n=0;nt[n])return 1}return e.byteLength>t.byteLength?1:e.byteLength>>16|C<<16)|0)>>>20|T<<12,N=(N^=x=x+(D=(D^=M=M+N|0)>>>16|D<<16)|0)>>>20|N<<12,I=(I^=S=S+(O=(O^=A=A+I|0)>>>16|O<<16)|0)>>>20|I<<12,k=(k^=j=j+(z=(z^=E=E+k|0)>>>16|z<<16)|0)>>>20|k<<12,I=(I^=S=S+(O=(O^=A=A+I|0)>>>24|O<<8)|0)>>>25|I<<7,k=(k^=j=j+(z=(z^=E=E+k|0)>>>24|z<<8)|0)>>>25|k<<7,N=(N^=x=x+(D=(D^=M=M+N|0)>>>24|D<<8)|0)>>>25|N<<7,T=(T^=L=L+(C=(C^=w=w+T|0)>>>24|C<<8)|0)>>>25|T<<7,N=(N^=S=S+(z=(z^=w=w+N|0)>>>16|z<<16)|0)>>>20|N<<12,I=(I^=j=j+(C=(C^=M=M+I|0)>>>16|C<<16)|0)>>>20|I<<12,k=(k^=L=L+(D=(D^=A=A+k|0)>>>16|D<<16)|0)>>>20|k<<12,T=(T^=x=x+(O=(O^=E=E+T|0)>>>16|O<<16)|0)>>>20|T<<12,k=(k^=L=L+(D=(D^=A=A+k|0)>>>24|D<<8)|0)>>>25|k<<7,T=(T^=x=x+(O=(O^=E=E+T|0)>>>24|O<<8)|0)>>>25|T<<7,I=(I^=j=j+(C=(C^=M=M+I|0)>>>24|C<<8)|0)>>>25|I<<7,N=(N^=S=S+(z=(z^=w=w+N|0)>>>24|z<<8)|0)>>>25|N<<7;r.writeUint32LE(w+i|0,e,0),r.writeUint32LE(M+o|0,e,4),r.writeUint32LE(A+a|0,e,8),r.writeUint32LE(E+s|0,e,12),r.writeUint32LE(T+u|0,e,16),r.writeUint32LE(N+c|0,e,20),r.writeUint32LE(I+l|0,e,24),r.writeUint32LE(k+d|0,e,28),r.writeUint32LE(L+h|0,e,32),r.writeUint32LE(x+p|0,e,36),r.writeUint32LE(S+f|0,e,40),r.writeUint32LE(j+y|0,e,44),r.writeUint32LE(C+m|0,e,48),r.writeUint32LE(D+g|0,e,52),r.writeUint32LE(O+v|0,e,56),r.writeUint32LE(z+b|0,e,60)}function a(e,t,n,r,a){if(void 0===a&&(a=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(r.length>>=8,t++;if(r>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=a,t.stream=function(e,t,n,r){return void 0===r&&(r=0),i.wipe(n),a(e,t,n,n,r)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=n(12);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var n=e[0]|e[1]<<8;this._r[0]=8191&n;var r=e[2]|e[3]<<8;this._r[1]=8191&(n>>>13|r<<3);var i=e[4]|e[5]<<8;this._r[2]=7939&(r>>>10|i<<6);var o=e[6]|e[7]<<8;this._r[3]=8191&(i>>>7|o<<9);var a=e[8]|e[9]<<8;this._r[4]=255&(o>>>4|a<<12),this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=8191&(a>>>14|s<<2);var u=e[12]|e[13]<<8;this._r[7]=8065&(s>>>11|u<<5);var c=e[14]|e[15]<<8;this._r[8]=8191&(u>>>8|c<<8),this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,n){for(var r=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],u=this._h[4],c=this._h[5],l=this._h[6],d=this._h[7],h=this._h[8],p=this._h[9],f=this._r[0],y=this._r[1],m=this._r[2],g=this._r[3],v=this._r[4],b=this._r[5],w=this._r[6],M=this._r[7],A=this._r[8],E=this._r[9];n>=16;){var T=e[t+0]|e[t+1]<<8;i+=8191&T;var N=e[t+2]|e[t+3]<<8;o+=8191&(T>>>13|N<<3);var I=e[t+4]|e[t+5]<<8;a+=8191&(N>>>10|I<<6);var k=e[t+6]|e[t+7]<<8;s+=8191&(I>>>7|k<<9);var L=e[t+8]|e[t+9]<<8;u+=8191&(k>>>4|L<<12),c+=L>>>1&8191;var x=e[t+10]|e[t+11]<<8;l+=8191&(L>>>14|x<<2);var S=e[t+12]|e[t+13]<<8;d+=8191&(x>>>11|S<<5);var j=e[t+14]|e[t+15]<<8,C=0,D=C;D+=i*f,D+=o*(5*E),D+=a*(5*A),D+=s*(5*M),C=(D+=u*(5*w))>>>13,D&=8191,D+=c*(5*b),D+=l*(5*v),D+=d*(5*g),D+=(h+=8191&(S>>>8|j<<8))*(5*m);var O=C+=(D+=(p+=j>>>5|r)*(5*y))>>>13;O+=i*y,O+=o*f,O+=a*(5*E),O+=s*(5*A),C=(O+=u*(5*M))>>>13,O&=8191,O+=c*(5*w),O+=l*(5*b),O+=d*(5*v),O+=h*(5*g),C+=(O+=p*(5*m))>>>13,O&=8191;var z=C;z+=i*m,z+=o*y,z+=a*f,z+=s*(5*E),C=(z+=u*(5*A))>>>13,z&=8191,z+=c*(5*M),z+=l*(5*w),z+=d*(5*b),z+=h*(5*v);var _=C+=(z+=p*(5*g))>>>13;_+=i*g,_+=o*m,_+=a*y,_+=s*f,C=(_+=u*(5*E))>>>13,_&=8191,_+=c*(5*A),_+=l*(5*M),_+=d*(5*w),_+=h*(5*b);var P=C+=(_+=p*(5*v))>>>13;P+=i*v,P+=o*g,P+=a*m,P+=s*y,C=(P+=u*f)>>>13,P&=8191,P+=c*(5*E),P+=l*(5*A),P+=d*(5*M),P+=h*(5*w);var R=C+=(P+=p*(5*b))>>>13;R+=i*b,R+=o*v,R+=a*g,R+=s*m,C=(R+=u*y)>>>13,R&=8191,R+=c*f,R+=l*(5*E),R+=d*(5*A),R+=h*(5*M);var B=C+=(R+=p*(5*w))>>>13;B+=i*w,B+=o*b,B+=a*v,B+=s*g,C=(B+=u*m)>>>13,B&=8191,B+=c*y,B+=l*f,B+=d*(5*E),B+=h*(5*A);var U=C+=(B+=p*(5*M))>>>13;U+=i*M,U+=o*w,U+=a*b,U+=s*v,C=(U+=u*g)>>>13,U&=8191,U+=c*m,U+=l*y,U+=d*f,U+=h*(5*E);var W=C+=(U+=p*(5*A))>>>13;W+=i*A,W+=o*M,W+=a*w,W+=s*b,C=(W+=u*v)>>>13,W&=8191,W+=c*g,W+=l*m,W+=d*y,W+=h*f;var Q=C+=(W+=p*(5*E))>>>13;Q+=i*E,Q+=o*A,Q+=a*M,Q+=s*w,C=(Q+=u*b)>>>13,Q&=8191,Q+=c*v,Q+=l*g,Q+=d*m,Q+=h*y,i=D=8191&(C=(C=((C+=(Q+=p*f)>>>13)<<2)+C|0)+(D&=8191)|0),o=O+=C>>>=13,a=z&=8191,s=_&=8191,u=P&=8191,c=R&=8191,l=B&=8191,d=U&=8191,h=W&=8191,p=Q&=8191,t+=16,n-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=u,this._h[5]=c,this._h[6]=l,this._h[7]=d,this._h[8]=h,this._h[9]=p},e.prototype.finish=function(e,t){void 0===t&&(t=0);var n,r,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(n=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=n,n=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*n,n=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=n,n=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=n,a[0]=this._h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this._h[o]=this._h[o]&r|a[o];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,o=1;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,n=0,r=e.length;if(this._leftover){(t=16-this._leftover)>r&&(t=r);for(var i=0;i=16&&(t=r-r%16,this._blocks(e,n,t),n+=t,r-=t),r){for(i=0;ithis.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var i=0;iencodeURIComponent(e).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()))},function(e,t,n){var r=new RegExp("(%[a-f0-9]{2})|([^%]+?)","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;onew Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));const h="client",p=`wc@2:${h}:`,f=h,y="WALLETCONNECT_DEEPLINK_CHOICE",m=(c.THIRTY_DAYS,c.SEVEN_DAYS),g={wc_sessionPropose:{req:{ttl:c.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:c.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:c.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:c.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:c.ONE_DAY,prompt:!1,tag:1104},res:{ttl:c.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:c.ONE_DAY,prompt:!1,tag:1106},res:{ttl:c.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:c.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:c.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:c.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:c.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:c.ONE_DAY,prompt:!1,tag:1112},res:{ttl:c.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:c.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:c.THIRTY_SECONDS,prompt:!1,tag:1115}}},v={min:c.FIVE_MINUTES,max:c.SEVEN_DAYS},b="idle",w="active",M=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var A=Object.defineProperty,E=Object.defineProperties,T=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,L=(e,t,n)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))I.call(t,n)&&L(e,n,t[n]);if(N)for(var n of N(t))k.call(t,n)&&L(e,n,t[n]);return e},S=(e,t)=>E(e,T(t));class j extends o.b{constructor(e){super(e),this.name="engine",this.events=new u.a,this.initialized=!1,this.ignoredPayloadTypes=[a.b],this.requestQueue={state:b,requests:[]},this.requestQueueDelay=c.ONE_SECOND,this.init=()=>d(this,null,(function*(){this.initialized||(yield this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(g)}),this.initialized=!0,setTimeout((()=>{this.requestQueue.requests=this.getPendingSessionRequests(),this.processRequestQueue()}),Object(c.toMiliseconds)(this.requestQueueDelay)))})),this.connect=e=>d(this,null,(function*(){this.isInitialized();const t=S(x({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});yield this.isValidConnect(t);const{pairingTopic:n,requiredNamespaces:i,optionalNamespaces:o,sessionProperties:s,relays:u}=t;let l,h=n,p=!1;if(h&&(p=this.client.core.pairing.pairings.get(h).active),!h||!p){const{topic:e,uri:t}=yield this.client.core.pairing.create();h=e,l=t}const f=yield this.client.core.crypto.generateKeyPair(),y=x({requiredNamespaces:i,optionalNamespaces:o,relays:null!=u?u:[{protocol:r.c}],proposer:{publicKey:f,metadata:this.client.metadata}},s&&{sessionProperties:s}),{reject:m,resolve:g,done:v}=Object(a.d)(c.FIVE_MINUTES,"Proposal expired");if(this.events.once(Object(a.k)("session_connect"),(e=>d(this,[e],(function*({error:e,session:t}){if(e)m(e);else if(t){t.self.publicKey=f;const e=S(x({},t),{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces});yield this.client.session.set(t.topic,e),yield this.setExpiry(t.topic,t.expiry),h&&(yield this.client.core.pairing.updateMetadata({topic:h,metadata:t.peer.metadata})),g(e)}})))),!h){const{message:e}=Object(a.s)("NO_MATCHING_KEY","connect() pairing topic: "+h);throw new Error(e)}const b=yield this.sendRequest(h,"wc_sessionPropose",y),w=Object(a.c)(c.FIVE_MINUTES);return yield this.setProposal(b,x({id:b,expiry:w},y)),{uri:l,approval:v}})),this.pair=e=>d(this,null,(function*(){return this.isInitialized(),yield this.client.core.pairing.pair(e)})),this.approve=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidApprove(e);const{id:t,relayProtocol:n,namespaces:r,sessionProperties:i}=e,o=this.client.proposal.get(t);let{pairingTopic:s,proposer:u,requiredNamespaces:c,optionalNamespaces:l}=o;s=s||"",Object(a.T)(c)||(c=Object(a.v)(r,"approve()"));const d=yield this.client.core.crypto.generateKeyPair(),h=u.publicKey,p=yield this.client.core.crypto.generateSharedKey(d,h);s&&t&&(yield this.client.core.pairing.updateMetadata({topic:s,metadata:u.metadata}),yield this.sendResult(t,s,{relay:{protocol:null!=n?n:"irn"},responderPublicKey:d}),yield this.client.proposal.delete(t,Object(a.w)("USER_DISCONNECTED")),yield this.client.core.pairing.activate({topic:s}));const f=x({relay:{protocol:null!=n?n:"irn"},namespaces:r,requiredNamespaces:c,optionalNamespaces:l,pairingTopic:s,controller:{publicKey:d,metadata:this.client.metadata},expiry:Object(a.c)(m)},i&&{sessionProperties:i});yield this.client.core.relayer.subscribe(p),yield this.sendRequest(p,"wc_sessionSettle",f);const y=S(x({},f),{topic:p,pairingTopic:s,acknowledged:!1,self:f.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:d});return yield this.client.session.set(p,y),yield this.setExpiry(p,Object(a.c)(m)),{topic:p,acknowledged:()=>new Promise((e=>setTimeout((()=>e(this.client.session.get(p))),500)))}})),this.reject=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidReject(e);const{id:t,reason:n}=e,{pairingTopic:r}=this.client.proposal.get(t);r&&(yield this.sendError(t,r,n),yield this.client.proposal.delete(t,Object(a.w)("USER_DISCONNECTED")))})),this.update=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidUpdate(e);const{topic:t,namespaces:n}=e,r=yield this.sendRequest(t,"wc_sessionUpdate",{namespaces:n}),{done:i,resolve:o,reject:s}=Object(a.d)();return this.events.once(Object(a.k)("session_update",r),(({error:e})=>{e?s(e):o()})),yield this.client.session.update(t,{namespaces:n}),{acknowledged:i}})),this.extend=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidExtend(e);const{topic:t}=e,n=yield this.sendRequest(t,"wc_sessionExtend",{}),{done:r,resolve:i,reject:o}=Object(a.d)();return this.events.once(Object(a.k)("session_extend",n),(({error:e})=>{e?o(e):i()})),yield this.setExpiry(t,Object(a.c)(m)),{acknowledged:r}})),this.request=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidRequest(e);const{chainId:t,request:n,topic:r,expiry:i}=e,o=yield this.sendRequest(r,"wc_sessionRequest",{request:n,chainId:t},i),{done:s,resolve:u,reject:c}=Object(a.d)(i);this.events.once(Object(a.k)("session_request",o),(({error:e,result:t})=>{e?c(e):u(t)})),this.client.events.emit("session_request_sent",{topic:r,request:n,chainId:t,id:o});const l=yield this.client.core.storage.getItem(y);return Object(a.x)({id:o,topic:r,wcDeepLink:l}),yield s()})),this.respond=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidRespond(e);const{topic:t,response:n}=e,{id:r}=n;Object(l.isJsonRpcResult)(n)?yield this.sendResult(r,t,n.result):Object(l.isJsonRpcError)(n)&&(yield this.sendError(r,t,n.error)),this.cleanupAfterResponse(e)})),this.ping=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidPing(e);const{topic:t}=e;if(this.client.session.keys.includes(t)){const e=yield this.sendRequest(t,"wc_sessionPing",{}),{done:n,resolve:r,reject:i}=Object(a.d)();this.events.once(Object(a.k)("session_ping",e),(({error:e})=>{e?i(e):r()})),yield n()}else this.client.core.pairing.pairings.keys.includes(t)&&(yield this.client.core.pairing.ping({topic:t}))})),this.emit=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidEmit(e);const{topic:t,event:n,chainId:r}=e;yield this.sendRequest(t,"wc_sessionEvent",{event:n,chainId:r})})),this.disconnect=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidDisconnect(e);const{topic:t}=e;if(this.client.session.keys.includes(t)){const e=Object(l.getBigIntRpcId)().toString();let n;const i=t=>{(null==t?void 0:t.id.toString())===e&&(this.client.core.relayer.events.removeListener(r.d.message_ack,i),n())};yield Promise.all([new Promise((e=>{n=e,this.client.core.relayer.on(r.d.message_ack,i)})),this.sendRequest(t,"wc_sessionDelete",Object(a.w)("USER_DISCONNECTED"),void 0,e)]),yield this.deleteSession(t)}else yield this.client.core.pairing.disconnect({topic:t})})),this.find=e=>(this.isInitialized(),this.client.session.getAll().filter((t=>Object(a.G)(t,e)))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=e=>d(this,null,(function*(){if(e.pairingTopic)try{const t=this.client.core.pairing.pairings.get(e.pairingTopic),n=this.client.core.pairing.pairings.getAll().filter((n=>{var r,i;return(null==(r=n.peerMetadata)?void 0:r.url)&&(null==(i=n.peerMetadata)?void 0:i.url)===e.peer.metadata.url&&n.topic&&n.topic!==t.topic}));if(0===n.length)return;this.client.logger.info(`Cleaning up ${n.length} duplicate pairing(s)`),yield Promise.all(n.map((e=>this.client.core.pairing.disconnect({topic:e.topic})))),this.client.logger.info("Duplicate pairings clean up finished")}catch(e){this.client.logger.error(e)}})),this.deleteSession=(e,t)=>d(this,null,(function*(){const{self:n}=this.client.session.get(e);yield this.client.core.relayer.unsubscribe(e),this.client.session.delete(e,Object(a.w)("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(n.publicKey)&&(yield this.client.core.crypto.deleteKeyPair(n.publicKey)),this.client.core.crypto.keychain.has(e)&&(yield this.client.core.crypto.deleteSymKey(e)),t||this.client.core.expirer.del(e),this.client.core.storage.removeItem(y).catch((e=>this.client.logger.warn(e)))})),this.deleteProposal=(e,t)=>d(this,null,(function*(){yield Promise.all([this.client.proposal.delete(e,Object(a.w)("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)])})),this.deletePendingSessionRequest=(e,t,n=!1)=>d(this,null,(function*(){yield Promise.all([this.client.pendingRequest.delete(e,t),n?Promise.resolve():this.client.core.expirer.del(e)]),this.requestQueue.requests=this.requestQueue.requests.filter((t=>t.id!==e)),n&&(this.requestQueue.state=b)})),this.setExpiry=(e,t)=>d(this,null,(function*(){this.client.session.keys.includes(e)&&(yield this.client.session.update(e,{expiry:t})),this.client.core.expirer.set(e,t)})),this.setProposal=(e,t)=>d(this,null,(function*(){yield this.client.proposal.set(e,t),this.client.core.expirer.set(e,t.expiry)})),this.setPendingSessionRequest=e=>d(this,null,(function*(){const t=g.wc_sessionRequest.req.ttl,{id:n,topic:r,params:i}=e;yield this.client.pendingRequest.set(n,{id:n,topic:r,params:i}),t&&this.client.core.expirer.set(n,Object(a.c)(t))})),this.sendRequest=(e,t,n,r,i)=>d(this,null,(function*(){const o=Object(l.formatJsonRpcRequest)(t,n);if(Object(a.A)()&&M.includes(t)){const e=Object(a.z)(JSON.stringify(o));yield this.client.core.verify.register({attestationId:e})}const s=yield this.client.core.crypto.encode(e,o),u=g[t].req;return r&&(u.ttl=r),i&&(u.id=i),this.client.core.history.set(e,o),this.client.core.relayer.publish(e,s,u),o.id})),this.sendResult=(e,t,n)=>d(this,null,(function*(){const r=Object(l.formatJsonRpcResult)(e,n),i=yield this.client.core.crypto.encode(t,r),o=yield this.client.core.history.get(t,e),a=g[o.request.method].res;this.client.core.relayer.publish(t,i,a),yield this.client.core.history.resolve(r)})),this.sendError=(e,t,n)=>d(this,null,(function*(){const r=Object(l.formatJsonRpcError)(e,n),i=yield this.client.core.crypto.encode(t,r),o=yield this.client.core.history.get(t,e),a=g[o.request.method].res;this.client.core.relayer.publish(t,i,a),yield this.client.core.history.resolve(r)})),this.cleanup=()=>d(this,null,(function*(){const e=[],t=[];this.client.session.getAll().forEach((t=>{Object(a.C)(t.expiry)&&e.push(t.topic)})),this.client.proposal.getAll().forEach((e=>{Object(a.C)(e.expiry)&&t.push(e.id)})),yield Promise.all([...e.map((e=>this.deleteSession(e))),...t.map((e=>this.deleteProposal(e)))])})),this.onRelayEventRequest=e=>{const{topic:t,payload:n}=e,r=n.method;switch(r){case"wc_sessionPropose":return this.onSessionProposeRequest(t,n);case"wc_sessionSettle":return this.onSessionSettleRequest(t,n);case"wc_sessionUpdate":return this.onSessionUpdateRequest(t,n);case"wc_sessionExtend":return this.onSessionExtendRequest(t,n);case"wc_sessionPing":return this.onSessionPingRequest(t,n);case"wc_sessionDelete":return this.onSessionDeleteRequest(t,n);case"wc_sessionRequest":return this.onSessionRequest(t,n);case"wc_sessionEvent":return this.onSessionEventRequest(t,n);default:return this.client.logger.info("Unsupported request method "+r)}},this.onRelayEventResponse=e=>d(this,null,(function*(){const{topic:t,payload:n}=e,r=(yield this.client.core.history.get(t,n.id)).request.method;switch(r){case"wc_sessionPropose":return this.onSessionProposeResponse(t,n);case"wc_sessionSettle":return this.onSessionSettleResponse(t,n);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,n);case"wc_sessionExtend":return this.onSessionExtendResponse(t,n);case"wc_sessionPing":return this.onSessionPingResponse(t,n);case"wc_sessionRequest":return this.onSessionRequestResponse(t,n);default:return this.client.logger.info("Unsupported response method "+r)}})),this.onRelayEventUnknownPayload=e=>{const{topic:t}=e,{message:n}=Object(a.s)("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw new Error(n)},this.onSessionProposeRequest=(e,t)=>d(this,null,(function*(){const{params:n,id:r}=t;try{this.isValidConnect(x({},t.params));const i=Object(a.c)(c.FIVE_MINUTES),o=x({id:r,pairingTopic:e,expiry:i},n);yield this.setProposal(r,o);const s=Object(a.z)(JSON.stringify(t)),u=yield this.getVerifyContext(s,o.proposer.metadata);this.client.events.emit("session_proposal",{id:r,params:o,verifyContext:u})}catch(t){yield this.sendError(r,e,t),this.client.logger.error(t)}})),this.onSessionProposeResponse=(e,t)=>d(this,null,(function*(){const{id:n}=t;if(Object(l.isJsonRpcResult)(t)){const{result:r}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:r});const i=this.client.proposal.get(n);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:i});const o=i.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});const a=r.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:a});const s=yield this.client.core.crypto.generateSharedKey(o,a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:s});const u=yield this.client.core.relayer.subscribe(s);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:u}),yield this.client.core.pairing.activate({topic:e})}else Object(l.isJsonRpcError)(t)&&(yield this.client.proposal.delete(n,Object(a.w)("USER_DISCONNECTED")),this.events.emit(Object(a.k)("session_connect"),{error:t.error}))})),this.onSessionSettleRequest=(e,t)=>d(this,null,(function*(){const{id:n,params:r}=t;try{this.isValidSessionSettleRequest(r);const{relay:n,controller:i,expiry:o,namespaces:s,requiredNamespaces:u,optionalNamespaces:c,sessionProperties:l,pairingTopic:d}=t.params,h=x({topic:e,relay:n,expiry:o,namespaces:s,acknowledged:!0,pairingTopic:d,requiredNamespaces:u,optionalNamespaces:c,controller:i.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:i.publicKey,metadata:i.metadata}},l&&{sessionProperties:l});yield this.sendResult(t.id,e,!0),this.events.emit(Object(a.k)("session_connect"),{session:h}),this.cleanupDuplicatePairings(h)}catch(t){yield this.sendError(n,e,t),this.client.logger.error(t)}})),this.onSessionSettleResponse=(e,t)=>d(this,null,(function*(){const{id:n}=t;Object(l.isJsonRpcResult)(t)?(yield this.client.session.update(e,{acknowledged:!0}),this.events.emit(Object(a.k)("session_approve",n),{})):Object(l.isJsonRpcError)(t)&&(yield this.client.session.delete(e,Object(a.w)("USER_DISCONNECTED")),this.events.emit(Object(a.k)("session_approve",n),{error:t.error}))})),this.onSessionUpdateRequest=(e,t)=>d(this,null,(function*(){const{params:n,id:r}=t;try{this.isValidUpdate(x({topic:e},n)),yield this.client.session.update(e,{namespaces:n.namespaces}),yield this.sendResult(r,e,!0),this.client.events.emit("session_update",{id:r,topic:e,params:n})}catch(t){yield this.sendError(r,e,t),this.client.logger.error(t)}})),this.onSessionUpdateResponse=(e,t)=>{const{id:n}=t;Object(l.isJsonRpcResult)(t)?this.events.emit(Object(a.k)("session_update",n),{}):Object(l.isJsonRpcError)(t)&&this.events.emit(Object(a.k)("session_update",n),{error:t.error})},this.onSessionExtendRequest=(e,t)=>d(this,null,(function*(){const{id:n}=t;try{this.isValidExtend({topic:e}),yield this.setExpiry(e,Object(a.c)(m)),yield this.sendResult(n,e,!0),this.client.events.emit("session_extend",{id:n,topic:e})}catch(t){yield this.sendError(n,e,t),this.client.logger.error(t)}})),this.onSessionExtendResponse=(e,t)=>{const{id:n}=t;Object(l.isJsonRpcResult)(t)?this.events.emit(Object(a.k)("session_extend",n),{}):Object(l.isJsonRpcError)(t)&&this.events.emit(Object(a.k)("session_extend",n),{error:t.error})},this.onSessionPingRequest=(e,t)=>d(this,null,(function*(){const{id:n}=t;try{this.isValidPing({topic:e}),yield this.sendResult(n,e,!0),this.client.events.emit("session_ping",{id:n,topic:e})}catch(t){yield this.sendError(n,e,t),this.client.logger.error(t)}})),this.onSessionPingResponse=(e,t)=>{const{id:n}=t;setTimeout((()=>{Object(l.isJsonRpcResult)(t)?this.events.emit(Object(a.k)("session_ping",n),{}):Object(l.isJsonRpcError)(t)&&this.events.emit(Object(a.k)("session_ping",n),{error:t.error})}),500)},this.onSessionDeleteRequest=(e,t)=>d(this,null,(function*(){const{id:n}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),yield Promise.all([new Promise((t=>{this.client.core.relayer.once(r.d.publish,(()=>d(this,null,(function*(){t(yield this.deleteSession(e))}))))})),this.sendResult(n,e,!0)]),this.client.events.emit("session_delete",{id:n,topic:e})}catch(e){this.client.logger.error(e)}})),this.onSessionRequest=(e,t)=>d(this,null,(function*(){const{id:n,params:r}=t;try{this.isValidRequest(x({topic:e},r)),yield this.setPendingSessionRequest({id:n,topic:e,params:r}),this.addRequestToQueue({id:n,topic:e,params:r}),yield this.processRequestQueue()}catch(t){yield this.sendError(n,e,t),this.client.logger.error(t)}})),this.onSessionRequestResponse=(e,t)=>{const{id:n}=t;Object(l.isJsonRpcResult)(t)?this.events.emit(Object(a.k)("session_request",n),{result:t.result}):Object(l.isJsonRpcError)(t)&&this.events.emit(Object(a.k)("session_request",n),{error:t.error})},this.onSessionEventRequest=(e,t)=>d(this,null,(function*(){const{id:n,params:r}=t;try{this.isValidEmit(x({topic:e},r)),this.client.events.emit("session_event",{id:n,topic:e,params:r})}catch(t){yield this.sendError(n,e,t),this.client.logger.error(t)}})),this.addRequestToQueue=e=>{this.requestQueue.requests.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout((()=>{this.requestQueue.state=b,this.processRequestQueue()}),Object(c.toMiliseconds)(this.requestQueueDelay))},this.processRequestQueue=()=>d(this,null,(function*(){if(this.requestQueue.state===w)return void this.client.logger.info("session request queue is already active.");const e=this.requestQueue.requests[0];if(e)try{const{id:t,topic:n,params:r}=e,i=Object(a.z)(JSON.stringify({id:t,params:r})),o=this.client.session.get(n),s=yield this.getVerifyContext(i,o.peer.metadata);this.requestQueue.state=w,this.client.events.emit("session_request",{id:t,topic:n,params:r,verifyContext:s})}catch(e){this.client.logger.error(e)}else this.client.logger.info("session request queue is empty.")})),this.isValidConnect=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","connect() params: "+JSON.stringify(e));throw new Error(t)}const{pairingTopic:t,requiredNamespaces:n,optionalNamespaces:r,sessionProperties:i,relays:o}=e;if(Object(a.J)(t)||(yield this.isValidPairingTopic(t)),!Object(a.W)(o,!0)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","connect() relays: "+o);throw new Error(e)}!Object(a.J)(n)&&0!==Object(a.T)(n)&&this.validateNamespaces(n,"requiredNamespaces"),!Object(a.J)(r)&&0!==Object(a.T)(r)&&this.validateNamespaces(r,"optionalNamespaces"),Object(a.J)(i)||this.validateSessionProps(i,"sessionProperties")})),this.validateNamespaces=(e,t)=>{const n=Object(a.Z)(e,"connect()",t);if(n)throw new Error(n.message)},this.isValidApprove=e=>d(this,null,(function*(){if(!Object(a.U)(e))throw new Error(Object(a.s)("MISSING_OR_INVALID","approve() params: "+e).message);const{id:t,namespaces:n,relayProtocol:r,sessionProperties:i}=e;yield this.isValidProposalId(t);const o=this.client.proposal.get(t),s=Object(a.P)(n,"approve()");if(s)throw new Error(s.message);const u=Object(a.B)(o.requiredNamespaces,n,"approve()");if(u)throw new Error(u.message);if(!Object(a.bb)(r,!0)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","approve() relayProtocol: "+r);throw new Error(e)}Object(a.J)(i)||this.validateSessionProps(i,"sessionProperties")})),this.isValidReject=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","reject() params: "+e);throw new Error(t)}const{id:t,reason:n}=e;if(yield this.isValidProposalId(t),!Object(a.M)(n)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","reject() reason: "+JSON.stringify(n));throw new Error(e)}})),this.isValidSessionSettleRequest=e=>{if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","onSessionSettleRequest() params: "+e);throw new Error(t)}const{relay:t,controller:n,namespaces:r,expiry:i}=e;if(!Object(a.V)(t)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(e)}const o=Object(a.L)(n,"onSessionSettleRequest()");if(o)throw new Error(o.message);const s=Object(a.P)(r,"onSessionSettleRequest()");if(s)throw new Error(s.message);if(Object(a.C)(i)){const{message:e}=Object(a.s)("EXPIRED","onSessionSettleRequest()");throw new Error(e)}},this.isValidUpdate=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","update() params: "+e);throw new Error(t)}const{topic:t,namespaces:n}=e;yield this.isValidSessionTopic(t);const r=this.client.session.get(t),i=Object(a.P)(n,"update()");if(i)throw new Error(i.message);const o=Object(a.B)(r.requiredNamespaces,n,"update()");if(o)throw new Error(o.message)})),this.isValidExtend=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","extend() params: "+e);throw new Error(t)}const{topic:t}=e;yield this.isValidSessionTopic(t)})),this.isValidRequest=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","request() params: "+e);throw new Error(t)}const{topic:t,request:n,chainId:r,expiry:i}=e;yield this.isValidSessionTopic(t);const{namespaces:o}=this.client.session.get(t);if(!Object(a.Q)(o,r)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","request() chainId: "+r);throw new Error(e)}if(!Object(a.X)(n)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","request() "+JSON.stringify(n));throw new Error(e)}if(!Object(a.S)(o,r,n.method)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","request() method: "+n.method);throw new Error(e)}if(i&&!Object(a.Y)(i,v)){const{message:e}=Object(a.s)("MISSING_OR_INVALID",`request() expiry: ${i}. Expiry must be a number (in seconds) between ${v.min} and ${v.max}`);throw new Error(e)}})),this.isValidRespond=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","respond() params: "+e);throw new Error(t)}const{topic:t,response:n}=e;if(yield this.isValidSessionTopic(t),!Object(a.ab)(n)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","respond() response: "+JSON.stringify(n));throw new Error(e)}})),this.isValidPing=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","ping() params: "+e);throw new Error(t)}const{topic:t}=e;yield this.isValidSessionOrPairingTopic(t)})),this.isValidEmit=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","emit() params: "+e);throw new Error(t)}const{topic:t,event:n,chainId:r}=e;yield this.isValidSessionTopic(t);const{namespaces:i}=this.client.session.get(t);if(!Object(a.Q)(i,r)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","emit() chainId: "+r);throw new Error(e)}if(!Object(a.N)(n)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","emit() event: "+JSON.stringify(n));throw new Error(e)}if(!Object(a.R)(i,r,n.name)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","emit() event: "+JSON.stringify(n));throw new Error(e)}})),this.isValidDisconnect=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","disconnect() params: "+e);throw new Error(t)}const{topic:t}=e;yield this.isValidSessionOrPairingTopic(t)})),this.getVerifyContext=(e,t)=>d(this,null,(function*(){const n={verified:{verifyUrl:t.verifyUrl||"",validation:"UNKNOWN",origin:t.url||""}};try{const r=yield this.client.core.verify.resolve({attestationId:e,verifyUrl:t.verifyUrl});r&&(n.verified.origin=r,n.verified.validation=r===t.url?"VALID":"INVALID")}catch(e){this.client.logger.error(e)}return this.client.logger.info("Verify context: "+JSON.stringify(n)),n})),this.validateSessionProps=(e,t)=>{Object.values(e).forEach((e=>{if(!Object(a.bb)(e,!1)){const{message:n}=Object(a.s)("MISSING_OR_INVALID",`${t} must be in Record format. Received: ${JSON.stringify(e)}`);throw new Error(n)}}))}}isInitialized(){if(!this.initialized){const{message:e}=Object(a.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.client.core.relayer.on(r.d.message,(e=>d(this,null,(function*(){const{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;const r=yield this.client.core.crypto.decode(t,n);try{Object(l.isJsonRpcRequest)(r)?(this.client.core.history.set(t,r),this.onRelayEventRequest({topic:t,payload:r})):Object(l.isJsonRpcResponse)(r)?(yield this.client.core.history.resolve(r),yield this.onRelayEventResponse({topic:t,payload:r}),this.client.core.history.delete(t,r.id)):this.onRelayEventUnknownPayload({topic:t,payload:r})}catch(e){this.client.logger.error(e)}}))))}registerExpirerEvents(){this.client.core.expirer.on(r.b.expired,(e=>d(this,null,(function*(){const{topic:t,id:n}=Object(a.fb)(e.target);if(n&&this.client.pendingRequest.keys.includes(n))return yield this.deletePendingSessionRequest(n,Object(a.s)("EXPIRED"),!0);t?this.client.session.keys.includes(t)&&(yield this.deleteSession(t,!0),this.client.events.emit("session_expire",{topic:t})):n&&(yield this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))}))))}isValidPairingTopic(e){if(!Object(a.bb)(e,!1)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","pairing topic should be a string: "+e);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){const{message:t}=Object(a.s)("NO_MATCHING_KEY","pairing topic doesn't exist: "+e);throw new Error(t)}if(Object(a.C)(this.client.core.pairing.pairings.get(e).expiry)){const{message:t}=Object(a.s)("EXPIRED","pairing topic: "+e);throw new Error(t)}}isValidSessionTopic(e){return d(this,null,(function*(){if(!Object(a.bb)(e,!1)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","session topic should be a string: "+e);throw new Error(t)}if(!this.client.session.keys.includes(e)){const{message:t}=Object(a.s)("NO_MATCHING_KEY","session topic doesn't exist: "+e);throw new Error(t)}if(Object(a.C)(this.client.session.get(e).expiry)){yield this.deleteSession(e);const{message:t}=Object(a.s)("EXPIRED","session topic: "+e);throw new Error(t)}}))}isValidSessionOrPairingTopic(e){return d(this,null,(function*(){if(this.client.session.keys.includes(e))yield this.isValidSessionTopic(e);else{if(!this.client.core.pairing.pairings.keys.includes(e)){if(Object(a.bb)(e,!1)){const{message:t}=Object(a.s)("NO_MATCHING_KEY","session or pairing topic doesn't exist: "+e);throw new Error(t)}{const{message:t}=Object(a.s)("MISSING_OR_INVALID","session or pairing topic should be a string: "+e);throw new Error(t)}}this.isValidPairingTopic(e)}}))}isValidProposalId(e){return d(this,null,(function*(){if(!Object(a.O)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","proposal id should be a number: "+e);throw new Error(t)}if(!this.client.proposal.keys.includes(e)){const{message:t}=Object(a.s)("NO_MATCHING_KEY","proposal id doesn't exist: "+e);throw new Error(t)}if(Object(a.C)(this.client.proposal.get(e).expiry)){yield this.deleteProposal(e);const{message:t}=Object(a.s)("EXPIRED","proposal id: "+e);throw new Error(t)}}))}}class C extends r.e{constructor(e,t){super(e,t,"proposal",p),this.core=e,this.logger=t}}class D extends r.e{constructor(e,t){super(e,t,"session",p),this.core=e,this.logger=t}}class O extends r.e{constructor(e,t){super(e,t,"request",p,(e=>e.id)),this.core=e,this.logger=t}}class z extends o.h{constructor(e){super(e),this.protocol="wc",this.version=2,this.name=f,this.events=new s.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=e=>d(this,null,(function*(){try{return yield this.engine.connect(e)}catch(e){throw this.logger.error(e.message),e}})),this.pair=e=>d(this,null,(function*(){try{return yield this.engine.pair(e)}catch(e){throw this.logger.error(e.message),e}})),this.approve=e=>d(this,null,(function*(){try{return yield this.engine.approve(e)}catch(e){throw this.logger.error(e.message),e}})),this.reject=e=>d(this,null,(function*(){try{return yield this.engine.reject(e)}catch(e){throw this.logger.error(e.message),e}})),this.update=e=>d(this,null,(function*(){try{return yield this.engine.update(e)}catch(e){throw this.logger.error(e.message),e}})),this.extend=e=>d(this,null,(function*(){try{return yield this.engine.extend(e)}catch(e){throw this.logger.error(e.message),e}})),this.request=e=>d(this,null,(function*(){try{return yield this.engine.request(e)}catch(e){throw this.logger.error(e.message),e}})),this.respond=e=>d(this,null,(function*(){try{return yield this.engine.respond(e)}catch(e){throw this.logger.error(e.message),e}})),this.ping=e=>d(this,null,(function*(){try{return yield this.engine.ping(e)}catch(e){throw this.logger.error(e.message),e}})),this.emit=e=>d(this,null,(function*(){try{return yield this.engine.emit(e)}catch(e){throw this.logger.error(e.message),e}})),this.disconnect=e=>d(this,null,(function*(){try{return yield this.engine.disconnect(e)}catch(e){throw this.logger.error(e.message),e}})),this.find=e=>{try{return this.engine.find(e)}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.name=(null==e?void 0:e.name)||f,this.metadata=(null==e?void 0:e.metadata)||Object(a.r)();const t=typeof(null==e?void 0:e.logger)<"u"&&"string"!=typeof(null==e?void 0:e.logger)?e.logger:Object(i.pino)(Object(i.getDefaultLoggerOptions)({level:(null==e?void 0:e.logger)||"error"}));this.core=(null==e?void 0:e.core)||new r.a(e),this.logger=Object(i.generateChildLogger)(t,this.name),this.session=new D(this.core,this.logger),this.proposal=new C(this.core,this.logger),this.pendingRequest=new O(this.core,this.logger),this.engine=new j(this)}static init(e){return d(this,null,(function*(){const t=new z(e);return yield t.initialize(),t}))}get context(){return Object(i.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}initialize(){return d(this,null,(function*(){this.logger.trace("Initialized");try{yield this.core.start(),yield this.session.init(),yield this.proposal.init(),yield this.pendingRequest.init(),yield this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}))}}}]);void 0===HI&&console.error("esm-webpack-plugin: nothing exported!");HI.Core;const GI=HI.SignClient;var qI=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=126)}([function(e,t,n){n.d(t,"a",(function(){return i})); +var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof v?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function M(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function N(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;tt in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(i)for(var n of i(t))a.call(t,n)&&s(e,n,t[n]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(97),l=n(16);class d{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class h{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return f(this,e)}}class p{constructor(e){this.decoders=e}or(e){return f(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const f=(e,t)=>new p(u(u({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t}));class y{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new d(e,t,n),this.decoder=new h(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const m=({name:e,prefix:t,encode:n,decode:r})=>new y(e,t,n,r);t.Codec=y,t.baseX=({prefix:e,name:t,alphabet:n})=>{const{encode:r,decode:i}=c(n,t);return m({prefix:e,name:t,encode:r,decode:e=>l.coerce(i(e))})},t.from=m,t.or=f,t.rfc4648=({name:e,prefix:t,bitsPerChar:n,alphabet:r})=>m({prefix:t,name:e,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],i=(1<n;)a-=n,o+=t[i&s>>a];if(a&&(o+=t[i&s<((e,t,n,r)=>{const i={};for(let e=0;e=8&&(s-=8,a[c++]=255&u>>s)}if(s>=n||255&u<<8-s)throw new SyntaxError("Unexpected end of data");return a})(t,r,n,e)})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),i=n(32);t.fromString=function(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode(`${n.prefix}${e}`):i.asUint8Array(globalThis.Buffer.from(e,"utf-8"))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=new Uint8Array(0);t.coerce=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},t.empty=r,t.equals=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n{const t=e.match(/../g);return t?new Uint8Array(t.map((e=>parseInt(e,16)))):r},t.fromString=e=>(new TextEncoder).encode(e),t.isBinary=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),t.toHex=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),""),t.toString=e=>(new TextDecoder).decode(e)},function(e,t,n){n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return p}));var r=n(40),i=n(18),o=n(15),a=n(3);function s(e){return function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return JSON.parse(e)}catch(t){return e}}(Object(i.toString)(Object(o.fromString)(e,a.g),a.e))}function u(e){return Object(i.toString)(Object(o.fromString)("string"==typeof(t=e)?t:JSON.stringify(t),a.e),a.g);var t}function c(e){const t=Object(o.fromString)(a.m,a.l),n=a.k+Object(i.toString)(Object(r.concat)([t,e]),a.l);return[a.d,a.c,n].join(a.b)}function l(e){const[t,n,r]=e.split(a.b);if(t!==a.d||n!==a.c)throw new Error('Issuer must be a DID with method "key"');if(r.slice(0,1)!==a.k)throw new Error("Issuer must be a key in mulicodec format");const s=Object(o.fromString)(r.slice(1),a.l);if(Object(i.toString)(s.slice(0,2),a.l)!==a.m)throw new Error('Issuer must be a public key with type "Ed25519"');const u=s.slice(2);if(u.length!==a.n)throw new Error("Issuer must be a public key with length 32 bytes");return u}function d(e){return Object(o.fromString)([u(e.header),u(e.payload)].join(a.f),a.a)}function h(e){return[u(e.header),u(e.payload),(t=e.signature,Object(i.toString)(t,a.g))].join(a.f);var t}function p(e){const t=e.split(a.f);var n;return{header:s(t[0]),payload:s(t[1]),signature:(n=t[2],Object(o.fromString)(n,a.g)),data:Object(o.fromString)(t.slice(0,2).join(a.f),a.a)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(49);t.toString=function(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},function(e,t,n){n.r(t),n.d(t,"IEvents",(function(){return r}));class r{}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const r=n(89),i=n(26),o=n(12);function a(e,n=t.defaultRandomSource){return n.randomBytes(e)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=a,t.randomUint32=function(e=t.defaultRandomSource){const n=a(4,e),r=(0,i.readUint32LE)(n);return(0,o.wipe)(n),r};const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function u(e,n=s,r=t.defaultRandomSource){if(n.length<2)throw new Error("randomString charset is too short");if(n.length>256)throw new Error("randomString charset is too long");let i="";const u=n.length,c=256-256%u;for(;e>0;){const t=a(Math.ceil(256*e/c),r);for(let r=0;r0;r++){const o=t[r];ot.code===e))||r.f[r.a]}function s(e,t,n){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${n} RPC url at ${t}`):e}},function(e,t,n){function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function i(e){const t=r(e);if(!t)throw new Error(e+" is not defined in Window");return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=i,t.getDocumentOrThrow=function(){return i("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return i("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return i("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return i("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return i("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},function(e,t,n){function r(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return(e=>{const t=e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(t,((e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t))})(e)}catch(t){return e}}function i(e){return"string"==typeof e?e:(t=e,JSON.stringify(t,((e,t)=>"bigint"==typeof t?t.toString()+"n":t))||"");var t}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(75),t),r.__exportStar(n(45),t),r.__exportStar(n(46),t)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(93);function i(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function o(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function u(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function l(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function h(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),l(e/4294967296>>>0,t,n),l(e>>>0,t,n+4),t}function p(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),d(e>>>0,t,n),d(e/4294967296>>>0,t,n+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=o,t.writeInt16LE=o,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=u,t.readUint32LE=c,t.writeUint32BE=l,t.writeInt32BE=l,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var n=a(e,t),r=a(e,t+4);return 4294967296*n+r-4294967296*(r>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var n=u(e,t);return 4294967296*u(e,t+4)+n-4294967296*(n>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var n=c(e,t);return 4294967296*c(e,t+4)+n},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=p,t.writeInt64LE=p,t.readUintBE=function(e,t,n){if(void 0===n&&(n=0),e%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,i=1,o=e/8+n-1;o>=n;o--)r+=t[o]*i,i*=256;return r},t.readUintLE=function(e,t,n){if(void 0===n&&(n=0),e%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,i=1,o=n;o=i;a--)n[a]=t/o&255,o*=256;return n},t.writeUintLE=function(e,t,n,i){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,a=i;a{const n=t.byteLength,r=i.encodingLength(e),a=r+i.encodingLength(n),s=new Uint8Array(a+n);return i.encodeTo(e,s,0),i.encodeTo(n,s,r),s.set(t,a),new o(e,n,t,s)},t.decode=e=>{const t=r.coerce(e),[n,a]=i.decode(t),[s,u]=i.decode(t.subarray(a)),c=t.subarray(a+u);if(c.byteLength!==s)throw new Error("Incorrect length");return new o(n,s,c,t)},t.equals=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&r.equals(e.bytes,t.bytes)},function(e,t,n){var r=n(48);n.d(t,"generateKeyPair",(function(){return r.a})),n.d(t,"signJWT",(function(){return r.b})),n(3);var i=n(53);n.o(i,"encodeIss")&&n.d(t,"encodeIss",(function(){return i.encodeIss}));var o=n(17);n.d(t,"encodeIss",(function(){return o.d}))},function(e,t,n){(function(e){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}));const r=()=>"undefined"!=typeof WebSocket?WebSocket:void 0!==e&&void 0!==e.WebSocket?e.WebSocket:"undefined"!=typeof window&&void 0!==window.WebSocket?window.WebSocket:"undefined"!=typeof self&&void 0!==self.WebSocket?self.WebSocket:n(116),i=()=>"undefined"!=typeof WebSocket||void 0!==e&&void 0!==e.WebSocket||"undefined"!=typeof window&&void 0!==window.WebSocket||"undefined"!=typeof self&&void 0!==self.WebSocket,o=e=>e.split("?")[0]}).call(this,n(25))},function(e,t,n){const r=n(122),i=n(123),o=n(124),a=n(125),s=Symbol("encodeFragmentIdentifier");function u(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?i(e):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function f(e,t){u((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&l(n,e).includes(e.arrayFormatSeparator);n=o?l(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>l(t,e))):null===n?n:l(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?l(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>l(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:l(a,t),n(l(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=p(n[e],t);else r[e]=p(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort(((e,t)=>Number(e)-Number(t))).map((e=>t[e])):t}(n):e[t]=n,e}),Object.create(null))}t.extract=h,t.parse=f,t.stringify=(e,t)=>{if(!e)return"";u((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:f(h(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=d(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let u=t.stringify(a,n);u&&(u="?"+u);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l="#"+(n[s]?c(e.fragmentIdentifier,n):e.fragmentIdentifier)),`${r}${u}${l}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:u}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:u},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=s(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d1)for(var n=1;n[r.decode(e,t),r.decode.bytes],t.encodeTo=(e,t,n=0)=>(r.encode(e,t,n),t),t.encodingLength=e=>r.encodingLength(e)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(114),t),r.__exportStar(n(115),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.convertSecretKeyToX25519=t.convertPublicKeyToX25519=t.verify=t.sign=t.extractPublicKeyFromSecretKey=t.generateKeyPair=t.generateKeyPairFromSeed=t.SEED_LENGTH=t.SECRET_KEY_LENGTH=t.PUBLIC_KEY_LENGTH=t.SIGNATURE_LENGTH=void 0;const r=n(20),i=n(94),o=n(12);function a(e){const t=new Float64Array(16);if(e)for(let n=0;n>16&1),n[e-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,m(r,n,1-e)}for(let t=0;t<16;t++)e[2*t]=255&r[t],e[2*t+1]=r[t]>>8}function v(e,t){let n=0;for(let r=0;r<32;r++)n|=e[r]^t[r];return(1&n-1>>>8)-1}function b(e,t){const n=new Uint8Array(32),r=new Uint8Array(32);return g(n,e),g(r,t),v(n,r)}function w(e){const t=new Uint8Array(32);return g(t,e),1&t[0]}function M(e,t,n){for(let r=0;r<16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*Y,k+=r*F,L+=r*V,x+=r*H,S+=r*G,j+=r*q,C+=r*Z,D+=r*J,O+=r*X,r=t[15],w+=r*_,M+=r*P,A+=r*B,E+=r*R,N+=r*U,T+=r*W,I+=r*Q,k+=r*Y,L+=r*F,x+=r*V,S+=r*H,j+=r*G,C+=r*q,D+=r*Z,O+=r*J,z+=r*X,o+=38*M,a+=38*A,s+=38*E,u+=38*N,c+=38*T,l+=38*I,d+=38*k,h+=38*L,p+=38*x,f+=38*S,y+=38*j,m+=38*C,g+=38*D,v+=38*O,b+=38*z,i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,o+=i-1+37*(i-1),i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=u,e[4]=c,e[5]=l,e[6]=d,e[7]=h,e[8]=p,e[9]=f,e[10]=y,e[11]=m,e[12]=g,e[13]=v,e[14]=b,e[15]=w}function N(e,t){E(e,t,t)}function T(e,t){const n=a();let r;for(r=0;r<16;r++)n[r]=t[r];for(r=253;r>=0;r--)N(n,n),2!==r&&4!==r&&E(n,n,t);for(r=0;r<16;r++)e[r]=n[r]}function I(e,t){const n=a(),r=a(),i=a(),o=a(),s=a(),u=a(),c=a(),d=a(),h=a();A(n,e[1],e[0]),A(h,t[1],t[0]),E(n,n,h),M(r,e[0],e[1]),M(h,t[0],t[1]),E(r,r,h),E(i,e[3],t[3]),E(i,i,l),E(o,e[2],t[2]),M(o,o,o),A(s,r,n),A(u,o,i),M(c,o,i),M(d,r,n),E(e[0],s,u),E(e[1],d,c),E(e[2],c,u),E(e[3],s,d)}function k(e,t,n){for(let r=0;r<4;r++)m(e[r],t[r],n)}function L(e,t){const n=a(),r=a(),i=a();T(i,t[2]),E(n,t[0],i),E(r,t[1],i),g(e,r),e[31]^=w(n)<<7}function x(e,t,n){f(e[0],s),f(e[1],u),f(e[2],u),f(e[3],s);for(let r=255;r>=0;--r){const i=n[r/8|0]>>(7&r)&1;k(e,t,i),I(t,e),I(e,e),k(e,t,i)}}function S(e,t){const n=[a(),a(),a(),a()];f(n[0],d),f(n[1],h),f(n[2],u),E(n[3],d,h),x(e,n,t)}function j(e){if(e.length!==t.SEED_LENGTH)throw new Error(`ed25519: seed must be ${t.SEED_LENGTH} bytes`);const n=(0,i.hash)(e);n[0]&=248,n[31]&=127,n[31]|=64;const r=new Uint8Array(32),o=[a(),a(),a(),a()];S(o,n),L(r,o);const s=new Uint8Array(64);return s.set(e),s.set(r,32),{publicKey:r,secretKey:s}}t.generateKeyPairFromSeed=j,t.generateKeyPair=function(e){const t=(0,r.randomBytes)(32,e),n=j(t);return(0,o.wipe)(t),n},t.extractPublicKeyFromSecretKey=function(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${t.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))};const C=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function D(e,t){let n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i>4)*C[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*C[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function O(e){const t=new Float64Array(64);for(let n=0;n<64;n++)t[n]=e[n];for(let t=0;t<64;t++)e[t]=0;D(e,t)}function z(e,t){const n=a(),r=a(),i=a(),o=a(),l=a(),d=a(),h=a();return f(e[2],u),function(e,t){for(let n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}(e[1],t),N(i,e[1]),E(o,i,c),A(i,i,e[2]),M(o,e[2],o),N(l,o),N(d,l),E(h,d,l),E(n,h,i),E(n,n,o),function(e,t){const n=a();let r;for(r=0;r<16;r++)n[r]=t[r];for(r=250;r>=0;r--)N(n,n),1!==r&&E(n,n,t);for(r=0;r<16;r++)e[r]=n[r]}(n,n),E(n,n,i),E(n,n,o),E(n,n,o),E(e[0],n,o),N(r,e[0]),E(r,r,o),b(r,i)&&E(e[0],e[0],p),N(r,e[0]),E(r,r,o),b(r,i)?-1:(w(e[0])===t[31]>>7&&A(e[0],s,e[0]),E(e[3],e[0],e[1]),0)}t.sign=function(e,t){const n=new Float64Array(64),r=[a(),a(),a(),a()],o=(0,i.hash)(e.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;const s=new Uint8Array(64);s.set(o.subarray(32),32);const u=new i.SHA512;u.update(s.subarray(32)),u.update(t);const c=u.digest();u.clean(),O(c),S(r,c),L(s,r),u.reset(),u.update(s.subarray(0,32)),u.update(e.subarray(32)),u.update(t);const l=u.digest();O(l);for(let e=0;e<32;e++)n[e]=c[e];for(let e=0;e<32;e++)for(let t=0;t<32;t++)n[e+t]+=l[e]*o[t];return D(s.subarray(32),n),s},t.verify=function(e,n,r){const o=new Uint8Array(32),s=[a(),a(),a(),a()],u=[a(),a(),a(),a()];if(r.length!==t.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${t.SIGNATURE_LENGTH} bytes`);if(z(u,e))return!1;const c=new i.SHA512;c.update(r.subarray(0,32)),c.update(e),c.update(n);const l=c.digest();return O(l),x(s,u,l),S(u,r.subarray(32)),I(s,u),L(o,s),!v(r,o)},t.convertPublicKeyToX25519=function(e){let t=[a(),a(),a(),a()];if(z(t,e))throw new Error("Ed25519: invalid public key");let n=a(),r=a(),i=t[1];M(n,u,i),A(r,u,i),T(r,r),E(n,n,r);let o=new Uint8Array(32);return g(o,n),o},t.convertSecretKeyToX25519=function(e){const t=(0,i.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;const n=new Uint8Array(t.subarray(0,32));return(0,o.wipe)(t),n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),i=n(12);t.DIGEST_LENGTH=32,t.BLOCK_SIZE=64;var o=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=s(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,i=t/536870912|0,o=t<<3,a=t%64<56?64:128;this._buffer[n]=128;for(var u=n+1;u0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA256=o;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(e,t,n,i,o){for(;o>=64;){for(var s=t[0],u=t[1],c=t[2],l=t[3],d=t[4],h=t[5],p=t[6],f=t[7],y=0;y<16;y++){var m=i+4*y;e[y]=r.readUint32BE(n,m)}for(y=16;y<64;y++){var g=e[y-2],v=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10,b=((g=e[y-15])>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;e[y]=(v+e[y-7]|0)+(b+e[y-16]|0)}for(y=0;y<64;y++)v=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&p)|0)+(f+(a[y]+e[y]|0)|0)|0,b=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&u^s&c^u&c)|0,f=p,p=h,h=d,d=l+v|0,l=c,c=u,u=s,s=v+b|0;t[0]+=s,t[1]+=u,t[2]+=c,t[3]+=l,t[4]+=d,t[5]+=h,t[6]+=p,t[7]+=f,i+=64,o-=64}return i}t.hash=function(e){var t=new o;t.update(e);var n=t.digest();return t.clean(),n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(32);t.alloc=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.alloc?r.asUint8Array(globalThis.Buffer.alloc(e)):new Uint8Array(e)},t.allocUnsafe=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?r.asUint8Array(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(27);class i{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?r.create(this.code,t):t.then((e=>r.create(this.code,e)))}throw Error("Unknown type, must be binary type")}}t.Hasher=i,t.from=({name:e,code:t,encode:n})=>new i(e,t,n)},function(e,t,n){function r(e,t){if(e.length!==t.length)return 0;for(var n=0,r=0;r>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,n){return~(e-1)&t|e-1&n},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(37),i=n(32);t.concat=function(e,t){t||(t=e.reduce(((e,t)=>e+t.length),0));const n=r.allocUnsafe(t);let o=0;for(const t of e)n.set(t,o),o+=t.length;return i.asUint8Array(n)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(118),i=n(119),o=n(12),a=n(26),s=n(39);t.KEY_LENGTH=32,t.NONCE_LENGTH=12,t.TAG_LENGTH=16;var u=new Uint8Array(16),c=function(){function e(e){if(this.nonceLength=t.NONCE_LENGTH,this.tagLength=t.TAG_LENGTH,e.length!==t.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var a=new Uint8Array(16);a.set(e,a.length-e.length);var s=new Uint8Array(32);r.stream(this._key,a,s,4);var u,c=t.length+this.tagLength;if(i){if(i.length!==c)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(c);return r.streamXOR(this._key,a,t,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),s,u.subarray(0,u.length-this.tagLength),n),o.wipe(a),u},e.prototype.open=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&s.update(u.subarray(r.length%16))),s.update(n),n.length%16>0&&s.update(u.subarray(n.length%16));var c=new Uint8Array(8);r&&a.writeUint64LE(r.length,c),s.update(c),a.writeUint64LE(n.length,c),s.update(c);for(var l=s.digest(),d=0;d=0;--e){const t=n[e>>>3]>>>(7&e)&1;c(i,a,t),c(f,y,t),l(m,i,f),d(i,i,f),l(f,a,y),d(a,a,y),p(y,m),p(g,i),h(i,f,i),h(f,a,m),l(m,i,f),d(i,i,f),p(a,i),d(f,y,g),h(i,f,s),l(i,i,y),h(f,f,i),h(i,y,g),h(y,a,r),p(a,m),c(i,a,t),c(f,y,t)}for(let e=0;e<16;e++)r[e+16]=i[e],r[e+32]=f[e],r[e+48]=a[e],r[e+64]=y[e];const v=r.subarray(32),b=r.subarray(16);!function(e,t){const n=o();for(let e=0;e<16;e++)n[e]=t[e];for(let e=253;e>=0;e--)p(n,n),2!==e&&4!==e&&h(n,n,t);for(let t=0;t<16;t++)e[t]=n[t]}(v,v),h(b,b,v);const w=new Uint8Array(32);return function(e,t){const n=o(),r=o();for(let e=0;e<16;e++)r[e]=t[e];u(r),u(r),u(r);for(let e=0;e<2;e++){n[0]=r[0]-65517;for(let e=1;e<15;e++)n[e]=r[e]-65535-(n[e-1]>>16&1),n[e-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,c(r,n,1-e)}for(let t=0;t<16;t++)e[2*t]=255&r[t],e[2*t+1]=r[t]>>8}(w,b),w}function y(e){return f(e,a)}function m(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${t.SECRET_KEY_LENGTH} bytes`);const n=new Uint8Array(e);return{publicKey:y(n),secretKey:n}}t.scalarMult=f,t.scalarMultBase=y,t.generateKeyPairFromSeed=m,t.generateKeyPair=function(e){const t=(0,r.randomBytes)(32,e),n=m(t);return(0,i.wipe)(t),n},t.sharedKey=function(e,n,r=!1){if(e.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(n.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const i=f(e,n);if(r){let e=0;for(let t=0;tvoid 0===t?null:t))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(79),t),r.__exportStar(n(80),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n(11).__exportStar(n(84),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n(11).__exportStar(n(85),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PINO_CUSTOM_CONTEXT_KEY=t.PINO_LOGGER_DEFAULTS=void 0,t.PINO_LOGGER_DEFAULTS={level:"info"},t.PINO_CUSTOM_CONTEXT_KEY="custom_context"},function(e,t,n){n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(35),i=n(20),o=n(1),a=n(3),s=n(17),u=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));function c(e=Object(i.randomBytes)(a.j)){return r.generateKeyPairFromSeed(e)}function l(e,t,n,i){return u(this,arguments,(function*(e,t,n,i,u=Object(o.fromMiliseconds)(Date.now())){const c={alg:a.h,typ:a.i},l={iss:Object(s.d)(i.publicKey),sub:e,aud:t,iat:u,exp:u+n},d=Object(s.c)({header:c,payload:l}),h=r.sign(i.secretKey,d);return Object(s.e)({header:c,payload:l,signature:h})}))}},function(e,t,n){var r=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=n(95),c=n(37);function l(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const d=l("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),h=l("ascii","a",(e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=c.allocUnsafe(e.length);for(let n=0;n{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(i)for(var n of i(t))a.call(t,n)&&s(e,n,t[n]);return e})({utf8:d,"utf-8":d,hex:u.bases.base16,latin1:h,ascii:h,binary:h},u.bases);e.exports=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);const i=r.rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),o=r.rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),a=r.rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),s=r.rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),u=r.rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),c=r.rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),l=r.rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),d=r.rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),h=r.rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});t.base32=i,t.base32hex=u,t.base32hexpad=l,t.base32hexpadupper=d,t.base32hexupper=c,t.base32pad=a,t.base32padupper=s,t.base32upper=o,t.base32z=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);const i=r.baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),o=r.baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});t.base58btc=i,t.base58flickr=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(33),i=n(27),o=n(51),a=n(50),s=n(16);class u{constructor(e,t,n,r){this.code=t,this.version=e,this.multihash=n,this.bytes=r,this.byteOffset=r.byteOffset,this.byteLength=r.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:g,byteLength:g,code:m,version:m,multihash:m,bytes:m,_baseCache:g,asCID:g})}toV0(){if(0===this.version)return this;{const{code:e,multihash:t}=this;if(e!==h)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==p)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return u.createV0(t)}}toV1(){switch(this.version){case 0:{const{code:e,digest:t}=this.multihash,n=i.create(e,t);return u.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&i.equals(this.multihash,e.multihash)}toString(e){const{bytes:t,version:n,_baseCache:r}=this;return 0===n?l(t,r,e||o.base58btc.encoder):d(t,r,e||a.base32.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return v(/^0\.0/,b),!(!e||!e[y]&&e.asCID!==e)}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof u)return e;if(null!=e&&e.asCID===e){const{version:t,code:n,multihash:r,bytes:i}=e;return new u(t,n,r,i||f(t,n,r.bytes))}if(null!=e&&!0===e[y]){const{version:t,multihash:n,code:r}=e,o=i.decode(n);return u.create(t,r,o)}return null}static create(e,t,n){if("number"!=typeof t)throw new Error("String codecs are no longer supported");switch(e){case 0:if(t!==h)throw new Error(`Version 0 CID must use dag-pb (code: ${h}) block encoding`);return new u(e,t,n,n.bytes);case 1:{const r=f(e,t,n.bytes);return new u(e,t,n,r)}default:throw new Error("Invalid version")}}static createV0(e){return u.create(0,h,e)}static createV1(e,t){return u.create(1,e,t)}static decode(e){const[t,n]=u.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){const t=u.inspectBytes(e),n=t.size-t.multihashSize,r=s.coerce(e.subarray(n,n+t.multihashSize));if(r.byteLength!==t.multihashSize)throw new Error("Incorrect length");const o=r.subarray(t.multihashSize-t.digestSize),a=new i.Digest(t.multihashCode,t.digestSize,o,r);return[0===t.version?u.createV0(a):u.createV1(t.codec,a),e.subarray(t.size)]}static inspectBytes(e){let t=0;const n=()=>{const[n,i]=r.decode(e.subarray(t));return t+=i,n};let i=n(),o=h;if(18===i?(i=0,t=0):1===i&&(o=n()),0!==i&&1!==i)throw new RangeError("Invalid CID version "+i);const a=t,s=n(),u=n(),c=t+u;return{version:i,codec:o,multihashCode:s,digestSize:u,multihashSize:c-a,size:c}}static parse(e,t){const[n,r]=c(e,t),i=u.decode(r);return i._baseCache.set(n,e),i}}const c=(e,t)=>{switch(e[0]){case"Q":{const n=t||o.base58btc;return[o.base58btc.prefix,n.decode(`${o.base58btc.prefix}${e}`)]}case o.base58btc.prefix:{const n=t||o.base58btc;return[o.base58btc.prefix,n.decode(e)]}case a.base32.prefix:{const n=t||a.base32;return[a.base32.prefix,n.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},l=(e,t,n)=>{const{prefix:r}=n;if(r!==o.base58btc.prefix)throw Error(`Cannot string encode V0 in ${n.name} encoding`);const i=t.get(r);if(null==i){const i=n.encode(e).slice(1);return t.set(r,i),i}return i},d=(e,t,n)=>{const{prefix:r}=n,i=t.get(r);if(null==i){const i=n.encode(e);return t.set(r,i),i}return i},h=112,p=18,f=(e,t,n)=>{const i=r.encodingLength(e),o=i+r.encodingLength(t),a=new Uint8Array(o+n.byteLength);return r.encodeTo(e,a,0),r.encodeTo(t,a,i),a.set(n,o),a},y=Symbol.for("@ipld/js-cid/CID"),m={writable:!1,configurable:!1,enumerable:!0},g={writable:!1,enumerable:!1,configurable:!1},v=(e,t)=>{if(!e.test("0.0.0-dev"))throw new Error(t);console.warn(t)},b="CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n // Make sure to use cid instead of value\n doSomethingWithCID(cid)\n}\n";t.CID=u},function(e,t){},function(e,t,n){var r=n(34);n.o(r,"IJsonRpcProvider")&&n.d(t,"IJsonRpcProvider",(function(){return r.IJsonRpcProvider})),n.o(r,"formatJsonRpcError")&&n.d(t,"formatJsonRpcError",(function(){return r.formatJsonRpcError})),n.o(r,"formatJsonRpcRequest")&&n.d(t,"formatJsonRpcRequest",(function(){return r.formatJsonRpcRequest})),n.o(r,"formatJsonRpcResult")&&n.d(t,"formatJsonRpcResult",(function(){return r.formatJsonRpcResult})),n.o(r,"getBigIntRpcId")&&n.d(t,"getBigIntRpcId",(function(){return r.getBigIntRpcId})),n.o(r,"isJsonRpcError")&&n.d(t,"isJsonRpcError",(function(){return r.isJsonRpcError})),n.o(r,"isJsonRpcRequest")&&n.d(t,"isJsonRpcRequest",(function(){return r.isJsonRpcRequest})),n.o(r,"isJsonRpcResponse")&&n.d(t,"isJsonRpcResponse",(function(){return r.isJsonRpcResponse})),n.o(r,"isJsonRpcResult")&&n.d(t,"isJsonRpcResult",(function(){return r.isJsonRpcResult})),n.o(r,"isLocalhostUrl")&&n.d(t,"isLocalhostUrl",(function(){return r.isLocalhostUrl})),n.o(r,"isReactNative")&&n.d(t,"isReactNative",(function(){return r.isReactNative})),n.o(r,"isWsUrl")&&n.d(t,"isWsUrl",(function(){return r.isWsUrl})),r.isNode},function(e,t,n){n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(21),i=n(7);function o(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function a(e=6){return BigInt(o(e))}function s(e,t,n){return{id:n||o(),jsonrpc:"2.0",method:e,params:t}}function u(e,t){return{id:e,jsonrpc:"2.0",result:t}}function c(e,t,n){return{id:e,jsonrpc:"2.0",error:l(t,n)}}function l(e,t){return void 0===e?Object(r.a)(i.b):("string"==typeof e&&(e=Object.assign(Object.assign({},Object(r.a)(i.d)),{message:e})),void 0!==t&&(e.data=t),Object(r.c)(e.code)&&(e=Object(r.b)(e.code)),e)}},function(e,t,n){},function(e,t,n){function r(e){return function(e,t){const n=function(e){const t=e.match(new RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==n&&new RegExp(t).test(n)}(e,"^wss?:")}function i(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){function r(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function i(e){return r(e)&&"method"in e}function o(e){return r(e)&&(a(e)||s(e))}function a(e){return"result"in e}function s(e){return"error"in e}n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s}))},function(e,t){},function(e,t,n){n(8),n(13)},function(e,t,n){n.d(t,"a",(function(){return r}));const r={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}}},function(e,t,n){n.d(t,"a",(function(){return r}));class r extends class extends class{}{constructor(){super()}}{constructor(e){super()}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.KeyValueStorage=void 0;const r=n(11),i=n(43),o=r.__importDefault(n(71)),a=n(72);class s{constructor(){this.localStorage=o.default}getKeys(){return r.__awaiter(this,void 0,void 0,(function*(){return Object.keys(this.localStorage)}))}getEntries(){return r.__awaiter(this,void 0,void 0,(function*(){return Object.entries(this.localStorage).map(a.parseEntry)}))}getItem(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.localStorage.getItem(e);if(null!==t)return i.safeJsonParse(t)}))}setItem(e,t){return r.__awaiter(this,void 0,void 0,(function*(){this.localStorage.setItem(e,i.safeJsonStringify(t))}))}removeItem(e){return r.__awaiter(this,void 0,void 0,(function*(){this.localStorage.removeItem(e)}))}}t.KeyValueStorage=s,t.default=s},function(e,t,n){(function(e,n){var r="[object Arguments]",i="[object Map]",o="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[r]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[i]=c["[object Number]"]=c[o]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var l="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,h=l||d||Function("return this")(),p=t&&!t.nodeType&&t,f=p&&"object"==typeof n&&n&&!n.nodeType&&n,y=f&&f.exports===p,m=y&&l.process,g=function(){try{return m&&m.binding&&m.binding("util")}catch(e){}}(),v=g&&g.isTypedArray;function b(e,t){for(var n=-1,r=null==e?0:e.length;++ns))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var l=-1,d=!0,h=2&n?new oe:void 0;for(o.set(e,t),o.set(t,e);++l-1},re.prototype.set=function(e,t){var n=this.__data__,r=se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(F||re),string:new ne}},ie.prototype.delete=function(e){var t=pe(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return pe(this,e).get(e)},ie.prototype.has=function(e){return pe(this,e).has(e)},ie.prototype.set=function(e,t){var n=pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},oe.prototype.add=oe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oe.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new re,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!F||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(r)}return n.set(e,t),this.size=n.size,this};var ye=U?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Te(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ie(e){return null!=e&&"object"==typeof e}var ke=v?function(e){return function(t){return e(t)}}(v):function(e){return Ie(e)&&Ne(e.length)&&!!c[ue(e)]};function Le(e){return null!=(t=e)&&Ne(t.length)&&!Ee(t)?function(e,t){var n=Me(e),r=!n&&we(e),i=!n&&!r&&Ae(e),o=!n&&!r&&!i&&ke(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;nr.getAttribute(e))).filter((e=>!!e&&t.includes(e)));if(i.length&&i){const e=r.getAttribute("content");if(e)return e}}return""}const i=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),r=[];for(let e=0;e-1){const e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const r=t.pathname.split("/");r.pop(),n+=r.join("/")+"/"+e}r.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;r.push(n)}else r.push(e)}}return r}(),name:i}}},function(e,t,n){var r=n(59);n.o(r,"RELAY_JSONRPC")&&n.d(t,"RELAY_JSONRPC",(function(){return r.RELAY_JSONRPC})),n(60);var i=n(61);n.d(t,"RELAY_JSONRPC",(function(){return i.a})),n(13)},function(e,t,n){(function(e){n.d(t,"a",(function(){return h}));var r=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;inew Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));class a extends i.IJsonRpcProvider{constructor(e){super(e),this.events=new r.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}connect(){return o(this,arguments,(function*(e=this.connection){yield this.open(e)}))}disconnect(){return o(this,null,(function*(){yield this.close()}))}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}request(e,t){return o(this,null,(function*(){return this.requestStrict(Object(i.formatJsonRpcRequest)(e.method,e.params||[],e.id||Object(i.getBigIntRpcId)().toString()),t)}))}requestStrict(e,t){return o(this,null,(function*(){return new Promise(((n,r)=>o(this,null,(function*(){if(!this.connection.connected)try{yield this.open()}catch(e){r(e)}this.events.on(""+e.id,(e=>{Object(i.isJsonRpcError)(e)?r(e.error):n(e.result)}));try{yield this.connection.send(e,t)}catch(e){r(e)}}))))}))}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),Object(i.isJsonRpcResponse)(e)?this.events.emit(""+e.id,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}open(){return o(this,arguments,(function*(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(yield this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),yield this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}))}close(){return o(this,null,(function*(){yield this.connection.close()}))}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",(e=>this.onPayload(e))),this.connection.on("close",(e=>this.onClose(e))),this.connection.on("error",(e=>this.events.emit("error",e))),this.connection.on("register_error",(e=>this.onClose())),this.hasRegisteredEventListeners=!0)}}},function(e,t,n){var r=n(6),i=n(23),o=n(2),a=n(29),s=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));const u=Object(a.b)();t.a=class{constructor(e){if(this.url=e,this.events=new r.EventEmitter,this.registering=!1,!Object(o.isWsUrl)(e))throw new Error("Provided URL is not compatible with WebSocket connection: "+e);this.url=e}get connected(){return void 0!==this.socket}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}open(){return s(this,arguments,(function*(e=this.url){yield this.register(e)}))}close(){return s(this,null,(function*(){return new Promise(((e,t)=>{void 0!==this.socket?(this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close()):t(new Error("Connection already closed"))}))}))}send(e,t){return s(this,null,(function*(){void 0===this.socket&&(this.socket=yield this.register());try{this.socket.send(Object(i.b)(e))}catch(t){this.onError(e.id,t)}}))}register(e=this.url){if(!Object(o.isWsUrl)(e))throw new Error("Provided URL is not compatible with WebSocket connection: "+e);if(this.registering){const e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise(((e,t)=>{this.events.once("register_error",(e=>{this.resetMaxListeners(),t(e)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),void 0===this.socket)return t(new Error("WebSocket connection is missing or invalid"));e(this.socket)}))}))}return this.url=e,this.registering=!0,new Promise(((t,n)=>{const r=Object(o.isReactNative)()?void 0:{rejectUnauthorized:!Object(o.isLocalhostUrl)(e)},i=new u(e,[],r);Object(a.a)()?i.onerror=e=>{const t=e;n(this.emitError(t.error))}:i.on("error",(e=>{n(this.emitError(e))})),i.onopen=()=>{this.onOpen(i),t(i)}}))}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(void 0===e.data)return;const t="string"==typeof e.data?Object(i.a)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const n=this.parseError(t),r=n.message||n.toString(),i=Object(o.formatJsonRpcError)(e,r);this.events.emit("payload",i)}parseError(e,t=this.url){return Object(o.parseConnectionError)(e,Object(a.c)(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){const t=this.parseError(new Error((null==e?void 0:e.message)||"WebSocket connection failed for host: "+Object(a.c)(this.url)));return this.events.emit("register_error",t),t}}},function(e,t,n){(function(t){!function(){let n;function r(){}n=r,n.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},n.prototype.setItem=function(e,t){this[e]=String(t)},n.prototype.removeItem=function(e){delete this[e]},n.prototype.clear=function(){const e=this;Object.keys(e).forEach((function(t){e[t]=void 0,delete e[t]}))},n.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},n.prototype.__defineGetter__("length",(function(){return Object.keys(this).length})),void 0!==t&&t.localStorage?e.exports=t.localStorage:"undefined"!=typeof window&&window.localStorage?e.exports=window.localStorage:e.exports=new r}()}).call(this,n(25))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(73),t),r.__exportStar(n(74),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IKeyValueStorage=void 0,t.IKeyValueStorage=class{}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.parseEntry=void 0;const r=n(43);t.parseEntry=function(e){var t;return[e[0],r.safeJsonParse(null!==(t=e[1])&&void 0!==t?t:"")]}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HeartBeat=void 0;const r=n(11),i=n(6),o=n(1),a=n(45),s=n(46);class u extends a.IHeartBeat{constructor(e){super(e),this.events=new i.EventEmitter,this.interval=s.HEARTBEAT_INTERVAL,this.interval=(null==e?void 0:e.interval)||s.HEARTBEAT_INTERVAL}static init(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=new u(e);return yield t.init(),t}))}init(){return r.__awaiter(this,void 0,void 0,(function*(){yield this.initialize()}))}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}initialize(){return r.__awaiter(this,void 0,void 0,(function*(){this.intervalRef=setInterval((()=>this.pulse()),o.toMiliseconds(this.interval))}))}pulse(){this.events.emit(s.HEARTBEAT_EVENTS.pulse)}}t.HeartBeat=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);r.__exportStar(n(77),t),r.__exportStar(n(78),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise((t=>{setTimeout((()=>{t(!0)}),e)}))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;const r=n(44);t.toMiliseconds=function(e){return e*r.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/r.ONE_THOUSAND)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error("Watch already started for label: "+e);this.timestamps.set(e,{started:Date.now()})}stop(e){const t=this.get(e);if(void 0!==t.elapsed)throw new Error("Watch already stopped for label: "+e);const n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){const t=this.timestamps.get(e);if(void 0===t)throw new Error("No timestamp found for label: "+e);return t}elapsed(e){const t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=r,t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n(11).__exportStar(n(83),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0,t.IWatch=class{}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IHeartBeat=void 0;const r=n(19);class i extends r.IEvents{constructor(e){super()}}t.IHeartBeat=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HEARTBEAT_EVENTS=t.HEARTBEAT_INTERVAL=void 0;const r=n(1);t.HEARTBEAT_INTERVAL=r.FIVE_SECONDS,t.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}},function(e,t,n){const r=n(87);e.exports=a;const i=function(){function e(e){return void 0!==e&&e}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{},o={mapHttpRequest:f,mapHttpResponse:f,wrapRequestSerializer:y,wrapResponseSerializer:y,wrapErrorSerializer:y,req:f,res:f,err:function(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const n in e)void 0===t[n]&&(t[n]=e[n]);return t}};function a(e){(e=e||{}).browser=e.browser||{};const t=e.browser.transmit;if(t&&"function"!=typeof t.send)throw Error("pino: transmit option must have a send function");const n=e.browser.write||i;e.browser.write&&(e.browser.asObject=!0);const r=e.serializers||{},o=function(e,t){return Array.isArray(e)?e.filter((function(e){return"!stdSerializers.err"!==e})):!0===e&&Object.keys(t)}(e.browser.serialize,r);let u=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(u=!1),"function"==typeof n&&(n.error=n.fatal=n.warn=n.info=n.debug=n.trace=n),!1===e.enabled&&(e.level="silent");const d=e.level||"info",f=Object.create(n);f.log||(f.log=m),Object.defineProperty(f,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(f,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,s(y,f,"error","log"),s(y,f,"fatal","error"),s(y,f,"warn","error"),s(y,f,"info","log"),s(y,f,"debug","log"),s(y,f,"trace","log")}});const y={transmit:t,serialize:o,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:p(e)};return f.levels=a.levels,f.level=d,f.setMaxListeners=f.getMaxListeners=f.emit=f.addListener=f.on=f.prependListener=f.once=f.prependOnceListener=f.removeListener=f.removeAllListeners=f.listeners=f.listenerCount=f.eventNames=f.write=f.flush=m,f.serializers=r,f._serialize=o,f._stdErrSerialize=u,f.child=function(n,i){if(!n)throw new Error("missing bindings for child Pino");i=i||{},o&&n.serializers&&(i.serializers=n.serializers);const a=i.serializers;if(o&&a){var s=Object.assign({},r,a),u=!0===e.browser.serialize?Object.keys(s):o;delete n.serializers,c([n],u,s,this._stdErrSerialize)}function d(e){this._childLevel=1+(0|e._childLevel),this.error=l(e,n,"error"),this.fatal=l(e,n,"fatal"),this.warn=l(e,n,"warn"),this.info=l(e,n,"info"),this.debug=l(e,n,"debug"),this.trace=l(e,n,"trace"),s&&(this.serializers=s,this._serialize=u),t&&(this._logEvent=h([].concat(e._logEvent.bindings,n)))}return d.prototype=this,new d(this)},t&&(f._logEvent=h()),f}function s(e,t,n,r){const o=Object.getPrototypeOf(t);t[n]=t.levelVal>t.levels.values[n]?m:o[n]?o[n]:i[n]||i[r]||m,function(e,t,n){var r;(e.transmit||t[n]!==m)&&(t[n]=(r=t[n],function(){const o=e.timestamp(),s=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var h=0;h-1&&r in n&&(e[i][r]=n[r](e[i][r]))}function l(e,t,n){return function(){const r=new Array(1+arguments.length);r[0]=t;for(var i=1;i-1?d:0,e.charCodeAt(p+1)){case 100:case 102:if(l>=u)break;if(null==t[l])break;d=u)break;if(null==t[l])break;d=u)break;if(void 0===t[l])break;d",d=p+2,p++;break}c+=i(t[l]),d=p+2,p++;break;case 115:if(l>=u)break;d>>16&65535)*r+n*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),i=n(12);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var o=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,n){if(void 0===n&&(n=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var r=0;if(this._bytesHashed+=n,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[r++],n--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(n>=this.blockSize&&(r=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,r,n),n%=this.blockSize);n>0;)this._buffer[this._bufferLength++]=e[r++],n--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,i=t/536870912|0,o=t<<3,a=t%128<112?128:256;this._buffer[n]=128;for(var u=n+1;u0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.stateHi),i.wipe(e.stateLo),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=o;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function s(e,t,n,i,o,s,u){for(var c,l,d,h,p,f,y,m,g=n[0],v=n[1],b=n[2],w=n[3],M=n[4],A=n[5],E=n[6],N=n[7],T=i[0],I=i[1],k=i[2],L=i[3],x=i[4],S=i[5],j=i[6],C=i[7];u>=128;){for(var D=0;D<16;D++){var O=8*D+s;e[D]=r.readUint32BE(o,O),t[D]=r.readUint32BE(o,O+4)}for(D=0;D<80;D++){var z,_,P=g,B=v,R=b,U=w,W=M,Q=A,Y=E,F=T,V=I,H=k,G=L,q=x,Z=S,J=j;if(p=65535&(l=C),f=l>>>16,y=65535&(c=N),m=c>>>16,p+=65535&(l=(x>>>14|M<<18)^(x>>>18|M<<14)^(M>>>9|x<<23)),f+=l>>>16,y+=65535&(c=(M>>>14|x<<18)^(M>>>18|x<<14)^(x>>>9|M<<23)),m+=c>>>16,p+=65535&(l=x&S^~x&j),f+=l>>>16,y+=65535&(c=M&A^~M&E),m+=c>>>16,c=a[2*D],p+=65535&(l=a[2*D+1]),f+=l>>>16,y+=65535&c,m+=c>>>16,c=e[D%16],f+=(l=t[D%16])>>>16,y+=65535&c,m+=c>>>16,y+=(f+=(p+=65535&l)>>>16)>>>16,p=65535&(l=h=65535&p|f<<16),f=l>>>16,y=65535&(c=d=65535&y|(m+=y>>>16)<<16),m=c>>>16,p+=65535&(l=(T>>>28|g<<4)^(g>>>2|T<<30)^(g>>>7|T<<25)),f+=l>>>16,y+=65535&(c=(g>>>28|T<<4)^(T>>>2|g<<30)^(T>>>7|g<<25)),m+=c>>>16,f+=(l=T&I^T&k^I&k)>>>16,y+=65535&(c=g&v^g&b^v&b),m+=c>>>16,z=65535&(y+=(f+=(p+=65535&l)>>>16)>>>16)|(m+=y>>>16)<<16,_=65535&p|f<<16,p=65535&(l=G),f=l>>>16,y=65535&(c=U),m=c>>>16,f+=(l=h)>>>16,y+=65535&(c=d),m+=c>>>16,v=P,b=B,w=R,M=U=65535&(y+=(f+=(p+=65535&l)>>>16)>>>16)|(m+=y>>>16)<<16,A=W,E=Q,N=Y,g=z,I=F,k=V,L=H,x=G=65535&p|f<<16,S=q,j=Z,C=J,T=_,D%16==15)for(O=0;O<16;O++)c=e[O],p=65535&(l=t[O]),f=l>>>16,y=65535&c,m=c>>>16,c=e[(O+9)%16],p+=65535&(l=t[(O+9)%16]),f+=l>>>16,y+=65535&c,m+=c>>>16,d=e[(O+1)%16],p+=65535&(l=((h=t[(O+1)%16])>>>1|d<<31)^(h>>>8|d<<24)^(h>>>7|d<<25)),f+=l>>>16,y+=65535&(c=(d>>>1|h<<31)^(d>>>8|h<<24)^d>>>7),m+=c>>>16,d=e[(O+14)%16],f+=(l=((h=t[(O+14)%16])>>>19|d<<13)^(d>>>29|h<<3)^(h>>>6|d<<26))>>>16,y+=65535&(c=(d>>>19|h<<13)^(h>>>29|d<<3)^d>>>6),m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,e[O]=65535&y|m<<16,t[O]=65535&p|f<<16}p=65535&(l=T),f=l>>>16,y=65535&(c=g),m=c>>>16,c=n[0],f+=(l=i[0])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[0]=g=65535&y|m<<16,i[0]=T=65535&p|f<<16,p=65535&(l=I),f=l>>>16,y=65535&(c=v),m=c>>>16,c=n[1],f+=(l=i[1])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[1]=v=65535&y|m<<16,i[1]=I=65535&p|f<<16,p=65535&(l=k),f=l>>>16,y=65535&(c=b),m=c>>>16,c=n[2],f+=(l=i[2])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[2]=b=65535&y|m<<16,i[2]=k=65535&p|f<<16,p=65535&(l=L),f=l>>>16,y=65535&(c=w),m=c>>>16,c=n[3],f+=(l=i[3])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[3]=w=65535&y|m<<16,i[3]=L=65535&p|f<<16,p=65535&(l=x),f=l>>>16,y=65535&(c=M),m=c>>>16,c=n[4],f+=(l=i[4])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[4]=M=65535&y|m<<16,i[4]=x=65535&p|f<<16,p=65535&(l=S),f=l>>>16,y=65535&(c=A),m=c>>>16,c=n[5],f+=(l=i[5])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[5]=A=65535&y|m<<16,i[5]=S=65535&p|f<<16,p=65535&(l=j),f=l>>>16,y=65535&(c=E),m=c>>>16,c=n[6],f+=(l=i[6])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[6]=E=65535&y|m<<16,i[6]=j=65535&p|f<<16,p=65535&(l=C),f=l>>>16,y=65535&(c=N),m=c>>>16,c=n[7],f+=(l=i[7])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(f+=(p+=65535&l)>>>16)>>>16)>>>16,n[7]=N=65535&y|m<<16,i[7]=C=65535&p|f<<16,s+=128,u-=128}return s}t.hash=function(e){var t=new o;t.update(e);var n=t.digest();return t.clean(),n}},function(e,t,n){var r=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(i)for(var n of i(t))a.call(t,n)&&s(e,n,t[n]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(96),l=n(98),d=n(99),h=n(100),p=n(101),f=n(50),y=n(102),m=n(51),g=n(103),v=n(104),b=n(105),w=n(107),M=n(108),A=n(109);n(110);var E=n(52),N=n(38),T=n(27),I=n(33),k=n(16);const L=u(u(u(u(u(u(u(u(u(u({},c),l),d),h),p),f),y),m),g),v),x=u(u({},b),w),S={raw:M,json:A};t.CID=E.CID,t.hasher=N,t.digest=T,t.varint=I,t.bytes=k,t.bases=L,t.codecs=S,t.hashes=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),i=n(16);const o=r.from({prefix:"\0",name:"identity",encode:e=>i.toString(e),decode:e=>i.fromString(e)});t.identity=o},function(e,t,n){e.exports=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,a=new Uint8Array(o);e[t];){var l=n[e.charCodeAt(t)];if(255===l)return;for(var d=0,h=o-1;(0!==l||d>>0,a[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var p=o-i;p!==o&&0===a[p];)p++;for(var f=new Uint8Array(r+(o-p)),y=r;p!==o;)f[y++]=a[p++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var a=(o-i)*l+1>>>0,c=new Uint8Array(a);i!==o;){for(var d=t[i],h=0,p=a-1;(0!==d||h>>0,c[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=a-r;f!==a&&0===c[f];)f++;for(var y=u.repeat(n);f(e[n]=t,e)),[]),a=i.reduce(((e,t,n)=>(e[t.codePointAt(0)]=n,e)),[]),s=r.from({prefix:"🚀",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+o[t]),"")},decode:function(e){const t=[];for(const n of e){const e=a[n.codePointAt(0)];if(void 0===e)throw new Error("Non-base256emoji character: "+n);t.push(e)}return new Uint8Array(t)}});t.base256emoji=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(38);const i=e=>t=>{return n=this,null,r=function*(){return new Uint8Array(yield crypto.subtle.digest(e,t))},new Promise(((e,t)=>{var i=e=>{try{a(r.next(e))}catch(e){t(e)}},o=e=>{try{a(r.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,o);a((r=r.apply(n,null)).next())}));var n,r},o=r.from({name:"sha2-256",code:18,encode:i("SHA-256")}),a=r.from({name:"sha2-512",code:19,encode:i("SHA-512")});t.sha256=o,t.sha512=a},function(e,t,n){var r=Math.pow(2,31),i=Math.pow(2,7),o=Math.pow(2,14),a=Math.pow(2,21),s=Math.pow(2,28),u=Math.pow(2,35),c=Math.pow(2,42),l=Math.pow(2,49),d=Math.pow(2,56),h=Math.pow(2,63),p={encode:function e(t,n,i){n=n||[];for(var o=i=i||0;t>=r;)n[i++]=255&t|128,t/=128;for(;-128&t;)n[i++]=255&t|128,t>>>=7;return n[i]=0|t,e.bytes=i-o+1,n},decode:function e(t,n){var r,i=0,o=0,a=n=n||0,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");r=t[a++],i+=o<28?(127&r)<=128);return e.bytes=a-n,i},encodingLength:function(e){return ei.create(0,o(e))};t.identity=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.code=85,t.decode=e=>r.coerce(e),t.encode=e=>r.coerce(e),t.name="raw"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=new TextEncoder,i=new TextDecoder;t.code=512,t.decode=e=>JSON.parse(i.decode(e)),t.encode=e=>r.encode(JSON.stringify(e)),t.name="json"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(52),i=n(33),o=n(16),a=n(38),s=n(27);t.CID=r.CID,t.varint=i,t.bytes=o,t.hasher=a,t.digest=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.compare=function(e,t){for(let n=0;nt[n])return 1}return e.byteLength>t.byteLength?1:e.byteLength>>16|C<<16)|0)>>>20|N<<12,T=(T^=x=x+(D=(D^=M=M+T|0)>>>16|D<<16)|0)>>>20|T<<12,I=(I^=S=S+(O=(O^=A=A+I|0)>>>16|O<<16)|0)>>>20|I<<12,k=(k^=j=j+(z=(z^=E=E+k|0)>>>16|z<<16)|0)>>>20|k<<12,I=(I^=S=S+(O=(O^=A=A+I|0)>>>24|O<<8)|0)>>>25|I<<7,k=(k^=j=j+(z=(z^=E=E+k|0)>>>24|z<<8)|0)>>>25|k<<7,T=(T^=x=x+(D=(D^=M=M+T|0)>>>24|D<<8)|0)>>>25|T<<7,N=(N^=L=L+(C=(C^=w=w+N|0)>>>24|C<<8)|0)>>>25|N<<7,T=(T^=S=S+(z=(z^=w=w+T|0)>>>16|z<<16)|0)>>>20|T<<12,I=(I^=j=j+(C=(C^=M=M+I|0)>>>16|C<<16)|0)>>>20|I<<12,k=(k^=L=L+(D=(D^=A=A+k|0)>>>16|D<<16)|0)>>>20|k<<12,N=(N^=x=x+(O=(O^=E=E+N|0)>>>16|O<<16)|0)>>>20|N<<12,k=(k^=L=L+(D=(D^=A=A+k|0)>>>24|D<<8)|0)>>>25|k<<7,N=(N^=x=x+(O=(O^=E=E+N|0)>>>24|O<<8)|0)>>>25|N<<7,I=(I^=j=j+(C=(C^=M=M+I|0)>>>24|C<<8)|0)>>>25|I<<7,T=(T^=S=S+(z=(z^=w=w+T|0)>>>24|z<<8)|0)>>>25|T<<7;r.writeUint32LE(w+i|0,e,0),r.writeUint32LE(M+o|0,e,4),r.writeUint32LE(A+a|0,e,8),r.writeUint32LE(E+s|0,e,12),r.writeUint32LE(N+u|0,e,16),r.writeUint32LE(T+c|0,e,20),r.writeUint32LE(I+l|0,e,24),r.writeUint32LE(k+d|0,e,28),r.writeUint32LE(L+h|0,e,32),r.writeUint32LE(x+p|0,e,36),r.writeUint32LE(S+f|0,e,40),r.writeUint32LE(j+y|0,e,44),r.writeUint32LE(C+m|0,e,48),r.writeUint32LE(D+g|0,e,52),r.writeUint32LE(O+v|0,e,56),r.writeUint32LE(z+b|0,e,60)}function a(e,t,n,r,a){if(void 0===a&&(a=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(r.length>>=8,t++;if(r>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=a,t.stream=function(e,t,n,r){return void 0===r&&(r=0),i.wipe(n),a(e,t,n,n,r)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=n(12);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var n=e[0]|e[1]<<8;this._r[0]=8191&n;var r=e[2]|e[3]<<8;this._r[1]=8191&(n>>>13|r<<3);var i=e[4]|e[5]<<8;this._r[2]=7939&(r>>>10|i<<6);var o=e[6]|e[7]<<8;this._r[3]=8191&(i>>>7|o<<9);var a=e[8]|e[9]<<8;this._r[4]=255&(o>>>4|a<<12),this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=8191&(a>>>14|s<<2);var u=e[12]|e[13]<<8;this._r[7]=8065&(s>>>11|u<<5);var c=e[14]|e[15]<<8;this._r[8]=8191&(u>>>8|c<<8),this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,n){for(var r=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],u=this._h[4],c=this._h[5],l=this._h[6],d=this._h[7],h=this._h[8],p=this._h[9],f=this._r[0],y=this._r[1],m=this._r[2],g=this._r[3],v=this._r[4],b=this._r[5],w=this._r[6],M=this._r[7],A=this._r[8],E=this._r[9];n>=16;){var N=e[t+0]|e[t+1]<<8;i+=8191&N;var T=e[t+2]|e[t+3]<<8;o+=8191&(N>>>13|T<<3);var I=e[t+4]|e[t+5]<<8;a+=8191&(T>>>10|I<<6);var k=e[t+6]|e[t+7]<<8;s+=8191&(I>>>7|k<<9);var L=e[t+8]|e[t+9]<<8;u+=8191&(k>>>4|L<<12),c+=L>>>1&8191;var x=e[t+10]|e[t+11]<<8;l+=8191&(L>>>14|x<<2);var S=e[t+12]|e[t+13]<<8;d+=8191&(x>>>11|S<<5);var j=e[t+14]|e[t+15]<<8,C=0,D=C;D+=i*f,D+=o*(5*E),D+=a*(5*A),D+=s*(5*M),C=(D+=u*(5*w))>>>13,D&=8191,D+=c*(5*b),D+=l*(5*v),D+=d*(5*g),D+=(h+=8191&(S>>>8|j<<8))*(5*m);var O=C+=(D+=(p+=j>>>5|r)*(5*y))>>>13;O+=i*y,O+=o*f,O+=a*(5*E),O+=s*(5*A),C=(O+=u*(5*M))>>>13,O&=8191,O+=c*(5*w),O+=l*(5*b),O+=d*(5*v),O+=h*(5*g),C+=(O+=p*(5*m))>>>13,O&=8191;var z=C;z+=i*m,z+=o*y,z+=a*f,z+=s*(5*E),C=(z+=u*(5*A))>>>13,z&=8191,z+=c*(5*M),z+=l*(5*w),z+=d*(5*b),z+=h*(5*v);var _=C+=(z+=p*(5*g))>>>13;_+=i*g,_+=o*m,_+=a*y,_+=s*f,C=(_+=u*(5*E))>>>13,_&=8191,_+=c*(5*A),_+=l*(5*M),_+=d*(5*w),_+=h*(5*b);var P=C+=(_+=p*(5*v))>>>13;P+=i*v,P+=o*g,P+=a*m,P+=s*y,C=(P+=u*f)>>>13,P&=8191,P+=c*(5*E),P+=l*(5*A),P+=d*(5*M),P+=h*(5*w);var B=C+=(P+=p*(5*b))>>>13;B+=i*b,B+=o*v,B+=a*g,B+=s*m,C=(B+=u*y)>>>13,B&=8191,B+=c*f,B+=l*(5*E),B+=d*(5*A),B+=h*(5*M);var R=C+=(B+=p*(5*w))>>>13;R+=i*w,R+=o*b,R+=a*v,R+=s*g,C=(R+=u*m)>>>13,R&=8191,R+=c*y,R+=l*f,R+=d*(5*E),R+=h*(5*A);var U=C+=(R+=p*(5*M))>>>13;U+=i*M,U+=o*w,U+=a*b,U+=s*v,C=(U+=u*g)>>>13,U&=8191,U+=c*m,U+=l*y,U+=d*f,U+=h*(5*E);var W=C+=(U+=p*(5*A))>>>13;W+=i*A,W+=o*M,W+=a*w,W+=s*b,C=(W+=u*v)>>>13,W&=8191,W+=c*g,W+=l*m,W+=d*y,W+=h*f;var Q=C+=(W+=p*(5*E))>>>13;Q+=i*E,Q+=o*A,Q+=a*M,Q+=s*w,C=(Q+=u*b)>>>13,Q&=8191,Q+=c*v,Q+=l*g,Q+=d*m,Q+=h*y,i=D=8191&(C=(C=((C+=(Q+=p*f)>>>13)<<2)+C|0)+(D&=8191)|0),o=O+=C>>>=13,a=z&=8191,s=_&=8191,u=P&=8191,c=B&=8191,l=R&=8191,d=U&=8191,h=W&=8191,p=Q&=8191,t+=16,n-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=u,this._h[5]=c,this._h[6]=l,this._h[7]=d,this._h[8]=h,this._h[9]=p},e.prototype.finish=function(e,t){void 0===t&&(t=0);var n,r,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(n=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=n,n=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*n,n=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=n,n=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=n,a[0]=this._h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this._h[o]=this._h[o]&r|a[o];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,o=1;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,n=0,r=e.length;if(this._leftover){(t=16-this._leftover)>r&&(t=r);for(var i=0;i=16&&(t=r-r%16,this._blocks(e,n,t),n+=t,r-=t),r){for(i=0;ithis.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var i=0;iencodeURIComponent(e).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()))},function(e,t,n){var r=new RegExp("(%[a-f0-9]{2})|([^%]+?)","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;onew Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));const h="client",p=`wc@2:${h}:`,f=h,y="WALLETCONNECT_DEEPLINK_CHOICE",m=(c.THIRTY_DAYS,c.SEVEN_DAYS),g={wc_sessionPropose:{req:{ttl:c.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:c.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:c.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:c.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:c.ONE_DAY,prompt:!1,tag:1104},res:{ttl:c.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:c.ONE_DAY,prompt:!1,tag:1106},res:{ttl:c.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:c.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:c.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:c.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:c.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:c.ONE_DAY,prompt:!1,tag:1112},res:{ttl:c.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:c.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:c.THIRTY_SECONDS,prompt:!1,tag:1115}}},v={min:c.FIVE_MINUTES,max:c.SEVEN_DAYS},b="idle",w="active",M=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var A=Object.defineProperty,E=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,L=(e,t,n)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))I.call(t,n)&&L(e,n,t[n]);if(T)for(var n of T(t))k.call(t,n)&&L(e,n,t[n]);return e},S=(e,t)=>E(e,N(t));class j extends o.b{constructor(e){super(e),this.name="engine",this.events=new u.a,this.initialized=!1,this.ignoredPayloadTypes=[a.b],this.requestQueue={state:b,requests:[]},this.requestQueueDelay=c.ONE_SECOND,this.init=()=>d(this,null,(function*(){this.initialized||(yield this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(g)}),this.initialized=!0,setTimeout((()=>{this.requestQueue.requests=this.getPendingSessionRequests(),this.processRequestQueue()}),Object(c.toMiliseconds)(this.requestQueueDelay)))})),this.connect=e=>d(this,null,(function*(){this.isInitialized();const t=S(x({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});yield this.isValidConnect(t);const{pairingTopic:n,requiredNamespaces:i,optionalNamespaces:o,sessionProperties:s,relays:u}=t;let l,h=n,p=!1;if(h&&(p=this.client.core.pairing.pairings.get(h).active),!h||!p){const{topic:e,uri:t}=yield this.client.core.pairing.create();h=e,l=t}const f=yield this.client.core.crypto.generateKeyPair(),y=x({requiredNamespaces:i,optionalNamespaces:o,relays:null!=u?u:[{protocol:r.c}],proposer:{publicKey:f,metadata:this.client.metadata}},s&&{sessionProperties:s}),{reject:m,resolve:g,done:v}=Object(a.d)(c.FIVE_MINUTES,"Proposal expired");if(this.events.once(Object(a.k)("session_connect"),(e=>d(this,[e],(function*({error:e,session:t}){if(e)m(e);else if(t){t.self.publicKey=f;const e=S(x({},t),{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces});yield this.client.session.set(t.topic,e),yield this.setExpiry(t.topic,t.expiry),h&&(yield this.client.core.pairing.updateMetadata({topic:h,metadata:t.peer.metadata})),g(e)}})))),!h){const{message:e}=Object(a.s)("NO_MATCHING_KEY","connect() pairing topic: "+h);throw new Error(e)}const b=yield this.sendRequest(h,"wc_sessionPropose",y),w=Object(a.c)(c.FIVE_MINUTES);return yield this.setProposal(b,x({id:b,expiry:w},y)),{uri:l,approval:v}})),this.pair=e=>d(this,null,(function*(){return this.isInitialized(),yield this.client.core.pairing.pair(e)})),this.approve=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidApprove(e);const{id:t,relayProtocol:n,namespaces:r,sessionProperties:i}=e,o=this.client.proposal.get(t);let{pairingTopic:s,proposer:u,requiredNamespaces:c,optionalNamespaces:l}=o;s=s||"",Object(a.T)(c)||(c=Object(a.v)(r,"approve()"));const d=yield this.client.core.crypto.generateKeyPair(),h=u.publicKey,p=yield this.client.core.crypto.generateSharedKey(d,h);s&&t&&(yield this.client.core.pairing.updateMetadata({topic:s,metadata:u.metadata}),yield this.sendResult(t,s,{relay:{protocol:null!=n?n:"irn"},responderPublicKey:d}),yield this.client.proposal.delete(t,Object(a.w)("USER_DISCONNECTED")),yield this.client.core.pairing.activate({topic:s}));const f=x({relay:{protocol:null!=n?n:"irn"},namespaces:r,requiredNamespaces:c,optionalNamespaces:l,pairingTopic:s,controller:{publicKey:d,metadata:this.client.metadata},expiry:Object(a.c)(m)},i&&{sessionProperties:i});yield this.client.core.relayer.subscribe(p),yield this.sendRequest(p,"wc_sessionSettle",f);const y=S(x({},f),{topic:p,pairingTopic:s,acknowledged:!1,self:f.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:d});return yield this.client.session.set(p,y),yield this.setExpiry(p,Object(a.c)(m)),{topic:p,acknowledged:()=>new Promise((e=>setTimeout((()=>e(this.client.session.get(p))),500)))}})),this.reject=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidReject(e);const{id:t,reason:n}=e,{pairingTopic:r}=this.client.proposal.get(t);r&&(yield this.sendError(t,r,n),yield this.client.proposal.delete(t,Object(a.w)("USER_DISCONNECTED")))})),this.update=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidUpdate(e);const{topic:t,namespaces:n}=e,r=yield this.sendRequest(t,"wc_sessionUpdate",{namespaces:n}),{done:i,resolve:o,reject:s}=Object(a.d)();return this.events.once(Object(a.k)("session_update",r),(({error:e})=>{e?s(e):o()})),yield this.client.session.update(t,{namespaces:n}),{acknowledged:i}})),this.extend=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidExtend(e);const{topic:t}=e,n=yield this.sendRequest(t,"wc_sessionExtend",{}),{done:r,resolve:i,reject:o}=Object(a.d)();return this.events.once(Object(a.k)("session_extend",n),(({error:e})=>{e?o(e):i()})),yield this.setExpiry(t,Object(a.c)(m)),{acknowledged:r}})),this.request=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidRequest(e);const{chainId:t,request:n,topic:r,expiry:i}=e,o=yield this.sendRequest(r,"wc_sessionRequest",{request:n,chainId:t},i),{done:s,resolve:u,reject:c}=Object(a.d)(i);this.events.once(Object(a.k)("session_request",o),(({error:e,result:t})=>{e?c(e):u(t)})),this.client.events.emit("session_request_sent",{topic:r,request:n,chainId:t,id:o});const l=yield this.client.core.storage.getItem(y);return Object(a.x)({id:o,topic:r,wcDeepLink:l}),yield s()})),this.respond=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidRespond(e);const{topic:t,response:n}=e,{id:r}=n;Object(l.isJsonRpcResult)(n)?yield this.sendResult(r,t,n.result):Object(l.isJsonRpcError)(n)&&(yield this.sendError(r,t,n.error)),this.cleanupAfterResponse(e)})),this.ping=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidPing(e);const{topic:t}=e;if(this.client.session.keys.includes(t)){const e=yield this.sendRequest(t,"wc_sessionPing",{}),{done:n,resolve:r,reject:i}=Object(a.d)();this.events.once(Object(a.k)("session_ping",e),(({error:e})=>{e?i(e):r()})),yield n()}else this.client.core.pairing.pairings.keys.includes(t)&&(yield this.client.core.pairing.ping({topic:t}))})),this.emit=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidEmit(e);const{topic:t,event:n,chainId:r}=e;yield this.sendRequest(t,"wc_sessionEvent",{event:n,chainId:r})})),this.disconnect=e=>d(this,null,(function*(){this.isInitialized(),yield this.isValidDisconnect(e);const{topic:t}=e;if(this.client.session.keys.includes(t)){const e=Object(l.getBigIntRpcId)().toString();let n;const i=t=>{(null==t?void 0:t.id.toString())===e&&(this.client.core.relayer.events.removeListener(r.d.message_ack,i),n())};yield Promise.all([new Promise((e=>{n=e,this.client.core.relayer.on(r.d.message_ack,i)})),this.sendRequest(t,"wc_sessionDelete",Object(a.w)("USER_DISCONNECTED"),void 0,e)]),yield this.deleteSession(t)}else yield this.client.core.pairing.disconnect({topic:t})})),this.find=e=>(this.isInitialized(),this.client.session.getAll().filter((t=>Object(a.G)(t,e)))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=e=>d(this,null,(function*(){if(e.pairingTopic)try{const t=this.client.core.pairing.pairings.get(e.pairingTopic),n=this.client.core.pairing.pairings.getAll().filter((n=>{var r,i;return(null==(r=n.peerMetadata)?void 0:r.url)&&(null==(i=n.peerMetadata)?void 0:i.url)===e.peer.metadata.url&&n.topic&&n.topic!==t.topic}));if(0===n.length)return;this.client.logger.info(`Cleaning up ${n.length} duplicate pairing(s)`),yield Promise.all(n.map((e=>this.client.core.pairing.disconnect({topic:e.topic})))),this.client.logger.info("Duplicate pairings clean up finished")}catch(e){this.client.logger.error(e)}})),this.deleteSession=(e,t)=>d(this,null,(function*(){const{self:n}=this.client.session.get(e);yield this.client.core.relayer.unsubscribe(e),this.client.session.delete(e,Object(a.w)("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(n.publicKey)&&(yield this.client.core.crypto.deleteKeyPair(n.publicKey)),this.client.core.crypto.keychain.has(e)&&(yield this.client.core.crypto.deleteSymKey(e)),t||this.client.core.expirer.del(e),this.client.core.storage.removeItem(y).catch((e=>this.client.logger.warn(e)))})),this.deleteProposal=(e,t)=>d(this,null,(function*(){yield Promise.all([this.client.proposal.delete(e,Object(a.w)("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)])})),this.deletePendingSessionRequest=(e,t,n=!1)=>d(this,null,(function*(){yield Promise.all([this.client.pendingRequest.delete(e,t),n?Promise.resolve():this.client.core.expirer.del(e)]),this.requestQueue.requests=this.requestQueue.requests.filter((t=>t.id!==e)),n&&(this.requestQueue.state=b)})),this.setExpiry=(e,t)=>d(this,null,(function*(){this.client.session.keys.includes(e)&&(yield this.client.session.update(e,{expiry:t})),this.client.core.expirer.set(e,t)})),this.setProposal=(e,t)=>d(this,null,(function*(){yield this.client.proposal.set(e,t),this.client.core.expirer.set(e,t.expiry)})),this.setPendingSessionRequest=e=>d(this,null,(function*(){const t=g.wc_sessionRequest.req.ttl,{id:n,topic:r,params:i}=e;yield this.client.pendingRequest.set(n,{id:n,topic:r,params:i}),t&&this.client.core.expirer.set(n,Object(a.c)(t))})),this.sendRequest=(e,t,n,r,i)=>d(this,null,(function*(){const o=Object(l.formatJsonRpcRequest)(t,n);if(Object(a.A)()&&M.includes(t)){const e=Object(a.z)(JSON.stringify(o));yield this.client.core.verify.register({attestationId:e})}const s=yield this.client.core.crypto.encode(e,o),u=g[t].req;return r&&(u.ttl=r),i&&(u.id=i),this.client.core.history.set(e,o),this.client.core.relayer.publish(e,s,u),o.id})),this.sendResult=(e,t,n)=>d(this,null,(function*(){const r=Object(l.formatJsonRpcResult)(e,n),i=yield this.client.core.crypto.encode(t,r),o=yield this.client.core.history.get(t,e),a=g[o.request.method].res;this.client.core.relayer.publish(t,i,a),yield this.client.core.history.resolve(r)})),this.sendError=(e,t,n)=>d(this,null,(function*(){const r=Object(l.formatJsonRpcError)(e,n),i=yield this.client.core.crypto.encode(t,r),o=yield this.client.core.history.get(t,e),a=g[o.request.method].res;this.client.core.relayer.publish(t,i,a),yield this.client.core.history.resolve(r)})),this.cleanup=()=>d(this,null,(function*(){const e=[],t=[];this.client.session.getAll().forEach((t=>{Object(a.C)(t.expiry)&&e.push(t.topic)})),this.client.proposal.getAll().forEach((e=>{Object(a.C)(e.expiry)&&t.push(e.id)})),yield Promise.all([...e.map((e=>this.deleteSession(e))),...t.map((e=>this.deleteProposal(e)))])})),this.onRelayEventRequest=e=>{const{topic:t,payload:n}=e,r=n.method;switch(r){case"wc_sessionPropose":return this.onSessionProposeRequest(t,n);case"wc_sessionSettle":return this.onSessionSettleRequest(t,n);case"wc_sessionUpdate":return this.onSessionUpdateRequest(t,n);case"wc_sessionExtend":return this.onSessionExtendRequest(t,n);case"wc_sessionPing":return this.onSessionPingRequest(t,n);case"wc_sessionDelete":return this.onSessionDeleteRequest(t,n);case"wc_sessionRequest":return this.onSessionRequest(t,n);case"wc_sessionEvent":return this.onSessionEventRequest(t,n);default:return this.client.logger.info("Unsupported request method "+r)}},this.onRelayEventResponse=e=>d(this,null,(function*(){const{topic:t,payload:n}=e,r=(yield this.client.core.history.get(t,n.id)).request.method;switch(r){case"wc_sessionPropose":return this.onSessionProposeResponse(t,n);case"wc_sessionSettle":return this.onSessionSettleResponse(t,n);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,n);case"wc_sessionExtend":return this.onSessionExtendResponse(t,n);case"wc_sessionPing":return this.onSessionPingResponse(t,n);case"wc_sessionRequest":return this.onSessionRequestResponse(t,n);default:return this.client.logger.info("Unsupported response method "+r)}})),this.onRelayEventUnknownPayload=e=>{const{topic:t}=e,{message:n}=Object(a.s)("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw new Error(n)},this.onSessionProposeRequest=(e,t)=>d(this,null,(function*(){const{params:n,id:r}=t;try{this.isValidConnect(x({},t.params));const i=Object(a.c)(c.FIVE_MINUTES),o=x({id:r,pairingTopic:e,expiry:i},n);yield this.setProposal(r,o);const s=Object(a.z)(JSON.stringify(t)),u=yield this.getVerifyContext(s,o.proposer.metadata);this.client.events.emit("session_proposal",{id:r,params:o,verifyContext:u})}catch(t){yield this.sendError(r,e,t),this.client.logger.error(t)}})),this.onSessionProposeResponse=(e,t)=>d(this,null,(function*(){const{id:n}=t;if(Object(l.isJsonRpcResult)(t)){const{result:r}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:r});const i=this.client.proposal.get(n);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:i});const o=i.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});const a=r.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:a});const s=yield this.client.core.crypto.generateSharedKey(o,a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:s});const u=yield this.client.core.relayer.subscribe(s);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:u}),yield this.client.core.pairing.activate({topic:e})}else Object(l.isJsonRpcError)(t)&&(yield this.client.proposal.delete(n,Object(a.w)("USER_DISCONNECTED")),this.events.emit(Object(a.k)("session_connect"),{error:t.error}))})),this.onSessionSettleRequest=(e,t)=>d(this,null,(function*(){const{id:n,params:r}=t;try{this.isValidSessionSettleRequest(r);const{relay:n,controller:i,expiry:o,namespaces:s,requiredNamespaces:u,optionalNamespaces:c,sessionProperties:l,pairingTopic:d}=t.params,h=x({topic:e,relay:n,expiry:o,namespaces:s,acknowledged:!0,pairingTopic:d,requiredNamespaces:u,optionalNamespaces:c,controller:i.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:i.publicKey,metadata:i.metadata}},l&&{sessionProperties:l});yield this.sendResult(t.id,e,!0),this.events.emit(Object(a.k)("session_connect"),{session:h}),this.cleanupDuplicatePairings(h)}catch(t){yield this.sendError(n,e,t),this.client.logger.error(t)}})),this.onSessionSettleResponse=(e,t)=>d(this,null,(function*(){const{id:n}=t;Object(l.isJsonRpcResult)(t)?(yield this.client.session.update(e,{acknowledged:!0}),this.events.emit(Object(a.k)("session_approve",n),{})):Object(l.isJsonRpcError)(t)&&(yield this.client.session.delete(e,Object(a.w)("USER_DISCONNECTED")),this.events.emit(Object(a.k)("session_approve",n),{error:t.error}))})),this.onSessionUpdateRequest=(e,t)=>d(this,null,(function*(){const{params:n,id:r}=t;try{this.isValidUpdate(x({topic:e},n)),yield this.client.session.update(e,{namespaces:n.namespaces}),yield this.sendResult(r,e,!0),this.client.events.emit("session_update",{id:r,topic:e,params:n})}catch(t){yield this.sendError(r,e,t),this.client.logger.error(t)}})),this.onSessionUpdateResponse=(e,t)=>{const{id:n}=t;Object(l.isJsonRpcResult)(t)?this.events.emit(Object(a.k)("session_update",n),{}):Object(l.isJsonRpcError)(t)&&this.events.emit(Object(a.k)("session_update",n),{error:t.error})},this.onSessionExtendRequest=(e,t)=>d(this,null,(function*(){const{id:n}=t;try{this.isValidExtend({topic:e}),yield this.setExpiry(e,Object(a.c)(m)),yield this.sendResult(n,e,!0),this.client.events.emit("session_extend",{id:n,topic:e})}catch(t){yield this.sendError(n,e,t),this.client.logger.error(t)}})),this.onSessionExtendResponse=(e,t)=>{const{id:n}=t;Object(l.isJsonRpcResult)(t)?this.events.emit(Object(a.k)("session_extend",n),{}):Object(l.isJsonRpcError)(t)&&this.events.emit(Object(a.k)("session_extend",n),{error:t.error})},this.onSessionPingRequest=(e,t)=>d(this,null,(function*(){const{id:n}=t;try{this.isValidPing({topic:e}),yield this.sendResult(n,e,!0),this.client.events.emit("session_ping",{id:n,topic:e})}catch(t){yield this.sendError(n,e,t),this.client.logger.error(t)}})),this.onSessionPingResponse=(e,t)=>{const{id:n}=t;setTimeout((()=>{Object(l.isJsonRpcResult)(t)?this.events.emit(Object(a.k)("session_ping",n),{}):Object(l.isJsonRpcError)(t)&&this.events.emit(Object(a.k)("session_ping",n),{error:t.error})}),500)},this.onSessionDeleteRequest=(e,t)=>d(this,null,(function*(){const{id:n}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),yield Promise.all([new Promise((t=>{this.client.core.relayer.once(r.d.publish,(()=>d(this,null,(function*(){t(yield this.deleteSession(e))}))))})),this.sendResult(n,e,!0)]),this.client.events.emit("session_delete",{id:n,topic:e})}catch(e){this.client.logger.error(e)}})),this.onSessionRequest=(e,t)=>d(this,null,(function*(){const{id:n,params:r}=t;try{this.isValidRequest(x({topic:e},r)),yield this.setPendingSessionRequest({id:n,topic:e,params:r}),this.addRequestToQueue({id:n,topic:e,params:r}),yield this.processRequestQueue()}catch(t){yield this.sendError(n,e,t),this.client.logger.error(t)}})),this.onSessionRequestResponse=(e,t)=>{const{id:n}=t;Object(l.isJsonRpcResult)(t)?this.events.emit(Object(a.k)("session_request",n),{result:t.result}):Object(l.isJsonRpcError)(t)&&this.events.emit(Object(a.k)("session_request",n),{error:t.error})},this.onSessionEventRequest=(e,t)=>d(this,null,(function*(){const{id:n,params:r}=t;try{this.isValidEmit(x({topic:e},r)),this.client.events.emit("session_event",{id:n,topic:e,params:r})}catch(t){yield this.sendError(n,e,t),this.client.logger.error(t)}})),this.addRequestToQueue=e=>{this.requestQueue.requests.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout((()=>{this.requestQueue.state=b,this.processRequestQueue()}),Object(c.toMiliseconds)(this.requestQueueDelay))},this.processRequestQueue=()=>d(this,null,(function*(){if(this.requestQueue.state===w)return void this.client.logger.info("session request queue is already active.");const e=this.requestQueue.requests[0];if(e)try{const{id:t,topic:n,params:r}=e,i=Object(a.z)(JSON.stringify({id:t,params:r})),o=this.client.session.get(n),s=yield this.getVerifyContext(i,o.peer.metadata);this.requestQueue.state=w,this.client.events.emit("session_request",{id:t,topic:n,params:r,verifyContext:s})}catch(e){this.client.logger.error(e)}else this.client.logger.info("session request queue is empty.")})),this.isValidConnect=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","connect() params: "+JSON.stringify(e));throw new Error(t)}const{pairingTopic:t,requiredNamespaces:n,optionalNamespaces:r,sessionProperties:i,relays:o}=e;if(Object(a.J)(t)||(yield this.isValidPairingTopic(t)),!Object(a.W)(o,!0)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","connect() relays: "+o);throw new Error(e)}!Object(a.J)(n)&&0!==Object(a.T)(n)&&this.validateNamespaces(n,"requiredNamespaces"),!Object(a.J)(r)&&0!==Object(a.T)(r)&&this.validateNamespaces(r,"optionalNamespaces"),Object(a.J)(i)||this.validateSessionProps(i,"sessionProperties")})),this.validateNamespaces=(e,t)=>{const n=Object(a.Z)(e,"connect()",t);if(n)throw new Error(n.message)},this.isValidApprove=e=>d(this,null,(function*(){if(!Object(a.U)(e))throw new Error(Object(a.s)("MISSING_OR_INVALID","approve() params: "+e).message);const{id:t,namespaces:n,relayProtocol:r,sessionProperties:i}=e;yield this.isValidProposalId(t);const o=this.client.proposal.get(t),s=Object(a.P)(n,"approve()");if(s)throw new Error(s.message);const u=Object(a.B)(o.requiredNamespaces,n,"approve()");if(u)throw new Error(u.message);if(!Object(a.bb)(r,!0)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","approve() relayProtocol: "+r);throw new Error(e)}Object(a.J)(i)||this.validateSessionProps(i,"sessionProperties")})),this.isValidReject=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","reject() params: "+e);throw new Error(t)}const{id:t,reason:n}=e;if(yield this.isValidProposalId(t),!Object(a.M)(n)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","reject() reason: "+JSON.stringify(n));throw new Error(e)}})),this.isValidSessionSettleRequest=e=>{if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","onSessionSettleRequest() params: "+e);throw new Error(t)}const{relay:t,controller:n,namespaces:r,expiry:i}=e;if(!Object(a.V)(t)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(e)}const o=Object(a.L)(n,"onSessionSettleRequest()");if(o)throw new Error(o.message);const s=Object(a.P)(r,"onSessionSettleRequest()");if(s)throw new Error(s.message);if(Object(a.C)(i)){const{message:e}=Object(a.s)("EXPIRED","onSessionSettleRequest()");throw new Error(e)}},this.isValidUpdate=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","update() params: "+e);throw new Error(t)}const{topic:t,namespaces:n}=e;yield this.isValidSessionTopic(t);const r=this.client.session.get(t),i=Object(a.P)(n,"update()");if(i)throw new Error(i.message);const o=Object(a.B)(r.requiredNamespaces,n,"update()");if(o)throw new Error(o.message)})),this.isValidExtend=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","extend() params: "+e);throw new Error(t)}const{topic:t}=e;yield this.isValidSessionTopic(t)})),this.isValidRequest=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","request() params: "+e);throw new Error(t)}const{topic:t,request:n,chainId:r,expiry:i}=e;yield this.isValidSessionTopic(t);const{namespaces:o}=this.client.session.get(t);if(!Object(a.Q)(o,r)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","request() chainId: "+r);throw new Error(e)}if(!Object(a.X)(n)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","request() "+JSON.stringify(n));throw new Error(e)}if(!Object(a.S)(o,r,n.method)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","request() method: "+n.method);throw new Error(e)}if(i&&!Object(a.Y)(i,v)){const{message:e}=Object(a.s)("MISSING_OR_INVALID",`request() expiry: ${i}. Expiry must be a number (in seconds) between ${v.min} and ${v.max}`);throw new Error(e)}})),this.isValidRespond=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","respond() params: "+e);throw new Error(t)}const{topic:t,response:n}=e;if(yield this.isValidSessionTopic(t),!Object(a.ab)(n)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","respond() response: "+JSON.stringify(n));throw new Error(e)}})),this.isValidPing=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","ping() params: "+e);throw new Error(t)}const{topic:t}=e;yield this.isValidSessionOrPairingTopic(t)})),this.isValidEmit=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","emit() params: "+e);throw new Error(t)}const{topic:t,event:n,chainId:r}=e;yield this.isValidSessionTopic(t);const{namespaces:i}=this.client.session.get(t);if(!Object(a.Q)(i,r)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","emit() chainId: "+r);throw new Error(e)}if(!Object(a.N)(n)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","emit() event: "+JSON.stringify(n));throw new Error(e)}if(!Object(a.R)(i,r,n.name)){const{message:e}=Object(a.s)("MISSING_OR_INVALID","emit() event: "+JSON.stringify(n));throw new Error(e)}})),this.isValidDisconnect=e=>d(this,null,(function*(){if(!Object(a.U)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","disconnect() params: "+e);throw new Error(t)}const{topic:t}=e;yield this.isValidSessionOrPairingTopic(t)})),this.getVerifyContext=(e,t)=>d(this,null,(function*(){const n={verified:{verifyUrl:t.verifyUrl||"",validation:"UNKNOWN",origin:t.url||""}};try{const r=yield this.client.core.verify.resolve({attestationId:e,verifyUrl:t.verifyUrl});r&&(n.verified.origin=r,n.verified.validation=r===t.url?"VALID":"INVALID")}catch(e){this.client.logger.error(e)}return this.client.logger.info("Verify context: "+JSON.stringify(n)),n})),this.validateSessionProps=(e,t)=>{Object.values(e).forEach((e=>{if(!Object(a.bb)(e,!1)){const{message:n}=Object(a.s)("MISSING_OR_INVALID",`${t} must be in Record format. Received: ${JSON.stringify(e)}`);throw new Error(n)}}))}}isInitialized(){if(!this.initialized){const{message:e}=Object(a.s)("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.client.core.relayer.on(r.d.message,(e=>d(this,null,(function*(){const{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;const r=yield this.client.core.crypto.decode(t,n);try{Object(l.isJsonRpcRequest)(r)?(this.client.core.history.set(t,r),this.onRelayEventRequest({topic:t,payload:r})):Object(l.isJsonRpcResponse)(r)?(yield this.client.core.history.resolve(r),yield this.onRelayEventResponse({topic:t,payload:r}),this.client.core.history.delete(t,r.id)):this.onRelayEventUnknownPayload({topic:t,payload:r})}catch(e){this.client.logger.error(e)}}))))}registerExpirerEvents(){this.client.core.expirer.on(r.b.expired,(e=>d(this,null,(function*(){const{topic:t,id:n}=Object(a.fb)(e.target);if(n&&this.client.pendingRequest.keys.includes(n))return yield this.deletePendingSessionRequest(n,Object(a.s)("EXPIRED"),!0);t?this.client.session.keys.includes(t)&&(yield this.deleteSession(t,!0),this.client.events.emit("session_expire",{topic:t})):n&&(yield this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))}))))}isValidPairingTopic(e){if(!Object(a.bb)(e,!1)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","pairing topic should be a string: "+e);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){const{message:t}=Object(a.s)("NO_MATCHING_KEY","pairing topic doesn't exist: "+e);throw new Error(t)}if(Object(a.C)(this.client.core.pairing.pairings.get(e).expiry)){const{message:t}=Object(a.s)("EXPIRED","pairing topic: "+e);throw new Error(t)}}isValidSessionTopic(e){return d(this,null,(function*(){if(!Object(a.bb)(e,!1)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","session topic should be a string: "+e);throw new Error(t)}if(!this.client.session.keys.includes(e)){const{message:t}=Object(a.s)("NO_MATCHING_KEY","session topic doesn't exist: "+e);throw new Error(t)}if(Object(a.C)(this.client.session.get(e).expiry)){yield this.deleteSession(e);const{message:t}=Object(a.s)("EXPIRED","session topic: "+e);throw new Error(t)}}))}isValidSessionOrPairingTopic(e){return d(this,null,(function*(){if(this.client.session.keys.includes(e))yield this.isValidSessionTopic(e);else{if(!this.client.core.pairing.pairings.keys.includes(e)){if(Object(a.bb)(e,!1)){const{message:t}=Object(a.s)("NO_MATCHING_KEY","session or pairing topic doesn't exist: "+e);throw new Error(t)}{const{message:t}=Object(a.s)("MISSING_OR_INVALID","session or pairing topic should be a string: "+e);throw new Error(t)}}this.isValidPairingTopic(e)}}))}isValidProposalId(e){return d(this,null,(function*(){if(!Object(a.O)(e)){const{message:t}=Object(a.s)("MISSING_OR_INVALID","proposal id should be a number: "+e);throw new Error(t)}if(!this.client.proposal.keys.includes(e)){const{message:t}=Object(a.s)("NO_MATCHING_KEY","proposal id doesn't exist: "+e);throw new Error(t)}if(Object(a.C)(this.client.proposal.get(e).expiry)){yield this.deleteProposal(e);const{message:t}=Object(a.s)("EXPIRED","proposal id: "+e);throw new Error(t)}}))}}class C extends r.e{constructor(e,t){super(e,t,"proposal",p),this.core=e,this.logger=t}}class D extends r.e{constructor(e,t){super(e,t,"session",p),this.core=e,this.logger=t}}class O extends r.e{constructor(e,t){super(e,t,"request",p,(e=>e.id)),this.core=e,this.logger=t}}class z extends o.h{constructor(e){super(e),this.protocol="wc",this.version=2,this.name=f,this.events=new s.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=e=>d(this,null,(function*(){try{return yield this.engine.connect(e)}catch(e){throw this.logger.error(e.message),e}})),this.pair=e=>d(this,null,(function*(){try{return yield this.engine.pair(e)}catch(e){throw this.logger.error(e.message),e}})),this.approve=e=>d(this,null,(function*(){try{return yield this.engine.approve(e)}catch(e){throw this.logger.error(e.message),e}})),this.reject=e=>d(this,null,(function*(){try{return yield this.engine.reject(e)}catch(e){throw this.logger.error(e.message),e}})),this.update=e=>d(this,null,(function*(){try{return yield this.engine.update(e)}catch(e){throw this.logger.error(e.message),e}})),this.extend=e=>d(this,null,(function*(){try{return yield this.engine.extend(e)}catch(e){throw this.logger.error(e.message),e}})),this.request=e=>d(this,null,(function*(){try{return yield this.engine.request(e)}catch(e){throw this.logger.error(e.message),e}})),this.respond=e=>d(this,null,(function*(){try{return yield this.engine.respond(e)}catch(e){throw this.logger.error(e.message),e}})),this.ping=e=>d(this,null,(function*(){try{return yield this.engine.ping(e)}catch(e){throw this.logger.error(e.message),e}})),this.emit=e=>d(this,null,(function*(){try{return yield this.engine.emit(e)}catch(e){throw this.logger.error(e.message),e}})),this.disconnect=e=>d(this,null,(function*(){try{return yield this.engine.disconnect(e)}catch(e){throw this.logger.error(e.message),e}})),this.find=e=>{try{return this.engine.find(e)}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.name=(null==e?void 0:e.name)||f,this.metadata=(null==e?void 0:e.metadata)||Object(a.r)();const t=typeof(null==e?void 0:e.logger)<"u"&&"string"!=typeof(null==e?void 0:e.logger)?e.logger:Object(i.pino)(Object(i.getDefaultLoggerOptions)({level:(null==e?void 0:e.logger)||"error"}));this.core=(null==e?void 0:e.core)||new r.a(e),this.logger=Object(i.generateChildLogger)(t,this.name),this.session=new D(this.core,this.logger),this.proposal=new C(this.core,this.logger),this.pendingRequest=new O(this.core,this.logger),this.engine=new j(this)}static init(e){return d(this,null,(function*(){const t=new z(e);return yield t.initialize(),t}))}get context(){return Object(i.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}initialize(){return d(this,null,(function*(){this.logger.trace("Initialized");try{yield this.core.start(),yield this.session.init(),yield this.proposal.init(),yield this.pendingRequest.init(),yield this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}))}}}]);void 0===UI&&console.error("esm-webpack-plugin: nothing exported!");UI.Core;const WI=UI.SignClient;var QI=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=125)}([function(e,t,n){n.d(t,"a",(function(){return i})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -78,25 +79,25 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},function(e,t,n){n.d(t,"a",(function(){return l}));var r=n(0),i=n(26),o=n(59),a=n(4),s=n(43),u=n(14),c=n(36),l=function(e){function t(n,r,i){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!n){a.destination=o.a;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new d(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new d(a,n,r,i)}return a}return r.a(t,e),t.prototype[s.a]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.a),d=function(e){function t(t,n,r,a){var s,u=e.call(this)||this;u._parentSubscriber=t;var c=u;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==o.a&&(c=Object.create(n),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=r,u._complete=a,u}return r.a(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(c.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(c.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw e;Object(c.a)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Object(c.a)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},function(e,t,n){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c}));var r=n(0),i=n(1),o=n(3),a=n(35),s=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return r.a(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(i.a),u=(i.a,function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(i.a));function c(e,t){if(!t.closed){if(e instanceof o.a)return e.subscribe(t);var n;try{n=Object(a.a)(e)(t)}catch(e){t.error(e)}return n}}i.a},function(e,t,n){n.d(t,"a",(function(){return l}));var r=n(57),i=n(1),o=n(43),a=n(59),s=n(22),u=n(41),c=n(14),l=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,s=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new i.a(e,t,n):new i.a(a.a)}(e,t,n);if(r?s.add(r.call(s,this.source)):s.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(r.a)(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(e){r(e),i&&i.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[s.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return g(e,s,i,o,null)}function g(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(s),s}function v(){return{current:null}}function b(e){return e.children}function w(e,t){this.props=e,this.context=t}function M(e,t){if(null==t)return e.__?M(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?g(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(f=A[l])||f&&y.key==f.key&&y.type===f.type)A[l]=void 0;else for(p=0;p2&&(s.children=arguments.length>3?r.call(arguments,2):n),g(e.type,s,i||e.key,o||e.ref,null)}function Q(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(E)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=h.slice,i={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},o=0,a=function(e){return null!=e&&void 0===e.constructor},w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),E(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},w.prototype.render=b,s=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,T.__r=0,l=0},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(0),i=n(1);function o(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.thisArg))},e}(),s=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.a(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.a)},function(e,t,n){function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(3),i=new r.a((function(e){return e.complete()}));function o(e){return e?function(e){return new r.a((function(t){return e.schedule((function(){return t.complete()}))}))}(e):i}},function(e,t,n){n.d(t,"a",(function(){return a}));var r=n(3),i=n(35),o=n(78);function a(e,t){return t?Object(o.a)(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}},function(e,t,n){n.d(t,"a",(function(){return s}));var r=n(0),i=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.a(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n(1).a),o=n(35),a=n(3);function s(e,t,n,r,s){if(void 0===s&&(s=new i(e,n,r)),!s.closed)return t instanceof a.a?t.subscribe(s):Object(o.a)(t)(s)}},function(e,t,n){n.d(t,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},function(e,t,n){function r(e){return e}n.d(t,"a",(function(){return r}))},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n(1).a)},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(0),i=n(1);function o(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.predicate,this.thisArg))},e}(),s=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.a(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(i.a)},function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s}));var r,i=n(11),o=n(39),a=n(51);r||(r={});var s=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},function(e,t,n){(function(e){ +var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},function(e,t,n){n.d(t,"a",(function(){return l}));var r=n(0),i=n(26),o=n(58),a=n(4),s=n(43),u=n(14),c=n(36),l=function(e){function t(n,r,i){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!n){a.destination=o.a;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new d(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new d(a,n,r,i)}return a}return r.a(t,e),t.prototype[s.a]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.a),d=function(e){function t(t,n,r,a){var s,u=e.call(this)||this;u._parentSubscriber=t;var c=u;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==o.a&&(c=Object.create(n),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=r,u._complete=a,u}return r.a(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(c.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(c.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw e;Object(c.a)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Object(c.a)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},function(e,t,n){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c}));var r=n(0),i=n(1),o=n(3),a=n(35),s=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return r.a(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(i.a),u=(i.a,function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(i.a));function c(e,t){if(!t.closed){if(e instanceof o.a)return e.subscribe(t);var n;try{n=Object(a.a)(e)(t)}catch(e){t.error(e)}return n}}i.a},function(e,t,n){n.d(t,"a",(function(){return l}));var r=n(56),i=n(1),o=n(43),a=n(58),s=n(22),u=n(41),c=n(14),l=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,s=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new i.a(e,t,n):new i.a(a.a)}(e,t,n);if(r?s.add(r.call(s,this.source)):s.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(r.a)(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(e){r(e),i&&i.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[s.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return b(e,s,i,o,null)}function b(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(s),s}function w(){return{current:null}}function M(e){return e.children}function A(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&s.sort(l));I.__r=0}function k(e,t,n,r,i,o,a,s,u,c,l){var d,f,m,g,v,w,A,N,T,I=0,k=r&&r.__k||p,x=k.length,C=x,D=t.length;for(n.__k=[],d=0;d0?b(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)?(g.__=n,g.__b=n.__b+1,-1===(N=j(g,k,A=d+I,C))?m=h:(m=k[N]||h,k[N]=void 0,C--),_(e,g,m,i,o,a,s,u,c,l),v=g.__e,(f=g.ref)&&m.ref!=f&&(m.ref&&R(m.ref,null,g),l.push(f,g.__c||v,g)),null!=v&&(null==w&&(w=v),(T=m===h||null===m.__v)?-1==N&&I--:N!==A&&(N===A+1?I++:N>A?C>D-A?I+=N-A:I--:I=N(null!=u?1:0))for(;a>=0||s=0){if((u=t[a])&&i==u.key&&o===u.type)return a;a--}if(s2&&(u.children=arguments.length>3?r.call(arguments,2):n),b(e.type,u,i||e.key,o||e.ref,null)}function V(e,t){var n={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,T(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=p.slice,i={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},o=0,a=function(e){return null!=e&&void 0===e.constructor},A.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),T(this))},A.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),T(this))},A.prototype.render=M,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},I.__r=0,d=0},function(e,t,n){n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var r=n(0),i=n(3),o=n(1),a=n(4),s=n(23),u=n(80),c=n(43),l=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.a(t,e),t}(o.a),d=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.a(t,e),t.prototype[c.a]=function(){return new l(this)},t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i * @license MIT */ -var r=n(129),i=n(130),o=n(131);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return N(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function N(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function z(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function _(e,t,n,r,o){return o||z(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,o){return o||z(e,0,n,8),i.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return M(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return _(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return _(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(63))},function(e,t,n){n.d(t,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},function(e,t,n){function r(){}n.d(t,"a",(function(){return r}))},function(e,t,n){n.d(t,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},function(e,t,n){n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,t,n){function r(e){return"function"==typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,t,n){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r=n(0),i=n(9),o=n(12),a=n(2);function s(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(s((function(n,r){return Object(o.a)(e(n,r)).pipe(Object(i.a)((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new u(e,n))})}var u=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project,this.concurrent))},e}(),c=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.a(t,e),t.prototype._next=function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(a.b),l=s},function(e,t,n){n.d(t,"a",(function(){return a}));var r=n(3),i=n(80),o=n(58);function a(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(0),i=n(62),o=function(e){function t(n,r){void 0===r&&(r=i.a.now);var o=e.call(this,n,(function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.a(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i.a)},function(e,t,n){n.d(t,"a",(function(){return a}));var r=n(0),i=n(5),o=n(4),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return r.a(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),o.a.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),o.a.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(i.a)},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(0),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.a(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return r.a(t,e),t.prototype.schedule=function(e,t){return this},t}(n(4).a))},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(7);function i(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(39),i=n(74);function o(){for(var e=[],t=0;t=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function z(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function _(e,t,n,r,o){return o||z(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,o){return o||z(e,0,n,8),i.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return M(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return _(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return _(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(63))},function(e,t,n){n.d(t,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},function(e,t,n){function r(){}n.d(t,"a",(function(){return r}))},function(e,t,n){n.d(t,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},function(e,t,n){n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,t,n){function r(e){return"function"==typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,t,n){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r=n(0),i=n(9),o=n(12),a=n(2);function s(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(s((function(n,r){return Object(o.a)(e(n,r)).pipe(Object(i.a)((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new u(e,n))})}var u=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project,this.concurrent))},e}(),c=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.a(t,e),t.prototype._next=function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(a.b),l=s},function(e,t,n){n.d(t,"a",(function(){return a}));var r=n(3),i=n(81),o=n(57);function a(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(0),i=n(62),o=function(e){function t(n,r){void 0===r&&(r=i.a.now);var o=e.call(this,n,(function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.a(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i.a)},function(e,t,n){n.d(t,"a",(function(){return a}));var r=n(0),i=n(6),o=n(4),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return r.a(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),o.a.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),o.a.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(i.a)},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(0),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.a(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return r.a(t,e),t.prototype.schedule=function(e,t){return this},t}(n(4).a))},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(8);function i(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(39),i=n(75);function o(){for(var e=[],t=0;t */ -var r=n(19),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createQrUrl=t.getFavicon=t.range=t.isBigNumber=t.ensureParsedJSONObject=t.ensureBN=t.ensureRegExpString=t.ensureIntNumber=t.ensureBuffer=t.ensureAddressString=t.ensureEvenLengthHexString=t.ensureHexString=t.isHexString=t.prepend0x=t.strip0x=t.has0xPrefix=t.hexStringFromIntNumber=t.intNumberFromHexString=t.bigIntStringFromBN=t.hexStringFromBuffer=t.hexStringToUint8Array=t.uint8ArrayToHex=t.randomBytesHex=void 0;const i=r(n(66)),o=n(140),a=n(68),s=/^[0-9]*$/,u=/^[a-f0-9]*$/;function c(e){return[...e].map((e=>e.toString(16).padStart(2,"0"))).join("")}function l(e){return e.startsWith("0x")||e.startsWith("0X")}function d(e){return l(e)?e.slice(2):e}function h(e){return l(e)?"0x"+e.slice(2):"0x"+e}function p(e){if("string"!=typeof e)return!1;const t=d(e).toLowerCase();return u.test(t)}function f(e,t=!1){if("string"==typeof e){const n=d(e).toLowerCase();if(u.test(n))return(0,a.HexString)(t?"0x"+n:n)}throw new Error(`"${String(e)}" is not a hexadecimal string`)}function y(e,t=!1){let n=f(e,!1);return n.length%2==1&&(n=(0,a.HexString)("0"+n)),t?(0,a.HexString)("0x"+n):n}function m(e){if("number"==typeof e&&Number.isInteger(e))return(0,a.IntNumber)(e);if("string"==typeof e){if(s.test(e))return(0,a.IntNumber)(Number(e));if(p(e))return(0,a.IntNumber)(new i.default(y(e,!1),16).toNumber())}throw new Error("Not an integer: "+String(e))}function g(e){if(null==e||"function"!=typeof e.constructor)return!1;const{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}t.randomBytesHex=function(e){return c(crypto.getRandomValues(new Uint8Array(e)))},t.uint8ArrayToHex=c,t.hexStringToUint8Array=function(e){return new Uint8Array(e.match(/.{1,2}/g).map((e=>parseInt(e,16))))},t.hexStringFromBuffer=function(e,t=!1){const n=e.toString("hex");return(0,a.HexString)(t?"0x"+n:n)},t.bigIntStringFromBN=function(e){return(0,a.BigIntString)(e.toString(10))},t.intNumberFromHexString=function(e){return(0,a.IntNumber)(new i.default(y(e,!1),16).toNumber())},t.hexStringFromIntNumber=function(e){return(0,a.HexString)("0x"+new i.default(e).toString(16))},t.has0xPrefix=l,t.strip0x=d,t.prepend0x=h,t.isHexString=p,t.ensureHexString=f,t.ensureEvenLengthHexString=y,t.ensureAddressString=function(e){if("string"==typeof e){const t=d(e).toLowerCase();if(p(t)&&40===t.length)return(0,a.AddressString)(h(t))}throw new Error("Invalid Ethereum address: "+String(e))},t.ensureBuffer=function(t){if(e.isBuffer(t))return t;if("string"==typeof t){if(p(t)){const n=y(t,!1);return e.from(n,"hex")}return e.from(t,"utf8")}throw new Error("Not binary data: "+String(t))},t.ensureIntNumber=m,t.ensureRegExpString=function(e){if(e instanceof RegExp)return(0,a.RegExpString)(e.toString());throw new Error("Not a RegExp: "+String(e))},t.ensureBN=function(e){if(null!==e&&(i.default.isBN(e)||g(e)))return new i.default(e.toString(10),10);if("number"==typeof e)return new i.default(m(e));if("string"==typeof e){if(s.test(e))return new i.default(e,10);if(p(e))return new i.default(y(e,!1),16)}throw new Error("Not an integer: "+String(e))},t.ensureParsedJSONObject=function(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw new Error("Not a JSON string or an object: "+String(e))},t.isBigNumber=g,t.range=function(e,t){return Array.from({length:t-e},((t,n)=>e+n))},t.getFavicon=function(){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:n}=document.location,r=e?e.getAttribute("href"):null;return!r||r.startsWith("javascript:")?null:r.startsWith("http://")||r.startsWith("https://")||r.startsWith("data:")?r:r.startsWith("//")?t+r:`${t}//${n}${r}`},t.createQrUrl=function(e,t,n,r){const i=r?"parent-id":"id";return`${n}/#/link?${(0,o.stringify)({[i]:e,secret:t,server:n,v:"1"})}`}}).call(this,n(19).Buffer)},function(e,t,n){n.d(t,"a",(function(){return a}));var r=n(10),i=n(29),o=n(58);function a(){for(var e=[],t=0;t1)for(var n=1;n0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=function(e){var t=i++;return a[t]=!0,o.then((function(){return s(t)&&e()})),t}(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(function(e){s(e)}(n),t.scheduled=void 0)},t}(n(32).a),c=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,n){var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(r," ").concat(o(t,"type"))}return a+". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(110),o=n(114);n(24)(c,i);for(var a=r(o.prototype),s=0;s0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(y.a),g=n(30),v=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f.a(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++rt.index?1:-1:e.delay>t.delay?1:-1},t}(y.a),A=n(62),E=n(4),T=n(1),N=n(18),I=n(41),k=n(21),L=n(15);function x(e){return!!e&&(e instanceof r.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var S=n(25),j=n(27),C=n(23),D=n(44),O=n(73),z=n(9),_=n(57),P=n(7),R=n(10);function B(e,t,n){if(t){if(!Object(R.a)(t))return function(){for(var r=[],i=0;i1?r.next(Array.prototype.slice.call(arguments)):r.next(e)}),r,n)}))}function ne(e,t,n){return n?ne(e,t).pipe(Object(z.a)((function(e){return Object(P.a)(e)?n.apply(void 0,e):n(e)}))):new r.a((function(n){var r,i=function(){for(var e=[],t=0;t=t){r.complete();break}if(r.next(o++),r.closed)break}}))}function Ae(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;n>=r?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var Ee=n(51),Te=n(77);function Ne(e,t){return new r.a((function(n){var r,i;try{r=e()}catch(e){return void n.error(e)}try{i=t(r)}catch(e){return void n.error(e)}var o=(i?Object(X.a)(i):Z.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var Ie=n(55),ke=n(78),Le=n(14)},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(0),i=n(1);function o(){return function(e){return e.lift(new a(e))}}var a=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new s(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.a(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(i.a)},function(e,t,n){n.d(t,"a",(function(){return l}));var r=n(0),i=n(5),o=n(61),a=n(4),s=n(72),u=n(23),c=n(79),l=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.a(t,e),t.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new d(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new u.a;if(this.isStopped||this.hasError?t=a.a.EMPTY:(this.observers.push(e),t=new c.a(this,e)),i&&e.add(e=new s.a(e,i)),n)for(var l=0;lt&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(i.a),d=function(e,t){this.time=e,this.value=t}},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(3);function i(e,t){return t?new r.a((function(n){return t.schedule(o,0,{error:e,subscriber:n})})):new r.a((function(t){return t.error(e)}))}function o(e){var t=e.error;e.subscriber.error(t)}},function(e,t,n){n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var r=n(0),i=n(10),o=n(7),a=n(16),s=n(13),u=n(29),c={};function l(){for(var e=[],t=0;tthis.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),f=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.a(t,e),t.prototype[s.a]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return Object(u.c)(this.observable,new u.a(this))},t}(u.b)},function(e,t,n){function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(1);function i(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.a?i:null}return!0}},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(3),i=n(4);function o(e,t){return new r.a((function(n){var r=new i.a,o=0;return r.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(14),i=n(36),o={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},function(e,t){function n(e){return e.sort(((e,t)=>"latest"===e||"earliest"===t?1:"latest"===t||"earliest"===e?-1:r(e)-r(t)))}function r(e){return null==e?e:Number.parseInt(e,16)}function i(e){if(null==e)return e;let t=e.toString(16);return t.length%2&&(t="0"+t),"0x"+t}function o(){return Math.floor(16*Math.random()).toString(16)}e.exports={minBlockRef:function(...e){return n(e)[0]},maxBlockRef:function(...e){const t=n(e);return t[t.length-1]},sortBlockRefs:n,bnToHex:function(e){return"0x"+e.toString(16)},blockRefIsNumber:function(e){return e&&!["earliest","latest","pending"].includes(e)},hexToInt:r,incrementHexInt:function(e){return null==e?e:i(r(e)+1)},intToHex:i,unsafeRandomBytes:function(e){let t="0x";for(let n=0;n0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n(32).a),o=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t}(n(30).a))(i),a=o},function(e,t,n){n.d(t,"a",(function(){return r}));var r=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}()},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(65);function i(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout((()=>{throw e}))}}class o extends r.EventEmitter{emit(e,...t){let n="error"===e;const r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;const n=new Error("Unhandled error."+(e?` (${e.message})`:""));throw n.context=e,n}const o=r[e];if(void 0===o)return!1;if("function"==typeof o)i(o,this,t);else{const e=o.length,n=function(e){const t=e.length,n=new Array(t);for(let r=0;r0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=m(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},s.prototype.listenerCount=y,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(function(e){!function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(133).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function u(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,n,i){for(var o=0,a=0,s=Math.min(e.length,n),u=t;u=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=u(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var h=["","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"],p=[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],f=[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];function y(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?h[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=p[e],l=f[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var y=d.modrn(l).toString(e);n=(d=d.idivn(l)).isZero()?y+n:h[c-y.length]+y+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],f=8191&p,y=p>>>13,m=0|a[2],g=8191&m,v=m>>>13,b=0|a[3],w=8191&b,M=b>>>13,A=0|a[4],E=8191&A,T=A>>>13,N=0|a[5],I=8191&N,k=N>>>13,L=0|a[6],x=8191&L,S=L>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,_=O>>>13,P=0|a[9],R=8191&P,B=P>>>13,U=0|s[0],W=8191&U,Q=U>>>13,Y=0|s[1],F=8191&Y,V=Y>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,ee=K>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,he=le>>>13,pe=0|s[9],fe=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(c+(r=Math.imul(d,W))|0)+((8191&(i=(i=Math.imul(d,Q))+Math.imul(h,W)|0))<<13)|0;c=((o=Math.imul(h,Q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(f,W),i=(i=Math.imul(f,Q))+Math.imul(y,W)|0,o=Math.imul(y,Q);var ge=(c+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,F)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,W),i=(i=Math.imul(g,Q))+Math.imul(v,W)|0,o=Math.imul(v,Q),r=r+Math.imul(f,F)|0,i=(i=i+Math.imul(f,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,W),i=(i=Math.imul(w,Q))+Math.imul(M,W)|0,o=Math.imul(M,Q),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,W),i=(i=Math.imul(E,Q))+Math.imul(T,W)|0,o=Math.imul(T,Q),r=r+Math.imul(w,F)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,W),i=(i=Math.imul(I,Q))+Math.imul(k,W)|0,o=Math.imul(k,Q),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(T,F)|0,o=o+Math.imul(T,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0;var Me=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(x,W),i=(i=Math.imul(x,Q))+Math.imul(S,W)|0,o=Math.imul(S,Q),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0;var Ae=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,W),i=(i=Math.imul(C,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,X)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,Q))+Math.imul(_,W)|0,o=Math.imul(_,Q),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Te=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(R,W),i=(i=Math.imul(R,Q))+Math.imul(B,W)|0,o=Math.imul(B,Q),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(_,F)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Ne=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ye)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,ye)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(B,F)|0,o=Math.imul(B,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,he)|0;var Ie=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ye)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(R,G),i=(i=Math.imul(R,q))+Math.imul(B,G)|0,o=Math.imul(B,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var ke=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,ye)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,J),i=(i=Math.imul(R,X))+Math.imul(B,J)|0,o=Math.imul(B,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(T,de)|0,o=o+Math.imul(T,he)|0;var Le=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(M,fe)|0))<<13)|0;c=((o=o+Math.imul(M,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(R,$),i=(i=Math.imul(R,ee))+Math.imul(B,$)|0,o=Math.imul(B,ee),r=r+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var xe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(T,fe)|0))<<13)|0;c=((o=o+Math.imul(T,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,ne),i=(i=Math.imul(R,re))+Math.imul(B,ne)|0,o=Math.imul(B,re),r=r+Math.imul(z,oe)|0,i=(i=i+Math.imul(z,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,he)|0;var Se=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ye)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,ye)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(R,oe),i=(i=Math.imul(R,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),r=r+Math.imul(z,ue)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,he)|0;var je=(c+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,ye)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(R,ue),i=(i=Math.imul(R,ce))+Math.imul(B,ue)|0,o=Math.imul(B,ce),r=r+Math.imul(z,de)|0,i=(i=i+Math.imul(z,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Ce=(c+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ye)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(R,de),i=(i=Math.imul(R,he))+Math.imul(B,de)|0,o=Math.imul(B,he);var De=(c+(r=r+Math.imul(z,fe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ye)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(c+(r=Math.imul(R,fe))|0)+((8191&(i=(i=Math.imul(R,ye))+Math.imul(B,fe)|0))<<13)|0;return c=((o=Math.imul(B,ye))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,u[0]=me,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=Me,u[6]=Ae,u[7]=Ee,u[8]=Te,u[9]=Ne,u[10]=Ie,u[11]=ke,u[12]=Le,u[13]=xe,u[14]=Se,u[15]=je,u[16]=Ce,u[17]=De,u[18]=Oe,0!==c&&(u[19]=c,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function v(e,t,n){return g(e,t,n)}Math.imul||(m=y),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?y(this,e,t):n<1024?g(this,e,t):v(this,e,t)},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-o|d>>>o,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var f=0,y=1;0==(n.words[0]&y)&&f<26;++f,y<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(u)):(n.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,h=1;0==(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new N(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){N.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(M,w),M.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},M.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new M;else if("p224"===e)t=new A;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new T}return b[e]=t,t},N.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},N.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},N.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},N.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},N.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},N.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},N.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},N.prototype.isqr=function(e){return this.imul(e,e.clone())},N.prototype.sqr=function(e){return this.mul(e,e)},N.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,i),h=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),f=a;0!==p.cmp(s);){for(var y=p,m=0;0!==y.cmp(s);m++)y=y.redSqr();r(m=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},N.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},N.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new I(e)},i(I,N),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(132)(e))},function(e,t,n){n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h}));var r=n(0),i=n(1),o=n(4),a=n(3),s=n(5);function u(e,t,n,r){return function(i){return i.lift(new c(e,t,n,r))}}var c=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),l=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.keySelector=n,a.elementSelector=r,a.durationSelector=i,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return r.a(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(e){this.error(e)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new s.a,n.set(t,i);var o=new h(t,i,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new h(t,i))}catch(e){return void this.error(e)}this.add(a.subscribe(new d(t,i,this)))}}i.closed||i.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(i.a),d=function(e){function t(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return r.a(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(i.a),h=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return r.a(t,e),t.prototype._subscribe=function(e){var t=new o.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new p(n)),t.add(r.subscribe(e)),t},t}(a.a),p=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return r.a(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(o.a)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderType=t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=function(){return e=>e},t.HexString=e=>e,t.AddressString=e=>e,t.BigIntString=e=>e,t.IntNumber=function(e){return Math.floor(e)},t.RegExpString=e=>e,function(e){e.CoinbaseWallet="CoinbaseWallet",e.MetaMask="MetaMask",e.Unselected=""}(t.ProviderType||(t.ProviderType={}))},function(e,t,n){n.r(t),n.d(t,"audit",(function(){return o})),n.d(t,"auditTime",(function(){return l})),n.d(t,"buffer",(function(){return d})),n.d(t,"bufferCount",(function(){return y})),n.d(t,"bufferTime",(function(){return w})),n.d(t,"bufferToggle",(function(){return S})),n.d(t,"bufferWhen",(function(){return D})),n.d(t,"catchError",(function(){return _})),n.d(t,"combineAll",(function(){return U})),n.d(t,"combineLatest",(function(){return Y})),n.d(t,"concat",(function(){return V})),n.d(t,"concatAll",(function(){return H.a})),n.d(t,"concatMap",(function(){return q})),n.d(t,"concatMapTo",(function(){return Z})),n.d(t,"count",(function(){return J})),n.d(t,"debounce",(function(){return $})),n.d(t,"debounceTime",(function(){return ne})),n.d(t,"defaultIfEmpty",(function(){return ae})),n.d(t,"delay",(function(){return de})),n.d(t,"delayWhen",(function(){return me})),n.d(t,"dematerialize",(function(){return Me})),n.d(t,"distinct",(function(){return Te})),n.d(t,"distinctUntilChanged",(function(){return ke})),n.d(t,"distinctUntilKeyChanged",(function(){return Se})),n.d(t,"elementAt",(function(){return Qe})),n.d(t,"endWith",(function(){return Fe})),n.d(t,"every",(function(){return Ve})),n.d(t,"exhaust",(function(){return qe})),n.d(t,"exhaustMap",(function(){return Ke})),n.d(t,"expand",(function(){return tt})),n.d(t,"filter",(function(){return Ce.a})),n.d(t,"finalize",(function(){return it})),n.d(t,"find",(function(){return st})),n.d(t,"findIndex",(function(){return lt})),n.d(t,"first",(function(){return ht})),n.d(t,"groupBy",(function(){return pt.b})),n.d(t,"ignoreElements",(function(){return ft})),n.d(t,"isEmpty",(function(){return gt})),n.d(t,"last",(function(){return Et})),n.d(t,"map",(function(){return Xe.a})),n.d(t,"mapTo",(function(){return Tt})),n.d(t,"materialize",(function(){return kt})),n.d(t,"max",(function(){return zt})),n.d(t,"merge",(function(){return Pt})),n.d(t,"mergeAll",(function(){return Rt.a})),n.d(t,"mergeMap",(function(){return G.b})),n.d(t,"flatMap",(function(){return G.a})),n.d(t,"mergeMapTo",(function(){return Bt})),n.d(t,"mergeScan",(function(){return Ut})),n.d(t,"min",(function(){return Yt})),n.d(t,"multicast",(function(){return Vt})),n.d(t,"observeOn",(function(){return Gt.b})),n.d(t,"onErrorResumeNext",(function(){return qt})),n.d(t,"pairwise",(function(){return Xt})),n.d(t,"partition",(function(){return tn})),n.d(t,"pluck",(function(){return nn})),n.d(t,"publish",(function(){return an})),n.d(t,"publishBehavior",(function(){return un})),n.d(t,"publishLast",(function(){return ln})),n.d(t,"publishReplay",(function(){return hn})),n.d(t,"race",(function(){return fn})),n.d(t,"reduce",(function(){return Ot})),n.d(t,"repeat",(function(){return yn})),n.d(t,"repeatWhen",(function(){return vn})),n.d(t,"retry",(function(){return Mn})),n.d(t,"retryWhen",(function(){return Tn})),n.d(t,"refCount",(function(){return kn.a})),n.d(t,"sample",(function(){return Ln})),n.d(t,"sampleTime",(function(){return jn})),n.d(t,"scan",(function(){return St})),n.d(t,"sequenceEqual",(function(){return zn})),n.d(t,"share",(function(){return Un})),n.d(t,"shareReplay",(function(){return Wn})),n.d(t,"single",(function(){return Qn})),n.d(t,"skip",(function(){return Vn})),n.d(t,"skipLast",(function(){return qn})),n.d(t,"skipUntil",(function(){return Xn})),n.d(t,"skipWhile",(function(){return er})),n.d(t,"startWith",(function(){return rr})),n.d(t,"subscribeOn",(function(){return sr})),n.d(t,"switchAll",(function(){return hr})),n.d(t,"switchMap",(function(){return cr})),n.d(t,"switchMapTo",(function(){return pr})),n.d(t,"take",(function(){return Be})),n.d(t,"takeLast",(function(){return wt})),n.d(t,"takeUntil",(function(){return fr})),n.d(t,"takeWhile",(function(){return gr})),n.d(t,"tap",(function(){return Ar})),n.d(t,"throttle",(function(){return Ir})),n.d(t,"throttleTime",(function(){return xr})),n.d(t,"throwIfEmpty",(function(){return Oe})),n.d(t,"timeInterval",(function(){return Or})),n.d(t,"timeout",(function(){return Wr})),n.d(t,"timeoutWith",(function(){return Pr})),n.d(t,"timestamp",(function(){return Qr})),n.d(t,"toArray",(function(){return Vr})),n.d(t,"window",(function(){return Hr})),n.d(t,"windowCount",(function(){return Zr})),n.d(t,"windowTime",(function(){return Kr})),n.d(t,"windowToggle",(function(){return oi})),n.d(t,"windowWhen",(function(){return ui})),n.d(t,"withLatestFrom",(function(){return di})),n.d(t,"zip",(function(){return yi})),n.d(t,"zipAll",(function(){return mi}));var r=n(0),i=n(2);function o(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.durationSelector))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=Object(i.c)(t,new i.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(i.b),u=n(6),c=n(77);function l(e,t){return void 0===t&&(t=u.a),o((function(){return Object(c.a)(e,t)}))}function d(e){return function(t){return t.lift(new h(e))}}var h=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.closingNotifier))},e}(),p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.buffer=[],r.add(Object(i.c)(n,new i.a(r))),r}return r.a(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(){var e=this.buffer;this.buffer=[],this.destination.next(e)},t}(i.b),f=n(1);function y(e,t){return void 0===t&&(t=null),function(n){return n.lift(new m(e,t))}}var m=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?v:g}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),g=function(e){function t(t,n){var r=e.call(this,t)||this;return r.bufferSize=n,r.buffer=[],r}return r.a(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(f.a),v=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.a(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(e),a.length===t&&(r.splice(o,1),this.destination.next(a))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var r=t.shift();r.length>0&&n.next(r)}e.prototype._complete.call(this)},t}(f.a),b=n(10);function w(e){var t=arguments.length,n=u.a;Object(b.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new M(e,r,i,n))}}var M=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new E(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),A=function(){this.buffer=[]},E=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=r,a.maxBufferSize=i,a.scheduler=o,a.contexts=[];var s=a.openContext();if(a.timespanOnly=null==r||r<0,a.timespanOnly){var u={subscriber:a,context:s,bufferTimeSpan:n};a.add(s.closeAction=o.schedule(T,n,u))}else{var c={subscriber:a,context:s},l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:a,scheduler:o};a.add(s.closeAction=o.schedule(I,n,c)),a.add(o.schedule(N,r,l))}return a}return r.a(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,i=0;i0;){var r=t.shift();n.next(r.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(T,n,r))}},t.prototype.openContext=function(){var e=new A;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(f.a);function T(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function N(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(I,n,{subscriber:r,context:o})),this.schedule(e,t))}function I(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var k=n(4),L=n(13),x=n(16);function S(e,t){return function(n){return n.lift(new j(e,t))}}var j=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new C(e,this.openings,this.closingSelector))},e}(),C=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.closingSelector=r,i.contexts=[],i.add(Object(L.a)(i,n)),i}return r.a(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new k.a,r={buffer:[],subscription:n};t.push(r);var i=Object(L.a)(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},t}(x.a);function D(e){return function(t){return t.lift(new O(e))}}var O=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new z(e,this.closingSelector))},e}(),z=function(e){function t(t,n){var r=e.call(this,t)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.a(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},t.prototype.notifyNext=function(){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{t=(0,this.closingSelector)()}catch(e){return this.error(e)}e=new k.a,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(Object(i.c)(t,new i.a(this))),this.subscribing=!1},t}(i.b);function _(e){return function(t){var n=new P(e),r=t.lift(n);return n.caught=r}}var P=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new R(e,this.selector,this.caught))},e}(),R=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return r.a(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var r=new i.a(this);this.add(r);var o=Object(i.c)(n,r);o!==r&&this.add(o)}},t}(i.b),B=n(52);function U(e){return function(t){return t.lift(new B.a(e))}}var W=n(7),Q=n(12);function Y(){for(var e=[],t=0;t0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new fe(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(le.a.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(le.a.createComplete()),this.unsubscribe()},t}(f.a),fe=function(e,t){this.time=e,this.notification=t},ye=n(3);function me(e,t){return t?function(n){return new be(n,t).lift(new ge(e))}:function(t){return t.lift(new ge(e))}}var ge=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new ve(e,this.delayDurationSelector))},e}(),ve=function(e){function t(t,n){var r=e.call(this,t)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.a(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=Object(L.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(x.a),be=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subscriptionDelay=n,r}return r.a(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new we(e,this.source))},t}(ye.a),we=function(e){function t(t,n){var r=e.call(this)||this;return r.parent=t,r.source=n,r.sourceSubscribed=!1,r}return r.a(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(f.a);function Me(){return function(e){return e.lift(new Ae)}}var Ae=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Ee(e))},e}(),Ee=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(f.a);function Te(e,t){return function(n){return n.lift(new Ne(e,t))}}var Ne=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new Ie(e,this.keySelector,this.flushes))},e}(),Ie=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.keySelector=n,o.values=new Set,r&&o.add(Object(i.c)(r,new i.a(o))),o}return r.a(t,e),t.prototype.notifyNext=function(){this.values.clear()},t.prototype.notifyError=function(e){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){return void n.error(e)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(i.b);function ke(e,t){return function(n){return n.lift(new Le(e,t))}}var Le=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new xe(e,this.compare,this.keySelector))},e}(),xe=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.a(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(f.a);function Se(e,t){return ke((function(n,r){return t?t(n[e],r[e]):n[e]===r[e]}))}var je=n(25),Ce=n(17),De=n(27);function Oe(e){return void 0===e&&(e=Pe),function(t){return t.lift(new ze(e))}}var ze=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new _e(e,this.errorFactory))},e}(),_e=function(e){function t(t,n){var r=e.call(this,t)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.a(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(f.a);function Pe(){return new De.a}var Re=n(11);function Be(e){return function(t){return 0===e?Object(Re.b)():t.lift(new Ue(e))}}var Ue=function(){function e(e){if(this.total=e,this.total<0)throw new je.a}return e.prototype.call=function(e,t){return t.subscribe(new We(e,this.total))},e}(),We=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.a(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(f.a);function Qe(e,t){if(e<0)throw new je.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(Ce.a)((function(t,n){return n===e})),Be(1),n?ae(t):Oe((function(){return new je.a})))}}var Ye=n(39);function Fe(){for(var e=[],t=0;t0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(i.b);function it(e){return function(t){return t.lift(new ot(e))}}var ot=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new at(e,this.callback))},e}(),at=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new k.a(n)),r}return r.a(t,e),t}(f.a);function st(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new ut(e,n,!1,t))}}var ut=function(){function e(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}return e.prototype.call=function(e,t){return t.subscribe(new ct(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),ct=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.predicate=n,a.source=r,a.yieldIndex=i,a.thisArg=o,a.index=0,a}return r.a(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(f.a);function lt(e,t){return function(n){return n.lift(new ut(e,n,!0,t))}}var dt=n(15);function ht(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(Ce.a)((function(t,n){return e(t,n,r)})):dt.a,Be(1),n?ae(t):Oe((function(){return new De.a})))}}var pt=n(67);function ft(){return function(e){return e.lift(new yt)}}var yt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new mt(e))},e}(),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype._next=function(e){},t}(f.a);function gt(){return function(e){return e.lift(new vt)}}var vt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new bt(e))},e}(),bt=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(f.a);function wt(e){return function(t){return 0===e?Object(Re.b)():t.lift(new Mt(e))}}var Mt=function(){function e(e){if(this.total=e,this.total<0)throw new je.a}return e.prototype.call=function(e,t){return t.subscribe(new At(e,this.total))},e}(),At=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.a(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(e?Object(Ce.a)((function(t,n){return e(t,n,r)})):dt.a,wt(1),n?ae(t):Oe((function(){return new De.a})))}}function Tt(e){return function(t){return t.lift(new Nt(e))}}var Nt=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new It(e,this.value))},e}(),It=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return r.a(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(f.a);function kt(){return function(e){return e.lift(new Lt)}}var Lt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new xt(e))},e}(),xt=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t.prototype._next=function(e){this.destination.next(le.a.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(le.a.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(le.a.createComplete()),e.complete()},t}(f.a);function St(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new jt(e,t,n))}}var jt=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new Ct(e,this.accumulator,this.seed,this.hasSeed))},e}(),Ct=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.a(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(f.a),Dt=n(41);function Ot(e,t){return arguments.length>=2?function(n){return Object(Dt.a)(St(e,t),wt(1),ae(t))(n)}:function(t){return Object(Dt.a)(St((function(t,n,r){return e(t,n,r+1)})),wt(1))(t)}}function zt(e){return Ot("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var _t=n(75);function Pt(){for(var e=[],t=0;t0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(i.b);function Yt(e){return Ot("function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(f.a);function vn(e){return function(t){return t.lift(new bn(e))}}var bn=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new wn(e,this.notifier,t))},e}(),wn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.a(t,e),t.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new on.a;try{t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=Object(i.c)(t,new i.a(this))},t}(i.b);function Mn(e){return void 0===e&&(e=-1),function(t){return t.lift(new An(e,t))}}var An=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new En(e,this.count,this.source))},e}(),En=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.count=n,i.source=r,i}return r.a(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return e.prototype.error.call(this,t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(f.a);function Tn(e){return function(t){return t.lift(new Nn(e,t))}}var Nn=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new In(e,this.notifier,this.source))},e}(),In=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i}return r.a(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new on.a;try{r=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}o=Object(i.c)(r,new i.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype.notifyNext=function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)},t}(i.b),kn=n(49);function Ln(e){return function(t){return t.lift(new xn(e))}}var xn=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Sn(e),r=t.subscribe(n);return r.add(Object(i.c)(this.notifier,new i.a(n))),r},e}(),Sn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return r.a(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(i.b);function jn(e,t){return void 0===t&&(t=u.a),function(n){return n.lift(new Cn(e,t))}}var Cn=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Dn(e,this.period,this.scheduler))},e}(),Dn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(On,n,{subscriber:i,period:n})),i}return r.a(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(f.a);function On(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function zn(e,t){return function(n){return n.lift(new _n(e,t))}}var _n=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new Pn(e,this.compareTo,this.comparator))},e}(),Pn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Rn(t,i))),i}return r.a(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var r=e.shift(),i=t.shift(),o=!1;try{o=n?n(r,i):r===i}catch(e){this.destination.error(e)}o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(f.a),Rn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.parent=n,r}return r.a(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(f.a);function Bn(){return new on.a}function Un(){return function(e){return Object(kn.a)()(Vt(Bn)(e))}}function Wn(e,t,n){var r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,u=e.scheduler,c=0,l=!1,d=!1;return function(e){var r;c++,!t||l?(l=!1,t=new dn.a(i,a,u),r=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):r=t.subscribe(this),this.add((function(){c--,r.unsubscribe(),r=void 0,n&&!d&&s&&0===c&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(r))}}function Qn(e){return function(t){return t.lift(new Yn(e,t))}}var Yn=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Fn(e,this.predicate,this.source))},e}(),Fn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.a(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new De.a)},t}(f.a);function Vn(e){return function(t){return t.lift(new Hn(e))}}var Hn=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new Gn(e,this.total))},e}(),Gn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.a(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(f.a);function qn(e){return function(t){return t.lift(new Zn(e))}}var Zn=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new je.a}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new f.a(e)):t.subscribe(new Jn(e,this._skipCount))},e}(),Jn=function(e){function t(t,n){var r=e.call(this,t)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.a(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a=0&&s%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var u=new on.a;i.push(u),n.next(u)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(f.a);function Kr(e){var t=u.a,n=null,r=Number.POSITIVE_INFINITY;return Object(b.a)(arguments[3])&&(t=arguments[3]),Object(b.a)(arguments[2])?t=arguments[2]:Object(or.a)(arguments[2])&&(r=Number(arguments[2])),Object(b.a)(arguments[1])?t=arguments[1]:Object(or.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new $r(e,n,r,t))}}var $r=function(){function e(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new ti(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),ei=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return r.a(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(on.a),ti=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;a.destination=t,a.windowTimeSpan=n,a.windowCreationInterval=r,a.maxWindowSize=i,a.scheduler=o,a.windows=[];var s=a.openWindow();if(null!==r&&r>=0){var u={subscriber:a,window:s,context:null},c={windowTimeSpan:n,windowCreationInterval:r,subscriber:a,scheduler:o};a.add(o.schedule(ii,n,u)),a.add(o.schedule(ri,r,c))}else{var l={subscriber:a,window:s,windowTimeSpan:n};a.add(o.schedule(ni,n,l))}return a}return r.a(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new ei;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(f.a);function ni(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function ri(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null},s={subscriber:n,window:o,context:a};a.subscription=r.schedule(ii,t,s),this.add(a.subscription),this.schedule(e,i)}function ii(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function oi(e,t){return function(n){return n.lift(new ai(e,t))}}var ai=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new si(e,this.openings,this.closingSelector))},e}(),si=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Object(L.a)(i,n,n)),i}return r.a(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(x.a),fi=n(55);function yi(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof u&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof r.a?e[0]:Object(o.a)(n)(Object(a.a)(e,s))}},function(e,t,n){n.d(t,"a",(function(){return u}));var r=n(0),i=n(7),o=n(29),a=n(16),s=n(13);function u(){for(var e=[],t=0;t(0,l.ensureAddressString)(e))),this.emit("accountsChanged",e))}this._subscriptionManager.events.on("notification",(e=>{this.emit("message",{type:e.method,data:e.params})})),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",(e=>{var t;if("walletLinkMessage"===e.data.type&&"defaultChainChanged"===e.data.data.action){const n=e.data.data.chainId,r=null!==(t=e.data.data.jsonRpcUrl)&&void 0!==t?t:this.jsonRpcUrl;this.updateProviderInfo(r,Number(n),!0)}}))}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,l.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return null!==(e=this._storage.getItem("DefaultJsonRpcUrl"))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem("DefaultJsonRpcUrl",e)}get isChainOverridden(){return"true"===this._storage.getItem("HasChainOverriddenFromRelay")}set isChainOverridden(e){this._storage.setItem("HasChainOverriddenFromRelay",e.toString())}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isChainOverridden||this.updateProviderInfo(e,this.getChainId(),!1)}updateProviderInfo(e,t,n){if("true"===this._storage.getItem("HasChainBeenSwitched")&&n)return;n&&(this.isChainOverridden=!0),this.jsonRpcUrl=e;const r=this.getChainId();this._storage.setItem("DefaultChainId",t.toString(10)),(0,l.ensureIntNumber)(t)===r&&this.hasMadeFirstChainChangedEmission||(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,r,i,o){const a=await this.initializeRelay();return!!(await a.watchAsset(e,t,n,r,i,null==o?void 0:o.toString()).promise).result}async addEthereumChain(e,t,n,r,i,o){var a,s;if((0,l.ensureIntNumber)(e)===this.getChainId())return!1;const u=await this.initializeRelay(),c=u.inlineAddEthereumChain(e.toString());this._isAuthorized()||c||await u.requestEthereumAccounts().promise;const d=await u.addEthereumChain(e.toString(),t,i,n,r,o).promise;return!0===(null===(a=d.result)||void 0===a?void 0:a.isApproved)&&(this._storage.setItem("HasChainBeenSwitched","true"),this.updateProviderInfo(t[0],e,!1)),!0===(null===(s=d.result)||void 0===s?void 0:s.isApproved)}async switchEthereumChain(e){if((0,l.ensureIntNumber)(e)===this.getChainId())return;const t=await this.initializeRelay(),n=await t.switchEthereumChain(e.toString(10)).promise;if(n.errorCode)throw a.ethErrors.provider.custom({code:n.errorCode});const r=n.result;r.isApproved&&r.rpcUrl.length>0&&(this._storage.setItem("HasChainBeenSwitched","true"),this.updateProviderInfo(r.rpcUrl,e,!1))}setAppInfo(e,t){this.initializeRelay().then((n=>n.setAppInfo(e,t)))}async enable(){var e;return null===(e=this.diagnostic)||void 0===e||e.log(s.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?u.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(p.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,t){if("string"==typeof e){const n={jsonrpc:"2.0",id:0,method:e,params:Array.isArray(t)?t:void 0!==t?[t]:[]};return this._sendRequestAsync(n).then((e=>e.result))}if("function"==typeof t){const n=e,r=t;return this._sendAsync(n,r)}if(Array.isArray(e))return e.map((e=>this._sendRequest(e)));const n=e;return this._sendRequest(n)}async sendAsync(e,t){if("function"!=typeof t)throw new Error("callback is required");if(Array.isArray(e)){const n=t;return void this._sendMultipleRequestsAsync(e).then((e=>n(null,e))).catch((e=>n(e,null)))}const n=t;return this._sendRequestAsync(e).then((e=>n(null,e))).catch((e=>n(e,null)))}async request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw a.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});const{method:t,params:n}=e;if("string"!=typeof t||0===t.length)throw a.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw a.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});const r=void 0===n?[]:n,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:r,jsonrpc:"2.0",id:i})).result}async scanQRCode(e){const t=await this.initializeRelay(),n=await t.scanQRCode((0,l.ensureRegExpString)(e)).promise;if("string"!=typeof n.result)throw new Error("result was not a string");return n.result}async genericRequest(e,t){const n=await this.initializeRelay(),r=await n.genericRequest(e,t).promise;if("string"!=typeof r.result)throw new Error("result was not a string");return r.result}async selectProvider(e){const t=await this.initializeRelay(),n=await t.selectProvider(e).promise;if("string"!=typeof n.result)throw new Error("result was not a string");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){const t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),void 0===t.result)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw new Error("addresses is not an array");const n=e.map((e=>(0,l.ensureAddressString)(e)));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&!1===this.supportsAddressSwitching&&!t||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(c.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(e){return new Promise(((t,n)=>{try{const r=this._handleSynchronousMethods(e);if(void 0!==r)return t({jsonrpc:"2.0",id:e.id,result:r});const i=this._handleAsynchronousFilterMethods(e);if(void 0!==i)return void i.then((n=>t(Object.assign(Object.assign({},n),{id:e.id})))).catch((e=>n(e)));const o=this._handleSubscriptionMethods(e);if(void 0!==o)return void o.then((n=>t({jsonrpc:"2.0",id:e.id,result:n.result}))).catch((e=>n(e)))}catch(e){return n(e)}this._handleAsynchronousMethods(e).then((n=>n&&t(Object.assign(Object.assign({},n),{id:e.id})))).catch((e=>n(e)))}))}_sendMultipleRequestsAsync(e){return Promise.all(e.map((e=>this._sendRequestAsync(e))))}_handleSynchronousMethods(e){const{method:t}=e,n=e.params||[];switch(t){case p.JSONRPCMethod.eth_accounts:return this._eth_accounts();case p.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case p.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case p.JSONRPCMethod.net_version:return this._net_version();case p.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){const{method:t}=e,n=e.params||[];switch(t){case p.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case p.JSONRPCMethod.eth_sign:return this._eth_sign(n);case p.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case p.JSONRPCMethod.personal_sign:return this._personal_sign(n);case p.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case p.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case p.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case p.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case p.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case p.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case p.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case p.JSONRPCMethod.eth_signTypedData_v4:case p.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case p.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case p.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case p.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case p.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){const{method:t}=e,n=e.params||[];switch(t){case p.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case p.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case p.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case p.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case p.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case p.JSONRPCMethod.eth_subscribe:case p.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{const t=(0,l.ensureAddressString)(e);return this._addresses.map((e=>(0,l.ensureAddressString)(e))).includes(t)}catch(e){}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw null===(t=this.diagnostic)||void 0===t||t.log(s.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(t){const n=t.from?(0,l.ensureAddressString)(t.from):this.selectedAddress;if(!n)throw new Error("Ethereum address is unavailable");return this._ensureKnownAddress(n),{fromAddress:n,toAddress:t.to?(0,l.ensureAddressString)(t.to):null,weiValue:null!=t.value?(0,l.ensureBN)(t.value):new o.default(0),data:t.data?(0,l.ensureBuffer)(t.data):e.alloc(0),nonce:null!=t.nonce?(0,l.ensureIntNumber)(t.nonce):null,gasPriceInWei:null!=t.gasPrice?(0,l.ensureBN)(t.gasPrice):null,maxFeePerGas:null!=t.maxFeePerGas?(0,l.ensureBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:null!=t.maxPriorityFeePerGas?(0,l.ensureBN)(t.maxPriorityFeePerGas):null,gasLimit:null!=t.gas?(0,l.ensureBN)(t.gas):null,chainId:this.getChainId()}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw a.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw a.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,r){this._ensureKnownAddress(t);try{const i=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await i.signEthereumMessage(e,t,n,r).promise).result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied message signature");throw e}}async _ethereumAddressFromSignedMessage(e,t,n){const r=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await r.ethereumAddressFromSignedMessage(e,t,n).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,l.hexStringFromIntNumber)(this.getChainId())}getChainId(){const e=this._storage.getItem("DefaultChainId")||"1",t=parseInt(e,10);return(0,l.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;if(null===(e=this.diagnostic)||void 0===e||e.log(s.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?u.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let t;try{const e=await this.initializeRelay();t=await e.requestEthereumAccounts().promise}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied account authorization");throw e}if(!t.result)throw new Error("accounts received is empty");return this._setAddresses(t.result),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();const t=(0,l.ensureAddressString)(e[0]),n=(0,l.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){const t=(0,l.ensureBuffer)(e[0]),n=(0,l.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();const t=(0,l.ensureBuffer)(e[0]),n=(0,l.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){const t=(0,l.ensureBuffer)(e[0]),n=(0,l.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();const t=this._prepareTransactionParams(e[0]||{});try{const e=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await e.signEthereumTransaction(t).promise).result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_sendRawTransaction(e){const t=(0,l.ensureBuffer)(e[0]),n=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await n.submitEthereumTransaction(t,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();const t=this._prepareTransactionParams(e[0]||{});try{const e=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await e.signAndSubmitEthereumTransaction(t).promise).result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();const t=(0,l.ensureParsedJSONObject)(e[0]),n=(0,l.ensureAddressString)(e[1]);this._ensureKnownAddress(n);const r=d.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(r,n,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();const t=(0,l.ensureAddressString)(e[0]),n=(0,l.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);const r=d.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();const t=(0,l.ensureAddressString)(e[0]),n=(0,l.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);const r=d.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,t,!1,i)}async _cbwallet_arbitrary(e){const t=e[0],n=e[1];if("string"!=typeof n)throw new Error("parameter must be a string");if("object"!=typeof t||null===t)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(t,n)}}async _wallet_addEthereumChain(e){var t,n,r,i;const o=e[0];if(0===(null===(t=o.rpcUrls)||void 0===t?void 0:t.length))return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!o.chainName||""===o.chainName.trim())throw a.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!o.nativeCurrency)throw a.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});const s=parseInt(o.chainId,16);return await this.addEthereumChain(s,null!==(n=o.rpcUrls)&&void 0!==n?n:[],null!==(r=o.blockExplorerUrls)&&void 0!==r?r:[],o.chainName,null!==(i=o.iconUrls)&&void 0!==i?i:[],o.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){const t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){const t=Array.isArray(e)?e[0]:e;if(!t.type)throw a.ethErrors.rpc.invalidParams({message:"Type is required"});if("ERC20"!==(null==t?void 0:t.type))throw a.ethErrors.rpc.invalidParams({message:`Asset of type '${t.type}' is not supported`});if(!(null==t?void 0:t.options))throw a.ethErrors.rpc.invalidParams({message:"Options are required"});if(!(null==t?void 0:t.options.address))throw a.ethErrors.rpc.invalidParams({message:"Address is required"});const n=this.getChainId(),{address:r,symbol:i,image:o,decimals:s}=t.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(t.type,r,i,s,o,n)}}_eth_uninstallFilter(e){const t=(0,l.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){const t=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(t)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){const t=(0,l.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){const t=(0,l.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then((e=>(e.setAccountsCallback(((e,t)=>this._setAddresses(e,t))),e.setChainCallback(((e,t)=>{this.updateProviderInfo(t,parseInt(e,10),!0)})),this._relay=e,e)))}}t.CoinbaseWalletProvider=y}).call(this,n(19).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const r=n(87);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});const i=n(103);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const o=n(134);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});const a=n(88);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.EthereumRpcError=void 0;const r=n(102);class i extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return r.default(this.serialize(),o,2)}}function o(e,t){if("[Circular]"!==t)return t}t.EthereumRpcError=i,t.EthereumProviderError=class extends i{constructor(e,t,n){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={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}},t.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."}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=void 0,t.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",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;const r=n(48),i=n(69),o=n(135),a=n(38);class s{constructor(e,t,n,r){this._storage=e,this._id=t||(0,a.randomBytesHex)(16),this._secret=n||(0,a.randomBytesHex)(32),this._key=(new o.sha256).update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!r}static load(e){const t=e.getItem("session:id"),n=e.getItem("session:linked"),r=e.getItem("session:secret");return t&&r?new s(e,t,r,"1"===n):null}static get persistedSessionIdChange$(){return(0,r.fromEvent)(window,"storage").pipe((0,i.filter)((e=>"session:id"===e.key)),(0,i.map)((e=>({oldValue:e.oldValue||null,newValue:e.newValue||null}))))}static hash(e){return(new o.sha256).update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem("session:id",this._id),this._storage.setItem("session:secret",this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem("session:linked",this._linked?"1":"0")}}t.Session=s},function(e,t,n){var r=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var u=function(){throw new o},c=s?function(){try{return u}catch(e){try{return s(arguments,"callee").get}catch(e){return u}}}():u,l=n(143)(),d=Object.getPrototypeOf||function(e){return e.__proto__},h={},p="undefined"==typeof Uint8Array?void 0:d(Uint8Array),f={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?d(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=n(92),g=n(146),v=m.call(Function.call,Array.prototype.concat),b=m.call(Function.apply,Array.prototype.splice),w=m.call(Function.call,String.prototype.replace),M=m.call(Function.call,String.prototype.slice),A=m.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,N=function(e){var t=M(e,0,1),n=M(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return w(e,E,(function(e,t,n,r){i[i.length]=n?w(r,T,"$1"):t||e})),i},I=function(e,t){var n,i=e;if(g(y,i)&&(i="%"+(n=y[i])[0]+"%"),g(f,i)){var s=f[i];if(s===h&&(s=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return f[t]=n,n}(i)),void 0===s&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/g,e))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=N(e),i=n.length>0?n[0]:"",a=I("%"+i+"%",t),u=a.name,c=a.value,l=!1,d=a.alias;d&&(i=d[0],b(n,v([0,1],d)));for(var h=1,p=!0;h=n.length){var E=s(c,y);c=(p=!!E)&&"get"in E&&!("originalValue"in E.get)?E.get:c[y]}else p=g(c,y),c=c[y];p&&!l&&(f[u]=c)}}return c}},function(e,t,n){var r=n(145);e.exports=Function.prototype.bind||r},function(e,t,n){var r=String.prototype.replace,i=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},function(e,t,n){var r=n(46).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={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}},t.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."}}},function(e,t,n){const r=n(64).default;e.exports=class extends r{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach((e=>this.emit("update",e)))}addInitialResults(e){}getChangesAndClear(){const e=this.updates;return this.updates=[],e}}},function(e,t){function n(e){return null==e?e:Number.parseInt(e,16)}function r(e){return null==e?e:"0x"+e.toString(16)}e.exports=async function({provider:e,fromBlock:t,toBlock:i}){t||(t=i);const o=n(t),a=n(i),s=Array(a-o+1).fill().map(((e,t)=>o+t)).map(r);return await Promise.all(s.map((t=>function(e,t,n){return new Promise(((t,r)=>{e.sendAsync({id:1,jsonrpc:"2.0",method:"eth_getBlockByNumber",params:n},((e,n)=>{if(e)return r(e);t(n.result)}))}))}(e,0,[t,!1]))))}},function(e,t,n){n.r(t),n.d(t,"useState",(function(){return y})),n.d(t,"useReducer",(function(){return m})),n.d(t,"useEffect",(function(){return g})),n.d(t,"useLayoutEffect",(function(){return v})),n.d(t,"useRef",(function(){return b})),n.d(t,"useImperativeHandle",(function(){return w})),n.d(t,"useMemo",(function(){return M})),n.d(t,"useCallback",(function(){return A})),n.d(t,"useContext",(function(){return E})),n.d(t,"useDebugValue",(function(){return T})),n.d(t,"useErrorBoundary",(function(){return N}));var r,i,o,a=n(8),s=0,u=[],c=a.options.__b,l=a.options.__r,d=a.options.diffed,h=a.options.__c,p=a.options.unmount;function f(e,t){a.options.__h&&a.options.__h(i,e,s||t),s=0;var n=i.__H||(i.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function y(e){return s=1,m(j,e)}function m(e,t,n){var o=f(r++,2);return o.t=e,o.__c||(o.__=[n?n(t):j(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=i),o.__}function g(e,t){var n=f(r++,3);!a.options.__s&&S(n.__H,t)&&(n.__=e,n.__H=t,i.__H.__h.push(n))}function v(e,t){var n=f(r++,4);!a.options.__s&&S(n.__H,t)&&(n.__=e,n.__H=t,i.__h.push(n))}function b(e){return s=5,M((function(){return{current:e}}),[])}function w(e,t,n){s=6,v((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function M(e,t){var n=f(r++,7);return S(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function A(e,t){return s=8,M((function(){return e}),t)}function E(e){var t=i.context[e.__c],n=f(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(i)),t.props.value):e.__}function T(e,t){a.options.useDebugValue&&a.options.useDebugValue(t?t(e):e)}function N(e){var t=f(r++,10),n=y();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function I(){for(var e;e=u.shift();)if(e.__P)try{e.__H.__h.forEach(L),e.__H.__h.forEach(x),e.__H.__h=[]}catch(t){e.__H.__h=[],a.options.__e(t,e.__v)}}a.options.__b=function(e){i=null,c&&c(e)},a.options.__r=function(e){l&&l(e),r=0;var t=(i=e.__c).__H;t&&(t.__h.forEach(L),t.__h.forEach(x),t.__h=[])},a.options.diffed=function(e){d&&d(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==u.push(t)&&o===a.options.requestAnimationFrame||((o=a.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),k&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);k&&(t=requestAnimationFrame(n))})(I)),i=null},a.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(L),e.__h=e.__h.filter((function(e){return!e.__||x(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.options.__e(n,e.__v)}})),h&&h(e,t)},a.options.unmount=function(e){p&&p(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{L(e)}catch(e){t=e}})),t&&a.options.__e(t,n.__v))};var k="function"==typeof requestAnimationFrame;function L(e){var t=i,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),i=t}function x(e){var t=i;e.__c=e.__(),i=t}function S(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function j(e,t){return"function"==typeof t?t(e):t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RelayMessageType=void 0,function(e){e.SESSION_ID_REQUEST="SESSION_ID_REQUEST",e.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",e.LINKED="LINKED",e.UNLINKED="UNLINKED",e.WEB3_REQUEST="WEB3_REQUEST",e.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",e.WEB3_RESPONSE="WEB3_RESPONSE"}(t.RelayMessageType||(t.RelayMessageType={}))},function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletSDK=void 0;const r=n(127),i=n(128),o=n(85),a=n(193),s=n(210),u=n(222),c=n(38),l=e.env.LINK_API_URL||"https://www.walletlink.org",d=e.env.SDK_VERSION||n(223).version||"unknown";class h{constructor(e){var t,n,r;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;const o=e.linkAPIUrl||l;let c;if(c=e.uiConstructor?e.uiConstructor:e=>new a.WalletSDKUI(e),void 0===e.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(t=e.overrideIsCoinbaseWallet)||void 0===t||t,this._overrideIsCoinbaseBrowser=null!==(n=e.overrideIsCoinbaseBrowser)&&void 0!==n&&n,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=null===(r=e.reloadOnDisconnect)||void 0===r||r;const p=new URL(o),f=`${p.protocol}//${p.host}`;this._storage=new i.ScopedLocalStorage("-walletlink:"+f),this._storage.setItem("version",h.VERSION),this.walletExtension||(this._relayEventManager=new u.WalletSDKRelayEventManager,this._relay=new s.WalletSDKRelay({linkAPIUrl:o,version:d,darkMode:!!e.darkMode,uiConstructor:c,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger}),this.setAppInfo(e.appName,e.appLogoUrl),e.headlessMode||this._relay.attachUI())}makeWeb3Provider(e="",t=1){const n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),!1===this._reloadOnDisconnect&&"function"==typeof n.disableReloadOnDisconnect&&n.disableReloadOnDisconnect(),n;const r=this._relay;if(!r||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return e||r.setConnectDisabled(!0),new o.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(r),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,c.getFavicon)();const r=this.walletExtension;r?this.isCipherProvider(r)||r.setAppInfo(this._appName,this._appLogoUrl):null===(n=this._relay)||void 0===n||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;const t=this.walletExtension;t?t.close():null===(e=this._relay)||void 0===e||e.resetAndReload()}getQrUrl(){var e,t;return null!==(t=null===(e=this._relay)||void 0===e?void 0:e.getQRCodeUrl())&&void 0!==t?t:null}getCoinbaseWalletLogo(e,t=240){return(0,r.walletLogo)(e,t)}get walletExtension(){var e;return null!==(e=window.coinbaseWalletExtension)&&void 0!==e?e:window.walletLinkExtension}isCipherProvider(e){return"boolean"==typeof e.isCipher&&e.isCipher}}t.CoinbaseWalletSDK=h,h.VERSION=d}).call(this,n(40))},function(e,t){e.exports=o,o.default=o,o.stable=u,o.stableStringify=u;var n=[],r=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,t,o,s){var u;void 0===s&&(s=i()),function e(t,n,r,i,o,s,u){var c;if(s+=1,"object"==typeof t&&null!==t){for(c=0;cu.depthLimit)return void a("[...]",t,n,o);if(void 0!==u.edgesLimit&&r+1>u.edgesLimit)return void a("[...]",t,n,o);if(i.push(t),Array.isArray(t))for(c=0;ct?1:0}function u(e,t,o,u){void 0===u&&(u=i());var l,d=function e(t,r,i,o,u,c,l){var d;if(c+=1,"object"==typeof t&&null!==t){for(d=0;dl.depthLimit)return void a("[...]",t,r,u);if(void 0!==l.edgesLimit&&i+1>l.edgesLimit)return void a("[...]",t,r,u);if(o.push(t),Array.isArray(t))for(d=0;d0)for(var i=0;i=-32099&&e<=-32e3}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=s,t.isValidCode=u,t.serializeError=function(e,{fallbackError:t=a,shouldIncludeStack:n=!1}={}){var r,o;if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof i.EthereumRpcError)return e.serialize();const c={};if(e&&"object"==typeof e&&!Array.isArray(e)&&d(e,"code")&&u(e.code)){const t=e;c.code=t.code,t.message&&"string"==typeof t.message?(c.message=t.message,d(t,"data")&&(c.data=t.data)):(c.message=s(c.code),c.data={originalError:l(e)})}else{c.code=t.code;const n=null===(r=e)||void 0===r?void 0:r.message;c.message=n&&"string"==typeof n?n:t.message,c.data={originalError:l(e)}}const h=null===(o=e)||void 0===o?void 0:o.stack;return n&&e&&h&&"string"==typeof h&&(c.stack=h),c}},function(e,t,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,f=0|this._f,y=0|this._g,m=0|this._h,g=0;g<16;++g)n[g]=e.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((t=n[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[g-7]+p(n[g-15])+n[g-16];for(var v=0;v<64;++v){var b=m+h(u)+c(u,f,y)+a[v]+n[v]|0,w=d(r)+l(r,i,o)|0;m=y,y=f,f=u,u=s+b|0,s=o,o=i,i=r,r=b+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=f+this._f|0,this._g=y+this._g|0,this._h=m+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},function(e,t,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}r(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,b=0|this._hh,w=0|this._al,M=0|this._bl,A=0|this._cl,E=0|this._dl,T=0|this._el,N=0|this._fl,I=0|this._gl,k=0|this._hl,L=0;L<32;L+=2)t[L]=e.readInt32BE(4*L),t[L+1]=e.readInt32BE(4*L+4);for(;L<160;L+=2){var x=t[L-30],S=t[L-30+1],j=p(x,S),C=f(S,x),D=y(x=t[L-4],S=t[L-4+1]),O=m(S,x),z=t[L-14],_=t[L-14+1],P=t[L-32],R=t[L-32+1],B=C+_|0,U=j+z+g(B,C)|0;U=(U=U+D+g(B=B+O|0,O)|0)+P+g(B=B+R|0,R)|0,t[L]=U,t[L+1]=B}for(var W=0;W<160;W+=2){U=t[W],B=t[W+1];var Q=l(n,r,i),Y=l(w,M,A),F=d(n,w),V=d(w,n),H=h(s,T),G=h(T,s),q=a[W],Z=a[W+1],J=c(s,u,v),X=c(T,N,I),K=k+G|0,$=b+H+g(K,k)|0;$=($=($=$+J+g(K=K+X|0,X)|0)+q+g(K=K+Z|0,Z)|0)+U+g(K=K+B|0,B)|0;var ee=V+Y|0,te=F+Q+g(ee,V)|0;b=v,k=I,v=u,I=N,u=s,N=T,s=o+$+g(T=E+K|0,E)|0,o=i,E=A,i=r,A=M,r=n,M=w,n=$+te+g(w=K+ee|0,K)|0}this._al=this._al+w|0,this._bl=this._bl+M|0,this._cl=this._cl+A|0,this._dl=this._dl+E|0,this._el=this._el+T|0,this._fl=this._fl+N|0,this._gl=this._gl+I|0,this._hl=this._hl+k|0,this._ah=this._ah+n+g(this._al,w)|0,this._bh=this._bh+r+g(this._bl,M)|0,this._ch=this._ch+i+g(this._cl,A)|0,this._dh=this._dh+o+g(this._dl,E)|0,this._eh=this._eh+s+g(this._el,T)|0,this._fh=this._fh+u+g(this._fl,N)|0,this._gh=this._gh+v+g(this._gl,I)|0,this._hh=this._hh+b+g(this._hl,k)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},function(e,t,n){var r=n(93),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===r.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;re.json())).then((e=>{if(!e)throw r.ethErrors.rpc.parse({});const t=e,{error:n}=t;if(n)throw(0,r.serializeError)(n);return t}))}}},function(e,t,n){(function(t){const r=n(153),i=n(66);function o(e){return t.allocUnsafe(e).fill(0)}function a(e,t,n){const r=o(t);return e=s(e),n?e.length0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r)s.endEmitted?A(e,new M):k(e,s,t,!0);else if(s.ended)A(e,new b);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?k(e,s,t,!1):j(e,s)):k(e,s,t,!1)}else r||(s.reading=!1,j(e,s));return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(S,e))}function S(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,_(e)}function j(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O(e){o("readable nexttick read 0"),e.read(0)}function z(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),_(e),t.flowing&&!t.reading&&e.read(0)}function _(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function R(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(B,t,e))}function B(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function U(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):x(this),null;if(0===(e=L(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},N.prototype._read=function(e){A(this,new w("_read()"))},N.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===r.stdout||e===r.stderr?y:u;function u(){o("onend"),e.end()}i.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",(function t(r,a){o("onunpipe"),r===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",f),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",d),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,_(e))}}(n);e.on("drain",c);var l=!1;function d(t){o("ondata");var r=e.write(t);o("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==U(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function h(t){o("onerror",t),y(),e.removeListener("error",h),0===a(e,"error")&&A(e,t)}function p(){e.removeListener("finish",f),y()}function f(){o("onfinish"),e.removeListener("close",p),y()}function y(){o("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",p),e.once("finish",f),e.emit("pipe",n),i.flowing||(o("pipe resume"),n.resume()),e},N.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?x(this):i.reading||r.nextTick(O,this))),n},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(D,this),n},N.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(D,this),t},N.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(z,e,t))}(this,e)),e.paused=!1,this},N.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},N.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a-1))throw new M(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(e,t,n){n(new y("_write()"))},N.prototype._writev=null,N.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),N.prototype.destroy=d.destroy,N.prototype._undestroy=d.undestroy,N.prototype._destroy=function(e,t){t(e)}}).call(this,n(63),n(40))},function(e,t,n){var r=n(37).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){e.exports=l;var r=n(46).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(47);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthfunction(){const n=t.promiseModule,r=new Array(arguments.length);for(let e=0;e{t.errorFirst?r.push((function(e,r){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const n=e=>{const n=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(n):!t.exclude.some(n)};let i;i="function"==typeof e?function(){return t.excludeMain?e.apply(this,arguments):r(e,t).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const o in e){const a=e[o];i[o]="function"==typeof a&&n(o)?r(a,t):a}return i}},function(e,t,n){const r=n(173),i=n(174)();function o(e){this.currentProvider=e}function a(e){return function(){const t=this;var n=[].slice.call(arguments),r=n.pop();t.sendAsync({method:e,params:n},r)}}function s(e,t){return function(){const n=this;var r=[].slice.call(arguments),i=r.pop();r.length{try{const[i,o,s]=await a._runAllMiddleware(e,t,this._middleware);return o?(await a._runReturnHandlers(s),r(i)):n((async e=>{try{await a._runReturnHandlers(s)}catch(t){return e(t)}return e()}))}catch(e){return r(e)}}}async _handleBatch(e,t){try{const n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(e){if(t)return t(e);throw e}}_promiseHandle(e){return new Promise((t=>{this._handle(e,((e,n)=>{t(n)}))}))}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){const n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof e,{request:e});return t(n,{id:void 0,jsonrpc:"2.0",error:n})}if("string"!=typeof e.method){const n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof e.method,{request:e});return t(n,{id:e.id,jsonrpc:"2.0",error:n})}const n=Object.assign({},e),r={id:n.id,jsonrpc:n.jsonrpc};let i=null;try{await this._processRequest(n,r)}catch(e){i=e}return i&&(delete r.result,r.error||(r.error=o.serializeError(i))),t(i,r)}async _processRequest(e,t){const[n,r,i]=await a._runAllMiddleware(e,t,this._middleware);if(a._checkForCompletion(e,t,r),await a._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){const r=[];let i=null,o=!1;for(const s of n)if([i,o]=await a._runMiddleware(e,t,s,r),o)break;return[i,o,r.reverse()]}static _runMiddleware(e,t,n,r){return new Promise((i=>{const a=e=>{const n=e||t.error;n&&(t.error=o.serializeError(n)),i([n,!0])},u=n=>{t.error?a(t.error):(n&&("function"!=typeof n&&a(new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request:\n${s(e)}`,{request:e})),r.push(n)),i([null,!1]))};try{n(e,t,u,a)}catch(e){a(e)}}))}static async _runReturnHandlers(e){for(const t of e)await new Promise(((e,n)=>{t((t=>t?n(t):e()))}))}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new o.EthereumRpcError(o.errorCodes.rpc.internal,"JsonRpcEngine: Response has no error or result for request:\n"+s(e),{request:e});if(!n)throw new o.EthereumRpcError(o.errorCodes.rpc.internal,"JsonRpcEngine: Nothing ended request:\n"+s(e),{request:e})}}function s(e){return JSON.stringify(e,null,2)}t.JsonRpcEngine=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const r=n(96),i=n(95),o=r.errorCodes.rpc.internal,a={code:o,message:s(o)};function s(e,n="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){const n=e.toString();if(d(r.errorValues,n))return r.errorValues[n].message;if(c(e))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function u(e){if(!Number.isInteger(e))return!1;const t=e.toString();return!!r.errorValues[t]||!!c(e)}function c(e){return e>=-32099&&e<=-32e3}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=s,t.isValidCode=u,t.serializeError=function(e,{fallbackError:t=a,shouldIncludeStack:n=!1}={}){var r,o;if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof i.EthereumRpcError)return e.serialize();const c={};if(e&&"object"==typeof e&&!Array.isArray(e)&&d(e,"code")&&u(e.code)){const t=e;c.code=t.code,t.message&&"string"==typeof t.message?(c.message=t.message,d(t,"data")&&(c.data=t.data)):(c.message=s(c.code),c.data={originalError:l(e)})}else{c.code=t.code;const n=null===(r=e)||void 0===r?void 0:r.message;c.message=n&&"string"==typeof n?n:t.message,c.data={originalError:l(e)}}const h=null===(o=e)||void 0===o?void 0:o.stack;return n&&e&&h&&"string"==typeof h&&(c.stack=h),c}},function(e,t,n){function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{let n;switch(e){default:return n=t,`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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 n=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${n}' 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 n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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 n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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 n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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 n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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`}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ScopedLocalStorage=void 0,t.ScopedLocalStorage=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){const e=this.scopedKey(""),t=[];for(let n=0;nlocalStorage.removeItem(e)))}scopedKey(e){return`${this.scope}:${e}`}}},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,d=s>0?a-4:a;for(n=0;n>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){ +var r=n(19),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isInIFrame=t.createQrUrl=t.getFavicon=t.range=t.isBigNumber=t.ensureParsedJSONObject=t.ensureBN=t.ensureRegExpString=t.ensureIntNumber=t.ensureBuffer=t.ensureAddressString=t.ensureEvenLengthHexString=t.ensureHexString=t.isHexString=t.prepend0x=t.strip0x=t.has0xPrefix=t.hexStringFromIntNumber=t.intNumberFromHexString=t.bigIntStringFromBN=t.hexStringFromBuffer=t.hexStringToUint8Array=t.uint8ArrayToHex=t.randomBytesHex=void 0;const i=r(n(66)),o=n(139),a=n(67),s=/^[0-9]*$/,u=/^[a-f0-9]*$/;function c(e){return[...e].map((e=>e.toString(16).padStart(2,"0"))).join("")}function l(e){return e.startsWith("0x")||e.startsWith("0X")}function d(e){return l(e)?e.slice(2):e}function h(e){return l(e)?"0x"+e.slice(2):"0x"+e}function p(e){if("string"!=typeof e)return!1;const t=d(e).toLowerCase();return u.test(t)}function f(e,t=!1){if("string"==typeof e){const n=d(e).toLowerCase();if(u.test(n))return(0,a.HexString)(t?"0x"+n:n)}throw new Error(`"${String(e)}" is not a hexadecimal string`)}function y(e,t=!1){let n=f(e,!1);return n.length%2==1&&(n=(0,a.HexString)("0"+n)),t?(0,a.HexString)("0x"+n):n}function m(e){if("number"==typeof e&&Number.isInteger(e))return(0,a.IntNumber)(e);if("string"==typeof e){if(s.test(e))return(0,a.IntNumber)(Number(e));if(p(e))return(0,a.IntNumber)(new i.default(y(e,!1),16).toNumber())}throw new Error("Not an integer: "+String(e))}function g(e){if(null==e||"function"!=typeof e.constructor)return!1;const{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}t.randomBytesHex=function(e){return c(crypto.getRandomValues(new Uint8Array(e)))},t.uint8ArrayToHex=c,t.hexStringToUint8Array=function(e){return new Uint8Array(e.match(/.{1,2}/g).map((e=>parseInt(e,16))))},t.hexStringFromBuffer=function(e,t=!1){const n=e.toString("hex");return(0,a.HexString)(t?"0x"+n:n)},t.bigIntStringFromBN=function(e){return(0,a.BigIntString)(e.toString(10))},t.intNumberFromHexString=function(e){return(0,a.IntNumber)(new i.default(y(e,!1),16).toNumber())},t.hexStringFromIntNumber=function(e){return(0,a.HexString)("0x"+new i.default(e).toString(16))},t.has0xPrefix=l,t.strip0x=d,t.prepend0x=h,t.isHexString=p,t.ensureHexString=f,t.ensureEvenLengthHexString=y,t.ensureAddressString=function(e){if("string"==typeof e){const t=d(e).toLowerCase();if(p(t)&&40===t.length)return(0,a.AddressString)(h(t))}throw new Error("Invalid Ethereum address: "+String(e))},t.ensureBuffer=function(t){if(e.isBuffer(t))return t;if("string"==typeof t){if(p(t)){const n=y(t,!1);return e.from(n,"hex")}return e.from(t,"utf8")}throw new Error("Not binary data: "+String(t))},t.ensureIntNumber=m,t.ensureRegExpString=function(e){if(e instanceof RegExp)return(0,a.RegExpString)(e.toString());throw new Error("Not a RegExp: "+String(e))},t.ensureBN=function(e){if(null!==e&&(i.default.isBN(e)||g(e)))return new i.default(e.toString(10),10);if("number"==typeof e)return new i.default(m(e));if("string"==typeof e){if(s.test(e))return new i.default(e,10);if(p(e))return new i.default(y(e,!1),16)}throw new Error("Not an integer: "+String(e))},t.ensureParsedJSONObject=function(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw new Error("Not a JSON string or an object: "+String(e))},t.isBigNumber=g,t.range=function(e,t){return Array.from({length:t-e},((t,n)=>e+n))},t.getFavicon=function(){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:n}=document.location,r=e?e.getAttribute("href"):null;return!r||r.startsWith("javascript:")?null:r.startsWith("http://")||r.startsWith("https://")||r.startsWith("data:")?r:r.startsWith("//")?t+r:`${t}//${n}${r}`},t.createQrUrl=function(e,t,n,r,i,a){const s=r?"parent-id":"id";return`${n}/#/link?${(0,o.stringify)({[s]:e,secret:t,server:n,v:i,chainId:a})}`},t.isInIFrame=function(){try{return null!==window.frameElement}catch(e){return!1}}}).call(this,n(19).Buffer)},function(e,t,n){n.d(t,"a",(function(){return a}));var r=n(10),i=n(29),o=n(57);function a(){for(var e=[],t=0;t1)for(var n=1;n0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=function(e){var t=i++;return a[t]=!0,o.then((function(){return s(t)&&e()})),t}(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(function(e){s(e)}(n),t.scheduled=void 0)},t}(n(32).a),c=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,n){var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(r," ").concat(o(t,"type"))}return a+". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(111),o=n(115);n(24)(c,i);for(var a=r(o.prototype),s=0;s1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(i.a)},function(e,t,n){n.d(t,"a",(function(){return l}));var r=n(0),i=n(6),o=n(61),a=n(4),s=n(73),u=n(23),c=n(80),l=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.a(t,e),t.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new d(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new u.a;if(this.isStopped||this.hasError?t=a.a.EMPTY:(this.observers.push(e),t=new c.a(this,e)),i&&e.add(e=new s.a(e,i)),n)for(var l=0;lt&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(i.a),d=function(e,t){this.time=e,this.value=t}},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(3);function i(e,t){return t?new r.a((function(n){return t.schedule(o,0,{error:e,subscriber:n})})):new r.a((function(t){return t.error(e)}))}function o(e){var t=e.error;e.subscriber.error(t)}},function(e,t,n){n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var r=n(0),i=n(10),o=n(8),a=n(16),s=n(13),u=n(29),c={};function l(){for(var e=[],t=0;tthis.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),f=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.a(t,e),t.prototype[s.a]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return Object(u.c)(this.observable,new u.a(this))},t}(u.b)},function(e,t,n){function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(1);function i(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.a?i:null}return!0}},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(3),i=n(4);function o(e,t){return new r.a((function(n){var r=new i.a,o=0;return r.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(e,t,n){n.d(t,"a",(function(){return o}));var r=n(14),i=n(36),o={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},function(e,t){function n(e){return e.sort(((e,t)=>"latest"===e||"earliest"===t?1:"latest"===t||"earliest"===e?-1:r(e)-r(t)))}function r(e){return null==e?e:Number.parseInt(e,16)}function i(e){if(null==e)return e;let t=e.toString(16);return t.length%2&&(t="0"+t),"0x"+t}function o(){return Math.floor(16*Math.random()).toString(16)}e.exports={minBlockRef:function(...e){return n(e)[0]},maxBlockRef:function(...e){const t=n(e);return t[t.length-1]},sortBlockRefs:n,bnToHex:function(e){return"0x"+e.toString(16)},blockRefIsNumber:function(e){return e&&!["earliest","latest","pending"].includes(e)},hexToInt:r,incrementHexInt:function(e){return null==e?e:i(r(e)+1)},intToHex:i,unsafeRandomBytes:function(e){let t="0x";for(let n=0;n=n.__.length&&n.__.push({__V:l}),n.__[e]}function g(e){return u=1,v(z,e)}function v(e,t,n){var o=m(r++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):z(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=i,!i.u)){var a=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var i=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&o.__c.props===e)&&(!s||s.call(this,e,t,n))};i.u=!0;var s=i.shouldComponentUpdate,u=i.componentWillUpdate;i.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,a(e,t,n),s=r}u&&u.call(this,e,t,n)},i.shouldComponentUpdate=a}return o.__N||o.__}function b(e,t){var n=m(r++,3);!s.options.__s&&O(n.__H,t)&&(n.__=e,n.i=t,i.__H.__h.push(n))}function w(e,t){var n=m(r++,4);!s.options.__s&&O(n.__H,t)&&(n.__=e,n.i=t,i.__h.push(n))}function M(e){return u=5,E((function(){return{current:e}}),[])}function A(e,t,n){u=6,w((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function E(e,t){var n=m(r++,7);return O(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function N(e,t){return u=8,E((function(){return e}),t)}function T(e){var t=i.context[e.__c],n=m(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(i)),t.props.value):e.__}function I(e,t){s.options.useDebugValue&&s.options.useDebugValue(t?t(e):e)}function k(e){var t=m(r++,10),n=g();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function L(){var e=m(r++,11);if(!e.__){for(var t=i.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function x(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(C),e.__H.__h.forEach(D),e.__H.__h=[]}catch(t){e.__H.__h=[],s.options.__e(t,e.__v)}}s.options.__b=function(e){i=null,d&&d(e)},s.options.__r=function(e){h&&h(e),r=0;var t=(i=e.__c).__H;t&&(o===i?(t.__h=[],i.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=l,e.__N=e.i=void 0}))):(t.__h.forEach(C),t.__h.forEach(D),t.__h=[],r=0)),o=i},s.options.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&a===s.options.requestAnimationFrame||((a=s.options.requestAnimationFrame)||j)(x)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==l&&(e.__=e.__V),e.i=void 0,e.__V=l}))),o=i=null},s.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(C),e.__h=e.__h.filter((function(e){return!e.__||D(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.options.__e(n,e.__v)}})),f&&f(e,t)},s.options.unmount=function(e){y&&y(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{C(e)}catch(e){t=e}})),n.__H=void 0,t&&s.options.__e(t,n.__v))};var S="function"==typeof requestAnimationFrame;function j(e){var t,n=function(){clearTimeout(r),S&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);S&&(t=requestAnimationFrame(n))}function C(e){var t=i,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),i=t}function D(e){var t=i;e.__c=e.__(),i=t}function O(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function z(e,t){return"function"==typeof t?t(e):t}},function(e,t,n){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(0),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.a(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n(32).a),o=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t}(n(30).a))(i),a=o},function(e,t,n){n.d(t,"a",(function(){return r}));var r=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}()},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const r=n(65);function i(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout((()=>{throw e}))}}class o extends r.EventEmitter{emit(e,...t){let n="error"===e;const r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;const n=new Error("Unhandled error."+(e?` (${e.message})`:""));throw n.context=e,n}const o=r[e];if(void 0===o)return!1;if("function"==typeof o)i(o,this,t);else{const e=o.length,n=function(e){const t=e.length,n=new Array(t);for(let r=0;r0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=m(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},s.prototype.listenerCount=y,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(function(e){!function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(132).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function u(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,n,i){for(var o=0,a=0,s=Math.min(e.length,n),u=t;u=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=u(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var h=["","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"],p=[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],f=[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];function y(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?h[6-u.length]+u+n:u+n}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=p[e],l=f[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var y=d.modrn(l).toString(e);n=(d=d.idivn(l)).isZero()?y+n:h[c-y.length]+y+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],f=8191&p,y=p>>>13,m=0|a[2],g=8191&m,v=m>>>13,b=0|a[3],w=8191&b,M=b>>>13,A=0|a[4],E=8191&A,N=A>>>13,T=0|a[5],I=8191&T,k=T>>>13,L=0|a[6],x=8191&L,S=L>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,_=O>>>13,P=0|a[9],B=8191&P,R=P>>>13,U=0|s[0],W=8191&U,Q=U>>>13,Y=0|s[1],F=8191&Y,V=Y>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,ee=K>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],de=8191&le,he=le>>>13,pe=0|s[9],fe=8191&pe,ye=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(c+(r=Math.imul(d,W))|0)+((8191&(i=(i=Math.imul(d,Q))+Math.imul(h,W)|0))<<13)|0;c=((o=Math.imul(h,Q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(f,W),i=(i=Math.imul(f,Q))+Math.imul(y,W)|0,o=Math.imul(y,Q);var ge=(c+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,F)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,W),i=(i=Math.imul(g,Q))+Math.imul(v,W)|0,o=Math.imul(v,Q),r=r+Math.imul(f,F)|0,i=(i=i+Math.imul(f,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,W),i=(i=Math.imul(w,Q))+Math.imul(M,W)|0,o=Math.imul(M,Q),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,W),i=(i=Math.imul(E,Q))+Math.imul(N,W)|0,o=Math.imul(N,Q),r=r+Math.imul(w,F)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,W),i=(i=Math.imul(I,Q))+Math.imul(k,W)|0,o=Math.imul(k,Q),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0;var Me=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(x,W),i=(i=Math.imul(x,Q))+Math.imul(S,W)|0,o=Math.imul(S,Q),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0;var Ae=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,W),i=(i=Math.imul(C,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,Q))+Math.imul(_,W)|0,o=Math.imul(_,Q),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Ne=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,Q))+Math.imul(R,W)|0,o=Math.imul(R,Q),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(_,F)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Te=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ye)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,ye)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,he)|0;var Ie=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ye)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,he)|0;var ke=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,ye)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,ye)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,he)|0;var Le=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(M,fe)|0))<<13)|0;c=((o=o+Math.imul(M,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,ee))+Math.imul(R,$)|0,o=Math.imul(R,ee),r=r+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var xe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(N,fe)|0))<<13)|0;c=((o=o+Math.imul(N,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,ne),i=(i=Math.imul(B,re))+Math.imul(R,ne)|0,o=Math.imul(R,re),r=r+Math.imul(z,oe)|0,i=(i=i+Math.imul(z,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,he)|0;var Se=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ye)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,ye)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(R,oe)|0,o=Math.imul(R,ae),r=r+Math.imul(z,ue)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,he)|0;var je=(c+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,ye)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,ue),i=(i=Math.imul(B,ce))+Math.imul(R,ue)|0,o=Math.imul(R,ce),r=r+Math.imul(z,de)|0,i=(i=i+Math.imul(z,he)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,he)|0;var Ce=(c+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ye)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,de),i=(i=Math.imul(B,he))+Math.imul(R,de)|0,o=Math.imul(R,he);var De=(c+(r=r+Math.imul(z,fe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ye)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Oe=(c+(r=Math.imul(B,fe))|0)+((8191&(i=(i=Math.imul(B,ye))+Math.imul(R,fe)|0))<<13)|0;return c=((o=Math.imul(R,ye))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,u[0]=me,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=Me,u[6]=Ae,u[7]=Ee,u[8]=Ne,u[9]=Te,u[10]=Ie,u[11]=ke,u[12]=Le,u[13]=xe,u[14]=Se,u[15]=je,u[16]=Ce,u[17]=De,u[18]=Oe,0!==c&&(u[19]=c,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function v(e,t,n){return g(e,t,n)}Math.imul||(m=y),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?y(this,e,t):n<1024?g(this,e,t):v(this,e,t)},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-o|d>>>o,l=d&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var f=0,y=1;0==(n.words[0]&y)&&f<26;++f,y<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(u)):(n.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,h=1;0==(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new T(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function N(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(M,w),M.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},M.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new M;else if("p224"===e)t=new A;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new N}return b[e]=t,t},T.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},T.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,i),h=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),f=a;0!==p.cmp(s);){for(var y=p,m=0;0!==y.cmp(s);m++)y=y.redSqr();r(m=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var d=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new I(e)},i(I,T),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(131)(e))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderType=t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=function(){return e=>e},t.HexString=e=>e,t.AddressString=e=>e,t.BigIntString=e=>e,t.IntNumber=function(e){return Math.floor(e)},t.RegExpString=e=>e,function(e){e.CoinbaseWallet="CoinbaseWallet",e.MetaMask="MetaMask",e.Unselected=""}(t.ProviderType||(t.ProviderType={}))},function(e,t,n){n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h}));var r=n(0),i=n(1),o=n(4),a=n(3),s=n(6);function u(e,t,n,r){return function(i){return i.lift(new c(e,t,n,r))}}var c=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),l=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.keySelector=n,a.elementSelector=r,a.durationSelector=i,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return r.a(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(e){this.error(e)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new s.a,n.set(t,i);var o=new h(t,i,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new h(t,i))}catch(e){return void this.error(e)}this.add(a.subscribe(new d(t,i,this)))}}i.closed||i.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(i.a),d=function(e){function t(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return r.a(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(i.a),h=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return r.a(t,e),t.prototype._subscribe=function(e){var t=new o.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new p(n)),t.add(r.subscribe(e)),t},t}(a.a),p=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return r.a(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(o.a)},function(e,t,n){function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(y.a),g=n(30),v=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f.a(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++rt.index?1:-1:e.delay>t.delay?1:-1},t}(y.a),A=n(62),E=n(4),N=n(1),T=n(18),I=n(41),k=n(21),L=n(15);function x(e){return!!e&&(e instanceof r.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var S=n(25),j=n(27),C=n(23),D=n(44),O=n(74),z=n(9),_=n(56),P=n(8),B=n(10);function R(e,t,n){if(t){if(!Object(B.a)(t))return function(){for(var r=[],i=0;i1?r.next(Array.prototype.slice.call(arguments)):r.next(e)}),r,n)}))}function ne(e,t,n){return n?ne(e,t).pipe(Object(z.a)((function(e){return Object(P.a)(e)?n.apply(void 0,e):n(e)}))):new r.a((function(n){var r,i=function(){for(var e=[],t=0;t=t){r.complete();break}if(r.next(o++),r.closed)break}}))}function Ae(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;n>=r?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var Ee=n(50),Ne=n(78);function Te(e,t){return new r.a((function(n){var r,i;try{r=e()}catch(e){return void n.error(e)}try{i=t(r)}catch(e){return void n.error(e)}var o=(i?Object(X.a)(i):Z.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var Ie=n(54),ke=n(79),Le=n(14)},function(e,t,n){n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(0),i=n(6),o=n(3),a=n(1),s=n(4),u=n(48),c=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.a(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.a).add(this.source.subscribe(new d(this.getSubject(),this))),e.closed&&(this._connection=null,e=s.a.EMPTY)),e},t.prototype.refCount=function(){return Object(u.a)()(this)},t}(o.a),l=function(){var e=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),d=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.a(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(i.b);a.a},function(e,t,n){n.d(t,"a",(function(){return a}));var r=n(0),i=n(6),o=n(23),a=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.a(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.a)},function(e,t,n){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var r=n(0),i=n(1),o=n(18);function a(e,t){return void 0===t&&(t=0),function(n){return n.lift(new s(e,t))}}var s=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.scheduler,this.delay))},e}(),u=function(e){function t(t,n,r){void 0===r&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return r.a(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new c(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(o.a.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(o.a.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},t}(i.a),c=function(e,t){this.notification=e,this.destination=t}},function(e,t,n){n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,t,n){n.d(t,"a",(function(){return i}));var r=n(52);function i(){return Object(r.a)(1)}},function(e,t,n){n.d(t,"a",(function(){return s}));var r=n(3),i=n(10),o=n(52),a=n(29);function s(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof u&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof r.a?e[0]:Object(o.a)(n)(Object(a.a)(e,s))}},function(e,t,n){n.d(t,"a",(function(){return u}));var r=n(0),i=n(8),o=n(29),a=n(16),s=n(13);function u(){for(var e=[],t=0;t(0,l.ensureAddressString)(e))),this.emit("accountsChanged",e))}this._subscriptionManager.events.on("notification",(e=>{this.emit("message",{type:e.method,data:e.params})})),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",(e=>{var t;if(e.origin===location.origin&&e.source===window&&"walletLinkMessage"===e.data.type){if("defaultChainChanged"===e.data.data.action||"dappChainSwitched"===e.data.data.action){const n=e.data.data.chainId,r=null!==(t=e.data.data.jsonRpcUrl)&&void 0!==t?t:this.jsonRpcUrl;this.updateProviderInfo(r,Number(n))}"addressChanged"===e.data.data.action&&this._setAddresses([e.data.data.address])}}))}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,l.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return null!==(e=this._storage.getItem("DefaultJsonRpcUrl"))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem("DefaultJsonRpcUrl",e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;const n=this.getChainId();this._storage.setItem("DefaultChainId",t.toString(10)),(0,l.ensureIntNumber)(t)===n&&this.hasMadeFirstChainChangedEmission||(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,r,i,o){const a=await this.initializeRelay();return!!(await a.watchAsset(e,t,n,r,i,null==o?void 0:o.toString()).promise).result}async addEthereumChain(e,t,n,r,i,o){var a,s;if((0,l.ensureIntNumber)(e)===this.getChainId())return!1;const u=await this.initializeRelay(),c=u.inlineAddEthereumChain(e.toString());this._isAuthorized()||c||await u.requestEthereumAccounts().promise;const d=await u.addEthereumChain(e.toString(),t,i,n,r,o).promise;return!0===(null===(a=d.result)||void 0===a?void 0:a.isApproved)&&this.updateProviderInfo(t[0],e),!0===(null===(s=d.result)||void 0===s?void 0:s.isApproved)}async switchEthereumChain(e){const t=await this.initializeRelay(),n=await t.switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if(n.errorCode)throw a.ethErrors.provider.custom({code:n.errorCode});const r=n.result;r.isApproved&&r.rpcUrl.length>0&&this.updateProviderInfo(r.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then((n=>n.setAppInfo(e,t)))}async enable(){var e;return null===(e=this.diagnostic)||void 0===e||e.log(s.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?u.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(p.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,t){if("string"==typeof e){const n={jsonrpc:"2.0",id:0,method:e,params:Array.isArray(t)?t:void 0!==t?[t]:[]};return this._sendRequestAsync(n).then((e=>e.result))}if("function"==typeof t){const n=e,r=t;return this._sendAsync(n,r)}if(Array.isArray(e))return e.map((e=>this._sendRequest(e)));const n=e;return this._sendRequest(n)}async sendAsync(e,t){if("function"!=typeof t)throw new Error("callback is required");if(Array.isArray(e)){const n=t;return void this._sendMultipleRequestsAsync(e).then((e=>n(null,e))).catch((e=>n(e,null)))}const n=t;return this._sendRequestAsync(e).then((e=>n(null,e))).catch((e=>n(e,null)))}async request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw a.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});const{method:t,params:n}=e;if("string"!=typeof t||0===t.length)throw a.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw a.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});const r=void 0===n?[]:n,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:r,jsonrpc:"2.0",id:i})).result}async scanQRCode(e){const t=await this.initializeRelay(),n=await t.scanQRCode((0,l.ensureRegExpString)(e)).promise;if("string"!=typeof n.result)throw new Error("result was not a string");return n.result}async genericRequest(e,t){const n=await this.initializeRelay(),r=await n.genericRequest(e,t).promise;if("string"!=typeof r.result)throw new Error("result was not a string");return r.result}async selectProvider(e){const t=await this.initializeRelay(),n=await t.selectProvider(e).promise;if("string"!=typeof n.result)throw new Error("result was not a string");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){const t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),void 0===t.result)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw new Error("addresses is not an array");const n=e.map((e=>(0,l.ensureAddressString)(e)));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&!1===this.supportsAddressSwitching&&!t||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(c.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(e){return new Promise(((t,n)=>{try{const r=this._handleSynchronousMethods(e);if(void 0!==r)return t({jsonrpc:"2.0",id:e.id,result:r});const i=this._handleAsynchronousFilterMethods(e);if(void 0!==i)return void i.then((n=>t(Object.assign(Object.assign({},n),{id:e.id})))).catch((e=>n(e)));const o=this._handleSubscriptionMethods(e);if(void 0!==o)return void o.then((n=>t({jsonrpc:"2.0",id:e.id,result:n.result}))).catch((e=>n(e)))}catch(e){return n(e)}this._handleAsynchronousMethods(e).then((n=>n&&t(Object.assign(Object.assign({},n),{id:e.id})))).catch((e=>n(e)))}))}_sendMultipleRequestsAsync(e){return Promise.all(e.map((e=>this._sendRequestAsync(e))))}_handleSynchronousMethods(e){const{method:t}=e,n=e.params||[];switch(t){case p.JSONRPCMethod.eth_accounts:return this._eth_accounts();case p.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case p.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case p.JSONRPCMethod.net_version:return this._net_version();case p.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){const{method:t}=e,n=e.params||[];switch(t){case p.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case p.JSONRPCMethod.eth_sign:return this._eth_sign(n);case p.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case p.JSONRPCMethod.personal_sign:return this._personal_sign(n);case p.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case p.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case p.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case p.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case p.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case p.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case p.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case p.JSONRPCMethod.eth_signTypedData_v4:case p.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case p.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case p.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case p.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case p.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){const{method:t}=e,n=e.params||[];switch(t){case p.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case p.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case p.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case p.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case p.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case p.JSONRPCMethod.eth_subscribe:case p.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{const t=(0,l.ensureAddressString)(e);return this._addresses.map((e=>(0,l.ensureAddressString)(e))).includes(t)}catch(e){}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw null===(t=this.diagnostic)||void 0===t||t.log(s.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(t){const n=t.from?(0,l.ensureAddressString)(t.from):this.selectedAddress;if(!n)throw new Error("Ethereum address is unavailable");return this._ensureKnownAddress(n),{fromAddress:n,toAddress:t.to?(0,l.ensureAddressString)(t.to):null,weiValue:null!=t.value?(0,l.ensureBN)(t.value):new o.default(0),data:t.data?(0,l.ensureBuffer)(t.data):e.alloc(0),nonce:null!=t.nonce?(0,l.ensureIntNumber)(t.nonce):null,gasPriceInWei:null!=t.gasPrice?(0,l.ensureBN)(t.gasPrice):null,maxFeePerGas:null!=t.maxFeePerGas?(0,l.ensureBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:null!=t.maxPriorityFeePerGas?(0,l.ensureBN)(t.maxPriorityFeePerGas):null,gasLimit:null!=t.gas?(0,l.ensureBN)(t.gas):null,chainId:this.getChainId()}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw a.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw a.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,r){this._ensureKnownAddress(t);try{const i=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await i.signEthereumMessage(e,t,n,r).promise).result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied message signature");throw e}}async _ethereumAddressFromSignedMessage(e,t,n){const r=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await r.ethereumAddressFromSignedMessage(e,t,n).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,l.hexStringFromIntNumber)(this.getChainId())}getChainId(){const e=this._storage.getItem("DefaultChainId");if(!e)return(0,l.ensureIntNumber)(this._chainIdFromOpts);const t=parseInt(e,10);return(0,l.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;if(null===(e=this.diagnostic)||void 0===e||e.log(s.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?u.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let t;try{const e=await this.initializeRelay();t=await e.requestEthereumAccounts().promise}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied account authorization");throw e}if(!t.result)throw new Error("accounts received is empty");return this._setAddresses(t.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();const t=(0,l.ensureAddressString)(e[0]),n=(0,l.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){const t=(0,l.ensureBuffer)(e[0]),n=(0,l.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();const t=(0,l.ensureBuffer)(e[0]),n=(0,l.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){const t=(0,l.ensureBuffer)(e[0]),n=(0,l.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();const t=this._prepareTransactionParams(e[0]||{});try{const e=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await e.signEthereumTransaction(t).promise).result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_sendRawTransaction(e){const t=(0,l.ensureBuffer)(e[0]),n=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await n.submitEthereumTransaction(t,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();const t=this._prepareTransactionParams(e[0]||{});try{const e=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await e.signAndSubmitEthereumTransaction(t).promise).result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();const t=(0,l.ensureParsedJSONObject)(e[0]),n=(0,l.ensureAddressString)(e[1]);this._ensureKnownAddress(n);const r=d.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(r,n,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();const t=(0,l.ensureAddressString)(e[0]),n=(0,l.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);const r=d.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();const t=(0,l.ensureAddressString)(e[0]),n=(0,l.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);const r=d.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,t,!1,i)}async _cbwallet_arbitrary(e){const t=e[0],n=e[1];if("string"!=typeof n)throw new Error("parameter must be a string");if("object"!=typeof t||null===t)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(t,n)}}async _wallet_addEthereumChain(e){var t,n,r,i;const o=e[0];if(0===(null===(t=o.rpcUrls)||void 0===t?void 0:t.length))return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!o.chainName||""===o.chainName.trim())throw a.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!o.nativeCurrency)throw a.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});const s=parseInt(o.chainId,16);return await this.addEthereumChain(s,null!==(n=o.rpcUrls)&&void 0!==n?n:[],null!==(r=o.blockExplorerUrls)&&void 0!==r?r:[],o.chainName,null!==(i=o.iconUrls)&&void 0!==i?i:[],o.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){const t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){const t=Array.isArray(e)?e[0]:e;if(!t.type)throw a.ethErrors.rpc.invalidParams({message:"Type is required"});if("ERC20"!==(null==t?void 0:t.type))throw a.ethErrors.rpc.invalidParams({message:`Asset of type '${t.type}' is not supported`});if(!(null==t?void 0:t.options))throw a.ethErrors.rpc.invalidParams({message:"Options are required"});if(!(null==t?void 0:t.options.address))throw a.ethErrors.rpc.invalidParams({message:"Address is required"});const n=this.getChainId(),{address:r,symbol:i,image:o,decimals:s}=t.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(t.type,r,i,s,o,n)}}_eth_uninstallFilter(e){const t=(0,l.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){const t=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(t)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){const t=(0,l.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){const t=(0,l.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then((e=>(e.setAccountsCallback(((e,t)=>this._setAddresses(e,t))),e.setChainCallback(((e,t)=>{this.updateProviderInfo(t,parseInt(e,10))})),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e)))}}t.CoinbaseWalletProvider=y}).call(this,n(19).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const r=n(88);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});const i=n(104);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const o=n(133);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});const a=n(89);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.EthereumRpcError=void 0;const r=n(103);class i extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return r.default(this.serialize(),o,2)}}function o(e,t){if("[Circular]"!==t)return t}t.EthereumRpcError=i,t.EthereumProviderError=class extends i{constructor(e,t,n){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={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}},t.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."}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=void 0,t.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",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;const r=n(134),i=n(38);class o{constructor(e,t,n,o){this._storage=e,this._id=t||(0,i.randomBytesHex)(16),this._secret=n||(0,i.randomBytesHex)(32),this._key=(new r.sha256).update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!o}static load(e){const t=e.getItem("session:id"),n=e.getItem("session:linked"),r=e.getItem("session:secret");return t&&r?new o(e,t,r,"1"===n):null}static hash(e){return(new r.sha256).update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem("session:id",this._id),this._storage.setItem("session:secret",this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem("session:linked",this._linked?"1":"0")}}t.Session=o},function(e,t,n){var r=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var u=function(){throw new o},c=s?function(){try{return u}catch(e){try{return s(arguments,"callee").get}catch(e){return u}}}():u,l=n(142)(),d=n(144)(),h=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),p={},f="undefined"!=typeof Uint8Array&&h?h(Uint8Array):void 0,y={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l&&h?h([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l&&h?h(h([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l&&h?h((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l&&h?h((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l&&h?h(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(h)try{null.error}catch(e){var m=h(h(e));y["%Error.prototype%"]=m}var g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(93),b=n(146),w=v.call(Function.call,Array.prototype.concat),M=v.call(Function.apply,Array.prototype.splice),A=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),N=v.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,k=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return A(e,T,(function(e,t,n,r){i[i.length]=n?A(r,I,"$1"):t||e})),i},L=function(e,t){var n,i=e;if(b(g,i)&&(i="%"+(n=g[i])[0]+"%"),b(y,i)){var s=y[i];if(s===p&&(s=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&h&&(n=h(i.prototype))}return y[t]=n,n}(i)),void 0===s&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===N(/^%?[^%]*%?$/,e))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=k(e),i=n.length>0?n[0]:"",a=L("%"+i+"%",t),u=a.name,c=a.value,l=!1,d=a.alias;d&&(i=d[0],M(n,w([0,1],d)));for(var h=1,p=!0;h=n.length){var v=s(c,f);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[f]}else p=b(c,f),c=c[f];p&&!l&&(y[u]=c)}}return c}},function(e,t,n){var r=n(145);e.exports=Function.prototype.bind||r},function(e,t,n){var r=String.prototype.replace,i=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},function(e,t,n){var r=n(46).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={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}},t.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."}}},function(e,t,n){const r=n(64).default;e.exports=class extends r{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach((e=>this.emit("update",e)))}addInitialResults(e){}getChangesAndClear(){const e=this.updates;return this.updates=[],e}}},function(e,t){function n(e){return null==e?e:Number.parseInt(e,16)}function r(e){return null==e?e:"0x"+e.toString(16)}function i(e,t){return new Promise(((n,r)=>{e.sendAsync(t,((e,t)=>{e?r(e):t.error?r(t.error):t.result?n(t.result):r(new Error("Result was empty"))}))}))}e.exports=async function({provider:e,fromBlock:t,toBlock:o}){t||(t=o);const a=n(t),s=n(o),u=Array(s-a+1).fill().map(((e,t)=>a+t)).map(r);return await Promise.all(u.map((t=>async function(e,t,n){for(let t=0;t<3;t++)try{return await i(e,{id:1,jsonrpc:"2.0",method:"eth_getBlockByNumber",params:n})}catch(e){console.error("provider.sendAsync failed: "+(e.stack||e.message||e))}throw new Error("Block not found for params: "+JSON.stringify(n))}(e,0,[t,!1]))))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RelayMessageType=void 0,function(e){e.SESSION_ID_REQUEST="SESSION_ID_REQUEST",e.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",e.LINKED="LINKED",e.UNLINKED="UNLINKED",e.WEB3_REQUEST="WEB3_REQUEST",e.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",e.WEB3_RESPONSE="WEB3_RESPONSE"}(t.RelayMessageType||(t.RelayMessageType={}))},function(e,t,n){n.r(t),n.d(t,"audit",(function(){return o})),n.d(t,"auditTime",(function(){return l})),n.d(t,"buffer",(function(){return d})),n.d(t,"bufferCount",(function(){return y})),n.d(t,"bufferTime",(function(){return w})),n.d(t,"bufferToggle",(function(){return S})),n.d(t,"bufferWhen",(function(){return D})),n.d(t,"catchError",(function(){return _})),n.d(t,"combineAll",(function(){return U})),n.d(t,"combineLatest",(function(){return Y})),n.d(t,"concat",(function(){return V})),n.d(t,"concatAll",(function(){return H.a})),n.d(t,"concatMap",(function(){return q})),n.d(t,"concatMapTo",(function(){return Z})),n.d(t,"count",(function(){return J})),n.d(t,"debounce",(function(){return $})),n.d(t,"debounceTime",(function(){return ne})),n.d(t,"defaultIfEmpty",(function(){return ae})),n.d(t,"delay",(function(){return de})),n.d(t,"delayWhen",(function(){return me})),n.d(t,"dematerialize",(function(){return Me})),n.d(t,"distinct",(function(){return Ne})),n.d(t,"distinctUntilChanged",(function(){return ke})),n.d(t,"distinctUntilKeyChanged",(function(){return Se})),n.d(t,"elementAt",(function(){return Qe})),n.d(t,"endWith",(function(){return Fe})),n.d(t,"every",(function(){return Ve})),n.d(t,"exhaust",(function(){return qe})),n.d(t,"exhaustMap",(function(){return Ke})),n.d(t,"expand",(function(){return tt})),n.d(t,"filter",(function(){return Ce.a})),n.d(t,"finalize",(function(){return it})),n.d(t,"find",(function(){return st})),n.d(t,"findIndex",(function(){return lt})),n.d(t,"first",(function(){return ht})),n.d(t,"groupBy",(function(){return pt.b})),n.d(t,"ignoreElements",(function(){return ft})),n.d(t,"isEmpty",(function(){return gt})),n.d(t,"last",(function(){return Et})),n.d(t,"map",(function(){return Xe.a})),n.d(t,"mapTo",(function(){return Nt})),n.d(t,"materialize",(function(){return kt})),n.d(t,"max",(function(){return zt})),n.d(t,"merge",(function(){return Pt})),n.d(t,"mergeAll",(function(){return Bt.a})),n.d(t,"mergeMap",(function(){return G.b})),n.d(t,"flatMap",(function(){return G.a})),n.d(t,"mergeMapTo",(function(){return Rt})),n.d(t,"mergeScan",(function(){return Ut})),n.d(t,"min",(function(){return Yt})),n.d(t,"multicast",(function(){return Vt})),n.d(t,"observeOn",(function(){return Gt.b})),n.d(t,"onErrorResumeNext",(function(){return qt})),n.d(t,"pairwise",(function(){return Xt})),n.d(t,"partition",(function(){return tn})),n.d(t,"pluck",(function(){return nn})),n.d(t,"publish",(function(){return an})),n.d(t,"publishBehavior",(function(){return un})),n.d(t,"publishLast",(function(){return ln})),n.d(t,"publishReplay",(function(){return hn})),n.d(t,"race",(function(){return fn})),n.d(t,"reduce",(function(){return Ot})),n.d(t,"repeat",(function(){return yn})),n.d(t,"repeatWhen",(function(){return vn})),n.d(t,"retry",(function(){return Mn})),n.d(t,"retryWhen",(function(){return Nn})),n.d(t,"refCount",(function(){return kn.a})),n.d(t,"sample",(function(){return Ln})),n.d(t,"sampleTime",(function(){return jn})),n.d(t,"scan",(function(){return St})),n.d(t,"sequenceEqual",(function(){return zn})),n.d(t,"share",(function(){return Un})),n.d(t,"shareReplay",(function(){return Wn})),n.d(t,"single",(function(){return Qn})),n.d(t,"skip",(function(){return Vn})),n.d(t,"skipLast",(function(){return qn})),n.d(t,"skipUntil",(function(){return Xn})),n.d(t,"skipWhile",(function(){return er})),n.d(t,"startWith",(function(){return rr})),n.d(t,"subscribeOn",(function(){return sr})),n.d(t,"switchAll",(function(){return hr})),n.d(t,"switchMap",(function(){return cr})),n.d(t,"switchMapTo",(function(){return pr})),n.d(t,"take",(function(){return Re})),n.d(t,"takeLast",(function(){return wt})),n.d(t,"takeUntil",(function(){return fr})),n.d(t,"takeWhile",(function(){return gr})),n.d(t,"tap",(function(){return Ar})),n.d(t,"throttle",(function(){return Ir})),n.d(t,"throttleTime",(function(){return xr})),n.d(t,"throwIfEmpty",(function(){return Oe})),n.d(t,"timeInterval",(function(){return Or})),n.d(t,"timeout",(function(){return Wr})),n.d(t,"timeoutWith",(function(){return Pr})),n.d(t,"timestamp",(function(){return Qr})),n.d(t,"toArray",(function(){return Vr})),n.d(t,"window",(function(){return Hr})),n.d(t,"windowCount",(function(){return Zr})),n.d(t,"windowTime",(function(){return Kr})),n.d(t,"windowToggle",(function(){return oi})),n.d(t,"windowWhen",(function(){return ui})),n.d(t,"withLatestFrom",(function(){return di})),n.d(t,"zip",(function(){return yi})),n.d(t,"zipAll",(function(){return mi}));var r=n(0),i=n(2);function o(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.durationSelector))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=Object(i.c)(t,new i.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(i.b),u=n(7),c=n(78);function l(e,t){return void 0===t&&(t=u.a),o((function(){return Object(c.a)(e,t)}))}function d(e){return function(t){return t.lift(new h(e))}}var h=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.closingNotifier))},e}(),p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.buffer=[],r.add(Object(i.c)(n,new i.a(r))),r}return r.a(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(){var e=this.buffer;this.buffer=[],this.destination.next(e)},t}(i.b),f=n(1);function y(e,t){return void 0===t&&(t=null),function(n){return n.lift(new m(e,t))}}var m=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?v:g}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),g=function(e){function t(t,n){var r=e.call(this,t)||this;return r.bufferSize=n,r.buffer=[],r}return r.a(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(f.a),v=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.a(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(e),a.length===t&&(r.splice(o,1),this.destination.next(a))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var r=t.shift();r.length>0&&n.next(r)}e.prototype._complete.call(this)},t}(f.a),b=n(10);function w(e){var t=arguments.length,n=u.a;Object(b.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new M(e,r,i,n))}}var M=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new E(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),A=function(){this.buffer=[]},E=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=r,a.maxBufferSize=i,a.scheduler=o,a.contexts=[];var s=a.openContext();if(a.timespanOnly=null==r||r<0,a.timespanOnly){var u={subscriber:a,context:s,bufferTimeSpan:n};a.add(s.closeAction=o.schedule(N,n,u))}else{var c={subscriber:a,context:s},l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:a,scheduler:o};a.add(s.closeAction=o.schedule(I,n,c)),a.add(o.schedule(T,r,l))}return a}return r.a(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,i=0;i0;){var r=t.shift();n.next(r.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(N,n,r))}},t.prototype.openContext=function(){var e=new A;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(f.a);function N(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function T(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(I,n,{subscriber:r,context:o})),this.schedule(e,t))}function I(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var k=n(4),L=n(13),x=n(16);function S(e,t){return function(n){return n.lift(new j(e,t))}}var j=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new C(e,this.openings,this.closingSelector))},e}(),C=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.closingSelector=r,i.contexts=[],i.add(Object(L.a)(i,n)),i}return r.a(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new k.a,r={buffer:[],subscription:n};t.push(r);var i=Object(L.a)(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},t}(x.a);function D(e){return function(t){return t.lift(new O(e))}}var O=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new z(e,this.closingSelector))},e}(),z=function(e){function t(t,n){var r=e.call(this,t)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.a(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},t.prototype.notifyNext=function(){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{t=(0,this.closingSelector)()}catch(e){return this.error(e)}e=new k.a,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(Object(i.c)(t,new i.a(this))),this.subscribing=!1},t}(i.b);function _(e){return function(t){var n=new P(e),r=t.lift(n);return n.caught=r}}var P=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new B(e,this.selector,this.caught))},e}(),B=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return r.a(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var r=new i.a(this);this.add(r);var o=Object(i.c)(n,r);o!==r&&this.add(o)}},t}(i.b),R=n(51);function U(e){return function(t){return t.lift(new R.a(e))}}var W=n(8),Q=n(12);function Y(){for(var e=[],t=0;t0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new fe(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(le.a.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(le.a.createComplete()),this.unsubscribe()},t}(f.a),fe=function(e,t){this.time=e,this.notification=t},ye=n(3);function me(e,t){return t?function(n){return new be(n,t).lift(new ge(e))}:function(t){return t.lift(new ge(e))}}var ge=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new ve(e,this.delayDurationSelector))},e}(),ve=function(e){function t(t,n){var r=e.call(this,t)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.a(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=Object(L.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(x.a),be=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subscriptionDelay=n,r}return r.a(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new we(e,this.source))},t}(ye.a),we=function(e){function t(t,n){var r=e.call(this)||this;return r.parent=t,r.source=n,r.sourceSubscribed=!1,r}return r.a(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(f.a);function Me(){return function(e){return e.lift(new Ae)}}var Ae=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Ee(e))},e}(),Ee=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(f.a);function Ne(e,t){return function(n){return n.lift(new Te(e,t))}}var Te=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new Ie(e,this.keySelector,this.flushes))},e}(),Ie=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.keySelector=n,o.values=new Set,r&&o.add(Object(i.c)(r,new i.a(o))),o}return r.a(t,e),t.prototype.notifyNext=function(){this.values.clear()},t.prototype.notifyError=function(e){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){return void n.error(e)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(i.b);function ke(e,t){return function(n){return n.lift(new Le(e,t))}}var Le=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new xe(e,this.compare,this.keySelector))},e}(),xe=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.a(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(f.a);function Se(e,t){return ke((function(n,r){return t?t(n[e],r[e]):n[e]===r[e]}))}var je=n(25),Ce=n(17),De=n(27);function Oe(e){return void 0===e&&(e=Pe),function(t){return t.lift(new ze(e))}}var ze=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new _e(e,this.errorFactory))},e}(),_e=function(e){function t(t,n){var r=e.call(this,t)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.a(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(f.a);function Pe(){return new De.a}var Be=n(11);function Re(e){return function(t){return 0===e?Object(Be.b)():t.lift(new Ue(e))}}var Ue=function(){function e(e){if(this.total=e,this.total<0)throw new je.a}return e.prototype.call=function(e,t){return t.subscribe(new We(e,this.total))},e}(),We=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.a(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(f.a);function Qe(e,t){if(e<0)throw new je.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(Ce.a)((function(t,n){return n===e})),Re(1),n?ae(t):Oe((function(){return new je.a})))}}var Ye=n(39);function Fe(){for(var e=[],t=0;t0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(i.b);function it(e){return function(t){return t.lift(new ot(e))}}var ot=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new at(e,this.callback))},e}(),at=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new k.a(n)),r}return r.a(t,e),t}(f.a);function st(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new ut(e,n,!1,t))}}var ut=function(){function e(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}return e.prototype.call=function(e,t){return t.subscribe(new ct(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),ct=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.predicate=n,a.source=r,a.yieldIndex=i,a.thisArg=o,a.index=0,a}return r.a(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(f.a);function lt(e,t){return function(n){return n.lift(new ut(e,n,!0,t))}}var dt=n(15);function ht(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(Ce.a)((function(t,n){return e(t,n,r)})):dt.a,Re(1),n?ae(t):Oe((function(){return new De.a})))}}var pt=n(68);function ft(){return function(e){return e.lift(new yt)}}var yt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new mt(e))},e}(),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype._next=function(e){},t}(f.a);function gt(){return function(e){return e.lift(new vt)}}var vt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new bt(e))},e}(),bt=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(f.a);function wt(e){return function(t){return 0===e?Object(Be.b)():t.lift(new Mt(e))}}var Mt=function(){function e(e){if(this.total=e,this.total<0)throw new je.a}return e.prototype.call=function(e,t){return t.subscribe(new At(e,this.total))},e}(),At=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.a(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(e?Object(Ce.a)((function(t,n){return e(t,n,r)})):dt.a,wt(1),n?ae(t):Oe((function(){return new De.a})))}}function Nt(e){return function(t){return t.lift(new Tt(e))}}var Tt=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new It(e,this.value))},e}(),It=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return r.a(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(f.a);function kt(){return function(e){return e.lift(new Lt)}}var Lt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new xt(e))},e}(),xt=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t.prototype._next=function(e){this.destination.next(le.a.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(le.a.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(le.a.createComplete()),e.complete()},t}(f.a);function St(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new jt(e,t,n))}}var jt=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new Ct(e,this.accumulator,this.seed,this.hasSeed))},e}(),Ct=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.a(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(f.a),Dt=n(41);function Ot(e,t){return arguments.length>=2?function(n){return Object(Dt.a)(St(e,t),wt(1),ae(t))(n)}:function(t){return Object(Dt.a)(St((function(t,n,r){return e(t,n,r+1)})),wt(1))(t)}}function zt(e){return Ot("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var _t=n(76);function Pt(){for(var e=[],t=0;t0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(i.b);function Yt(e){return Ot("function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(f.a);function vn(e){return function(t){return t.lift(new bn(e))}}var bn=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new wn(e,this.notifier,t))},e}(),wn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.a(t,e),t.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new on.a;try{t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=Object(i.c)(t,new i.a(this))},t}(i.b);function Mn(e){return void 0===e&&(e=-1),function(t){return t.lift(new An(e,t))}}var An=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new En(e,this.count,this.source))},e}(),En=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.count=n,i.source=r,i}return r.a(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return e.prototype.error.call(this,t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(f.a);function Nn(e){return function(t){return t.lift(new Tn(e,t))}}var Tn=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new In(e,this.notifier,this.source))},e}(),In=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i}return r.a(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new on.a;try{r=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}o=Object(i.c)(r,new i.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype.notifyNext=function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)},t}(i.b),kn=n(48);function Ln(e){return function(t){return t.lift(new xn(e))}}var xn=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Sn(e),r=t.subscribe(n);return r.add(Object(i.c)(this.notifier,new i.a(n))),r},e}(),Sn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return r.a(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(i.b);function jn(e,t){return void 0===t&&(t=u.a),function(n){return n.lift(new Cn(e,t))}}var Cn=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Dn(e,this.period,this.scheduler))},e}(),Dn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(On,n,{subscriber:i,period:n})),i}return r.a(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(f.a);function On(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function zn(e,t){return function(n){return n.lift(new _n(e,t))}}var _n=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new Pn(e,this.compareTo,this.comparator))},e}(),Pn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Bn(t,i))),i}return r.a(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var r=e.shift(),i=t.shift(),o=!1;try{o=n?n(r,i):r===i}catch(e){this.destination.error(e)}o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(f.a),Bn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.parent=n,r}return r.a(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(f.a);function Rn(){return new on.a}function Un(){return function(e){return Object(kn.a)()(Vt(Rn)(e))}}function Wn(e,t,n){var r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,u=e.scheduler,c=0,l=!1,d=!1;return function(e){var r;c++,!t||l?(l=!1,t=new dn.a(i,a,u),r=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):r=t.subscribe(this),this.add((function(){c--,r.unsubscribe(),r=void 0,n&&!d&&s&&0===c&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(r))}}function Qn(e){return function(t){return t.lift(new Yn(e,t))}}var Yn=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Fn(e,this.predicate,this.source))},e}(),Fn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.a(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new De.a)},t}(f.a);function Vn(e){return function(t){return t.lift(new Hn(e))}}var Hn=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new Gn(e,this.total))},e}(),Gn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.a(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(f.a);function qn(e){return function(t){return t.lift(new Zn(e))}}var Zn=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new je.a}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new f.a(e)):t.subscribe(new Jn(e,this._skipCount))},e}(),Jn=function(e){function t(t,n){var r=e.call(this,t)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.a(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a=0&&s%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var u=new on.a;i.push(u),n.next(u)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(f.a);function Kr(e){var t=u.a,n=null,r=Number.POSITIVE_INFINITY;return Object(b.a)(arguments[3])&&(t=arguments[3]),Object(b.a)(arguments[2])?t=arguments[2]:Object(or.a)(arguments[2])&&(r=Number(arguments[2])),Object(b.a)(arguments[1])?t=arguments[1]:Object(or.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new $r(e,n,r,t))}}var $r=function(){function e(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new ti(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),ei=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return r.a(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(on.a),ti=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;a.destination=t,a.windowTimeSpan=n,a.windowCreationInterval=r,a.maxWindowSize=i,a.scheduler=o,a.windows=[];var s=a.openWindow();if(null!==r&&r>=0){var u={subscriber:a,window:s,context:null},c={windowTimeSpan:n,windowCreationInterval:r,subscriber:a,scheduler:o};a.add(o.schedule(ii,n,u)),a.add(o.schedule(ri,r,c))}else{var l={subscriber:a,window:s,windowTimeSpan:n};a.add(o.schedule(ni,n,l))}return a}return r.a(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new ei;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(f.a);function ni(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function ri(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null},s={subscriber:n,window:o,context:a};a.subscription=r.schedule(ii,t,s),this.add(a.subscription),this.schedule(e,i)}function ii(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function oi(e,t){return function(n){return n.lift(new ai(e,t))}}var ai=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new si(e,this.openings,this.closingSelector))},e}(),si=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Object(L.a)(i,n,n)),i}return r.a(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(x.a),fi=n(54);function yi(){for(var e=[],t=0;tnew a.WalletSDKUI(e),void 0===e.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(t=e.overrideIsCoinbaseWallet)||void 0===t||t,this._overrideIsCoinbaseBrowser=null!==(n=e.overrideIsCoinbaseBrowser)&&void 0!==n&&n,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=null===(r=e.reloadOnDisconnect)||void 0===r||r;const p=new URL(o),f=`${p.protocol}//${p.host}`;this._storage=new i.ScopedLocalStorage("-walletlink:"+f),this._storage.setItem("version",h.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new u.WalletSDKRelayEventManager,this._relay=new s.WalletSDKRelay({linkAPIUrl:o,version:d,darkMode:!!e.darkMode,uiConstructor:c,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),e.headlessMode||this._relay.attachUI())}makeWeb3Provider(e="",t=1){const n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),!1===this._reloadOnDisconnect&&"function"==typeof n.disableReloadOnDisconnect&&n.disableReloadOnDisconnect(),n;const r=this.coinbaseBrowser;if(r)return r;const i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return e||i.setConnectDisabled(!0),new o.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,c.getFavicon)();const r=this.walletExtension;r?this.isCipherProvider(r)||r.setAppInfo(this._appName,this._appLogoUrl):null===(n=this._relay)||void 0===n||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;const t=this.walletExtension;t?t.close():null===(e=this._relay)||void 0===e||e.resetAndReload()}getQrUrl(){var e,t;return null!==(t=null===(e=this._relay)||void 0===e?void 0:e.getQRCodeUrl())&&void 0!==t?t:null}getCoinbaseWalletLogo(e,t=240){return(0,r.walletLogo)(e,t)}get walletExtension(){var e;return null!==(e=window.coinbaseWalletExtension)&&void 0!==e?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{const n=null!==(e=window.ethereum)&&void 0!==e?e:null===(t=window.top)||void 0===t?void 0:t.ethereum;if(!n)return;return"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch(e){return}}isCipherProvider(e){return"boolean"==typeof e.isCipher&&e.isCipher}}t.CoinbaseWalletSDK=h,h.VERSION=d}).call(this,n(40))},function(e,t){e.exports=o,o.default=o,o.stable=u,o.stableStringify=u;var n=[],r=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,t,o,s){var u;void 0===s&&(s=i()),function e(t,n,r,i,o,s,u){var c;if(s+=1,"object"==typeof t&&null!==t){for(c=0;cu.depthLimit)return void a("[...]",t,n,o);if(void 0!==u.edgesLimit&&r+1>u.edgesLimit)return void a("[...]",t,n,o);if(i.push(t),Array.isArray(t))for(c=0;ct?1:0}function u(e,t,o,u){void 0===u&&(u=i());var l,d=function e(t,r,i,o,u,c,l){var d;if(c+=1,"object"==typeof t&&null!==t){for(d=0;dl.depthLimit)return void a("[...]",t,r,u);if(void 0!==l.edgesLimit&&i+1>l.edgesLimit)return void a("[...]",t,r,u);if(o.push(t),Array.isArray(t))for(d=0;d0)for(var i=0;i=-32099&&e<=-32e3}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=s,t.isValidCode=u,t.serializeError=function(e,{fallbackError:t=a,shouldIncludeStack:n=!1}={}){var r,o;if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof i.EthereumRpcError)return e.serialize();const c={};if(e&&"object"==typeof e&&!Array.isArray(e)&&d(e,"code")&&u(e.code)){const t=e;c.code=t.code,t.message&&"string"==typeof t.message?(c.message=t.message,d(t,"data")&&(c.data=t.data)):(c.message=s(c.code),c.data={originalError:l(e)})}else{c.code=t.code;const n=null===(r=e)||void 0===r?void 0:r.message;c.message=n&&"string"==typeof n?n:t.message,c.data={originalError:l(e)}}const h=null===(o=e)||void 0===o?void 0:o.stack;return n&&e&&h&&"string"==typeof h&&(c.stack=h),c}},function(e,t,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,f=0|this._f,y=0|this._g,m=0|this._h,g=0;g<16;++g)n[g]=e.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((t=n[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[g-7]+p(n[g-15])+n[g-16];for(var v=0;v<64;++v){var b=m+h(u)+c(u,f,y)+a[v]+n[v]|0,w=d(r)+l(r,i,o)|0;m=y,y=f,f=u,u=s+b|0,s=o,o=i,i=r,r=b+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=f+this._f|0,this._g=y+this._g|0,this._h=m+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},function(e,t,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}r(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,b=0|this._hh,w=0|this._al,M=0|this._bl,A=0|this._cl,E=0|this._dl,N=0|this._el,T=0|this._fl,I=0|this._gl,k=0|this._hl,L=0;L<32;L+=2)t[L]=e.readInt32BE(4*L),t[L+1]=e.readInt32BE(4*L+4);for(;L<160;L+=2){var x=t[L-30],S=t[L-30+1],j=p(x,S),C=f(S,x),D=y(x=t[L-4],S=t[L-4+1]),O=m(S,x),z=t[L-14],_=t[L-14+1],P=t[L-32],B=t[L-32+1],R=C+_|0,U=j+z+g(R,C)|0;U=(U=U+D+g(R=R+O|0,O)|0)+P+g(R=R+B|0,B)|0,t[L]=U,t[L+1]=R}for(var W=0;W<160;W+=2){U=t[W],R=t[W+1];var Q=l(n,r,i),Y=l(w,M,A),F=d(n,w),V=d(w,n),H=h(s,N),G=h(N,s),q=a[W],Z=a[W+1],J=c(s,u,v),X=c(N,T,I),K=k+G|0,$=b+H+g(K,k)|0;$=($=($=$+J+g(K=K+X|0,X)|0)+q+g(K=K+Z|0,Z)|0)+U+g(K=K+R|0,R)|0;var ee=V+Y|0,te=F+Q+g(ee,V)|0;b=v,k=I,v=u,I=T,u=s,T=N,s=o+$+g(N=E+K|0,E)|0,o=i,E=A,i=r,A=M,r=n,M=w,n=$+te+g(w=K+ee|0,K)|0}this._al=this._al+w|0,this._bl=this._bl+M|0,this._cl=this._cl+A|0,this._dl=this._dl+E|0,this._el=this._el+N|0,this._fl=this._fl+T|0,this._gl=this._gl+I|0,this._hl=this._hl+k|0,this._ah=this._ah+n+g(this._al,w)|0,this._bh=this._bh+r+g(this._bl,M)|0,this._ch=this._ch+i+g(this._cl,A)|0,this._dh=this._dh+o+g(this._dl,E)|0,this._eh=this._eh+s+g(this._el,N)|0,this._fh=this._fh+u+g(this._fl,T)|0,this._gh=this._gh+v+g(this._gl,I)|0,this._hh=this._hh+b+g(this._hl,k)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},function(e,t,n){var r=n(94),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===r.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;re.json())).then((e=>{if(!e)throw r.ethErrors.rpc.parse({});const t=e,{error:n}=t;if(n)throw(0,r.serializeError)(n);return t}))}}},function(e,t,n){(function(t){const r=n(153),i=n(66);function o(e){return t.allocUnsafe(e).fill(0)}function a(e,t,n){const r=o(t);return e=s(e),n?e.length0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r)s.endEmitted?A(e,new M):k(e,s,t,!0);else if(s.ended)A(e,new b);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?k(e,s,t,!1):j(e,s)):k(e,s,t,!1)}else r||(s.reading=!1,j(e,s));return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(S,e))}function S(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,_(e)}function j(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O(e){o("readable nexttick read 0"),e.read(0)}function z(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),_(e),t.flowing&&!t.reading&&e.read(0)}function _(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function B(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(R,t,e))}function R(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function U(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):x(this),null;if(0===(e=L(e,t))&&t.ended)return 0===t.length&&B(this),null;var r,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&B(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(e){A(this,new w("_read()"))},T.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===r.stdout||e===r.stderr?y:u;function u(){o("onend"),e.end()}i.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",(function t(r,a){o("onunpipe"),r===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",f),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",d),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,_(e))}}(n);e.on("drain",c);var l=!1;function d(t){o("ondata");var r=e.write(t);o("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==U(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function h(t){o("onerror",t),y(),e.removeListener("error",h),0===a(e,"error")&&A(e,t)}function p(){e.removeListener("finish",f),y()}function f(){o("onfinish"),e.removeListener("close",p),y()}function y(){o("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",p),e.once("finish",f),e.emit("pipe",n),i.flowing||(o("pipe resume"),n.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?x(this):i.reading||r.nextTick(O,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(D,this),n},T.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(D,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(z,e,t))}(this,e)),e.paused=!1,this},T.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a-1))throw new M(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,n){n(new y("_write()"))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=d.destroy,T.prototype._undestroy=d.undestroy,T.prototype._destroy=function(e,t){t(e)}}).call(this,n(63),n(40))},function(e,t,n){var r=n(37).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){e.exports=l;var r=n(46).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(47);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthfunction(){const n=t.promiseModule,r=new Array(arguments.length);for(let e=0;e{t.errorFirst?r.push((function(e,r){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const n=e=>{const n=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(n):!t.exclude.some(n)};let i;i="function"==typeof e?function(){return t.excludeMain?e.apply(this,arguments):r(e,t).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const o in e){const a=e[o];i[o]="function"==typeof a&&n(o)?r(a,t):a}return i}},function(e,t,n){const r=n(173),i=n(174)();function o(e){this.currentProvider=e}function a(e){return function(){const t=this;var n=[].slice.call(arguments),r=n.pop();t.sendAsync({method:e,params:n},r)}}function s(e,t){return function(){const n=this;var r=[].slice.call(arguments),i=r.pop();r.length{try{const[i,o,s]=await a._runAllMiddleware(e,t,this._middleware);return o?(await a._runReturnHandlers(s),r(i)):n((async e=>{try{await a._runReturnHandlers(s)}catch(t){return e(t)}return e()}))}catch(e){return r(e)}}}async _handleBatch(e,t){try{const n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(e){if(t)return t(e);throw e}}_promiseHandle(e){return new Promise((t=>{this._handle(e,((e,n)=>{t(n)}))}))}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){const n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof e,{request:e});return t(n,{id:void 0,jsonrpc:"2.0",error:n})}if("string"!=typeof e.method){const n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof e.method,{request:e});return t(n,{id:e.id,jsonrpc:"2.0",error:n})}const n=Object.assign({},e),r={id:n.id,jsonrpc:n.jsonrpc};let i=null;try{await this._processRequest(n,r)}catch(e){i=e}return i&&(delete r.result,r.error||(r.error=o.serializeError(i))),t(i,r)}async _processRequest(e,t){const[n,r,i]=await a._runAllMiddleware(e,t,this._middleware);if(a._checkForCompletion(e,t,r),await a._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){const r=[];let i=null,o=!1;for(const s of n)if([i,o]=await a._runMiddleware(e,t,s,r),o)break;return[i,o,r.reverse()]}static _runMiddleware(e,t,n,r){return new Promise((i=>{const a=e=>{const n=e||t.error;n&&(t.error=o.serializeError(n)),i([n,!0])},u=n=>{t.error?a(t.error):(n&&("function"!=typeof n&&a(new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request:\n${s(e)}`,{request:e})),r.push(n)),i([null,!1]))};try{n(e,t,u,a)}catch(e){a(e)}}))}static async _runReturnHandlers(e){for(const t of e)await new Promise(((e,n)=>{t((t=>t?n(t):e()))}))}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new o.EthereumRpcError(o.errorCodes.rpc.internal,"JsonRpcEngine: Response has no error or result for request:\n"+s(e),{request:e});if(!n)throw new o.EthereumRpcError(o.errorCodes.rpc.internal,"JsonRpcEngine: Nothing ended request:\n"+s(e),{request:e})}}function s(e){return JSON.stringify(e,null,2)}t.JsonRpcEngine=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const r=n(97),i=n(96),o=r.errorCodes.rpc.internal,a={code:o,message:s(o)};function s(e,n="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){const n=e.toString();if(d(r.errorValues,n))return r.errorValues[n].message;if(c(e))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function u(e){if(!Number.isInteger(e))return!1;const t=e.toString();return!!r.errorValues[t]||!!c(e)}function c(e){return e>=-32099&&e<=-32e3}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=s,t.isValidCode=u,t.serializeError=function(e,{fallbackError:t=a,shouldIncludeStack:n=!1}={}){var r,o;if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof i.EthereumRpcError)return e.serialize();const c={};if(e&&"object"==typeof e&&!Array.isArray(e)&&d(e,"code")&&u(e.code)){const t=e;c.code=t.code,t.message&&"string"==typeof t.message?(c.message=t.message,d(t,"data")&&(c.data=t.data)):(c.message=s(c.code),c.data={originalError:l(e)})}else{c.code=t.code;const n=null===(r=e)||void 0===r?void 0:r.message;c.message=n&&"string"==typeof n?n:t.message,c.data={originalError:l(e)}}const h=null===(o=e)||void 0===o?void 0:o.stack;return n&&e&&h&&"string"==typeof h&&(c.stack=h),c}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Web3Method=void 0,function(e){e.requestEthereumAccounts="requestEthereumAccounts",e.signEthereumMessage="signEthereumMessage",e.signEthereumTransaction="signEthereumTransaction",e.submitEthereumTransaction="submitEthereumTransaction",e.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",e.scanQRCode="scanQRCode",e.generic="generic",e.childRequestEthereumAccounts="childRequestEthereumAccounts",e.addEthereumChain="addEthereumChain",e.switchEthereumChain="switchEthereumChain",e.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",e.watchAsset="watchAsset",e.selectProvider="selectProvider"}(t.Web3Method||(t.Web3Method={}))},function(e,t,n){n.r(t);var r=n(85);n.d(t,"CoinbaseWalletProvider",(function(){return r.CoinbaseWalletProvider})),n.d(t,"CoinbaseWalletSDK",(function(){return r.CoinbaseWalletSDK}))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.walletLogo=void 0,t.walletLogo=(e,t)=>{let n;switch(e){default:return n=t,`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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 n=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${n}' 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 n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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 n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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 n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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 n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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`}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ScopedLocalStorage=void 0,t.ScopedLocalStorage=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){const e=this.scopedKey(""),t=[];for(let n=0;nlocalStorage.removeItem(e)))}scopedKey(e){return`${this.scope}:${e}`}}},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,d=s>0?a-4:a;for(n=0;n>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;const r=n(87),i=n(103),o=n(88);function a(e,t){const[n,o]=u(t);return new r.EthereumRpcError(e,n||i.getMessageFromCode(e),o)}function s(e,t){const[n,o]=u(t);return new r.EthereumProviderError(e,n||i.getMessageFromCode(e),o)}function u(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&"string"!=typeof t)throw new Error("Must specify string message.");return[t||void 0,n]}}return[]}t.ethErrors={rpc:{parse:e=>a(o.errorCodes.rpc.parse,e),invalidRequest:e=>a(o.errorCodes.rpc.invalidRequest,e),invalidParams:e=>a(o.errorCodes.rpc.invalidParams,e),methodNotFound:e=>a(o.errorCodes.rpc.methodNotFound,e),internal:e=>a(o.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||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 a(t,e)},invalidInput:e=>a(o.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>a(o.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>a(o.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>a(o.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>a(o.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>a(o.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>s(o.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>s(o.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>s(o.errorCodes.provider.unsupportedMethod,e),disconnected:e=>s(o.errorCodes.provider.disconnected,e),chainDisconnected:e=>s(o.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:n,data:i}=e;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new r.EthereumProviderError(t,n,i)}}}},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(136),t.sha1=n(137),t.sha224=n(138),t.sha256=n(104),t.sha384=n(139),t.sha512=n(105)},function(e,t,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function l(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=n[d-3]^n[d-8]^n[d-14]^n[d-16];for(var h=0;h<80;++h){var p=~~(h/20),f=0|((t=r)<<5|t>>>27)+l(p,i,o,s)+u+n[h]+a[p];u=s,s=o,o=c(i),i=r,r=f}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function d(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)n[h]=e.readInt32BE(4*h);for(;h<80;++h)n[h]=(t=n[h-3]^n[h-8]^n[h-14]^n[h-16])<<1|t>>>31;for(var p=0;p<80;++p){var f=~~(p/20),y=c(r)+d(f,i,o,s)+u+n[p]+a[f]|0;u=s,s=o,o=l(i),i=r,r=y}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,n){var r=n(24),i=n(104),o=n(45),a=n(37).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}r(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},function(e,t,n){var r=n(24),i=n(105),o=n(45),a=n(37).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}r(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},function(e,t,n){var r=n(141),i=n(151),o=n(93);e.exports={formats:o,parse:i,stringify:r}},function(e,t,n){var r=n(142),i=n(106),o=n(93),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=String.prototype.split,l=Array.prototype.push,d=function(e,t){l.apply(e,u(t)?t:[t])},h=Date.prototype.toISOString,p=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},y={},m=function e(t,n,o,a,s,l,h,p,m,g,v,b,w,M,A,E){for(var T,N=t,I=E,k=0,L=!1;void 0!==(I=I.get(y))&&!L;){var x=I.get(t);if(k+=1,void 0!==x){if(x===k)throw new RangeError("Cyclic object value");L=!0}void 0===I.get(y)&&(k=0)}if("function"==typeof p?N=p(n,N):N instanceof Date?N=v(N):"comma"===o&&u(N)&&(N=i.maybeMap(N,(function(e){return e instanceof Date?v(e):e}))),null===N){if(s)return h&&!M?h(n,f.encoder,A,"key",b):n;N=""}if("string"==typeof(T=N)||"number"==typeof T||"boolean"==typeof T||"symbol"==typeof T||"bigint"==typeof T||i.isBuffer(N)){if(h){var S=M?n:h(n,f.encoder,A,"key",b);if("comma"===o&&M){for(var j=c.call(String(N),","),C="",D=0;D0?N.join(",")||null:void 0}];else if(u(p))O=p;else{var _=Object.keys(N);O=m?_.sort(m):_}for(var P=a&&u(N)&&1===N.length?n+"[]":n,R=0;R0?M+w:""}},function(e,t,n){var r=n(91),i=n(147),o=n(149),a=r("%TypeError%"),s=r("%WeakMap%",!0),u=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),f=i("Map.prototype.has",!0),y=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(u){if(t)return h(t,r)}else if(n)return function(e,t){var n=y(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(u){if(t)return f(t,r)}else if(n)return function(e,t){return!!y(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),l(e,r,i)):u?(t||(t=new u),p(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=y(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},function(e,t,n){var r="undefined"!=typeof Symbol&&Symbol,i=n(144);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},function(e,t,n){e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError(r+t);for(var n,a=i.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,a.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(i.call(arguments)))},u=Math.max(0,t.length-a.length),c=[],l=0;l-1?i(n):n}},function(e,t,n){var r=n(92),i=n(91),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(r,a,arguments);if(u&&c){var n=u(t,"length");n.configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var d=function(){return s(r,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,M=String.prototype.toLowerCase,A=RegExp.prototype.test,E=Array.prototype.concat,T=Array.prototype.join,N=Array.prototype.slice,I=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,L=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function O(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||A.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-I(-e):I(e);if(r!==e){var i=String(r),o=v.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var z=n(150),_=z.custom,P=Q(_)?_:null;function R(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function B(e){return b.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==V(e)||j&&"object"==typeof e&&j in e)}function W(e){return!("[object RegExp]"!==V(e)||j&&"object"==typeof e&&j in e)}function Q(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(F(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!F(s,"customInspect")||s.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(F(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return e(v.call(t,0,n.maxStringLength),n)+i}return R(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",n)}(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return y?O(t,w):w}if("bigint"==typeof t){var A=String(t)+"n";return y?O(t,A):A}var I=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=I&&I>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var L=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=T.call(Array(e.indent+1)," ")}return{base:n,prev:T.call(Array(t+1),n)}}(s,r);if(void 0===i)i=[];else if(H(i,t)>=0)return"[Circular]";function _(t,n,o){if(n&&(i=N.call(i)).push(n),o){var a={depth:s.depth};return F(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t&&!W(t)){var Y=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),$=K(t,_);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+($.length>0?" { "+T.call($,", ")+" }":"")}if(Q(t)){var ee=S?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||S?ee:q(ee)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var te="<"+M.call(String(t.nodeName)),ne=t.attributes||[],re=0;re"}if(U(t)){if(0===t.length)return"[]";var ie=K(t,_);return L&&!function(e){for(var t=0;t=0)return!1;return!0}(ie)?"["+X(ie,L)+"]":"[ "+T.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==V(e)||j&&"object"==typeof e&&j in e)}(t)){var oe=K(t,_);return"cause"in Error.prototype||!("cause"in t)||C.call(t,"cause")?0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(oe,", ")+" }":"{ ["+String(t)+"] "+T.call(E.call("[cause]: "+_(t.cause),oe),", ")+" }"}if("object"==typeof t&&u){if(P&&"function"==typeof t[P]&&z)return z(t,{depth:I-r});if("symbol"!==u&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return a.call(t,(function(e,n){ae.push(_(n,t,!0)+" => "+_(e,t))})),J("Map",o.call(t),ae,L)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return l.call(t,(function(e){se.push(_(e,t))})),J("Set",c.call(t),se,L)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return!("[object Number]"!==V(e)||j&&"object"==typeof e&&j in e)}(t))return q(_(Number(t)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}(t))return q(_(k.call(t)));if(function(e){return!("[object Boolean]"!==V(e)||j&&"object"==typeof e&&j in e)}(t))return q(f.call(t));if(function(e){return!("[object String]"!==V(e)||j&&"object"==typeof e&&j in e)}(t))return q(_(String(t)));if(!function(e){return!("[object Date]"!==V(e)||j&&"object"==typeof e&&j in e)}(t)&&!W(t)){var ue=K(t,_),ce=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",de=!ce&&j&&Object(t)===t&&j in t?v.call(V(t),8,-1):le?"Object":"",he=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||le?"["+T.call(E.call([],de||[],le||[]),": ")+"] ":"");return 0===ue.length?he+"{}":L?he+"{"+X(ue,L)+"}":he+"{ "+T.call(ue,", ")+" }"}return String(t)};var Y=Object.prototype.hasOwnProperty||function(e){return e in this};function F(e,t){return Y.call(e,t)}function V(e){return y.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,c={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,h=l.split(t.delimiter,d),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(m=o(m)?[m]:m),i.call(c,y)?c[y]=r.combine(c[y],m):c[y]=m}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},h=Object.keys(l),p=0;p{if(void 0!==o[n])return["bytes32",null==s?"0x0000000000000000000000000000000000000000000000000000000000000000":r.keccak(this.encodeData(n,s,o,a))];if(void 0===s)throw new Error(`missing value for field ${e} of type ${n}`);if("bytes"===n)return["bytes32",r.keccak(s)];if("string"===n)return"string"==typeof s&&(s=t.from(s,"utf8")),["bytes32",r.keccak(s)];if(n.lastIndexOf("]")===n.length-1){const t=n.slice(0,n.lastIndexOf("[")),o=s.map((n=>c(e,t,n)));return["bytes32",r.keccak(i.rawEncode(o.map((([e])=>e)),o.map((([,e])=>e))))]}return[n,s]};for(const t of o[e]){const[e,r]=c(t.name,t.type,n[t.name]);s.push(e),u.push(r)}}else for(const i of o[e]){let e=n[i.name];if(void 0!==e)if("bytes"===i.type)s.push("bytes32"),e=r.keccak(e),u.push(e);else if("string"===i.type)s.push("bytes32"),"string"==typeof e&&(e=t.from(e,"utf8")),e=r.keccak(e),u.push(e);else if(void 0!==o[i.type])s.push("bytes32"),e=r.keccak(this.encodeData(i.type,e,o,a)),u.push(e);else{if(i.type.lastIndexOf("]")===i.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");s.push(i.type),u.push(e)}}return i.rawEncode(s,u)},encodeType(e,t){let n="",r=this.findTypeDependencies(e,t).filter((t=>t!==e));r=[e].concat(r.sort());for(const e of r){if(!t[e])throw new Error("No type definition specified: "+e);n+=e+"("+t[e].map((({name:e,type:t})=>t+" "+e)).join(",")+")"}return n},findTypeDependencies(e,t,n=[]){if(e=e.match(/^\w*/)[0],n.includes(e)||void 0===t[e])return n;n.push(e);for(const r of t[e])for(const e of this.findTypeDependencies(r.type,t,n))!n.includes(e)&&n.push(e);return n},hashStruct(e,t,n,i=!0){return r.keccak(this.encodeData(e,t,n,i))},hashType(e,t){return r.keccak(this.encodeType(e,t))},sanitizeData(e){const t={};for(const n in o.properties)e[n]&&(t[n]=e[n]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,n=!0){const i=this.sanitizeData(e),o=[t.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",i.domain,i.types,n)),"EIP712Domain"!==i.primaryType&&o.push(this.hashStruct(i.primaryType,i.message,i.types,n)),r.keccak(t.concat(o))}};e.exports={TYPED_MESSAGE_SCHEMA:o,TypedDataUtils:a,hashForSignTypedDataLegacy:function(e){return function(e){const t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;const n=e.map((function(e){return"bytes"===e.type?r.toBuffer(e.value):e.value})),o=e.map((function(e){return e.type})),a=e.map((function(e){if(!e.name)throw t;return e.type+" "+e.name}));return i.soliditySHA3(["bytes32","bytes32"],[i.soliditySHA3(new Array(e.length).fill("string"),a),i.soliditySHA3(o,n)])}(e.data)},hashForSignTypedData_v3:function(e){return a.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return a.hash(e.data)}}}).call(this,n(19).Buffer)},function(e,t,n){e.exports=n(154)(n(165))},function(e,t,n){const r=n(155),i=n(164);e.exports=function(e){const t=r(e),n=i(e);return function(e,r){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,r);case"keccak256":return new t(1088,512,null,256,r);case"keccak384":return new t(832,768,null,384,r);case"keccak512":return new t(576,1024,null,512,r);case"sha3-224":return new t(1152,448,6,224,r);case"sha3-256":return new t(1088,512,6,256,r);case"sha3-384":return new t(832,768,6,384,r);case"sha3-512":return new t(576,1024,6,512,r);case"shake128":return new n(1344,256,31,r);case"shake256":return new n(1088,512,31,r);default:throw new Error("Invald algorithm: "+e)}}}},function(e,t,n){(function(t){const{Transform:r}=n(109);e.exports=e=>class n extends r{constructor(t,n,r,i,o){super(o),this._rate=t,this._capacity=n,this._delimitedSuffix=r,this._hashBitLength=i,this._options=o,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let r=null;try{this.update(e,t)}catch(e){r=e}n(r)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,n){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return t.isBuffer(e)||(e=t.from(e,n)),this._state.absorb(e),this}digest(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new n(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}}).call(this,n(19).Buffer)},function(e,t){},function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(19).Buffer,a=n(158).inspect,s=a&&a.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t;return(t=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:s,value:function(e,t){return a(this,function(e){for(var t=1;t0,(function(e){r||(r=e),e&&a.forEach(c),o||(a.forEach(c),i(r))}))}));return t.reduce(l)}},function(e,t,n){(function(t){const{Transform:r}=n(109);e.exports=e=>class n extends r{constructor(t,n,r,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=r,this._options=i,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let r=null;try{this.update(e,t)}catch(e){r=e}n(r)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,n){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return t.isBuffer(e)||(e=t.from(e,n)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(e);return void 0!==t&&(n=n.toString(t)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new n(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}}).call(this,n(19).Buffer)},function(e,t,n){(function(t){const r=n(166);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(e){for(let t=0;t>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(r.p1600(this.state),this.count=0);return n},i.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i}).call(this,n(19).Buffer)},function(e,t){const n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49];let p=d^(o<<1|a>>>31),f=h^(a<<1|o>>>31);const y=e[0]^p,m=e[1]^f,g=e[10]^p,v=e[11]^f,b=e[20]^p,w=e[21]^f,M=e[30]^p,A=e[31]^f,E=e[40]^p,T=e[41]^f;p=r^(s<<1|u>>>31),f=i^(u<<1|s>>>31);const N=e[2]^p,I=e[3]^f,k=e[12]^p,L=e[13]^f,x=e[22]^p,S=e[23]^f,j=e[32]^p,C=e[33]^f,D=e[42]^p,O=e[43]^f;p=o^(c<<1|l>>>31),f=a^(l<<1|c>>>31);const z=e[4]^p,_=e[5]^f,P=e[14]^p,R=e[15]^f,B=e[24]^p,U=e[25]^f,W=e[34]^p,Q=e[35]^f,Y=e[44]^p,F=e[45]^f;p=s^(d<<1|h>>>31),f=u^(h<<1|d>>>31);const V=e[6]^p,H=e[7]^f,G=e[16]^p,q=e[17]^f,Z=e[26]^p,J=e[27]^f,X=e[36]^p,K=e[37]^f,$=e[46]^p,ee=e[47]^f;p=c^(r<<1|i>>>31),f=l^(i<<1|r>>>31);const te=e[8]^p,ne=e[9]^f,re=e[18]^p,ie=e[19]^f,oe=e[28]^p,ae=e[29]^f,se=e[38]^p,ue=e[39]^f,ce=e[48]^p,le=e[49]^f,de=y,he=m,pe=v<<4|g>>>28,fe=g<<4|v>>>28,ye=b<<3|w>>>29,me=w<<3|b>>>29,ge=A<<9|M>>>23,ve=M<<9|A>>>23,be=E<<18|T>>>14,we=T<<18|E>>>14,Me=N<<1|I>>>31,Ae=I<<1|N>>>31,Ee=L<<12|k>>>20,Te=k<<12|L>>>20,Ne=x<<10|S>>>22,Ie=S<<10|x>>>22,ke=C<<13|j>>>19,Le=j<<13|C>>>19,xe=D<<2|O>>>30,Se=O<<2|D>>>30,je=_<<30|z>>>2,Ce=z<<30|_>>>2,De=P<<6|R>>>26,Oe=R<<6|P>>>26,ze=U<<11|B>>>21,_e=B<<11|U>>>21,Pe=W<<15|Q>>>17,Re=Q<<15|W>>>17,Be=F<<29|Y>>>3,Ue=Y<<29|F>>>3,We=V<<28|H>>>4,Qe=H<<28|V>>>4,Ye=q<<23|G>>>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^=n[2*t],e[1]^=n[2*t+1]}}},function(e,t,n){(function(t){const r=n(108),i=n(66);function o(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function a(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function s(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function u(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function c(e){var t=typeof e;if("string"===t)return r.isHexString(e)?new i(r.stripHexPrefix(e),16):new i(e,10);if("number"===t)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function l(e,n){var o,d,h,p;if("address"===e)return l("uint160",c(n));if("bool"===e)return l("uint8",n?1:0);if("string"===e)return l("bytes",new t(n,"utf8"));if(function(e){return e.lastIndexOf("]")===e.length-1}(e)){if(void 0===n.length)throw new Error("Not an array?");if("dynamic"!==(o=u(e))&&0!==o&&n.length>o)throw new Error("Elements exceed array size: "+o);for(p in h=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof n&&(n=JSON.parse(n)),n)h.push(l(e,n[p]));if("dynamic"===o){var f=l("uint256",n.length);h.unshift(f)}return t.concat(h)}if("bytes"===e)return n=new t(n),h=t.concat([l("uint256",n.length),n]),n.length%32!=0&&(h=t.concat([h,r.zeros(32-n.length%32)])),h;if(e.startsWith("bytes")){if((o=a(e))<1||o>32)throw new Error("Invalid bytes width: "+o);return r.setLengthRight(n,32)}if(e.startsWith("uint")){if((o=a(e))%8||o<8||o>256)throw new Error("Invalid uint width: "+o);if((d=c(n)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+d.bitLength());if(d<0)throw new Error("Supplied uint is negative");return d.toArrayLike(t,"be",32)}if(e.startsWith("int")){if((o=a(e))%8||o<8||o>256)throw new Error("Invalid int width: "+o);if((d=c(n)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+d.bitLength());return d.toTwos(256).toArrayLike(t,"be",32)}if(e.startsWith("ufixed")){if(o=s(e),(d=c(n))<0)throw new Error("Supplied ufixed is negative");return l("uint256",d.mul(new i(2).pow(new i(o[1]))))}if(e.startsWith("fixed"))return o=s(e),l("int256",c(n).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+e)}function d(e){return"string"===e||"bytes"===e||"dynamic"===u(e)}function h(e,n){if(e.length!==n.length)throw new Error("Number of types are not matching the values");for(var i,s,u=[],l=0;l32)throw new Error("Invalid bytes width: "+i);u.push(r.setLengthRight(h,i))}else if(d.startsWith("uint")){if((i=a(d))%8||i<8||i>256)throw new Error("Invalid uint width: "+i);if((s=c(h)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+s.bitLength());u.push(s.toArrayLike(t,"be",i/8))}else{if(!d.startsWith("int"))throw new Error("Unsupported or invalid type: "+d);if((i=a(d))%8||i<8||i>256)throw new Error("Invalid int width: "+i);if((s=c(h)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+s.bitLength());u.push(s.toTwos(i).toArrayLike(t,"be",i/8))}}return t.concat(u)}e.exports={rawEncode:function(e,n){var r=[],i=[],a=32*e.length;for(var s in e){var u=o(e[s]),c=l(u,n[s]);d(u)?(r.push(l("uint256",a)),i.push(c),a+=c.length):r.push(c)}return t.concat(r.concat(i))},solidityPack:h,soliditySHA3:function(e,t){return r.keccak(h(e,t))}}}).call(this,n(19).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.filterFromParam=t.FilterPolyfill=void 0;const r=n(68),i=n(38),o={jsonrpc:"2.0",id:0};function a(e){return{fromBlock:u(e.fromBlock),toBlock:u(e.toBlock),addresses:void 0===e.address?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}function s(e){const t={fromBlock:c(e.fromBlock),toBlock:c(e.toBlock),topics:e.topics};return null!==e.addresses&&(t.address=e.addresses),t}function u(e){if(void 0===e||"latest"===e||"pending"===e)return"latest";if("earliest"===e)return(0,r.IntNumber)(0);if((0,i.isHexString)(e))return(0,i.intNumberFromHexString)(e);throw new Error("Invalid block option: "+String(e))}function c(e){return"latest"===e?e:(0,i.hexStringFromIntNumber)(e)}function l(){return Object.assign(Object.assign({},o),{error:{code:-32e3,message:"filter not found"}})}function d(){return Object.assign(Object.assign({},o),{result:[]})}t.FilterPolyfill=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,r.IntNumber)(1),this.provider=e}async newFilter(e){const t=a(e),n=this.makeFilterId(),r=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",r),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,i.hexStringFromIntNumber)(n)}async newBlockFilter(){const e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,i.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){const e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,i.hexStringFromIntNumber)(e)}uninstallFilter(e){const t=(0,i.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){const t=(0,i.intNumberFromHexString)(e);return this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t)?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(l())}async getFilterLogs(e){const t=(0,i.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[s(n)]})):l()}makeFilterId(){return(0,r.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise(((t,n)=>{this.provider.sendAsync(e,((e,r)=>e?n(e):Array.isArray(r)||null==r?n(new Error("unexpected response received: "+JSON.stringify(r))):void t(r)))}))}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){const t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return l();const a=await this.getCurrentBlockHeight(),u="latest"===t.toBlock?a:t.toBlock;if(n>a)return d();if(n>t.toBlock)return d();console.log(`Fetching logs from ${n} to ${u} for filter ${e}`);const c=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[s(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:u}))]}));if(Array.isArray(c.result)){const t=c.result.map((e=>(0,i.intNumberFromHexString)(e.blockNumber||"0x0"))),o=Math.max(...t);if(o&&o>n){const t=(0,r.IntNumber)(o+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${t}`),this.cursors.set(e,t)}}return c}async getBlockFilterChanges(e){const t=this.cursors.get(e);if(!t)return l();const n=await this.getCurrentBlockHeight();if(t>n)return d();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);const a=(await Promise.all((0,i.range)(t,n+1).map((e=>this.getBlockHashByNumber((0,r.IntNumber)(e)))))).filter((e=>!!e)),s=(0,r.IntNumber)(t+a.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${s}`),this.cursors.set(e,s),Object.assign(Object.assign({},o),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(d())}async setInitialCursorPosition(e,t){const n=await this.getCurrentBlockHeight(),r="number"==typeof t&&t>n?t:n;return this.cursors.set(e,r),r}setFilterTimeout(e){const t=this.timeouts.get(e);t&&window.clearTimeout(t);const n=window.setTimeout((()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)}),3e5);this.timeouts.set(e,n)}async getCurrentBlockHeight(){const{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_blockNumber",params:[]}));return(0,i.intNumberFromHexString)((0,i.ensureHexString)(e))}async getBlockHashByNumber(e){const t=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getBlockByNumber",params:[(0,i.hexStringFromIntNumber)(e),!1]}));return t.result&&"string"==typeof t.result.hash?(0,i.ensureHexString)(t.result.hash):null}},t.filterFromParam=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRPCMethod=void 0,function(e){e.eth_accounts="eth_accounts",e.eth_coinbase="eth_coinbase",e.net_version="net_version",e.eth_chainId="eth_chainId",e.eth_uninstallFilter="eth_uninstallFilter",e.eth_requestAccounts="eth_requestAccounts",e.eth_sign="eth_sign",e.eth_ecRecover="eth_ecRecover",e.personal_sign="personal_sign",e.personal_ecRecover="personal_ecRecover",e.eth_signTransaction="eth_signTransaction",e.eth_sendRawTransaction="eth_sendRawTransaction",e.eth_sendTransaction="eth_sendTransaction",e.eth_signTypedData_v1="eth_signTypedData_v1",e.eth_signTypedData_v2="eth_signTypedData_v2",e.eth_signTypedData_v3="eth_signTypedData_v3",e.eth_signTypedData_v4="eth_signTypedData_v4",e.eth_signTypedData="eth_signTypedData",e.cbWallet_arbitrary="walletlink_arbitrary",e.wallet_addEthereumChain="wallet_addEthereumChain",e.wallet_switchEthereumChain="wallet_switchEthereumChain",e.wallet_watchAsset="wallet_watchAsset",e.eth_subscribe="eth_subscribe",e.eth_unsubscribe="eth_unsubscribe",e.eth_newFilter="eth_newFilter",e.eth_newBlockFilter="eth_newBlockFilter",e.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",e.eth_getFilterChanges="eth_getFilterChanges",e.eth_getFilterLogs="eth_getFilterLogs"}(t.JSONRPCMethod||(t.JSONRPCMethod={}))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionManager=void 0;const r=n(171),i=n(179),o=()=>{};t.SubscriptionManager=class{constructor(e){const t=new r({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:o}=i({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=o}async handleRequest(e){const t={};return await this.subscriptionMiddleware(e,t,o,o),t}destroy(){this.subscriptionMiddleware.destroy()}}},function(e,t,n){const r=n(117),i=n(172);function o(e,t){return new Promise((n=>{const r=setTimeout(n,e);r.unref&&t&&r.unref()}))}e.exports=class extends i{constructor(e={}){if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");const t=e.pollingInterval||2e4,n=e.retryTimeout||t/10,r=void 0===e.keepEventLoopActive||e.keepEventLoopActive,i=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:t},e)),this._provider=e.provider,this._pollingInterval=t,this._retryTimeout=n,this._keepEventLoopActive=r,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch((e=>this.emit("error",e)))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await o(this._pollingInterval,!this._keepEventLoopActive)}catch(e){const t=new Error("PollingBlockTracker - encountered an error while attempting to update latest block:\n"+e.stack);try{this.emit("error",t)}catch(e){console.error(t)}await o(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){const e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){const e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);const t=await r((t=>this._provider.sendAsync(e,t)))();if(t.error)throw new Error("PollingBlockTracker - encountered error fetching block:\n"+t.error);return t.result}}},function(e,t,n){n(118),n(117);const r=n(175),i=(e,t)=>e+t,o=["sync","latest"];function a(e){return Number.parseInt(e,16)}e.exports=class extends r{constructor(e={}){super(),this._blockResetDuration=e.blockResetDuration||2e4,this._blockResetTimeout,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise((e=>this.once("latest",e)))}removeAllListeners(e){e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e,t){o.includes(e)&&this._maybeStart()}_onRemoveListener(e,t){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return o.map((e=>this.listenerCount(e))).reduce(i)}_newPotentialLatest(e){const t=this._currentBlock;t&&a(e)<=a(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){const t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}},function(e,t){e.exports=function(){for(var e={},t=0;t{throw e}))}}function c(e,t){for(var n=new Array(t),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)u(s,this,t);else{var l=s.length,d=c(s,l);for(n=0;n=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),f(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=l(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return m(t)?e.stylize(""+t,"number"):f(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),A(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(E(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(M(n))return e.stylize(Date.prototype.toString.call(n),"date");if(A(n))return d(n)}var c,w="",T=!1,N=["{","}"];return p(n)&&(T=!0,N=["[","]"]),E(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),b(n)&&(w=" "+RegExp.prototype.toString.call(n)),M(n)&&(w=" "+Date.prototype.toUTCString.call(n)),A(n)&&(w=" "+d(n)),0!==a.length||T&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=T?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,w,N)):N[0]+w+N[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),L(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function y(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===T(e)}function w(e){return"object"==typeof e&&null!==e}function M(e){return w(e)&&"[object Date]"===T(e)}function A(e){return w(e)&&("[object Error]"===T(e)||e instanceof Error)}function E(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(v(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=f,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.isObject=w,t.isDate=M,t.isError=A,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(177);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",k(),t.format.apply(t,arguments))},t.inherits=n(178),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var x="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function S(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!=typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o{e.removeListener("sync",r.update)},update:async({oldBlock:e,newBlock:r})=>{const i=r,o=u(e);(await c({provider:t,fromBlock:o,toBlock:i})).map(l).forEach((e=>{y(n,e)}))}};return e.on("sync",r.update),r}({subId:a});break;case"logs":const n=r.params[1];p=function({subId:e,filter:t}){return t.on("update",(t=>y(e,t))),{type:o,destroy:async()=>await d.uninstallFilter(t.idHex)}}({subId:a,filter:await d.newLogFilter(n)});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${o}"`)}return n[a]=p,void(i.result=a)})),eth_unsubscribe:o((async function(e,t){if(h)throw new Error("SubscriptionManager - attempting to use after destroying");const r=e.params[0],i=n[r];i?(delete n[r],await i.destroy(),t.result=!0):t.result=!1}))});return f.destroy=function(){p.removeAllListeners();for(const e in n)n[e].destroy(),delete n[e];h=!0},{events:p,middleware:f};function y(e,t){p.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:t}})}}},function(e,t){e.exports=function(e){return(t,n,r,i)=>{const o=e[t.method];return void 0===o?r():"function"==typeof o?o(t,n,r,i):(n.result=o,i())}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createIdRemapMiddleware=void 0;const r=n(121);t.createIdRemapMiddleware=function(){return(e,t,n,i)=>{const o=e.id,a=r.getUniqueId();e.id=a,t.id=a,n((n=>{e.id=o,t.id=o,n()}))}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createAsyncMiddleware=void 0,t.createAsyncMiddleware=function(e){return async(t,n,r,i)=>{let o;const a=new Promise((e=>{o=e}));let s=null,u=!1;const c=async()=>{u=!0,r((e=>{s=e,o()})),await a};try{await e(t,n,c),u?(await a,s(null)):i(null)}catch(e){s?s(e):i(e)}}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createScaffoldMiddleware=void 0,t.createScaffoldMiddleware=function(e){return(t,n,r,i)=>{const o=e[t.method];return void 0===o?r():"function"==typeof o?o(t,n,r,i):(n.result=o,i())}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const r=n(95);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});const i=n(123);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const o=n(185);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});const a=n(96);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;const r=n(95),i=n(123),o=n(96);function a(e,t){const[n,o]=u(t);return new r.EthereumRpcError(e,n||i.getMessageFromCode(e),o)}function s(e,t){const[n,o]=u(t);return new r.EthereumProviderError(e,n||i.getMessageFromCode(e),o)}function u(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&"string"!=typeof t)throw new Error("Must specify string message.");return[t||void 0,n]}}return[]}t.ethErrors={rpc:{parse:e=>a(o.errorCodes.rpc.parse,e),invalidRequest:e=>a(o.errorCodes.rpc.invalidRequest,e),invalidParams:e=>a(o.errorCodes.rpc.invalidParams,e),methodNotFound:e=>a(o.errorCodes.rpc.methodNotFound,e),internal:e=>a(o.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||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 a(t,e)},invalidInput:e=>a(o.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>a(o.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>a(o.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>a(o.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>a(o.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>a(o.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>s(o.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>s(o.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>s(o.errorCodes.provider.unsupportedMethod,e),disconnected:e=>s(o.errorCodes.provider.disconnected,e),chainDisconnected:e=>s(o.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:n,data:i}=e;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new r.EthereumProviderError(t,n,i)}}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMiddleware=void 0;const r=n(122);t.mergeMiddleware=function(e){const t=new r.JsonRpcEngine;return e.forEach((e=>t.push(e))),t.asMiddleware()}},function(e,t,n){const r=n(224).Mutex,{createAsyncMiddleware:i}=n(120),o=n(119),a=n(188),s=n(191),u=n(192),{intToHex:c,hexToInt:l}=n(60);function d(e){return h((async(...t)=>{const n=await e(...t);return c(n.id)}))}function h(e){return i((async(t,n)=>{const r=await e.apply(null,t.params);n.result=r}))}function p(e,t){const n=[];for(let t in e)n.push(e[t]);return n}e.exports=function({blockTracker:e,provider:t}){let n=0,i={};const f=new r,y=function({mutex:e}){return t=>async(n,r,i,o)=>{(await e.acquire())(),t(n,r,i,o)}}({mutex:f}),m=o({eth_newFilter:y(d(v)),eth_newBlockFilter:y(d(b)),eth_newPendingTransactionFilter:y(d(w)),eth_uninstallFilter:y(h(E)),eth_getFilterChanges:y(h(M)),eth_getFilterLogs:y(h(A))}),g=async({oldBlock:e,newBlock:t})=>{if(0===i.length)return;const n=await f.acquire();try{await Promise.all(p(i).map((async n=>{try{await n.update({oldBlock:e,newBlock:t})}catch(e){console.error(e)}})))}catch(e){console.error(e)}n()};return m.newLogFilter=v,m.newBlockFilter=b,m.newPendingTransactionFilter=w,m.uninstallFilter=E,m.getFilterChanges=M,m.getFilterLogs=A,m.destroy=()=>{!async function(){const e=p(i).length;i={},N({prevFilterCount:e,newFilterCount:0})}()},m;async function v(e){const n=new a({provider:t,params:e});return await T(n),n}async function b(){const e=new s({provider:t});return await T(e),e}async function w(){const e=new u({provider:t});return await T(e),e}async function M(e){const t=l(e),n=i[t];if(!n)throw new Error(`No filter for index "${t}"`);return n.getChangesAndClear()}async function A(e){const t=l(e),n=i[t];if(!n)throw new Error(`No filter for index "${t}"`);return"log"===n.type?results=n.getAllResults():results=[],results}async function E(e){const t=l(e),n=i[t],r=Boolean(n);return r&&await async function(e){const t=p(i).length;delete i[e];N({prevFilterCount:t,newFilterCount:p(i).length})}(t),r}async function T(t){const r=p(i).length,o=await e.getLatestBlock();return await t.initialize({currentBlock:o}),n++,i[n]=t,t.id=n,t.idHex=c(n),N({prevFilterCount:r,newFilterCount:p(i).length}),n}function N({prevFilterCount:t,newFilterCount:n}){0===t&&n>0?e.on("sync",g):t>0&&0===n&&e.removeListener("sync",g)}}},function(e,t,n){const r=n(118),i=n(189),o=n(190),{bnToHex:a,hexToInt:s,incrementHexInt:u,minBlockRef:c,blockRefIsNumber:l}=n(60);e.exports=class extends o{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new r(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map((e=>e.toLowerCase())))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),"earliest"===t&&(t="0x0"),this.params.fromBlock=t;const n=c(this.params.toBlock,e),r=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(r);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){const n=t;let r;r=e?u(e):t;const i=Object.assign({},this.params,{fromBlock:r,toBlock:n}),o=(await this._fetchLogs(i)).filter((e=>this.matchLog(e)));this.addResults(o)}async _fetchLogs(e){return await i((t=>this.ethQuery.getLogs(e,t)))()}matchLog(e){if(s(this.params.fromBlock)>=s(e.blockNumber))return!1;if(l(this.params.toBlock)&&s(this.params.toBlock)<=s(e.blockNumber))return!1;const t=e.address&&e.address.toLowerCase();return!(this.params.address&&t&&!this.params.address.includes(t))&&this.params.topics.every(((t,n)=>{let r=e.topics[n];if(!r)return!1;r=r.toLowerCase();let i=Array.isArray(t)?t:[t];return!!i.includes(null)||(i=i.map((e=>e.toLowerCase())),i.includes(r))}))}}},function(e,t,n){const r=(e,t,n,r)=>function(...i){return new t.promiseModule(((o,a)=>{t.multiArgs?i.push(((...e)=>{t.errorFirst?e[0]?a(e):(e.shift(),o(e)):o(e)})):t.errorFirst?i.push(((e,t)=>{e?a(e):o(t)})):i.push(o);const s=this===n?r:this;Reflect.apply(e,s,i)}))},i=new WeakMap;e.exports=(e,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};const n=typeof e;if(null===e||"object"!==n&&"function"!==n)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":n}\``);const o=new WeakMap,a=new Proxy(e,{apply(e,n,i){const s=o.get(e);if(s)return Reflect.apply(s,n,i);const u=t.excludeMain?e:r(e,t,a,e);return o.set(e,u),Reflect.apply(u,n,i)},get(e,n){const s=e[n];if(!((e,n)=>{let r=i.get(e);if(r||(r={},i.set(e,r)),n in r)return r[n];const o=e=>"string"==typeof e||"symbol"==typeof n?n===e:e.test(n),a=Reflect.getOwnPropertyDescriptor(e,n),s=void 0===a||a.writable||a.configurable,u=(t.include?t.include.some(o):!t.exclude.some(o))&&s;return r[n]=u,u})(e,n)||s===Function.prototype[n])return s;const u=o.get(s);if(u)return u;if("function"==typeof s){const n=r(s,t,a,e);return o.set(s,n),n}return s}});return a}},function(e,t,n){const r=n(97);e.exports=class extends r{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}}},function(e,t,n){const r=n(97),i=n(98),{incrementHexInt:o}=n(60);e.exports=class extends r{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){const n=t,r=o(e),a=(await i({provider:this.provider,fromBlock:r,toBlock:n})).map((e=>e.hash));this.addResults(a)}}},function(e,t,n){const r=n(97),i=n(98),{incrementHexInt:o}=n(60);e.exports=class extends r{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){const t=e,n=o(e),r=await i({provider:this.provider,fromBlock:n,toBlock:t}),a=[];for(const e of r)a.push(...e.transactions);this.addResults(a)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKUI=void 0;const r=n(194),i=n(206),o=n(208);t.WalletSDKUI=class{constructor(e){this.standalone=null,this.attached=!1,this.snackbar=new i.Snackbar({darkMode:e.darkMode}),this.linkFlow=new r.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,o.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:{message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return null!==(e=this.standalone)&&void 0!==e&&e}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkFlow=void 0;const r=n(8),i=n(48),o=n(195);t.LinkFlow=class{constructor(e){this.extensionUI$=new i.BehaviorSubject({}),this.subscriptions=new i.Subscription,this.isConnected=!1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe((e=>{this.isConnected!==e&&(this.isConnected=e,this.render())})))}detach(){var e;this.root&&(this.subscriptions.unsubscribe(),(0,r.render)(null,this.root),null===(e=this.root.parentElement)||void 0===e||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;const e=this.extensionUI$.subscribe((()=>{this.root&&(0,r.render)((0,r.h)(o.TryExtensionLinkDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}));this.subscriptions.add(e)}}},function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TryExtensionLinkDialog=void 0;const i=r(n(124)),o=n(8),a=n(99),s=n(38),u=n(196),c=r(n(197)),l=r(n(198)),d=r(n(199)),h=r(n(200)),p=n(201),f=n(203),y=r(n(205));t.TryExtensionLinkDialog=e=>{const{isOpen:t,darkMode:n}=e,[r,s]=(0,a.useState)(!t),[u,c]=(0,a.useState)(!t);(0,a.useEffect)((()=>{const e=[window.setTimeout((()=>{c(!t)}),10)];return t?s(!1):e.push(window.setTimeout((()=>{s(!0)}),360)),()=>{e.forEach(window.clearTimeout)}}),[e.isOpen]);const l=n?"dark":"light";return(0,o.h)("div",{class:(0,i.default)("-cbwsdk-extension-dialog-container",r&&"-cbwsdk-extension-dialog-container-hidden")},(0,o.h)("style",null,y.default),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-extension-dialog-backdrop",l,u&&"-cbwsdk-extension-dialog-backdrop-hidden")}),(0,o.h)("div",{class:"-cbwsdk-extension-dialog"},(0,o.h)("div",{class:(0,i.default)("-cbwsdk-extension-dialog-box",u&&"-cbwsdk-extension-dialog-box-hidden")},(0,o.h)(m,{darkMode:n,onInstallClick:()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")}}),e.connectDisabled?null:(0,o.h)(g,{darkMode:n,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection}),e.onCancel&&(0,o.h)(b,{darkMode:n,onClick:e.onCancel}))))};const m=({darkMode:e,onInstallClick:t})=>{const[n,r]=(0,a.useState)(!1),s=(0,a.useCallback)((()=>{n?window.location.reload():(t(),r(!0))}),[t,n]),u=e?"dark":"light";return(0,o.h)("div",{class:(0,i.default)("-cbwsdk-extension-dialog-box-top",u)},(0,o.h)("div",{class:"-cbwsdk-extension-dialog-box-top-install-region"},(0,o.h)("h2",{class:u},"Try the Coinbase Wallet extension"),n&&(0,o.h)("div",{class:"-cbwsdk-extension-dialog-box-top-subtext"},"After installing Coinbase Wallet, refresh the page and connect again."),(0,o.h)("button",{type:"button",onClick:s},n?"Refresh":"Install")),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-extension-dialog-box-top-info-region",u)},(0,o.h)(v,{darkMode:e,icon:l.default,text:"Connect to crypto apps with one click"}),(0,o.h)(v,{darkMode:e,icon:d.default,text:"Your private key is stored securely"}),(0,o.h)(v,{darkMode:e,icon:c.default,text:"Works with Ethereum, Polygon, and more"})))},g=e=>{const t=(0,s.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection),n=e.darkMode?"dark":"light";return(0,o.h)("div",{"data-testid":"scan-qr-box",class:(0,i.default)("-cbwsdk-extension-dialog-box-bottom",n)},(0,o.h)("div",{class:"-cbwsdk-extension-dialog-box-bottom-description-region"},(0,o.h)("h2",{class:n},"Or scan to connect"),(0,o.h)("body",{class:(0,i.default)("-cbwsdk-extension-dialog-box-bottom-description",n)},"Open"," ",(0,o.h)("a",{href:"https://wallet.coinbase.com/",target:"_blank",rel:"noopener noreferrer"},"Coinbase Wallet")," ","on your mobile phone and scan")),(0,o.h)("div",{class:"-cbwsdk-extension-dialog-box-bottom-qr-region"},(0,o.h)("div",{class:"-cbwsdk-extension-dialog-box-bottom-qr-wrapper"},(0,o.h)(p.QRCode,{content:t,width:150,height:150,fgColor:"#000",bgColor:"transparent",image:{svg:h.default,width:34,height:34}})),(0,o.h)("input",{type:"hidden",name:"cbwsdk-version",value:u.LIB_VERSION}),(0,o.h)("input",{type:"hidden",value:t}),!e.isConnected&&(0,o.h)("div",{"data-testid":"connecting-spinner",class:(0,i.default)("-cbwsdk-extension-dialog-box-bottom-qr-connecting",n)},(0,o.h)(f.Spinner,{size:36,color:e.darkMode?"#FFF":"#000"}),(0,o.h)("p",null,"Connecting..."))))},v=e=>{const t=e.darkMode?"dark":"light";return(0,o.h)("div",{class:"-cbwsdk-extension-dialog-box-top-description"},(0,o.h)("div",{class:"-cbwsdk-extension-dialog-box-top-description-icon-wrapper"},(0,o.h)("img",{src:e.icon})),(0,o.h)("body",{class:(0,i.default)("-cbwsdk-extension-dialog-box-top-description-text",t)},e.text))},b=e=>{const t=e.darkMode?"dark":"light";return(0,o.h)("button",{type:"button",class:(0,i.default)("-cbwsdk-extension-dialog-box-cancel",t),onClick:e.onClick},(0,o.h)("div",{class:(0,i.default)("-cbwsdk-extension-dialog-box-cancel-x",t)}))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION="3.4.0"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTggMEMzLjU4IDAgMCAzLjU4IDAgOHMzLjU4IDggOCA4IDgtMy41OCA4LTgtMy41OC04LTgtOFptNS45MSA3aC0xLjk0Yy0uMS0xLjU3LS40Mi0zLS45MS00LjE1IDEuNDguODggMi41NSAyLjM4IDIuODUgNC4xNVpNOCAxNGMtLjQ1IDAtMS43Mi0xLjc3LTEuOTUtNWgzLjljLS4yMyAzLjIzLTEuNSA1LTEuOTUgNVpNNi4wNSA3QzYuMjggMy43NyA3LjU1IDIgOCAyYy40NSAwIDEuNzIgMS43NyAxLjk1IDVoLTMuOVpNNC45NCAyLjg1QzQuNDYgNCA0LjEzIDUuNDMgNC4wMyA3SDIuMDljLjMtMS43NyAxLjM3LTMuMjcgMi44NS00LjE1Wk0yLjA5IDloMS45NGMuMSAxLjU3LjQyIDMgLjkxIDQuMTVBNS45OTggNS45OTggMCAwIDEgMi4wOSA5Wm04Ljk3IDQuMTVjLjQ4LTEuMTUuODEtMi41OC45MS00LjE1aDEuOTRhNS45OTggNS45OTggMCAwIDEtMi44NS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uOTI3IDAgMCAwIDAgNS41NDQgMy45MDkgMy45MDkgMCAwIDAgNS41MzggMGwzLjIwNS0zLjIxOWEzLjk1OCAzLjk1OCAwIDAgMCAxLjA5MS0zLjQwNCA0LjIxMSA0LjIxMSAwIDAgMC0uNTM3LTEuNDQ5WiIgZmlsbD0iIzE2NTJGMCIvPjwvc3ZnPg=="},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEgN3Y5aDE0VjdIMVptNy41IDQuMzlWMTRoLTF2LTIuNjFjLS40NC0uMTktLjc1LS42My0uNzUtMS4xNGExLjI1IDEuMjUgMCAwIDEgMi41IDBjMCAuNTEtLjMxLjk1LS43NSAxLjE0Wk01LjY3IDZWNC4zM0M1LjY3IDMuMDUgNi43MSAyIDggMnMyLjMzIDEuMDUgMi4zMyAyLjMzVjZoMlY0LjMzQzEyLjMzIDEuOTQgMTAuMzkgMCA4IDBTMy42NyAxLjk0IDMuNjcgNC4zM1Y2aDJaIiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default='\n\n\n\n\n\n\n'},function(e,t,n){(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;const i=n(8),o=n(99),a=r(n(202));t.QRCode=t=>{const[n,r]=(0,o.useState)("");return(0,o.useEffect)((()=>{var n,i;const o=new a.default({content:t.content,background:t.bgColor||"#ffffff",color:t.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(n=t.width)&&void 0!==n?n:256,height:null!==(i=t.height)&&void 0!==i?i:256,padding:0,image:t.image}),s=e.from(o.svg(),"utf8").toString("base64");r("data:image/svg+xml;base64,"+s)})),n?(0,i.h)("img",{src:n,alt:"QR Code"}):null}}).call(this,n(19).Buffer)},function(e,t){function n(e){this.mode=i.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;t65536?(r[0]=240|(1835008&o)>>>18,r[1]=128|(258048&o)>>>12,r[2]=128|(4032&o)>>>6,r[3]=128|63&o):o>2048?(r[0]=224|(61440&o)>>>12,r[1]=128|(4032&o)>>>6,r[2]=128|63&o):o>128?(r[0]=192|(1984&o)>>>6,r[1]=128|63&o):r[0]=o,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function r(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}n.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=o.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++)r=!e&&1==(t>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=o.getBCHTypeInfo(n),i=0;i<15;i++){var a=!e&&1==(r>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(i=0;i<15;i++)a=!e&&1==(r>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a;this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var u=0;u<2;u++)if(null==this.modules[r][s-u]){var c=!1;a>>i&1)),o.getMask(t,r,s-u)&&(c=!c),this.modules[r][s-u]=c,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(e,t,n){for(var i=c.getRSBlocks(e,t),a=new l,s=0;s8*d)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*d+")");for(a.getLengthInBits()+4<=8*d&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*d||(a.put(r.PAD0,8),a.getLengthInBits()>=8*d));)a.put(r.PAD1,8);return r.createBytes(a,i)},r.createBytes=function(e,t){for(var n=0,r=0,i=0,a=new Array(t.length),s=new Array(t.length),c=0;c=0?f.get(y):0}}var m=0;for(h=0;h=0;)t^=o.G15<=0;)t^=o.G18<>>=1;return t},getPatternPosition:function(e){return o.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case 0:return(t+n)%2==0;case 1:return t%2==0;case 2:return n%3==0;case 3:return(t+n)%3==0;case 4:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case 5:return t*n%2+t*n%3==0;case 6:return(t*n%2+t*n%3)%2==0;case 7:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new u([1],0),n=0;n5&&(n+=3+o-5)}for(r=0;r=256;)e-=255;return a.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},s=0;s<8;s++)a.EXP_TABLE[s]=1<>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var d=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function h(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},"string"==typeof e&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,i=function(e,t){for(var n=function(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}(e),r=1,i=0,o=0,a=d.length;o<=a;o++){var s=d[o];if(!s)throw new Error("Content too long: expected "+i+" but got "+n);switch(t){case"L":i=s[0];break;case"M":i=s[1];break;case"Q":i=s[2];break;case"H":i=s[3];break;default:throw new Error("Unknwon error correction level: "+t)}if(n<=i)break;r++}if(r>d.length)throw new Error("Content too long");return r}(n,this.options.ecl),o=function(e){switch(e){case"L":return 1;case"M":return 0;case"Q":return 3;case"H":return 2;default:throw new Error("Unknwon error correction level: "+e)}}(this.options.ecl);this.qrcode=new r(i,o),this.qrcode.addData(n),this.qrcode.make()}h.prototype.svg=function(e){var t=this.options||{},n=this.qrcode.modules;void 0===e&&(e={container:t.container||"svg"});for(var r=void 0===t.pretty||!!t.pretty,i=r?" ":"",o=r?"\r\n":"",a=t.width,s=t.height,u=n.length,c=a/(u+2*t.padding),l=s/(u+2*t.padding),d=void 0!==t.join&&!!t.join,h=void 0!==t.swap&&!!t.swap,p=void 0===t.xmlDeclaration||!!t.xmlDeclaration,f=void 0!==t.predefined&&!!t.predefined,y=f?i+''+o:"",m=i+''+o,g="",v="",b=0;b'+o:i+''+o}d&&(g=i+'');let I="";if(void 0!==this.options.image&&this.options.image.svg){const e=a*this.options.image.width/100,t=s*this.options.image.height/100;I+=``,I+=this.options.image.svg+o,I+=""}var k="";switch(e.container){case"svg":p&&(k+=''+o),k+=''+o,k+=y+m+g,k+=I,k+="";break;case"svg-viewbox":p&&(k+=''+o),k+=''+o,k+=y+m+g,k+=I,k+="";break;case"g":k+=''+o,k+=y+m+g,k+=I,k+="";break;default:k+=(y+m+g+I).replace(/^\s+/,"")}return k},e.exports=h},function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=void 0;const i=n(8),o=r(n(204));t.Spinner=e=>{var t;const n=null!==(t=e.size)&&void 0!==t?t:64,r=e.color||"#000";return(0,i.h)("div",{class:"-cbwsdk-spinner"},(0,i.h)("style",null,o.default),(0,i.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,i.h)("circle",{style:{cx:50,cy:50,r:45,stroke:r}})))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default='.-cbwsdk-css-reset .-cbwsdk-extension-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box{display:flex;position:relative;max-width:500px;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top{display:flex;flex-direction:row;border-radius:8px;overflow:hidden;min-height:300px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top.dark{color:#fff;background-color:#000;box-shadow:0 4px 16px rgba(255,255,255,.05)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top.light{background-color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-subtext{margin-top:15px;font-size:12px;line-height:1.5}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-install-region{display:flex;flex-basis:50%;flex-direction:column;justify-content:center;padding:32px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-install-region button{display:block;border-radius:8px;background-color:#1652f0;color:#fff;width:90%;min-width:fit-content;height:44px;margin-top:16px;font-size:16px;padding-left:16px;padding-right:16px;cursor:pointer;font-weight:500;text-align:center}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-install-region button.dark{background-color:#3773f5}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-info-region{display:flex;flex-basis:50%;flex-direction:column;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-info-region.light{background-color:#fafbfc}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-info-region.dark{background-color:#141519}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description{display:flex;flex-direction:row;align-items:center;padding-top:14px;padding-bottom:14px;padding-left:24px;padding-right:32px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description-icon-wrapper{display:block;position:relative;width:40px;height:40px;flex-shrink:0;flex-grow:0;border-radius:20px;background-color:#fff;box-shadow:0px 0px 8px rgba(0,0,0,.04),0px 16px 24px rgba(0,0,0,.06)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description-icon-wrapper img{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description-text{margin-left:16px;flex-grow:1;font-size:13px;line-height:19px;align-self:center}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description-text.light{color:#000}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description-text.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom{display:flex;flex-direction:row;overflow:hidden;border-radius:8px;margin-top:8px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom.light{background-color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom.dark{background-color:#000;box-shadow:0 4px 16px rgba(255,255,255,.05)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-description-region{display:flex;flex-direction:column;justify-content:center;padding:32px;flex-grow:1}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-description{font-size:13px;line-height:19px;margin-top:12px;color:#aaa}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-description.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-description.dark a{color:#3773f5}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-description a{font-size:inherit;line-height:inherit;color:#1652f0;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-region{position:relative;flex-shrink:0;display:flex;flex-direction:column;justify-content:center;padding-left:24px;padding-right:24px;padding-top:16px;padding-bottom:16px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-wrapper{position:relative;display:block;padding:8px;border-radius:8px;box-shadow:0px 4px 12px rgba(0,0,0,.1);background-color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-wrapper img{display:block}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting.light>p{color:#000}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting.dark{background-color:rgba(20,21,25,.9)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel{position:absolute;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;top:16px;right:16px;width:24px;height:24px;border-radius:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel.light{background-color:#fafbfc}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel.dark{background-color:#141519}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x.light::before,.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x.light::after{background-color:#000}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x.dark::before,.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x.dark::after{background-color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x::before,.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x::after{content:"";position:absolute;display:block;top:-1px;left:-7px;width:14px;height:1px;transition:background-color .2s}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x::before{transform:rotate(45deg)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x::after{transform:rotate(135deg)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel:hover .-cbwsdk-link-dialog-box-cancel-x-a,.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel:hover .-cbwsdk-link-dialog-box-cancel-x-b{background-color:#000}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-container-hidden{display:none}.-cbwsdk-css-reset .-cbwsdk-extension-dialog h2{display:block;text-align:left;font-size:22px;font-weight:600;line-height:28px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog h2.light{color:#000}.-cbwsdk-css-reset .-cbwsdk-extension-dialog h2.dark{color:#fff}'},function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;const i=r(n(124)),o=n(8),a=n(99),s=r(n(207));t.Snackbar=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){const t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,o.render)((0,o.h)("div",null,(0,o.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map((([e,n])=>(0,o.h)(t.SnackbarInstance,Object.assign({},n,{key:e})))))),this.root)}},t.SnackbarContainer=e=>(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-container")},(0,o.h)("style",null,s.default),(0,o.h)("div",{class:"-cbwsdk-snackbar"},e.children)),t.SnackbarInstance=({autoExpand:e,message:t,menuItems:n})=>{const[r,s]=(0,a.useState)(!0),[u,c]=(0,a.useState)(null!=e&&e);return(0,a.useEffect)((()=>{const e=[window.setTimeout((()=>{s(!1)}),1),window.setTimeout((()=>{c(!0)}),1e4)];return()=>{e.forEach(window.clearTimeout)}})),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance",r&&"-cbwsdk-snackbar-instance-hidden",u&&"-cbwsdk-snackbar-instance-expanded")},(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{c(!u)}},(0,o.h)("img",{src:"data:image/svg+xml;base64,PHN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iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,o.h)("div",{class:"-gear-container"},!u&&(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,o.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),n&&n.length>0&&(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map(((e,t)=>(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,o.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info))))))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectCssReset=void 0;const i=r(n(209));t.injectCssReset=function(){const e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;bottom:auto;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:block;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";right:auto;tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;width:auto;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset *{box-sizing:border-box;display:initial;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelay=void 0;const u=s(n(211)),c=n(86),l=n(48),d=n(69),h=n(89),p=n(212),f=n(216),y=n(68),m=n(38),g=a(n(217)),v=n(90),b=n(107),w=n(125),M=n(218),A=n(219),E=n(220),T=n(221);class N extends b.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.appName="",this.appLogoUrl=null,this.subscriptions=new l.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;const{session:n,ui:r,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=null===(t=e.reloadOnDisconnect)||void 0===t||t,this.ui=r}subscribe(){const e=v.Session.load(this.storage)||new v.Session(this.storage).save(),t=new p.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:e=>{this.onSessionConfigChanged(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,d.filter)((e=>"Web3Response"===e.event))).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,d.skip)(1),(0,d.tap)((e=>{var t;this.isLinked=e;const n=this.storage.getItem(b.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this.session.linked=e),this.isUnlinkedErrorState=!1,n){const r=n.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");if(""!==r[0]&&!e&&this.session.linked&&!i){this.isUnlinkedErrorState=!0;const e=this.getSessionIdHash();null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:e})}}}))).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,d.filter)((e=>!!e.metadata&&"1"===e.metadata.__destroyed))).subscribe((()=>{var e;const n=t.isDestroyed;return null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:n,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()}))),this.subscriptions.add(t.sessionConfig$.pipe((0,d.filter)((e=>e.metadata&&void 0!==e.metadata.WalletUsername))).pipe((0,d.mergeMap)((t=>g.decrypt(t.metadata.WalletUsername,e.secret)))).subscribe({next:e=>{this.storage.setItem(b.WALLET_USER_NAME_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,d.filter)((e=>e.metadata&&void 0!==e.metadata.AppVersion))).pipe((0,d.mergeMap)((t=>g.decrypt(t.metadata.AppVersion,e.secret)))).subscribe({next:e=>{this.storage.setItem(b.APP_VERSION_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,d.filter)((e=>e.metadata&&void 0!==e.metadata.ChainId&&void 0!==e.metadata.JsonRpcUrl))).pipe((0,d.mergeMap)((t=>(0,l.zip)(g.decrypt(t.metadata.ChainId,e.secret),g.decrypt(t.metadata.JsonRpcUrl,e.secret))))).pipe((0,d.distinctUntilChanged)()).subscribe({next:([e,t])=>{this.chainCallback&&this.chainCallback(e,t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,d.filter)((e=>e.metadata&&void 0!==e.metadata.EthereumAddress))).pipe((0,d.mergeMap)((t=>g.decrypt(t.metadata.EthereumAddress,e.secret)))).subscribe({next:e=>{this.accountsCallback&&this.accountsCallback([e]),N.accountRequestCallbackIds.size>0&&(Array.from(N.accountRequestCallbackIds.values()).forEach((t=>{const n=(0,T.Web3ResponseMessage)({id:t,response:(0,E.RequestEthereumAccountsResponse)([e])});this.invokeCallback(Object.assign(Object.assign({},n),{id:t}))})),N.accountRequestCallbackIds.clear())},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}}));const n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,d.timeout)(1e3),(0,d.catchError)((e=>(0,l.of)(null)))).subscribe((e=>{var t,n,r;const i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(e){null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(n=this.diagnostic)||void 0===n||n.log(h.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const o=v.Session.load(this.storage);if((null==o?void 0:o.id)===this._session.id?this.storage.clear():o&&(null===(r=this.diagnostic)||void 0===r||r.log(h.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:v.Session.hash(o.id)})),this._reloadOnDisconnect)return void this.ui.reloadUI();this.accountsCallback&&this.accountsCallback([],!0);const{session:a,ui:s,connection:u}=this.subscribe();this._session=a,this.connection=u,this.ui=s,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()}),(e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.FAILURE,{method:"relay::resetAndReload",message:"failed to reset and reload with "+e,sessionIdHash:this.getSessionIdHash()})}))}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,r){return this.sendRequest({method:w.Web3Method.signEthereumMessage,params:{message:(0,m.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:r||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:w.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,m.hexStringFromBuffer)(e,!0),signature:(0,m.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:w.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,m.bigIntStringFromBN)(e.weiValue),data:(0,m.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,m.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,m.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,m.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,m.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:w.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,m.bigIntStringFromBN)(e.weiValue),data:(0,m.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,m.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,m.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,m.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,m.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:w.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,m.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:w.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,m.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1)}genericRequest(e,t){return this.sendRequest({method:w.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null;const n=(0,m.randomBytesHex)(8),r=r=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,r),null==t||t()};return{promise:new Promise(((i,o)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:r,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,(e=>{if(null==t||t(),e.errorMessage)return o(new Error(e.errorMessage));i(e)})),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)})),cancel:r}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}publishWeb3RequestEvent(e,t){var n;const r=(0,A.Web3RequestMessage)({id:e,request:t}),i=v.Session.load(this.storage);null===(n=this.diagnostic)||void 0===n||n.log(h.EVENTS.WEB3_REQUEST,{eventId:r.id,method:"relay::"+r.request.method,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?v.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",r,!0).subscribe({next:e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:r.id,method:"relay::"+r.request.method,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?v.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()})},error:e=>{this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:r.id,response:{method:r.request.method,errorMessage:e.message}}))}}))}publishWeb3RequestCanceledEvent(e){const t=(0,M.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){const r=this.session.secret;return new l.Observable((e=>{g.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),r).then((t=>{e.next(t),e.complete()}))})).pipe((0,d.mergeMap)((t=>this.connection.publishEvent(e,t,n))))}handleIncomingEvent(e){try{this.subscriptions.add(g.decrypt(e.data,this.session.secret).pipe((0,d.map)((e=>JSON.parse(e)))).subscribe({next:e=>{const t=(0,T.isWeb3ResponseMessage)(e)?e:null;t&&this.handleWeb3ResponseMessage(t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(e){return}}handleWeb3ResponseMessage(e){var t;const{response:n}=e;if(null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:"relay::"+n.method,sessionIdHash:this.getSessionIdHash()}),(0,E.isRequestEthereumAccountsResponse)(n))return N.accountRequestCallbackIds.forEach((t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t})))),void N.accountRequestCallbackIds.clear();this.invokeCallback(e)}handleErrorResponse(e,t,n,r){this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:e,response:(0,E.ErrorResponse)(t,(null!=n?n:f.WalletUIError.UserRejectedRequest).message,r)}))}invokeCallback(e){const t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){const e={method:w.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=(0,m.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(t),this.handleErrorResponse(t,e.method,n)};return{promise:new Promise(((r,i)=>{var o;this.relayEventManager.callbacks.set(t,(e=>{if(this.ui.hideRequestEthereumAccounts(),e.errorMessage)return i(new Error(e.errorMessage));r(e)}));const a=(null===(o=null===window||void 0===window?void 0:window.navigator)||void 0===o?void 0:o.userAgent)||null;if(a&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a))window.location.href="https://go.cb-w.com/xoXnYwQimhb?cb_url="+encodeURIComponent(window.location.href);else{if(this.ui.inlineAccountsResponse()){const e=e=>{this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:t,response:(0,E.RequestEthereumAccountsResponse)(e)}))};this.ui.requestEthereumAccounts({onCancel:n,onAccounts:e})}else{const e=c.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>n(e)})}N.accountRequestCallbackIds.add(t),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(t,e)}})),cancel:n}}selectProvider(e){const t={method:w.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,m.randomBytesHex)(8);return{cancel:e=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,e)},promise:new Promise(((t,r)=>{this.relayEventManager.callbacks.set(n,(e=>{if(e.errorMessage)return r(new Error(e.errorMessage));t(e)})),this.ui.selectProvider&&this.ui.selectProvider({onApprove:e=>{this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:n,response:(0,E.SelectProviderResponse)(e)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:n,response:(0,E.SelectProviderResponse)(y.ProviderType.Unselected)}))},providerOptions:e})}))}}watchAsset(e,t,n,r,i,o){const a={method:w.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:r,image:i},chainId:o}};let s=null;const u=(0,m.randomBytesHex)(8),c=e=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,a.method,e),null==s||s()};return this.ui.inlineWatchAsset()||(s=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload})),{cancel:c,promise:new Promise(((c,l)=>{this.relayEventManager.callbacks.set(u,(e=>{if(null==s||s(),e.errorMessage)return l(new Error(e.errorMessage));c(e)}));this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:u,response:(0,E.WatchAssetReponse)(!0)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:u,response:(0,E.WatchAssetReponse)(!1)}))},type:e,address:t,symbol:n,decimals:r,image:i,chainId:o}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,a)}))}}addEthereumChain(e,t,n,r,i,o){const a={method:w.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:r,chainName:i,iconUrls:n,nativeCurrency:o}};let s=null;const u=(0,m.randomBytesHex)(8),c=e=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,a.method,e),null==s||s()};return this.ui.inlineAddEthereumChain(e)||(s=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload})),{promise:new Promise(((t,n)=>{this.relayEventManager.callbacks.set(u,(e=>{if(null==s||s(),e.errorMessage)return n(new Error(e.errorMessage));t(e)}));this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:e=>{this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:u,response:(0,E.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:u,response:(0,E.AddEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:a.params.chainId,rpcUrls:a.params.rpcUrls,blockExplorerUrls:a.params.blockExplorerUrls,chainName:a.params.chainName,iconUrls:a.params.iconUrls,nativeCurrency:a.params.nativeCurrency}),this.ui.inlineAddEthereumChain(e)||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,a)})),cancel:c}}switchEthereumChain(e){const t={method:w.Web3Method.switchEthereumChain,params:{chainId:e}};let n=null;const r=(0,m.randomBytesHex)(8),i=e=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,e),null==n||n()};return this.ui.inlineSwitchEthereumChain()||(n=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:i,onResetConnection:this.resetAndReload})),{promise:new Promise(((e,i)=>{this.relayEventManager.callbacks.set(r,(t=>(null==n||n(),t.errorMessage&&t.errorCode?i(c.ethErrors.provider.custom({code:t.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):t.errorMessage?i(new Error(t.errorMessage)):void e(t)))),this.ui.switchEthereumChain({onCancel:e=>{if("number"==typeof e){const t=e;this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:r,response:(0,E.ErrorResponse)(w.Web3Method.switchEthereumChain,f.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,t)}))}else e instanceof f.WalletUIError?this.handleErrorResponse(r,w.Web3Method.switchEthereumChain,e,e.errorCode):this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:r,response:(0,E.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:r,response:(0,E.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:t.params.chainId}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(r,t)})),cancel:i}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return v.Session.hash(this._session.id)}sendRequestStandalone(e,t){const n=n=>{this.handleErrorResponse(e,t.method,n)},r=t=>{this.handleWeb3ResponseMessage((0,T.Web3ResponseMessage)({id:e,response:t}))};switch(t.method){case w.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess:r,onCancel:n});break;case w.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess:r,onCancel:n});break;case w.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess:r,onCancel:n});break;case w.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess:r});break;default:n()}}onSessionConfigChanged(e){}}N.accountRequestCallbackIds=new Set,o([u.default],N.prototype,"resetAndReload",null),o([u.default],N.prototype,"handleIncomingEvent",null),t.WalletSDKRelay=N},function(e,t,n){var r;function i(e,t,n){if(!n||typeof n.value!==r.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+t+"> is not a method!");return{configurable:r.boolTrue,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:r.boolTrue,writable:r.boolTrue}),e}}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.typeOfFunction="function",e.boolTrue=!0}(r||(r={})),t.bind=i,t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKConnection=void 0;const r=n(48),i=n(69),o=n(90),a=n(68),s=n(213),u=n(89),c=n(214),l=n(215);t.WalletSDKConnection=class{constructor(e,t,n,s,l=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=s,this.subscriptions=new r.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,a.IntNumber)(1),this.connectedSubject=new r.BehaviorSubject(!1),this.linkedSubject=new r.BehaviorSubject(!1),this.sessionConfigSubject=new r.ReplaySubject(1);const d=new c.RxWebSocket(n+"/rpc",l);this.ws=d,this.subscriptions.add(d.connectionState$.pipe((0,i.tap)((t=>{var n;return null===(n=this.diagnostic)||void 0===n?void 0:n.log(u.EVENTS.CONNECTED_STATE_CHANGE,{state:t,sessionIdHash:o.Session.hash(e)})})),(0,i.skip)(1),(0,i.filter)((e=>e===c.ConnectionState.DISCONNECTED&&!this.destroyed)),(0,i.delay)(5e3),(0,i.filter)((e=>!this.destroyed)),(0,i.flatMap)((e=>d.connect())),(0,i.retry)()).subscribe()),this.subscriptions.add(d.connectionState$.pipe((0,i.skip)(2),(0,i.switchMap)((e=>(0,r.iif)((()=>e===c.ConnectionState.CONNECTED),this.authenticate().pipe((0,i.tap)((e=>this.sendIsLinked())),(0,i.tap)((e=>this.sendGetSessionConfig())),(0,i.map)((e=>!0))),(0,r.of)(!1)))),(0,i.distinctUntilChanged)(),(0,i.catchError)((e=>(0,r.of)(!1)))).subscribe((e=>this.connectedSubject.next(e)))),this.subscriptions.add(d.connectionState$.pipe((0,i.skip)(1),(0,i.switchMap)((e=>(0,r.iif)((()=>e===c.ConnectionState.CONNECTED),(0,r.timer)(0,1e4))))).subscribe((e=>0===e?this.updateLastHeartbeat():this.heartbeat()))),this.subscriptions.add(d.incomingData$.pipe((0,i.filter)((e=>"h"===e))).subscribe((e=>this.updateLastHeartbeat()))),this.subscriptions.add(d.incomingJSONData$.pipe((0,i.filter)((e=>["IsLinkedOK","Linked"].includes(e.type)))).subscribe((t=>{var n;const r=t;null===(n=this.diagnostic)||void 0===n||n.log(u.EVENTS.LINKED,{sessionIdHash:o.Session.hash(e),linked:r.linked,type:t.type,onlineGuests:r.onlineGuests}),this.linkedSubject.next(r.linked||r.onlineGuests>0)}))),this.subscriptions.add(d.incomingJSONData$.pipe((0,i.filter)((e=>["GetSessionConfigOK","SessionConfigUpdated"].includes(e.type)))).subscribe((t=>{var n;const r=t;null===(n=this.diagnostic)||void 0===n||n.log(u.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:o.Session.hash(e),metadata_keys:r&&r.metadata?Object.keys(r.metadata):void 0}),this.sessionConfigSubject.next({webhookId:r.webhookId,webhookUrl:r.webhookUrl,metadata:r.metadata})})))}connect(){var e;if(this.destroyed)throw new Error("instance is destroyed");null===(e=this.diagnostic)||void 0===e||e.log(u.EVENTS.STARTED_CONNECTING,{sessionIdHash:o.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(e=this.diagnostic)||void 0===e||e.log(u.EVENTS.DISCONNECTED,{sessionIdHash:o.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,i.filter)((e=>e)),(0,i.take)(1),(0,i.map)((()=>{})))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,i.filter)((e=>e)),(0,i.take)(1),(0,i.map)((()=>{})))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,i.filter)((e=>{if("Event"!==e.type)return!1;const t=e;return"string"==typeof t.sessionId&&"string"==typeof t.eventId&&"string"==typeof t.event&&"string"==typeof t.data})),(0,i.map)((e=>e)))}setSessionMetadata(e,t){const n=(0,s.ClientMessageSetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,i.flatMap)((e=>this.makeRequest(n))),(0,i.map)((e=>{if((0,l.isServerMessageFail)(e))throw new Error(e.error||"failed to set session metadata")})))}publishEvent(e,t,n=!1){const r=(0,s.ClientMessagePublishEvent)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,i.flatMap)((e=>this.makeRequest(r))),(0,i.map)((e=>{if((0,l.isServerMessageFail)(e))throw new Error(e.error||"failed to publish event");return e.eventId})))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4)this.ws.disconnect();else try{this.ws.sendData("h")}catch(e){}}makeRequest(e,t=6e4){const n=e.id;try{this.sendData(e)}catch(e){return(0,r.throwError)(e)}return this.ws.incomingJSONData$.pipe((0,i.timeoutWith)(t,(0,r.throwError)(new Error(`request ${n} timed out`))),(0,i.filter)((e=>e.id===n)),(0,i.take)(1))}authenticate(){const e=(0,s.ClientMessageHostSession)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,i.map)((e=>{if((0,l.isServerMessageFail)(e))throw new Error(e.error||"failed to authentcate")})))}sendIsLinked(){const e=(0,s.ClientMessageIsLinked)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){const e=(0,s.ClientMessageGetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ClientMessagePublishEvent=t.ClientMessageSetSessionConfig=t.ClientMessageGetSessionConfig=t.ClientMessageIsLinked=t.ClientMessageHostSession=void 0,t.ClientMessageHostSession=function(e){return Object.assign({type:"HostSession"},e)},t.ClientMessageIsLinked=function(e){return Object.assign({type:"IsLinked"},e)},t.ClientMessageGetSessionConfig=function(e){return Object.assign({type:"GetSessionConfig"},e)},t.ClientMessageSetSessionConfig=function(e){return Object.assign({type:"SetSessionConfig"},e)},t.ClientMessagePublishEvent=function(e){return Object.assign({type:"PublishEvent"},e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RxWebSocket=t.ConnectionState=void 0;const r=n(48),i=n(69);var o;!function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED"}(o=t.ConnectionState||(t.ConnectionState={})),t.RxWebSocket=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new r.BehaviorSubject(o.DISCONNECTED),this.incomingDataSubject=new r.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,r.throwError)(new Error("webSocket object is not null")):new r.Observable((e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(t){return void e.error(t)}this.connectionStateSubject.next(o.CONNECTING),t.onclose=t=>{this.clearWebSocket(),e.error(new Error(`websocket error ${t.code}: ${t.reason}`)),this.connectionStateSubject.next(o.DISCONNECTED)},t.onopen=t=>{e.next(),e.complete(),this.connectionStateSubject.next(o.CONNECTED)},t.onmessage=e=>{this.incomingDataSubject.next(e.data)}})).pipe((0,i.take)(1))}disconnect(){const{webSocket:e}=this;if(e){this.clearWebSocket(),this.connectionStateSubject.next(o.DISCONNECTED);try{e.close()}catch(e){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,i.flatMap)((e=>{let t;try{t=JSON.parse(e)}catch(e){return(0,r.empty)()}return(0,r.of)(t)})))}sendData(e){const{webSocket:t}=this;if(!t)throw new Error("websocket is not connected");t.send(e)}clearWebSocket(){const{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isServerMessageFail=void 0,t.isServerMessageFail=function(e){return e&&"Fail"===e.type&&"number"==typeof e.id&&"string"==typeof e.sessionId&&"string"==typeof e.error}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WalletUIError=void 0;class r extends Error{constructor(e,t){super(e),this.message=e,this.errorCode=t}}t.WalletUIError=r,r.UserRejectedRequest=new r("User rejected request"),r.SwitchEthereumChainUnsupportedChainId=new r("Unsupported chainId",4902)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;const r=n(48),i=n(38);t.encrypt=async function(e,t){if(64!==t.length)throw Error("secret must be 256 bits");const n=crypto.getRandomValues(new Uint8Array(12)),r=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=new TextEncoder,a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},r,o.encode(e)),s=a.slice(a.byteLength-16),u=a.slice(0,a.byteLength-16),c=new Uint8Array(s),l=new Uint8Array(u),d=new Uint8Array([...n,...c,...l]);return(0,i.uint8ArrayToHex)(d)},t.decrypt=function(e,t){if(64!==t.length)throw Error("secret must be 256 bits");return new r.Observable((n=>{!async function(){const r=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=(0,i.hexStringToUint8Array)(e),a=o.slice(0,12),s=o.slice(12,28),u=o.slice(28),c=new Uint8Array([...u,...s]),l={name:"AES-GCM",iv:new Uint8Array(a)};try{const e=await window.crypto.subtle.decrypt(l,r,c),t=new TextDecoder;n.next(t.decode(e)),n.complete()}catch(e){n.error(e)}}()}))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestCanceledMessage=void 0;const r=n(100);t.Web3RequestCanceledMessage=function(e){return{type:r.RelayMessageType.WEB3_REQUEST_CANCELED,id:e}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestMessage=void 0;const r=n(100);t.Web3RequestMessage=function(e){return Object.assign({type:r.RelayMessageType.WEB3_REQUEST},e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumAddressFromSignedMessageResponse=t.SubmitEthereumTransactionResponse=t.SignEthereumTransactionResponse=t.SignEthereumMessageResponse=t.isRequestEthereumAccountsResponse=t.SelectProviderResponse=t.WatchAssetReponse=t.RequestEthereumAccountsResponse=t.SwitchEthereumChainResponse=t.AddEthereumChainResponse=t.ErrorResponse=void 0;const r=n(125);t.ErrorResponse=function(e,t,n){return{method:e,errorMessage:t,errorCode:n}},t.AddEthereumChainResponse=function(e){return{method:r.Web3Method.addEthereumChain,result:e}},t.SwitchEthereumChainResponse=function(e){return{method:r.Web3Method.switchEthereumChain,result:e}},t.RequestEthereumAccountsResponse=function(e){return{method:r.Web3Method.requestEthereumAccounts,result:e}},t.WatchAssetReponse=function(e){return{method:r.Web3Method.watchAsset,result:e}},t.SelectProviderResponse=function(e){return{method:r.Web3Method.selectProvider,result:e}},t.isRequestEthereumAccountsResponse=function(e){return e&&e.method===r.Web3Method.requestEthereumAccounts},t.SignEthereumMessageResponse=function(e){return{method:r.Web3Method.signEthereumMessage,result:e}},t.SignEthereumTransactionResponse=function(e){return{method:r.Web3Method.signEthereumTransaction,result:e}},t.SubmitEthereumTransactionResponse=function(e){return{method:r.Web3Method.submitEthereumTransaction,result:e}},t.EthereumAddressFromSignedMessageResponse=function(e){return{method:r.Web3Method.ethereumAddressFromSignedMessage,result:e}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isWeb3ResponseMessage=t.Web3ResponseMessage=void 0;const r=n(100);t.Web3ResponseMessage=function(e){return Object.assign({type:r.RelayMessageType.WEB3_RESPONSE},e)},t.isWeb3ResponseMessage=function(e){return e&&e.type===r.RelayMessageType.WEB3_RESPONSE}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelayEventManager=void 0;const r=n(38);t.WalletSDKRelayEventManager=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const e=this._nextRequestId,t=(0,r.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}}},function(e){e.exports=JSON.parse('{"name":"@coinbase/wallet-sdk","version":"3.4.0","description":"Coinbase Wallet JavaScript SDK","keywords":["cipher","cipherbrowser","coinbase","coinbasewallet","eth","ether","ethereum","etherium","injection","toshi","wallet","walletlink","web3"],"main":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/coinbase/coinbase-wallet-sdk.git","author":"Coinbase, Inc.","license":"Apache-2.0","scripts":{"pretest:unit":"node compile-assets.js","test:unit":"jest","test:unit:coverage":"yarn test:unit && open coverage/lcov-report/index.html","test:karma":"yarn build-npm && karma start","prebuild":"node -p \\"\'export const LIB_VERSION = \' + JSON.stringify(require(\'./package.json\').version) + \';\'\\" > src/version.ts","build":"node compile-assets.js && webpack --config webpack.config.js","build-npm":"tsc -p ./tsconfig.build.json","build:dev":"export LINK_API_URL=\'http://localhost:3000\'; yarn build","build:dev:watch":"nodemon -e \'ts,tsx,js,json,css,scss,svg\' --ignore \'src/**/*-css.ts\' --ignore \'src/**/*-svg.ts\' --watch src/ --exec \'yarn build:dev\'","build:prod":"yarn prebuild && yarn build && yarn build-npm && cp ./package.json ./README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak \'s| \\"private\\": true,||g\' build/npm/package.json && rm -f build/npm/package.json.bak","lint:types":"tsc --noEmit","lint:prettier":"prettier --check \\"{src,__tests__}/**/*.(js|ts|tsx)\\"","lint:eslint":"eslint ./src --ext .ts,.tsx","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"prettier . --write","release":"./scripts/release.sh"},"dependencies":{"@metamask/safe-event-emitter":"2.0.0","bind-decorator":"^1.0.11","bn.js":"^5.1.1","buffer":"^6.0.3","clsx":"^1.1.0","eth-block-tracker":"4.4.3","eth-json-rpc-filters":"4.2.2","eth-rpc-errors":"4.0.2","json-rpc-engine":"6.1.0","keccak":"^3.0.1","preact":"^10.5.9","qs":"^6.10.3","rxjs":"^6.6.3","sha.js":"^2.4.11","stream-browserify":"^3.0.0","util":"^0.12.4"},"devDependencies":{"@babel/core":"^7.17.9","@babel/plugin-proposal-decorators":"^7.17.9","@babel/plugin-transform-react-jsx":"^7.17.3","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@peculiar/webcrypto":"^1.3.3","@testing-library/jest-dom":"^5.16.4","@testing-library/preact":"^2.0.1","@types/bn.js":"^4.11.6","@types/jest":"^27.4.1","@types/node":"^14.14.20","@types/qs":"^6.9.7","@types/sha.js":"^2.4.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/eslint-plugin-tslint":"^5.7.0","@typescript-eslint/parser":"^5.7.0","babel-jest":"^27.5.1","browserify":"17.0.0","copy-webpack-plugin":"^6.4.1","core-js":"^3.8.2","eslint":"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-preact":"^0.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0","jasmine":"3.8.0","jest":"^27.5.1","jest-chrome":"^0.7.2","jest-websocket-mock":"^2.3.0","karma":"^6.3.15","karma-browserify":"8.1.0","karma-chrome-launcher":"^3.1.0","karma-jasmine":"^4.0.1","nodemon":"^2.0.6","prettier":"^2.5.1","raw-loader":"^4.0.2","regenerator-runtime":"^0.13.7","sass":"^1.50.0","svgo":"^2.8.0","ts-jest":"^27.1.4","ts-loader":"^8.0.13","ts-node":"^10.7.0","tslib":"^2.0.3","typescript":"^4.1.3","watchify":"4.0.0","webpack":"^5.72.0","webpack-cli":"^4.9.2","whatwg-fetch":"^3.5.0"},"engines":{"node":">= 10.0.0"}}')},function(e,t,n){function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},e.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},e}(),a=function(){function e(){this._semaphore=new o(1)}return e.prototype.acquire=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,e.sent()[1]]}}))}))},e.prototype.runExclusive=function(e){return this._semaphore.runExclusive((function(){return e()}))},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();function s(e,t,n){var o=this;return void 0===n&&(n=new Error("timeout")),{acquire:function(){return new Promise((function(a,s){return r(o,void 0,void 0,(function(){var r,o;return i(this,(function(i){switch(i.label){case 0:return r=!1,setTimeout((function(){r=!0,s(n)}),t),[4,e.acquire()];case 1:return o=i.sent(),r?(Array.isArray(o)?o[1]:o)():a(o),[2]}}))}))}))},runExclusive:function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:t=function(){},r.label=1;case 1:return r.trys.push([1,,7,8]),[4,this.acquire()];case 2:return n=r.sent(),Array.isArray(n)?(t=n[1],[4,e(n[0])]):[3,4];case 3:return[2,r.sent()];case 4:return t=n,[4,e()];case 5:return[2,r.sent()];case 6:return[3,8];case 7:return t(),[7];case 8:return[2]}}))}))},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}}]);void 0===qI&&console.error("esm-webpack-plugin: nothing exported!");qI.CoinbaseWalletProvider;const ZI=qI.CoinbaseWalletSDK;function JI(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class XI{constructor({blockchain:e,from:t,to:n,value:r,api:i,method:o,params:a,instructions:s,signers:u,alts:c,sent:l,succeeded:d,failed:h}){this.blockchain=e,this.from=t&&t.match("0x")?rg(t):t,this.to=n&&n.match("0x")?rg(n):n,this.value=JI([XI,"access",e=>e.bigNumberify,"call",t=>t(r,e),"optionalAccess",e=>e.toString,"call",e=>e()]),this.api=i,this.method=o,this.params=a,this.sent=l,this.succeeded=d,this.failed=h,this.instructions=s,this.signers=u,this.alts=c,this._succeeded=!1,this._failed=!1}async prepare({wallet:e}){this.from=await e.account(this.blockchain)}static bigNumberify(e,t){return"number"==typeof e?mI(e.toString(),he[t].currency.decimals):e&&e.toString?Wy.from(e.toString()):e}findFragment(){return this.getContract().interface.fragments.find((e=>!(e.name!=this.method||e.inputs&&this.params&&"object"==typeof this.params&&e.inputs.length!=Object.keys(this.params).length)))}getParamType(e){return JI([e,"optionalAccess",e=>e.components,"optionalAccess",e=>e.length])?`(${e.components.map((e=>this.getParamType(e))).join(",")})`:e.type}getMethodNameWithSignature(){let e=this.findFragment();return e.inputs?`${this.method}(${e.inputs.map((e=>this.getParamType(e))).join(",")})`:this.method}getContractArguments(){if(this.params instanceof Array)return this.params;if(this.params instanceof Object){return this.findFragment().inputs.map((e=>this.params[e.name]))}}getContract(){return new YT(this.to,this.api)}async getData(){let e,t=this.getContractArguments();return e=t?await this.getContract().populateTransaction[this.getMethodNameWithSignature()].apply(null,t):await this.getContract().populateTransaction[this.getMethodNameWithSignature()].apply(null),e.data}success(){return this._succeeded?Promise.resolve(this):new Promise(((e,t)=>{let n=this.succeeded;this.succeeded=t=>{n&&n(t),e(t)}}))}failure(){return this._failed?Promise.resolve(this):new Promise(((e,t)=>{let n=this.failed;this.failed=(t,r)=>{n&&n(t,r),e(t,r)}}))}}function KI(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const $I=async({transaction:e,wallet:t})=>(e=new XI(e),await e.prepare({wallet:t}),await ek({transaction:e,wallet:t}).then((t=>{if(!t)throw"Submitting transaction failed!";{e.id=t,e.url=he.findByName(e.blockchain).explorerUrlFor({transaction:e}),e.sent&&e.sent(e);let n=0;const r=setInterval((async()=>{if(n++,n>=240)return clearInterval(r);const i=await _I(e.blockchain),{value:o}=await i.getSignatureStatus(t),a=KI([o,"optionalAccess",e=>e.confirmationStatus]);if(a){if("confirmed"===a||"finalized"===a){if(o.err){e._failed=!0;const n=await i.getConfirmedTransaction(t),r=KI([n,"optionalAccess",e=>e.meta,"optionalAccess",e=>e.logMessages])?n.meta.logMessages[n.meta.logMessages.length-1]:null;e.failed&&e.failed(e,r)}else e._succeeded=!0,e.succeeded&&e.succeeded(e);return clearInterval(r)}}}),500)}})),e),ek=async({transaction:e,wallet:t})=>{let n,r=await nk({transaction:e,wallet:t});return"object"==typeof r&&r.signatures&&r.message?n=await tk(r,await t.account()):"object"==typeof r&&r.signature&&r.signature.length?n=r.signature:"string"==typeof r&&r.length&&(n=r),n},tk=async(e,t)=>{let n=await _I("solana");return await n.sendRawTransaction(e.serialize())},nk=async({transaction:e,wallet:t})=>e.instructions?ik({transaction:e,wallet:t}):rk({transaction:e,wallet:t}),rk=async({transaction:e,wallet:t})=>{let n=new Ec(await t.account()),r=new Ec(e.to);const i=await _I(e.blockchain);let o=(await i.getLatestBlockhash()).blockhash;const a=[yl.transfer({fromPubkey:n,toPubkey:r,lamports:parseInt(XI.bigNumberify(e.value,e.blockchain),10)})],s=new Vc({payerKey:n,recentBlockhash:o,instructions:a}).compileToV0Message(),u=new Hc(s);return t._sendTransaction(u)},ik=async({transaction:e,wallet:t})=>{let n=new Ec(await t.account());const r=await _I(e.blockchain);let i=(await r.getLatestBlockhash()).blockhash;const o=new Vc({payerKey:n,recentBlockhash:i,instructions:e.instructions}).compileToV0Message(e.alts?await Promise.all(e.alts.map((async e=>(await _I("solana")).getAddressLookupTable(new Ec(e)).then((e=>e.value))))):void 0),a=new Hc(o);return e.signers&&e.signers.length&&a.sign(Array.from(new Set(e.signers))),t._sendTransaction(a)};let ok=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];function ak(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}ok.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],ok.solana=["solana"];class sk{static __initStatic(){this.info={name:"Solana Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0NDYuNCAzNzYuOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDQ2LjQgMzc2Ljg7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojODI4NDg3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VhckdyYWRpZW50Pgo8cGF0aCBzdHlsZT0iZmlsbDp1cmwoI1NWR0lEXzAwMDAwMDIyNTU3MTYwNTg5MTY1MTU3NTIwMDAwMDE1NDYyNjI0Mjk4Nzk4NTYzMjYxXyk7IiBkPSJNMTQ1LjYsMTg5LjFjLTAuMy0wLjMtMC43LTAuNS0xLjEtMC41CgloLTM4LjhjLTAuNywwLTEuMSwwLjktMC42LDEuNGw3LjcsNy43YzAuMywwLjMsMC43LDAuNSwxLjEsMC41aDM4LjhjMC43LDAsMS4xLTAuOSwwLjYtMS40TDE0NS42LDE4OS4xeiIvPgo8L3N2Zz4K",blockchains:ok.solana}}static __initStatic2(){this.isAvailable=async()=>ak([window,"optionalAccess",e=>e.solana])&&!(window.phantom&&!window.glow&&!window.solana.isGlow&&!["isBitKeep"].some((e=>window.solana&&window.solana[e])))&&!window.coin98&&!(ak([window,"optionalAccess",e=>e.solana])&&ak([window,"optionalAccess",e=>e.solana,"access",e=>e.isBitKeep]))&&!window.solana.isGlow}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,this.sendTransaction=e=>$I({wallet:this,transaction:e})}getProvider(){return window.solana}async account(){const e=this.getProvider();if(null!=e){if(e.publicKey)return e.publicKey.toString();if(1!=e.isBraveWallet){let e;try{({publicKey:e}=await window.solana.connect({onlyIfTrusted:!0}))}catch(e){}if(e)return e.toString()}}}async connect(){const e=this.getProvider();if(!e)return;let t;try{t=await e.connect()}catch(e){}return t&&t.publicKey?t.publicKey.toString():e.publicKey.toString()}on(e,t){let n;if("account"===e)n=e=>t(ak([e,"optionalAccess",e=>e.toString,"call",e=>e()])),this.getProvider().on("accountChanged",n);return n}off(e,t){if("account"===e)this.getProvider().removeListener("accountChanged",t);return t}async connectedTo(e){return e?"solana"==e:"solana"}switchTo(e){return new Promise(((e,t)=>{t({code:"NOT_SUPPORTED"})}))}addNetwork(e){return new Promise(((e,t)=>{t({code:"NOT_SUPPORTED"})}))}async sign(e){const t=(new TextEncoder).encode(e),n=await this.getProvider().signMessage(t);if(n&&n.signature)return Array.from(n.signature)}_sendTransaction(e){return this.getProvider().signAndSendTransaction(e,{skipPreflight:!1})}}sk.__initStatic(),sk.__initStatic2();class uk extends sk{static __initStatic(){this.info={name:"Backpack",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMDAgMTAwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2NsaXAtcGF0aDp1cmwoI1NWR0lEXzAwMDAwMTA2ODQwODY0OTg0NTM1NTU0MzQwMDAwMDAwNDc2MjMzMDgyNzcwODcyOTcxXyk7fQoJLnN0MXtmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsOiNFMzNFM0Y7fQo8L3N0eWxlPgo8Zz4KCTxkZWZzPgoJCTxyZWN0IGlkPSJTVkdJRF8xXyIgeD0iMjMuOCIgeT0iMTAuNCIgd2lkdGg9IjUyLjQiIGhlaWdodD0iNzYuMiIvPgoJPC9kZWZzPgoJPGNsaXBQYXRoIGlkPSJTVkdJRF8wMDAwMDE3ODE5NTUzMTM2ODQxNzQ3MDkwMDAwMDAxNDk2Njk4MDAxOTUxNjc4MTk3MF8iPgoJCTx1c2UgeGxpbms6aHJlZj0iI1NWR0lEXzFfIiAgc3R5bGU9Im92ZXJmbG93OnZpc2libGU7Ii8+Cgk8L2NsaXBQYXRoPgoJPGcgc3R5bGU9ImNsaXAtcGF0aDp1cmwoI1NWR0lEXzAwMDAwMTc4MTk1NTMxMzY4NDE3NDcwOTAwMDAwMDE0OTY2OTgwMDE5NTE2NzgxOTcwXyk7Ij4KCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNTUsMTYuNGMyLjgsMCw1LjQsMC40LDcuOCwxLjFjLTIuNC01LjUtNy4yLTcuMS0xMi43LTcuMWMtNS41LDAtMTAuNCwxLjYtMTIuNyw3LjFjMi40LTAuNyw1LTEuMSw3LjctMS4xCgkJCUg1NXogTTQ0LjQsMjEuOWMtMTMuMiwwLTIwLjcsMTAuNC0yMC43LDIzLjF2MTMuMWMwLDEuMywxLjEsMi4zLDIuNCwyLjNoNDcuNmMxLjMsMCwyLjQtMSwyLjQtMi4zVjQ1YzAtMTIuOC04LjctMjMuMS0yMS45LTIzLjEKCQkJSDQ0LjR6IE01MCw0NS4xYzQuNiwwLDguMy0zLjcsOC4zLTguM3MtMy43LTguMy04LjMtOC4zcy04LjMsMy43LTguMyw4LjNTNDUuNCw0NS4xLDUwLDQ1LjF6IE0yMy44LDY4LjFjMC0xLjMsMS4xLTIuMywyLjQtMi4zCgkJCWg0Ny42YzEuMywwLDIuNCwxLDIuNCwyLjNWODJjMCwyLjYtMi4xLDQuNi00LjgsNC42SDI4LjZjLTIuNiwwLTQuOC0yLjEtNC44LTQuNlY2OC4xeiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.backpack])&&window.backpack.isBackpack}getProvider(){return window.backpack}async sign(e){const t=(new TextEncoder).encode(e),n=await this.getProvider().signMessage(t);return Object.values(n)}_sendTransaction(e){return this.getProvider().sendAndConfirm(e)}}uk.__initStatic(),uk.__initStatic2();const ck=e=>new Promise(((t,n)=>{try{e.wait(1).then(t).catch((r=>{r&&r.toString().match("undefined")?setTimeout((()=>{ck(e).then(t).catch(n)}),500):n(r)}))}catch(r){r&&r.toString().match("undefined")?setTimeout((()=>{ck(e).then(t).catch(n)}),500):n(r)}})),lk=({transaction:e,provider:t,signer:n})=>e.method?dk({transaction:e,signer:n,provider:t}):hk({transaction:e,signer:n}),dk=({transaction:e,signer:t,provider:n})=>{let r=new YT(e.to,e.api,n),i=e.getContractArguments({contract:r}),o=r.connect(t)[e.getMethodNameWithSignature()];return i?o(...i,{value:XI.bigNumberify(e.value,e.blockchain)}):o({value:XI.bigNumberify(e.value,e.blockchain)})},hk=({transaction:e,signer:t})=>t.sendTransaction({to:e.to,value:XI.bigNumberify(e.value,e.blockchain)});function pk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class fk{static __initStatic(){this.info={name:"Ethereum Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0NDYuNCAzNzYuOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDQ2LjQgMz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8+CgkJPC9nPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>pk([window,"optionalAccess",e=>e.ethereum])&&!(pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isMetaMask])&&1==Object.keys(window.ethereum).filter((e=>e.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/))).length)&&!pk([window,"optionalAccess",e=>e.coin98])&&!(pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTrust])||pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTrustWallet]))&&!pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isDeficonnectProvider])&&!pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isHyperPay])&&!(window.phantom&&!window.glow&&!pk([window,"optionalAccess",e=>e.solana,"optionalAccess",e=>e.isGlow])&&!["isBitKeep"].some((e=>window.solana&&window.solana[e])))&&!pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isRabby])&&!pk([window,"optionalAccess",e=>e.backpack,"optionalAccess",e=>e.isBackpack])&&!pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTokenPocket])&&!pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isBitKeep])&&!(pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isCoinbaseWallet])||pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isWalletLink]))&&!pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.has,"call",e=>e("MetaMask")])}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,this.sendTransaction=e=>(async({transaction:e,wallet:t})=>{if(e=new XI(e),0==await t.connectedTo(e.blockchain)&&await t.switchTo(e.blockchain),0==await t.connectedTo(e.blockchain))throw{code:"WRONG_NETWORK"};await e.prepare({wallet:t});let n=await YI({blockchain:e.blockchain,method:"transactionCount",address:e.from});e.nonce=n;let r=new aI(t.getProvider(),"any"),i=r.getSigner(0);return await lk({transaction:e,provider:r,signer:i}).then((t=>{if(!t)throw"Submitting transaction failed!";e.id=t.hash,e.nonce=t.nonce||n,e.url=he.findByName(e.blockchain).explorerUrlFor({transaction:e}),e.sent&&e.sent(e),ck(t).then((()=>{e._succeeded=!0,e.succeeded&&e.succeeded(e)})).catch((t=>{t&&t.code&&"TRANSACTION_REPLACED"==t.code?(t.replacement&&t.replacement.hash&&(e.id=t.replacement.hash,e.url=he.findByName(e.blockchain).explorerUrlFor({transaction:e})),t.replacement&&t.replacement.hash&&t.receipt&&1==t.receipt.status?(e._succeeded=!0,e.succeeded&&e.succeeded(e)):t.replacement&&t.replacement.hash&&t.receipt&&0==t.receipt.status&&(e._failed=!0,e.failed&&e.failed(e,t))):(e._failed=!0,e.failed&&e.failed(e,t))}))})),e})({wallet:this,transaction:e})}getProvider(){return window.ethereum}async account(){if(!this.getProvider())return;return(await this.getProvider().request({method:"eth_accounts"})).map((e=>rg(e)))[0]}async connect(){if(!this.getProvider())return;return(await this.getProvider().request({method:"eth_requestAccounts"})).map((e=>rg(e)))[0]}on(e,t){let n;if("account"===e)n=e=>t(rg(e[0])),this.getProvider().on("accountsChanged",n);return n}off(e,t){if("account"===e)this.getProvider().removeListener("accountsChanged",t);return t}async connectedTo(e){const t=he.findById(await this.getProvider().request({method:"eth_chainId"}));return!!t&&(e?e===t.name:t.name)}addNetwork(e){return new Promise(((t,n)=>{const r=he.findByName(e);this.getProvider().request({method:"wallet_addEthereumChain",params:[{chainId:r.id,chainName:r.fullName,nativeCurrency:{name:r.currency.name,symbol:r.currency.symbol,decimals:r.currency.decimals},rpcUrls:[r.rpc],blockExplorerUrls:[r.explorer],iconUrls:[r.logo]}]}).then(t).catch(n)}))}switchTo(e){return new Promise(((t,n)=>{const r=he.findByName(e);this.getProvider().request({method:"wallet_switchEthereumChain",params:[{chainId:r.id}]}).then(t).catch((r=>{4902===r.code?this.addNetwork(e).then((()=>this.switchTo(e).then(t))).catch(n):n(r)}))}))}transactionCount({blockchain:e,address:t}){return YI({blockchain:e,method:"transactionCount",address:t})}async sign(e){if("object"==typeof e){let t=this.getProvider(),n=await this.account();if(!1===await this.connectedTo(he.findByNetworkId(e.domain.chainId).name))throw{code:"WRONG_NETWORK"};return await t.request({method:"eth_signTypedData_v4",params:[n,e],from:n})}if("string"==typeof e){await this.account();let t=new aI(this.getProvider(),"any").getSigner(0);return await t.signMessage(e)}}}fk.__initStatic(),fk.__initStatic2();class yk extends fk{static __initStatic(){this.info={name:"Binance Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxOTIgMTkzLjY4Ij48cmVjdCB3aWR0aD0iMTkyIiBoZWlnaHQ9IjE5My42OCIgZmlsbD0iIzFlMjAyNCIvPjxwYXRoIGQ9Im01Ni45Miw0Ni41M2wzOS4wOC0yMi41NCwzOS4wOCwyMi41NC0xNC4zNSw4LjM2LTI0LjczLTE0LjE4LTI0LjczLDE0LjE4LTE0LjM1LTguMzZabTc4LjE3LDI4LjUzbC0xNC4zNS04LjM2LTI0LjczLDE0LjI3LTI0LjczLTE0LjI3LTE0LjM1LDguMzZ2MTYuNzFsMjQuNzMsMTQuMTh2MjguNDVsMTQuMzUsOC4zNiwxNC4zNS04LjM2di0yOC40NWwyNC43My0xNC4yN3YtMTYuNjNabTAsNDUuMTZ2LTE2LjcxbC0xNC4zNSw4LjM2djE2LjcxbDE0LjM1LTguMzZabTEwLjIxLDUuODJsLTI0LjczLDE0LjI3djE2LjcxbDM5LjA4LTIyLjU0di00NS4yNWwtMTQuMzUsOC4zNnYyOC40NVptLTE0LjM1LTY1LjI1bDE0LjM1LDguMzZ2MTYuNzFsMTQuMzUtOC4zNnYtMTYuNzFsLTE0LjM1LTguMzYtMTQuMzUsOC4zNlptLTQ5LjMsODUuNnYxNi43MWwxNC4zNSw4LjM2LDE0LjM1LTguMzZ2LTE2LjcxbC0xNC4zNSw4LjM2LTE0LjM1LTguMzZabS0yNC43My0yNi4xN2wxNC4zNSw4LjM2di0xNi43MWwtMTQuMzUtOC4zNnYxNi43MVptMjQuNzMtNTkuNDNsMTQuMzUsOC4zNiwxNC4zNS04LjM2LTE0LjM1LTguMzYtMTQuMzUsOC4zNlptLTM0Ljk1LDguMzZsMTQuMzUtOC4zNi0xNC4zNS04LjM2LTE0LjM1LDguMzZ2MTYuNzFsMTQuMzUsOC4zNnYtMTYuNzFabTAsMjguNDVsLTE0LjM1LTguMzZ2NDUuMTZsMzkuMDgsMjIuNTR2LTE2LjcxbC0yNC43My0xNC4yN3MwLTI4LjM2LDAtMjguMzZaIiBmaWxsPSIjZjBiOTBiIi8+PC9zdmc+",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.BinanceChain])&&!window.coin98}getProvider(){return window.BinanceChain}}yk.__initStatic(),yk.__initStatic2();class mk extends fk{static __initStatic(){this.info={name:"Brave",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyNTYgMzAxIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyNTYgMzAxIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgoKCTxwYXRoIGZpbGw9IiNGMTVBMjIiIGQ9Im0yMzYgMTA1LjQtNy44LTIxLjIgNS40LTEyLjJjMC43LTEuNiAwLjMtMy40LTAuOC00LjZsL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MC44LTNsMTEuOC0yMi4zYzAuNS0xIDAuNi0yLjYgMC4yLTMuNmwtMS40LTMuM2MtMC40LTEtMS43LTIuMi0yLjctMi42bC0zNC45LTEzYy0xLTAuNC0xLTAuOCAwLjEtMC45bDIyLjQtMi4xYzEuMS0wLjEgMi45IDAuMSA0IDAuM2wxOS45IDUuNmMxLjEgMC4zIDEuOCAxLjQgMS42IDIuNWwtNyAzNy44Yy0wLjIgMS4xLTAuMiAyLjYgMC4xIDMuNXMxLjMgMS42IDIuNCAxLjlsMTMuOCAzYzEuMSAwLjMgMi45IDAuMyA0IDBsMTIuOS0zYzEuMS0wLjMgMi4yLTEuMSAyLjQtMS45IDAuMy0wLjggMC4zLTIuNCAwLjEtMy41bC02LjgtMzcuOWMtMC4yLTEuMSAwLjUtMi4zIDEuNi0yLjVsMTkuOS01LjZjMS4xLTAuMyAyLjktMC40IDQtMC4zbDIyLjQgMi4xYzEuMSAwLjEgMS4yIDAuNSAwLjEgMC45bC0zNC43IDEzLjJjLTEgMC40LTIuMyAxLjUtMi43IDIuNmwtMS40IDMuM2MtMC40IDEtMC40IDIuNyAwLjIgMy42bDExLjkgMjIuM2MwLjUgMSAwLjIgMi4zLTAuOCAzbC0yNi45IDE4LjJjLTEuOCAxLjgtMS42IDQuNyAwLjMgNi40bDEyLjggMTEuNmMwLjggMC44IDIuNCAxLjggMy40IDIuMmwxOCA4LjVjMSAwLjUgMi41IDAuMyAzLjQtMC40bDUuNy00LjZjMy0yLjQgNS4zLTUuNyA2LjYtOS4zbDEuNi00LjNjMC40LTEgMC4zLTIuOC0wLjEtMy44bC01LjgtMTMuOGMtMC40LTEtMC4yLTIuNSAwLjYtMy40bDI3LjktMjkuN2MwLjgtMC44IDEuOS0yLjIgMi43LTMtMC40LTAuMyAxLjEtMi4xIDEuNi00LjF6Ii8+Cgo8L3N2Zz4K",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isBraveWallet])}}mk.__initStatic(),mk.__initStatic2();class gk extends fk{static __initStatic(){this.info={name:"Coin98",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA0MC43IDQwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA0MC43IDQwIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsPSIjRDlCNDMyIiBkPSJtMzMuMyAwaC0yNS45Yy00LjEgMC03LjQgMy4zLTcuNCA3LjN2MjUuNGMwIDQgMy4zIDcuMyA3LjQgNy4zaDI1LjljNC4xIDAgNy40LTMuMyA3LjQtNy4zdi0yNS40YzAtNC0zLjMtNy4zLTcuNC03LjN6Ii8+CjxwYXRoIGZpbGw9IiMyNTI1MjUiIGQ9Im0zMy4zIDBoLTI1LjljLTQuMSAwLTcuNCAzLjMtNy40IDcuM3YyNS40YzAgNCAzLjMgNy4zIDcuNCA3LjNoMjUuOWM0LjEgMCA3LjQtMy4zIDcuNC03LjN2LTI1LjRjMC00LTMuMy03LjMtNy40LTcuM3ptLTYuMyAxMGMzIDAgNS41IDIuNCA1LjUgNS40IDAgMC45LTAuMiAxLjgtMC42IDIuNi0wLjctMC41LTEuNS0xLTIuMy0xLjMgMC4yLTAuNCAwLjMtMC45IDAuMy0xLjMgMC0xLjUtMS4zLTIuOC0yLjgtMi44LTEuNiAwLTIuOCAxLjMtMi44IDIuOCAwIDAuNSAwLjEgMC45IDAuMyAxLjMtMC44IDAuMy0xLjYgMC43LTIuMyAxLjMtMC41LTAuOC0wLjYtMS43LTAuNi0yLjYtMC4xLTMgMi4zLTUuNCA1LjMtNS40em0tMTMuMyAyMGMtMyAwLTUuNS0yLjQtNS41LTUuNGgyLjZjMCAxLjUgMS4zIDIuOCAyLjggMi44czIuOC0xLjMgMi44LTIuOGgyLjZjMC4yIDMtMi4zIDUuNC01LjMgNS40em0wLTcuNWMtMy41IDAtNi4zLTIuOC02LjMtNi4yczIuOC02LjMgNi4zLTYuMyA2LjQgMi44IDYuNCA2LjNjMCAzLjQtMi45IDYuMi02LjQgNi4yem0xMy4zIDcuNWMtMy41IDAtNi40LTIuOC02LjQtNi4yIDAtMy41IDIuOC02LjMgNi40LTYuMyAzLjUgMCA2LjMgMi44IDYuMyA2LjMgMC4xIDMuNC0yLjggNi4yLTYuMyA2LjJ6bTMuOC02LjNjMCAyLjEtMS43IDMuNy0zLjggMy43cy0zLjgtMS43LTMuOC0zLjdjMC0yLjEgMS43LTMuNyAzLjgtMy43IDIuMSAwLjEgMy44IDEuNyAzLjggMy43em0tMTMuNC03LjRjMCAyLjEtMS43IDMuNy0zLjggMy43cy0zLjgtMS43LTMuOC0zLjdjMC0yLjEgMS43LTMuNyAzLjgtMy43IDIuMiAwIDMuOCAxLjYgMy44IDMuN3oiLz4KPC9zdmc+Cg==",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.coin98])}}function vk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}gk.__initStatic(),gk.__initStatic2();class bk extends fk{static __initStatic(){this.info={name:"Coinbase",logo:"data:image/svg+xml;base64,PHN2ZyBpZD0nTGF5ZXJfMScgZGF0YS1uYW1lPSdMYXllciAxJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHhtbG5zOnhsaW5rPSdodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rJyB2aWV3Qm94PScwIDAgNDg4Ljk2IDQ4OC45Nic+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOnVybCgjbGluZWFyLWdyYWRpZW50KTt9L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Access",e=>e.has,"call",e=>e("CoinbaseWallet")])?vk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.get,"call",e=>e("CoinbaseWallet")]):window.ethereum}static __initStatic2(){this.isAvailable=async()=>vk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isCoinbaseWallet])||vk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isWalletLink])||vk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.has,"call",e=>e("CoinbaseWallet")])}}bk.__initStatic(),bk.__initStatic2();class wk extends fk{static __initStatic(){this.info={name:"Crypto.com | DeFi Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4OS45IDEwMi44IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA4OS45IDEwMi44IiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNGRkZGRkY7fQoJLnN0MXtmaWxsOiMwMzMxNkM7fQo8L3N0eWxlPgoKPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTUuMzc1MSAtMTEzLjYxKSI+Cgk8ZyB0cmFuc2Zvcm09Im1hdHJpeCguMzE3OTQgMCAwIC4zMTQ2NSAtMS4wNDczIDMwLjQ0NykiPgoJCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Im0xNjEuNiAyNjQuMy0xNDEuNCA4MS42djE2My4zbDE0MS40IDgxLjYgMTQxLjQtODEuNnYtMTYzLjNsLTE0MS40LTgxLjZ6bTAgMC0xNDEuNCA4MS42djE2My4zbDE0MS40IDgxLjYgMTQxLjQtODEuNnYtMTYzLjNsLTE0MS40LTgxLjZ6Ii8+CgkJPHBhdGggY2xhc3M9InN0MSIgZD0ibTIxNy41IDUyNy4xaC0yMC4xbC0yNC4xLTIyLjF2LTExLjNsMjQuOS0yMy44di0zNy43bDMyLjYtMjEuMyAzNy4xIDI4LjEtNTAuNCA4OC4xem0tODMuMy01OS42IDMuNy0zNS40LTEyLjItMzEuN2g3MmwtMTEuOSAzMS43IDMuNCAzNS40aC01NXptMTYuNCAzNy41LTI0LjEgMjIuNGgtMjAuNGwtNTAuNy04OC40IDM3LjQtMjcuOCAzMi45IDIxdjM3LjdsMjQuOSAyMy44djExLjN6bS00NC44LTE3MC4xaDExMS40bDEzLjMgNTYuN2gtMTM3LjdsMTMtNTYuN3ptNTUuOC03MC42LTE0MS40IDgxLjZ2MTYzLjNsMTQxLjQgODEuNiAxNDEuNC04MS42di0xNjMuM2wtMTQxLjQtODEuNnoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isDeficonnectProvider])}}wk.__initStatic(),wk.__initStatic2();class Mk extends sk{static __initStatic(){this.info={name:"Glow",logo:"data:image/webp;base64,UklGRkbpAQBXRUJQVlA4TDrpAQAv38F3EBGJbRsJkgS7p0rtwm3+AXfP/IcQ0f8JWLIkdFr/iEgkyRI0SHyCgCXu4pZI4gxw6U7EeRDYruJd9wYSAXYCoeH3+5uZqVI3QbHhQMVaNVVzVj8594ZNoNaamem6zPNEERADrHo63XMthUfhSEhW7e7Wa7Kf/UKRqu3u/jC1dSk42t0S4jbbMSSJq6oMIFnCVVXGOBAXUz8bQJJdpByHJNg7ZYcoSo6xIb7UrrIBJMvedDlmJ2DXjHMQ5eeZsRMIsb2PoCiJnZQdIIHtPThZS1jCU3GSUDHsXZUgSUjsXUkMJDlI9N6988X086ylzFRNlfpZK7GNbd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7MP4YNXtDGAcdhQwC59i0etbYafGfI6gxeeWMwXTrRNtBBPnlUWPnibsk9XqRc4517/o7TZ4tUkIiS9WQsyMM15pohbM2iUrBDDNAnStWSao+OTnC90RloqucfEgOrW7dwMyow7GsbyQhsk0JzCZ4k4xp34px0L5qURrfx3VnwK/OfnLT7/UXG4WZeBq/9AvVhklB5davr9Sz6KWL14dCKhjeX9tSkpDPKsH3Ty2ti8+JHIm7Eh2/iFj7zMGGG8fsfPL2ypU8bgiYD9+Yu/dDEw/iiUMnk+rvVucwrgxYjGtYALfHwuX84aGLn/ExQ29NOXTeVvRAsPyOoU9n9TuOXNEgsZQzIdhFt4NpKA0pctb4mgxfpqMwIoCmcHFZwSI77zSDFpsPvnp5TysrHS91IpGzUYN1rMADEXrxYd1Cs6sQAEGBfvxwauKWUARAjdAY7pp/ceCyI/ptUtixoMNY/LjW3y6NrV7wsW8YU77Yt1cfOhz5gR8QhNcUyntOKVrWrCqdf/p7zaU1tUa9YdfeCw/UQMHcyCRPRhEcCLcssTlLxSsRIPLB02U+aAvwUAtXt8Kn3qOff/LVg2NJtxm0x1pjM0ahHXrIyZFgdUsC8TueY9OANz7AQOwfe0vH7To0Q3LuT7+5vd+Oq9v+1il4O1rlgKZTDI1+a5YgOi7PJZnj/Xrjcu/VIiagDmiRcejjRVCV7TQ8vqGZz8HGJCrZEbxI1rce8/E2oPg8qZdZ0QGL2aaQr1efuiK6B8H33k1w8GIHj7BsYNhef15eAD+mFlFxmOVjBC+3+wG02R6K9y7jcAMI16/mkZglHFz/eCDB6Zb8WkDhADBKfiUNg/KVGv0Un11/+qEx//6p7SmHbtSdPXfvXS6l/YH",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>window.solana&&window.solana.isGlow}}Mk.__initStatic(),Mk.__initStatic2();class Ak extends fk{static __initStatic(){this.info={name:"HyperPay",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjA0LjcgMjAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyMDQuNyAyMDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzFBNzJGRSIgZD0iTTEwMi41LDUuMkM1MC44LDUuMiw4LjgsNDcuMiw4LjgsOTlzNDIsOTMuNSw5My44LDkzLjVzOTMuOC00Miw5My44LTkzLjhTMTU0LjIsNS4yLDEwMi41LDUuMnogTTEyNy4yLDExOS4yCgljLTYuMiwwLTIxLjcsMC4zLTIxLjcsMC4zbC03LDI3aC0yOWw2LjgtMjYuNUgzMWw3LjItMjEuOGMwLDAsNzguOCwwLjIsODUuMiwwYzYuNS0wLjIsMTYuNS0xLjgsMTYuOC0xNC44YzAuMy0xNy44LTI3LTE2LjgtMjkuMi0xCgljLTEuNSwxMC0xLjUsMTIuNS0xLjUsMTIuNUg4My44bDUtMjMuNUg0N2w2LjMtMjJjMCwwLDYxLjIsMC4yLDcyLjgsMC4yczQyLjIsMyw0Mi4yLDMxLjJDMTY4LjIsMTEyLDEzOC41LDExOS4zLDEyNy4yLDExOS4yCglMMTI3LjIsMTE5LjJ6Ii8+Cjwvc3ZnPgo=",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isHyperPay])}}function Ek(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}Ak.__initStatic(),Ak.__initStatic2();class Tk extends fk{static __initStatic(){this.info={name:"MetaMask",logo:"data:image/svg+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JyBwb2ludHM9JzEzNy4wNCAxOTUuOCAzNy41OCAyMjQuOSA0LjQ5IDMyNy45NyA5Mi43MyAzMjcuOTcgMTUxLjg4IDMyOC43MyAxMDcgMjQxLjI1IDEzNy4wNCAxOTUuOCcvPjxwb2x5Z29uIGNsYXNzPSdjbHMtOCcgcG9pbnRzPScyNzIuMDYgMjQ2LjAxIDI3OC4zNCAxMzYuMjggMzA3LjI0IDU4LjEyIDE3OC44OCA1OC4xMiAyMDcuNDEgMTM2LjI4IDIxNC4wNiAyNDYuMDEgMjE2LjM0IDI4MC42MiAyMTYuNTMgMzY1LjgyIDI2OS4yMSAzNjUuODIgMjY5LjU5IDI4MC42MiAyNzIuMDYgMjQ2LjAxJy8+PC9zdmc+",blockchains:ok.evm}}getProvider(){return Ek([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.has,"call",e=>e("MetaMask")])?Ek([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.get,"call",e=>e("MetaMask")]):window.ethereum}static __initStatic2(){this.isAvailable=async()=>Ek([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isMetaMask])&&1==Object.keys(window.ethereum).filter((e=>e.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/))).length||Ek([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.has,"call",e=>e("MetaMask")])}}Tk.__initStatic(),Tk.__initStatic2();class Nk extends fk{static __initStatic(){this.info={name:"Opera",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA3NS42IDc1LjYiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIHRyYW5zZm9ybT0ib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iIgeDE9Ii0xMDcuMDYiIHgyPSItMTA2LjA2IiB5MT0iLTEzOC4wNCIgeTI9Ii0xMzguMDQiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoMCAtNjQuNzkyIC02NC43OTIgMCAtODkwNi4yIC02ODYwLjQpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICA8c3RvcCBzdG9wLWNvbG9yPSIjOUMwMDAwIiBvZmZzZXQ9IjAiLz4KICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjRCNEIiIG9mZnNldD0iLjciLz4KICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjRCNEIiIG9mZnNldD0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHBhdGggZD0ibTE5IDY4YzIuNiAzLjEgNiA0LjkgOS42IDQuOSA4LjMgMCAxNC45LTkuNCAxNC45LTIwLjlzLTYuNy0yMC45LTE0LjktMjAuOWMtMy43IDAtNyAxLjktOS42IDQuOSA0LjEtNS4zIDEwLjEtOC42IDE2LjktOC42IDQuMiAwIDggMS4zIDExLjQgMy41IDUuOCA1LjIgOS41IDEyLjcgOS41IDIxLjFzLTMuNyAxNS45LTkuNSAyMS4xYy0zLjMgMi4yLTcuMiAzLjUtMTEuNCAzLjUtNi44IDAuMS0xMi44LTMuMy0xNi45LTguNiIgZmlsbD0idXJsKCNiKSIvPgo8L2c+Cjwvc3ZnPgo=",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isOpera])}}Nk.__initStatic(),Nk.__initStatic2();class Ik extends sk{static __initStatic(){this.info={name:"Phantom",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3Lj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uMS0yLjMsNy4xLTUuNiw3LjFDOTUuNSw1Ni43LDkzLjIsNTMuNyw5My4yLDQ5LjV6Ii8+Cjwvc3ZnPgo=",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>window.phantom&&!window.glow&&!function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.solana,"optionalAccess",e=>e.isGlow])&&!["isBitKeep"].some((e=>window.solana&&window.solana[e]))}}Ik.__initStatic(),Ik.__initStatic2();class kk extends fk{static __initStatic(){this.info={name:"Rabby",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9ImthdG1hbl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjA0IDE1MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjA0IDE1MjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOnVybCgjU1ZHSURfMV8pO30KCS5zdDF7ZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7ZmlsbDp1cmwoI1NWR0lEXzAwMDAwMTE4MzY5MTkwNjY5MjcyNDcwNjgwMDAwMDE1NjE0NDY3MTMxNjE1Mjc5NDkxXyk7fQoJLnN0MntmaWxsLXJ1bGU6ZXZlbm9kZDtjbG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AyIiB4Mj0iMTE1LjA1OTMiIHkyPSI0ODkuNDc5MiIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIDAgLTM0NikiPgoJPHN0b3AgIG9mZnNldD0iMCIgc3R5bGU9InN0b3AtY29sb3I6Izg4OThGRiIvPgoJPHN0b3AgIG9mZnNldD0iMC45ODM5IiBzdHlsZT0ic3RvcC1jb2xvcjojNUY0N0YxIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxwYXRoIHN0eWxlPSJmaWxsOnVybCgjU1ZHSURfMDAwMDAxMjg0NzQ1MTgwNjUxMjc5MDc2OTAwMDAwMDg3OTM1NDY5MjM0OTg1OTA4NjFfKTsiIGQ9Ik0zOS43LDkzLjljMS43LDE1LjIsMTAuNSwyMS4zLDI4LjIsMjMKCWMxNy44LDEuNywyNy45LDAuNiw0MS40LDEuN2MxMS4zLDEsMjEuNCw2LjgsMjUuMSw0LjhjMy4zLTEuNywxLjQtOC4yLTMtMTIuNGMtNS45LTUuNC0xNC05LTI4LjEtMTAuNWMyLjktNy44LDIuMS0xOC43LTIuNC0yNC42CgljLTYuMy04LjYtMTguMS0xMi40LTMzLTEwLjhDNTIuMyw2Ny4xLDM3LjQsNzQuOSwzOS43LDkzLjl6Ii8+Cjwvc3ZnPgo=",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isRabby])}}function Lk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}kk.__initStatic(),kk.__initStatic2();const xk="_DePayWeb3WalletsConnectedSolanaMobileWalletInstance",Sk=e=>{const t=window.atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e({name:document.title,uri:window.location.origin.toString(),icon:Ck()});var Ck=function(){for(var e="favicon.ico",t=document.getElementsByTagName("link"),n=0;n$I({wallet:this,transaction:e})}async authorize(e){let t=await e.authorize({cluster:"mainnet-beta",identity:jk()});if(t&&t.auth_token&&t.accounts&&0!==t.accounts.length)return Dk=t.auth_token,this._account=Sk(t.accounts[0].address).toString(),t}async reauthorize(e,t){let n=await e.reauthorize({auth_token:t,identity:jk()});if(n&&n.auth_token&&n.accounts&&0!==n.accounts.length)return t=n.auth_token,this._account=Sk(n.accounts[0].address).toString(),n}disconnect(){}async account(){return this._account}async connect(e){return await Lf((async t=>{await this.authorize(t),Lk([e,"optionalAccess",e=>e.name])&&(localStorage[xk+"_name"]=this.name=e.name),Lk([e,"optionalAccess",e=>e.logo])&&(localStorage[xk+"_logo"]=this.logo=e.logo)})),this._account}static __initStatic2(){this.isAvailable=async()=>Dk}async connectedTo(e){return e?"solana"==e:"solana"}switchTo(e){return new Promise(((e,t)=>{t({code:"NOT_SUPPORTED"})}))}addNetwork(e){return new Promise(((e,t)=>{t({code:"NOT_SUPPORTED"})}))}on(e,t){}off(e,t){}async sign(e){const t=(new TextEncoder).encode(e);return await Lf((async e=>{const n=await this.reauthorize(e,Dk);return(await e.signMessages({addresses:[n.accounts[0].address],payloads:[t]}))[0]}))}async _sendTransaction(e){return await Lf((async t=>{await this.reauthorize(t,Dk);return(await t.signAndSendTransactions({transactions:[e]}))[0]}))}}Ok.__initStatic(),Ok.__initStatic2();class zk extends sk{static __initStatic(){this.info={name:"Solflare",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpb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43QzIzLjUsNi4zLDIzLjgsNiwyNC4yLDZ6Ii8+CjxyYWRpYWxHcmFkaWVudCBpZD0iU1ZHSURfMDAwMDAxMDAzNTM3NjAxMTAwMjExMTQ0NDAwMDAwMDg4MDc5Mzk1MzE2NjY5Njc5MzhfIiBjeD0iLTIwMS40OTc5IiBjeT0iMjg1LjIxMTkiIHI9IjAuNzU5NyIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCg0Ljk5MjIgMTIuMDYzOSAxMi4xODExIC01LjA0MDcgLTI0NDUuMjIzNCAzODkwLjE2MzYpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+Cgk8c3RvcCAgb2Zmc2V0PSIwIiBzdHlsZT0ic3RvcC1jb2xvcjojRkZDMTBCIi8+Cgk8c3RvcCAgb2Zmc2V0PSIxIiBzdHlsZT0ic3RvcC1jb2xvcjojRkIzRjJFIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjxwYXRoIHN0eWxlPSJmaWxsOnVybCgjU1ZHSURfMDAwMDAxMDAzNTM3NjAxMTAwMjExMTQ0NDAwMDAwMDg4MDc5Mzk1MzE2NjY5Njc5MzhfKTsiIGQ9Ik0yNC42LDMwLjljMy44LDAsNi44LTMsNi44LTYuNwoJYzAtMy43LTMuMS02LjctNi44LTYuN3MtNi44LDMtNi44LDYuN0MxNy44LDI3LjksMjAuOSwzMC45LDI0LjYsMzAuOXoiLz4KPC9zdmc+Cg==",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.solflare])&&window.solflare.isSolflare}getProvider(){return window.solflare}_sendTransaction(e){return this.getProvider().signTransaction(e)}}zk.__initStatic(),zk.__initStatic2();class _k extends fk{static __initStatic(){this.info={name:"TP Wallet (TokenPocket)",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aW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zvcm09InRyYW5zbGF0ZSgxNjggMjc3KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTokenPocket])}}function Pk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}_k.__initStatic(),_k.__initStatic2();class Rk extends fk{static __initStatic(){this.info={name:"Trust Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA5Ni41IDk2LjUiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDk2LjUgOTYuNSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgZmlsbD0iI0ZGRkZGRiIgd2lkdGg9Ijk2LjUiIGhlaWdodD0iOTYuNSIvPgo8cGF0aCBzdHJva2U9IiMzMzc1QkIiIHN0cm9rZS13aWR0aD0iNi4wNjMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQgPSIxMCIgZmlsbD0ibm9uZSIgZD0ibTQ4LjUgMjAuMWM5LjYgOCAyMC42IDcuNSAyMy43IDcuNS0wLjcgNDUuNS01LjkgMzYuNS0yMy43IDQ5LjMtMTcuOC0xMi44LTIzLTMuNy0yMy43LTQ5LjMgMy4yIDAgMTQuMSAwLjUgMjMuNy03LjV6Ii8+Cjwvc3ZnPgo=",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>(Pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTrust])||Pk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTrustWallet]))&&1==Object.keys(window.ethereum).filter((e=>e.match(/^is(?!Connected)(?!Debug)(?!TrustWallet)(?!MetaMask)(?!PocketUniverse)(?!RevokeCash)/))).length}}Rk.__initStatic(),Rk.__initStatic2();const Bk={ethereum:"mainnet",bsc:"bsc",polygon:"polygon",arbitrum:"arbitrum",base:"base",avalanche:"avalanche",gnosis:"gnosis-chain",optimism:"optimism"},Uk={ethereum:"eth",bsc:"bnb",polygon:"matic",arbitrum:"arb1",base:"base",avalanche:"avax",gnosis:"gno",optimism:"oeth"};class Wk{constructor({address:e,blockchain:t}){this.address=e,this.blockchain=t}async transactionCount(){let e,t=await fetch(`https://safe-transaction-${Bk[this.blockchain]}.safe.global/api/v1/safes/${this.address}/all-transactions/`).then((e=>e.json())).catch((e=>{console.error("Error:",e)}));return e=t&&t.results&&t.results.length?t.results[0].nonce+1:parseInt((await YI({blockchain:this.blockchain,address:this.address,api:[{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],method:"nonce"})).toString(),10),e}async retrieveTransaction({blockchain:e,tx:t}){const n=await _I(e);let r=await fetch(`https://safe-transaction-${Bk[e]}.safe.global/api/v1/multisig-transactions/${t}/`).then((e=>e.json())).catch((e=>{console.error("Error:",e)}));return r&&r.isExecuted&&r.transactionHash?await n.getTransaction(r.transactionHash):void 0}explorerUrlFor({transaction:e}){if(e)return`https://app.safe.global/${Uk[e.blockchain]}:${e.from}/transactions/tx?id=multisig_${e.from}_${e.id}`}}const Qk=async(e,t)=>{if(!await(async(e,t)=>{const n=await _I(e);return"0x"!=await n.getCode(t)})(e,t))return;const n=await(async(e,t)=>{let n;try{n=await YI({blockchain:e,address:t,api:[{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"}],method:"NAME"})}catch(e){}if("Default Callback Handler"==n)return"Safe"})(e,t);if("Safe"==n)return new Wk({blockchain:e,address:t});if("Argent"==n)return new Argent({blockchain:e,address:t});if(smartContractWallet)throw{message:"Unrecognized smart contract wallet not supported!",code:"SMART_CONTRACT_WALLET_NOT_SUPPORTED"}};function Yk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const Fk=e=>new Promise(((t,n)=>{try{e.wait(1).then(t).catch((r=>{r&&r.toString().match("undefined")?setTimeout((()=>{Fk(e).then(t).catch(n)}),500):n(r)}))}catch(r){r&&r.toString().match("undefined")?setTimeout((()=>{Fk(e).then(t).catch(n)}),500):n(r)}})),Vk=async({blockchain:e,tx:t,smartContractWallet:n})=>{const r=await _I(e);let i,o=async()=>{try{return n&&n.retrieveTransaction?await n.retrieveTransaction({blockchain:e,tx:t}):await r.getTransaction(t)}catch(e){}};for(i=await o();!i;)await new Promise((e=>setTimeout(e,3e3))),i=await o();return i},Hk=({transaction:e,wallet:t})=>e.method?Gk({transaction:e,wallet:t}):qk({transaction:e,wallet:t}),Gk=async({transaction:e,wallet:t})=>{const n=await _I(e.blockchain);let r=await n.getGasPrice();r="Uniswap Wallet"===Yk([t,"access",e=>e.session,"optionalAccess",e=>e.peerMeta,"optionalAccess",e=>e.name])?void 0:r.toHexString();let i=await BI(e);const o=await e.getData(),a=e.value?Sy(Wy.from(e.value)):void 0,s=Sy(e.nonce);return i=i.add(i.div(10)),t.connector.sendTransaction({from:e.from,to:e.to,value:a,data:o,gas:i.toHexString(),gasPrice:r,nonce:s})},qk=async({transaction:e,wallet:t})=>{const n=await _I(e.blockchain);let r=await n.getGasPrice();r="Uniswap Wallet"===Yk([t,"access",e=>e.session,"optionalAccess",e=>e.peerMeta,"optionalAccess",e=>e.name])?void 0:r.toHexString();const i=await BI(e),o=Sy(Wy.from(e.value)),a=Sy(e.nonce);return t.connector.sendTransaction({from:e.from,to:e.to,value:o,data:"0x",gas:i.toHexString(),gasPrice:r,nonce:a})};function Zk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const Jk="_DePayWeb3WalletsConnectedWalletConnectV1Instance";let Xk;const Kk=()=>Xk||(Xk=nL((()=>{})),Xk),$k=()=>new Promise((async(e,t)=>{if(setTimeout((()=>{delete localStorage.walletconnect,e(!1)}),5e3),!localStorage.walletconnect||0==JSON.parse(localStorage.walletconnect).handshakeTopic.length)return delete localStorage.walletconnect,e(!1);let n,r=Kk();try{await r.sendCustomRequest({method:"eth_blockNumber"})?n=await r.sendCustomRequest({method:"eth_accounts"}):delete localStorage.walletconnect}catch(t){delete localStorage.walletconnect,e(!1)}return e(n&&n.length)})),eL=async()=>window[Jk]?window[Jk]:await $k()?new rL:void 0,tL=e=>{window[Jk]=e},nL=e=>new VI({bridge:"https://walletconnect.depay.com",qrcodeModal:{open:async t=>e({uri:t}),close:()=>{}}});class rL{static __initStatic(){this.info={name:"WalletConnect",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcgeT0nMHB4JyB2aWV3Qm94PScwIDAgNTAwIDUwMCcgc3R5bGU9J2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAwIDUwMDsnIHhtbDpzcGFjZT0ncHJlc2VydmUnPjxzdHlsZSB0eXBlPSd0ZXh0L2Nzcyc+IC5zdDB7ZmlsbDojNTk5MUNEO30KPC9zdHlsZT48ZyBpZD0nUGFnZS0xJz48ZyBpZD0nd2FsbGV0Y29ubmVjdC1sb2dvLWFsdCc+PHBhdGggaWQ9J1dhbGxldENvbm5lY3QnIGNsYXNzPSdzdDAnIGQ9J00xMDIuNywxNjJjODEuNS03OS44LDIxMy42LTc5LjgsMjk1LjEsMGw5LjgsOS42YzQuMSw0LDQuMSwxMC41LDAsMTQuNEwzNzQsMjE4LjkgYy0yLDItNS4zLDItNy40LDBsLTEzLjUtMTMuMmMtNTYuOC01NS43LTE0OS01NS43LTIwNS44LDBsLTE0LjUsMTQuMWMtMiwyLTUuMywyLTcuNCwwTDkxLjksMTg3Yy00LjEtNC00LjEtMTAuNSwwLTE0LjQgTDEwMi43LDE2MnogTTQ2Ny4xLDIyOS45bDI5LjksMjkuMmM0LjEsNCw0LjEsMTAuNSwwLDE0LjRMMzYyLjMsNDA1LjRjLTQuMSw0LTEwLjcsNC0xNC44LDBjMCwwLDAsMCwwLDBMMjUyLDMxMS45IGMtMS0xLTIuNy0xLTMuNywwaDBsLTk1LjUsOTMuNWMtNC4xLDQtMTAuNyw0LTE0LjgsMGMwLDAsMCwwLDAsMEwzLjQsMjczLjZjLTQuMS00LTQuMS0xMC41LDAtMTQuNGwyOS45LTI5LjIgYzQuMS00LDEwLjctNCwxNC44LDBsOTUuNSw5My41YzEsMSwyLjcsMSwzLjcsMGMwLDAsMCwwLDAsMGw5NS41LTkzLjVjNC4xLTQsMTAuNy00LDE0LjgsMGMwLDAsMCwwLDAsMGw5NS41LDkzLjUgYzEsMSwyLjcsMSwzLjcsMGw5NS41LTkzLjVDNDU2LjQsMjI1LjksNDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>null!=await eL()}constructor(){this.name=localStorage[Jk+"_name"]&&null!=localStorage[Jk+"_name"]?localStorage[Jk+"_name"]:this.constructor.info.name,this.logo=localStorage[Jk+"_logo"]&&null!=localStorage[Jk+"_logo"]?localStorage[Jk+"_logo"]:this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,this.sendTransaction=e=>(async({transaction:e,wallet:t})=>{if(e=new XI(e),0==await t.connectedTo(e.blockchain))throw{code:"WRONG_NETWORK"};await e.prepare({wallet:t});const n=await Qk(e.blockchain,e.from);let r=await t.transactionCount({blockchain:e.blockchain,address:e.from});return e.nonce=r,await Hk({transaction:e,wallet:t}).then((t=>{if(!t)throw"Submitting transaction failed!";{let i=he.findByName(e.blockchain);e.id=t,e.url=n&&n.explorerUrlFor?n.explorerUrlFor({transaction:e}):i.explorerUrlFor({transaction:e}),e.sent&&e.sent(e),Vk({blockchain:e.blockchain,tx:t,smartContractWallet:n}).then((t=>{e.id=t.hash||e.id,e.url=i.explorerUrlFor({transaction:e}),e.nonce=t.nonce||r,Fk(t).then((()=>{e._succeeded=!0,e.succeeded&&e.succeeded(e)})).catch((t=>{t&&t.code&&"TRANSACTION_REPLACED"==t.code?t.replacement&&t.replacement.hash&&t.receipt&&1==t.receipt.status?(e.id=t.replacement.hash,e._succeeded=!0,e.succeeded&&e.succeeded(e)):t.replacement&&t.replacement.hash&&t.receipt&&0==t.receipt.status&&(e.id=t.replacement.hash,e._failed=!0,e.failed&&e.failed(e,t)):(e._failed=!0,e.failed&&e.failed(e,t))}))}))}})),e})({wallet:this,transaction:e})}disconnect(){tL(void 0),localStorage[Jk+"_name"]=void 0,localStorage[Jk+"_logo"]=void 0,Xk=void 0,this.session=void 0}newWalletConnectInstance(e){let t=nL(e);return t.on("disconnect",((e,t)=>{if(this.disconnect(),e)throw e})),t.on("modal_closed",(()=>{tL(void 0),this.connector=void 0,this.session=void 0})),t}async account(){let e;this.connector||(this.connector=Kk());try{e=await this.connector.sendCustomRequest({method:"eth_accounts"})}catch(e){}if(e&&e.length)return rg(e[0])}async connect(e){let t=e&&e.connect?e.connect:({uri:e})=>{};try{if(this.connector=rL.instance,null==this.connector&&(this.connector=this.newWalletConnectInstance(t)),e&&e.reconnect&&this.connector){try{await this.connector.killSession()}catch(e){}this.disconnect()}if(await $k())return await this.account();{let t=await this.connector.connect();return this.session=t,Zk([e,"optionalAccess",e=>e.name])&&(localStorage[Jk+"_name"]=this.name=e.name),Zk([e,"optionalAccess",e=>e.logo])&&(localStorage[Jk+"_logo"]=this.logo=e.logo),t.accounts instanceof Array&&t.accounts.length?(tL(this),rg(t.accounts[0])):void 0}}catch(e){return void console.log("WALLETCONNECT ERROR",e)}}async connectedTo(e){let t=await this.connector.sendCustomRequest({method:"eth_chainId"});const n=he.findById(t);return!!n&&(e?e===n.name:n.name)}switchTo(e){return new Promise(((t,n)=>{let r,i;const o=he.findByName(e);setTimeout((async()=>{await this.connectedTo(e)||r||i?t():n({code:"NOT_SUPPORTED"})}),3e3),this.connector.sendCustomRequest({method:"wallet_switchEthereumChain",params:[{chainId:o.id}]}).then((()=>{r=!0,t()})).catch((o=>{o&&"string"==typeof o.message&&o.message.match("addEthereumChain")?this.addNetwork(e).then((()=>this.switchTo(e).then((()=>{r=!0,t()})))).catch((()=>{i=!0,n({code:"NOT_SUPPORTED"})})):(i=!0,n({code:"NOT_SUPPORTED"}))}))}))}addNetwork(e){return new Promise(((t,n)=>{const r=he.findByName(e);this.connector.sendCustomRequest({method:"wallet_addEthereumChain",params:[{chainId:r.id,chainName:r.fullName,nativeCurrency:{name:r.currency.name,symbol:r.currency.symbol,decimals:r.currency.decimals},rpcUrls:[r.rpc],blockExplorerUrls:[r.explorer],iconUrls:[r.logo]}]}).then(t).catch(n)}))}on(e,t){let n;if("account"===e)n=(e,n)=>{if(n&&n.params&&n.params[0].accounts&&n.params[0].accounts instanceof Array){const e=n.params[0].accounts.map((e=>rg(e)));t(e[0])}},this.connector.on("session_update",n);return n}off(e,t){if("account"===e)this.connector.off("session_update")}async transactionCount({blockchain:e,address:t}){const n=await Qk(e,t);return n?await n.transactionCount():await YI({blockchain:e,method:"transactionCount",address:t})}async sign(e){if("object"==typeof e){let t=await this.account();if(!1===await this.connectedTo(he.findByNetworkId(e.domain.chainId).name))throw{code:"WRONG_NETWORK"};return await this.connector.sendCustomRequest({jsonrpc:"2.0",method:"eth_signTypedData_v4",params:[t,JSON.stringify(e)]})}if("string"==typeof e){let n=await this.connectedTo(),r=await this.account();if(await Qk(n,r))throw{message:"Smart contract wallets are not supported for signing!",code:"SMART_CONTRACT_WALLET_NOT_SUPPORTED"};var t=[kg(e),r];return await this.connector.signPersonalMessage(t)}}}rL.__initStatic(),rL.__initStatic2(),rL.getConnectedInstance=eL,rL.setConnectedInstance=tL;const iL=e=>new Promise(((t,n)=>{try{e.wait(1).then(t).catch((r=>{r&&r.toString().match("undefined")?setTimeout((()=>{iL(e).then(t).catch(n)}),500):n(r)}))}catch(r){r&&r.toString().match("undefined")?setTimeout((()=>{iL(e).then(t).catch(n)}),500):n(r)}})),oL=(e,t)=>new Promise((async(n,r)=>{try{let r;const i=await _I(t);r=await i.getTransaction(e);const o=120;let a=1;for(;a<=o&&!r;)r=await i.getTransaction(e),await new Promise((e=>setTimeout(e,5e3))),a++;n(r)}catch(i){i&&i.toString().match("undefined")?setTimeout((()=>{oL(e,t).then(n).catch(r)}),500):r(i)}})),aL=({transaction:e,wallet:t})=>e.method?sL({transaction:e,wallet:t}):uL({transaction:e,wallet:t}),sL=async({transaction:e,wallet:t})=>{const n=await _I(e.blockchain),r=he[e.blockchain],i=await BI(e),o=await n.getGasPrice();return t.signClient.request({topic:t.session.topic,chainId:`${r.namespace}:${r.networkId}`,request:{method:"eth_sendTransaction",params:[{from:e.from,to:e.to,value:e.value?Wy.from(e.value.toString()).toHexString():void 0,data:await e.getData(),gas:i.toHexString(),gasPrice:o.toHexString(),nonce:e.nonce}]}}).catch((e=>{console.log("ERROR",e)}))},uL=async({transaction:e,wallet:t})=>{const n=await _I(e.blockchain);let r=he[e.blockchain];const i=await BI(e),o=await n.getGasPrice();return t.signClient.request({topic:t.session.topic,chainId:`${r.namespace}:${r.networkId}`,request:{method:"eth_sendTransaction",params:[{from:e.from,to:e.to,value:e.value?Wy.from(e.value.toString()).toHexString():void 0,gas:i.toHexString(),gasPrice:o.toHexString(),nonce:e.nonce}]}}).catch((e=>{console.log("ERROR",e)}))};function cL(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const lL="depay:wallets:wc2",dL={MetaMask:{methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4","wallet_switchEthereumChain"]},"BitGet (BitKeep)":{methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"],requiredNamespaces:{eip155:{chains:["ethereum","bsc","polygon","arbitrum","base"].map((e=>`eip155:${he[e].networkId}`))}},optionalNamespaces:{}},BitGet:{methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"],requiredNamespaces:{eip155:{chains:["ethereum","bsc","polygon","arbitrum","base"].map((e=>`eip155:${he[e].networkId}`))}},optionalNamespaces:{}},"Uniswap Wallet":{methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"],requiredNamespaces:{eip155:{chains:["ethereum","polygon","arbitrum","optimism","base"].map((e=>`eip155:${he[e].networkId}`))}},optionalNamespaces:{}},"Ledger Live":{methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"],requiredNamespaces:{},optionalNamespaces:{eip155:{chains:he.all.map((e=>`eip155:${e.networkId}`))}}},"Enjin Wallet":{methods:["eth_sendTransaction","personal_sign","eth_signTypedData"]}},hL={events:["accountsChanged"],methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"]},pL=async e=>{if(!localStorage[lL+":projectId"])return;if(e!==localStorage[lL+":lastSessionWalletName"])return;let t,n=await yL();try{t=n.find(fL(e))}catch(e){}const r=t?t[t.length-1]:void 0;if(r&&localStorage[lL+":lastExpiredSessionTopic"]!==r.topic&&r.expiry>Math.ceil(Date.now()/1e3)){return await Promise.race([n.ping({topic:r.topic}),new Promise((e=>setTimeout(e,1500)))])?r:void(localStorage[lL+":lastExpiredSessionTopic"]=r.topic)}},fL=e=>{const t=cL([dL,"access",t=>t[e],"optionalAccess",e=>e.methods])||hL.methods,n=cL([dL,"access",t=>t[e],"optionalAccess",e=>e.events])||hL.events;let r={};cL([dL,"access",t=>t[e],"optionalAccess",e=>e.requiredNamespaces])?r=dL[e].requiredNamespaces:r.eip155={chains:["eip155:1"]},r.eip155&&(r.eip155.methods=t,r.eip155.events=n);let i={};return cL([dL,"access",t=>t[e],"optionalAccess",e=>e.optionalNamespaces])?i=dL[e].optionalNamespaces:i.eip155={chains:ok.evm.map((e=>`${he[e].namespace}:${he[e].networkId}`))},cL([i,"optionalAccess",e=>e.eip155])&&cL([i,"optionalAccess",e=>e.eip155,"optionalAccess",e=>e.chains,"optionalAccess",e=>e.length])&&(i.eip155.methods=t,i.eip155.events=n),{requiredNamespaces:r,optionalNamespaces:i}},yL=()=>(window.getSignClientPromise||(window.getSignClientPromise=new Promise((async e=>{e(await GI.init({projectId:localStorage[lL+":projectId"],metadata:{name:document.title||"dApp",description:cL([document,"access",e=>e.querySelector,"call",e=>e('meta[name="description"]'),"optionalAccess",e=>e.getAttribute,"call",e=>e("content")])||document.title||"dApp",url:location.href,icons:[cL([document,"access",e=>e.querySelector,"call",e=>e("link[rel~='icon'], link[rel~='shortcut icon']"),"optionalAccess",e=>e.href])||`${location.origin}/favicon.ico`]}}))}))),window.getSignClientPromise);class mL{static __initStatic(){this.info={name:"WalletConnect V2",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcge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NDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==",blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async e=>!!await pL(cL([e,"optionalAccess",e=>e.walletName]))}constructor(){this.name=localStorage[lL+":name"]&&null!=localStorage[lL+":name"]?localStorage[lL+":name"]:this.constructor.info.name,this.logo=localStorage[lL+":logo"]&&null!=localStorage[lL+":logo"]?localStorage[lL+":logo"]:this.constructor.info.logo,this.sendTransaction=e=>(async({transaction:e,wallet:t})=>{if(e=new XI(e),0==await t.connectedTo(e.blockchain))throw{code:"WRONG_NETWORK"};await e.prepare({wallet:t});let n=await YI({blockchain:e.blockchain,method:"transactionCount",address:e.from});return e.nonce=n,await aL({transaction:e,wallet:t}).then((async t=>{if("string"!=typeof t)throw t;{let r=he[e.blockchain];e.id=t,e.url=r.explorerUrlFor({transaction:e}),e.sent&&e.sent(e);let i=await oL(e.id,e.blockchain);e.nonce=i.nonce||n,i?iL(i).then((()=>{e._succeeded=!0,e.succeeded&&e.succeeded(e)})).catch((t=>{t&&t.code&&"TRANSACTION_REPLACED"==t.code?t.replacement&&t.replacement.hash&&t.receipt&&1==t.receipt.status?(e.id=t.replacement.hash,e._succeeded=!0,e.succeeded&&e.succeeded(e)):t.replacement&&t.replacement.hash&&t.receipt&&0==t.receipt.status&&(e.id=t.replacement.hash,e._failed=!0,e.failed&&e.failed(e,t)):(e._failed=!0,e.failed&&e.failed(e,t))})):(e._failed=!0,e.failed&&e.failed(e,"Error retrieving transaction"))}})),e})({wallet:this,transaction:e})}async account(){if(cL([this,"access",e=>e.session,"optionalAccess",e=>e.namespaces,"optionalAccess",e=>e.eip155,"optionalAccess",e=>e.accounts,"optionalAccess",e=>e.length]))return this.session.namespaces.eip155.accounts[0].split(":")[2]}async setSessionBlockchains(){this.session&&cL([this,"access",e=>e.session,"optionalAccess",e=>e.namespaces,"optionalAccess",e=>e.eip155])&&(cL([dL,"access",e=>e[this.walletName],"optionalAccess",e=>e.methods,"optionalAccess",e=>e.includes,"call",e=>e("wallet_switchEthereumChain")])?this.blockchains=[this.session.namespaces.eip155.chains[this.session.namespaces.eip155.chains.length-1]].map((e=>cL([he,"access",e=>e.findByNetworkId,"call",t=>t(e.split(":")[1]),"optionalAccess",e=>e.name]))).filter(Boolean):this.session.namespaces.eip155.chains?this.blockchains=this.session.namespaces.eip155.chains.map((e=>cL([he,"access",e=>e.findByNetworkId,"call",t=>t(e.split(":")[1]),"optionalAccess",e=>e.name]))).filter(Boolean):this.session.namespaces.eip155.accounts&&(this.blockchains=this.session.namespaces.eip155.accounts.map((e=>cL([he,"access",e=>e.findByNetworkId,"call",t=>t(e.split(":")[1]),"optionalAccess",e=>e.name]))).filter(Boolean)))}async connect(e){let t=e&&e.connect?e.connect:({uri:e})=>{};try{this.walletName=cL([e,"optionalAccess",e=>e.name]),this.signClient=await yL(),this.signClient.on("session_delete",(e=>{cL([e,"optionalAccess",e=>e.topic])===cL([this,"access",e=>e.session,"optionalAccess",e=>e.topic])&&(localStorage[lL+":name"]=void 0,localStorage[lL+":logo"]=void 0,this.signClient=void 0,this.session=void 0)})),this.signClient.on("session_update",(async e=>{cL([e,"optionalAccess",e=>e.topic])===cL([this,"access",e=>e.session,"optionalAccess",e=>e.topic])&&(this.session=this.signClient.session.get(e.topic),await this.setSessionBlockchains())})),this.signClient.on("session_event",(e=>{cL([e,"optionalAccess",e=>e.topic]),cL([this,"access",e=>e.session,"optionalAccess",e=>e.topic])}));const n=async()=>{const{uri:e,approval:n}=await this.signClient.connect(fL(this.walletName));await t({uri:e}),this.session=await n(),localStorage[lL+":lastSessionWalletName"]=this.walletName,await new Promise((e=>setTimeout(e,500)))},r=cL([this,"optionalAccess",e=>e.walletName,"optionalAccess",e=>e.length])?await pL(this.walletName):void 0;r?this.session=r:await n();let i=cL([this,"access",e=>e.session,"optionalAccess",e=>e.peer,"optionalAccess",e=>e.metadata]);return i&&i.name&&(this.name=i.name,localStorage[lL+":name"]=i.name,cL([i,"optionalAccess",e=>e.icons])&&i.icons.length&&(this.logo=i.icons[0],localStorage[lL+":logo"]=this.logo)),cL([e,"optionalAccess",e=>e.name])&&(localStorage[lL+":name"]=this.name=e.name),cL([e,"optionalAccess",e=>e.logo])&&(localStorage[lL+":logo"]=this.logo=e.logo),await this.setSessionBlockchains(),await this.account()}catch(e){console.log("WALLETCONNECT ERROR",e)}}async connectedTo(e){return e?this.blockchains.indexOf(e)>-1:this.blockchains}getValidChainId(){return`eip155:${he[this.blockchains[0]].networkId}`}switchTo(e){return new Promise(((t,n)=>{const r=he[e];Promise.race([this.signClient.request({topic:this.session.topic,chainId:this.getValidChainId(),request:{method:"wallet_switchEthereumChain",params:[{chainId:r.id}]}}),new Promise(((t,n)=>setTimeout((()=>{-1===this.blockchains.indexOf(e)&&n({code:"NOT_SUPPORTED"})}),8e3)))]).catch(n)}))}addNetwork(e){return new Promise(((e,t)=>{t({code:"NOT_SUPPORTED"})}))}on(e,t){let n;if("account"===e)n=async e=>{cL([e,"optionalAccess",e=>e.topic])===cL([this,"access",e=>e.session,"optionalAccess",e=>e.topic])&&"accountsChanged"===e.params.event.name&&t(await this.account())},this.signClient.on("session_event",n);return n}off(e,t){if("account"===e)this.signClient.off("session_event",t)}async transactionCount({blockchain:e,address:t}){const n=await Qk(e,t);return n?await n.transactionCount():await YI({blockchain:e,method:"transactionCount",address:t})}async sign(e){if("object"==typeof e){let t=await this.account();return await this.signClient.request({topic:this.session.topic,chainId:this.getValidChainId(),request:{method:"eth_signTypedData_v4",params:[t,JSON.stringify(e)]}})}if("string"==typeof e){const t=await this.account(),n=[Sy(kg(e)),t];let r=await this.signClient.request({topic:this.session.topic,chainId:this.getValidChainId(),request:{method:"personal_sign",params:n}});return"object"==typeof r&&(r=Sy(r)),r}}}mL.__initStatic(),mL.__initStatic2(),mL.getConnectedInstance=async()=>{if(await mL.isAvailable())return new mL};const gL=e=>new Promise(((t,n)=>{try{e.wait(1).then(t).catch((r=>{r&&r.toString().match("undefined")?setTimeout((()=>{gL(e).then(t).catch(n)}),500):n(r)}))}catch(r){r&&r.toString().match("undefined")?setTimeout((()=>{gL(e).then(t).catch(n)}),500):n(r)}})),vL=({transaction:e,provider:t,signer:n})=>e.method?bL({transaction:e,signer:n,provider:t}):wL({transaction:e,signer:n}),bL=({transaction:e,signer:t,provider:n})=>{let r=new YT(e.to,e.api,n),i=e.getContractArguments({contract:r}),o=r.connect(t)[e.getMethodNameWithSignature()];return i?o(...i,{value:XI.bigNumberify(e.value,e.blockchain)}):o({value:XI.bigNumberify(e.value,e.blockchain)})},wL=({transaction:e,signer:t})=>t.sendTransaction({to:e.to,value:XI.bigNumberify(e.value,e.blockchain)});function ML(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const AL=()=>window._connectedWalletLinkInstance,EL=e=>{window._connectedWalletLinkInstance=e};class TL{static __initStatic(){this.info={name:"Coinbase",logo:bk.info.logo,blockchains:ok.evm}}static __initStatic2(){this.isAvailable=async()=>null!=AL()}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,this.connector=TL.instance||this.newWalletLinkInstance(),this.sendTransaction=e=>(async({transaction:e,wallet:t})=>{if(e=new XI(e),0==await t.connectedTo(e.blockchain)&&await t.switchTo(e.blockchain),0==await t.connectedTo(e.blockchain))throw{code:"WRONG_NETWORK"};await e.prepare({wallet:t});let n=new aI(t.connector,"any"),r=n.getSigner(0);return await vL({transaction:e,provider:n,signer:r}).then((t=>{if(!t)throw"Submitting transaction failed!";e.id=t.hash,e.nonce=t.nonce,e.url=he.findByName(e.blockchain).explorerUrlFor({transaction:e}),e.sent&&e.sent(e),gL(t).then((()=>{e._succeeded=!0,e.succeeded&&e.succeeded(e)})).catch((t=>{t&&t.code&&"TRANSACTION_REPLACED"==t.code?(t.replacement&&t.replacement.hash&&(e.id=t.replacement.hash,e.url=he.findByName(e.blockchain).explorerUrlFor({transaction:e})),t.replacement&&t.replacement.hash&&t.receipt&&1==t.receipt.status?(e._succeeded=!0,e.succeeded&&e.succeeded(e)):t.replacement&&t.replacement.hash&&t.receipt&&0==t.receipt.status&&(e._failed=!0,e.failed&&e.failed(e,t))):(e._failed=!0,e.failed&&e.failed(e,t))}))})),e})({wallet:this,transaction:e})}newWalletLinkInstance(){return new ZI({}).makeWeb3Provider()}async account(){if(null!=this.connectedAccounts)return rg(this.connectedAccounts[0])}async connect(e){let t=e&&e.connect?e.connect:({uri:e})=>{};await t({uri:this.connector.qrUrl}),ML([document,"access",e=>e.querySelector,"call",e=>e(".-cbwsdk-extension-dialog-container"),"optionalAccess",e=>e.setAttribute,"call",e=>e("style","display: none;")]),setTimeout((()=>{ML([this,"optionalAccess",e=>e.connector,"optionalAccess",e=>e._relay,"optionalAccess",e=>e.ui,"optionalAccess",e=>e.linkFlow,"optionalAccess",e=>e.isOpen])&&(this.connector._relay.ui.linkFlow.isOpen=!1)}),10),(await this.connector._relayProvider()).setConnectDisabled(!1);let n=await this.connector.enable();return n instanceof Array&&n.length&&EL(this),n=n.map((e=>rg(e))),this.connectedAccounts=n,this.connectedChainId=await this.connector.getChainId(),n[0]}async connectedTo(e){let t=await this.connector.getChainId();const n=he.findByNetworkId(t);return!!n&&(e?e===n.name:n.name)}switchTo(e){return new Promise(((t,n)=>{const r=he.findByName(e);this.connector.request({method:"wallet_switchEthereumChain",params:[{chainId:r.id}]}).then(t).catch((r=>{4902===r.code?this.addNetwork(e).then((()=>this.switchTo(e).then(t))).catch(n):n(r)}))}))}addNetwork(e){return new Promise(((t,n)=>{const r=he.findByName(e);this.connector.request({method:"wallet_addEthereumChain",params:[{chainId:r.id,chainName:r.fullName,nativeCurrency:{name:r.currency.name,symbol:r.currency.symbol,decimals:r.currency.decimals},rpcUrls:[r.rpc],blockExplorerUrls:[r.explorer],iconUrls:[r.logo]}]}).then(t).catch(n)}))}on(e,t){let n;if("account"===e)n=e=>t(rg(e[0])),this.connector.on("accountsChanged",n);return n}off(e,t){if("account"===e)this.connector.removeListener("accountsChanged",t);return t}transactionCount({blockchain:e,address:t}){return YI({blockchain:e,method:"transactionCount",address:t})}async sign(e){if("object"==typeof e){let t=this.connector,n=await this.account();if(!1===await this.connectedTo(he.findByNetworkId(e.domain.chainId).name))throw{code:"WRONG_NETWORK"};return await t.request({method:"eth_signTypedData_v4",params:[n,e],from:n})}if("string"==typeof e){await this.account();let t=new aI(this.connector,"any").getSigner(0);return await t.signMessage(e)}}}TL.__initStatic(),TL.__initStatic2(),TL.getConnectedInstance=AL,TL.setConnectedInstance=EL;var NL={MetaMask:Tk,Phantom:Ik,Coinbase:bk,Binance:yk,Trust:Rk,Backpack:uk,Glow:Mk,Solflare:zk,Rabby:kk,Brave:mk,Opera:Nk,Coin98:gk,CryptoCom:wk,HyperPay:Ak,TokenPocket:_k,WindowEthereum:fk,WindowSolana:sk,SolanaMobileWalletAdapter:Ok,WalletConnectV1:rL,WalletConnectV2:mL,WalletLink:TL};const IL=async e=>{let t=e&&"function"==typeof e.drip?e.drip:void 0,n=await Promise.all(Object.keys(NL).map((async e=>{let n=NL[e];if(await n.isAvailable()){let e;return n.getConnectedInstance?(e=await n.getConnectedInstance(),t&&e&&t(e),e):(t&&n&&t(n),new n)}})));return n.filter(Boolean)};var kL=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],LL=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"}],xL=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"guy",type:"address"},{name:"wad",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"src",type:"address"},{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"wad",type:"uint256"}],name:"withdraw",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"deposit",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"guy",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Withdrawal",type:"event"}];const SL=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}];var jL=({blockchain:e,address:t,api:n,id:r})=>r?new Promise((n=>{YI({blockchain:e,address:t,api:SL,method:"uri",params:[r]}).then((e=>{var t;e=e.match("0x{id}")?e.replace("0x{id}",r):e,(t=e,new Promise((e=>{t.match(/^ipfs/)&&(t=`https://ipfs.io/ipfs/${t.split("://")[1]}`),fetch(t).then((t=>{if(t.ok)return t.json();e()})).then((t=>{if(t){let n=t.name;n?e(n):e()}})).catch((()=>e()))}))).then(n)})).catch((e=>{console.log("error",e),n()}))})):YI({blockchain:e,address:t,api:n,method:"name",cache:864e5});const CL="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";var DL=async({token:e,owner:t})=>{const[n]=await Ec.findProgramAddress([new Ec(t).toBuffer(),new Ec(CL).toBuffer(),new Ec(e).toBuffer()],new Ec("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"));return function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([n,"optionalAccess",e=>e.toString,"call",e=>e()])};const OL=Uf([Yf("mintAuthorityOption"),Pf("mintAuthority"),Ff("supply"),Vf("decimals"),Cf("isInitialized"),Yf("freezeAuthorityOption"),Pf("freezeAuthority")]),zL=Rf([Uf([],"uninitialized"),Uf([],"editionV1"),Uf([],"masterEditionV1"),Uf([],"reservationListV1"),Uf([],"metadataV1"),Uf([],"reservationListV2"),Uf([],"masterEditionV2"),Uf([],"editionMarker")]),_L=Uf([Pf("address"),Cf("verified"),Vf("share")]),PL=Uf([Bf("name"),Bf("symbol"),Bf("uri"),Qf("sellerFeeBasisPoints"),_f(Hf(_L.replicate("creators")),"creators")]),RL=Uf([zL.replicate("key"),Pf("updateAuthority"),Pf("mint"),PL.replicate("data"),Cf("primarySaleHappened"),Cf("isMutable"),_f(Vf(),"editionNonce")]),BL=Uf([Vf("instruction"),Ff("amount")]),UL=Uf([Pf("mint"),Pf("owner"),Ff("amount"),Yf("delegateOption"),Pf("delegate"),Vf("state"),Yf("isNativeOption"),Ff("isNative"),Ff("delegatedAmount"),Yf("closeAuthorityOption"),Pf("closeAuthority")]),WL=Uf([Vf("instruction"),Pf("owner")]),QL=Uf([Vf("instruction")]);var YL=Object.freeze({__proto__:null,createTransferInstruction:async({token:e,amount:t,from:n,to:r})=>{let i=await DL({token:e,owner:n}),o=await DL({token:e,owner:r});const a=[{pubkey:new Ec(i),isSigner:!1,isWritable:!0},{pubkey:new Ec(o),isSigner:!1,isWritable:!0},{pubkey:new Ec(n),isSigner:!0,isWritable:!1}],s=xf.alloc(BL.span);return BL.encode({instruction:3,amount:new Sf(t)},s),new Yc({keys:a,programId:new Ec(CL),data:s})},createAssociatedTokenAccountInstruction:async({token:e,owner:t,payer:n})=>{let r=await DL({token:e,owner:t});const i=[{pubkey:new Ec(n),isSigner:!0,isWritable:!0},{pubkey:new Ec(r),isSigner:!1,isWritable:!0},{pubkey:new Ec(t),isSigner:!1,isWritable:!1},{pubkey:new Ec(e),isSigner:!1,isWritable:!1},{pubkey:yl.programId,isSigner:!1,isWritable:!1},{pubkey:new Ec(CL),isSigner:!1,isWritable:!1}];return new Yc({keys:i,programId:new Ec("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),data:xf.alloc(0)})},initializeAccountInstruction:({account:e,token:t,owner:n})=>{const r=[{pubkey:new Ec(e),isSigner:!1,isWritable:!0},{pubkey:new Ec(t),isSigner:!1,isWritable:!1}],i=xf.alloc(WL.span);return WL.encode({instruction:18,owner:new Ec(n)},i),new Yc({keys:r,programId:new Ec(CL),data:i})},closeAccountInstruction:({account:e,owner:t})=>{const n=[{pubkey:new Ec(e),isSigner:!1,isWritable:!0},{pubkey:new Ec(t),isSigner:!1,isWritable:!0},{pubkey:new Ec(t),isSigner:!0,isWritable:!1}],r=xf.alloc(QL.span);return QL.encode({instruction:9},r),new Yc({keys:n,programId:new Ec(CL),data:r})}});function FL(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const VL=new RegExp("\0","g"),HL=async({metaDataPublicKey:e,mintPublicKey:t})=>{let n=[xf.from("metadata"),e.toBuffer(),t.toBuffer()];return(await Ec.findProgramAddress(n,e))[0]},GL=async({blockchain:e,address:t})=>{let n=new Ec(t),r=new Ec("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"),i=await HL({metaDataPublicKey:r,mintPublicKey:n}),o=await YI({blockchain:e,address:i.toString(),api:RL,cache:864e5});return{name:FL([o,"optionalAccess",e=>e.data,"optionalAccess",e=>e.name,"optionalAccess",e=>e.replace,"call",e=>e(VL,"")]),symbol:FL([o,"optionalAccess",e=>e.data,"optionalAccess",e=>e.symbol,"optionalAccess",e=>e.replace,"call",e=>e(VL,"")])}};let qL=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];function ZL(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}qL.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],qL.solana=["solana"];class JL{constructor({blockchain:e,address:t}){this.blockchain=e,qL.evm.includes(this.blockchain)?this.address=rg(t):qL.solana.includes(this.blockchain)&&(this.address=t)}async decimals(){if(this.address==he.findByName(this.blockchain).currency.address)return he.findByName(this.blockchain).currency.decimals;let e;try{qL.evm.includes(this.blockchain)?e=await(({blockchain:e,address:t,api:n})=>YI({blockchain:e,address:t,api:n,method:"decimals",cache:864e5}))({blockchain:this.blockchain,address:this.address,api:JL[this.blockchain].DEFAULT}):qL.solana.includes(this.blockchain)&&(e=await(async({blockchain:e,address:t})=>(await YI({blockchain:e,address:t,api:OL})).decimals)({blockchain:this.blockchain,address:this.address}))}catch(e){}return e}async symbol(){return this.address==he.findByName(this.blockchain).currency.address?he.findByName(this.blockchain).currency.symbol:qL.evm.includes(this.blockchain)?await(({blockchain:e,address:t,api:n})=>YI({blockchain:e,address:t,api:n,method:"symbol",cache:864e5}))({blockchain:this.blockchain,address:this.address,api:JL[this.blockchain].DEFAULT}):qL.solana.includes(this.blockchain)?await(async({blockchain:e,address:t})=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([await GL({blockchain:e,address:t}),"optionalAccess",e=>e.symbol]))({blockchain:this.blockchain,address:this.address}):void 0}async name(e){return this.address==he.findByName(this.blockchain).currency.address?he.findByName(this.blockchain).currency.name:qL.evm.includes(this.blockchain)?await jL({blockchain:this.blockchain,address:this.address,api:JL[this.blockchain].DEFAULT,id:ZL([e,"optionalAccess",e=>e.id])}):qL.solana.includes(this.blockchain)?await(async({blockchain:e,address:t})=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([await GL({blockchain:e,address:t}),"optionalAccess",e=>e.name]))({blockchain:this.blockchain,address:this.address}):void 0}async balance(e,t){return qL.evm.includes(this.blockchain)?await(async({blockchain:e,address:t,account:n,api:r,id:i})=>t==he[e].currency.address?await YI({blockchain:e,address:n,method:"balance",cache:1e4}):await YI({blockchain:e,address:t,method:"balanceOf",api:r,params:i?[n,i]:[n],cache:1e4}))({blockchain:this.blockchain,account:e,address:this.address,api:t?JL[this.blockchain][1155]:JL[this.blockchain].DEFAULT,id:t}):qL.solana.includes(this.blockchain)?await(async({blockchain:e,address:t,account:n,api:r})=>{if(t==he[e].currency.address)return Wy.from(await YI(`solana://${n}/balance`));{const e=await DL({token:t,owner:n}),r=await YI(`solana://${e}/getTokenAccountBalance`);return r?Wy.from(r.value.amount):Wy.from("0")}})({blockchain:this.blockchain,account:e,address:this.address,api:JL[this.blockchain].DEFAULT}):void 0}async allowance(e,t){return this.address==he.findByName(this.blockchain).currency.address?Wy.from(he.findByName(this.blockchain).maxInt):qL.evm.includes(this.blockchain)?await(({blockchain:e,address:t,api:n,owner:r,spender:i})=>YI({blockchain:e,address:t,api:n,method:"allowance",params:[r,i],cache:5e3}))({blockchain:this.blockchain,address:this.address,api:JL[this.blockchain].DEFAULT,owner:e,spender:t}):qL.solana.includes(this.blockchain)?Wy.from(he.findByName(this.blockchain).maxInt):void 0}async BigNumber(e){let t=await this.decimals();return mI(JL.safeAmount({amount:parseFloat(e),decimals:t}).toString(),t)}async readable(e){let t=await this.decimals(),n=yI(e.toString(),t);return n=n.replace(/\.0+$/,""),n}}JL.BigNumber=async({amount:e,blockchain:t,address:n})=>new JL({blockchain:t,address:n}).BigNumber(e),JL.readable=async({amount:e,blockchain:t,address:n})=>new JL({blockchain:t,address:n}).readable(e),JL.safeAmount=({amount:e,decimals:t})=>parseFloat(e.toFixed(t)),JL.ethereum={DEFAULT:LL,ERC20:LL,20:LL,1155:kL,WRAPPED:xL},JL.bsc={DEFAULT:LL,BEP20:LL,20:LL,1155:kL,WRAPPED:xL},JL.polygon={DEFAULT:LL,ERC20:LL,20:LL,1155:kL,WRAPPED:xL},JL.fantom={DEFAULT:LL,FTM20:LL,20:LL,1155:kL,WRAPPED:xL},JL.arbitrum={DEFAULT:LL,ERC20:LL,20:LL,1155:kL,WRAPPED:xL},JL.avalanche={DEFAULT:LL,ERC20:LL,ARC20:LL,20:LL,1155:kL,WRAPPED:xL},JL.gnosis={DEFAULT:LL,ERC20:LL,20:LL,1155:kL,WRAPPED:xL},JL.optimism={DEFAULT:LL,ERC20:LL,20:LL,1155:kL,WRAPPED:xL},JL.base={DEFAULT:LL,ERC20:LL,20:LL,1155:kL,WRAPPED:xL},JL.solana={MINT_LAYOUT:OL,METADATA_LAYOUT:RL,TRANSFER_LAYOUT:BL,METADATA_ACCOUNT:"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",TOKEN_PROGRAM:CL,TOKEN_LAYOUT:UL,ASSOCIATED_TOKEN_PROGRAM:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",findProgramAddress:DL,findAccount:async({token:e,owner:t})=>{const n=await DL({token:e,owner:t});return await YI({blockchain:"solana",address:n,api:UL,cache:1e3})},getMetaData:GL,getMetaDataPDA:HL,...YL};const XL=({assets:e,blockchain:t,options:n})=>n.only?e.filter((e=>(n.only[t]||[]).find((t=>t.toLowerCase()==e.address.toLowerCase())))):n.exclude?e.filter((e=>(n.exclude[t]||[]).find((t=>t.toLowerCase()!=e.address.toLowerCase())))):e;var KL=async e=>{void 0===e&&(e={accounts:{}});let t=Promise.all(Object.keys(e.accounts).map((t=>new Promise(((n,r)=>{const i=e.accounts[t],o=new AbortController;setTimeout((()=>o.abort()),1e4),fetch(`https://public.depay.com/accounts/${t}/${i}/assets`,{signal:o.signal}).catch((()=>{n([])})).then((e=>{if(e&&e.ok)return e.json();n([])})).then((async r=>{if(r&&r.length)return await(async({address:e,options:t,assets:n,blockchain:r})=>{if(t.only&&t.only[r]&&!t.only[r].find((e=>e.toLowerCase()==he[r].currency.address.toLowerCase())))return n;if(t.exclude&&t.exclude[r]&&t.exclude[r].find((e=>e.toLowerCase()==he[r].currency.address.toLowerCase())))return n;if(!n.find((e=>e.address.toLowerCase()==he[r].currency.address.toLowerCase()))){let t=await YI({blockchain:r,address:e,method:"balance"},{cache:3e4});n=[{name:he[r].currency.name,symbol:he[r].currency.symbol,address:he[r].currency.address,type:"NATIVE",blockchain:r,balance:t.toString()},...n]}return n})({address:i,options:e,assets:XL({assets:r,blockchain:t,options:e}).map((e=>Object.assign(e,{blockchain:t}))),blockchain:t});n([])})).then(n).catch((()=>{n([])}))}))))).then((e=>e.flat()));return t};function $L(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const ex=(e,t)=>Object.assign({},{address:e.address,symbol:e.symbol,name:e.name,decimals:e.decimals,type:e.type,blockchain:e.blockchain},{balance:t.toString()}),tx=({assets:e,asset:t})=>!!e.find((e=>e.blockchain==t.blockchain&&e.address.toLowerCase()==t.address.toLowerCase())),nx=({options:e,address:t,blockchain:n})=>!(!(e&&e.only&&e.only[n])||e.only[n].find((e=>e.toLowerCase()==t.toLowerCase())))||!!(e&&e.exclude&&e.exclude[n]&&e.exclude[n].find((e=>e.toLowerCase()==t.toLowerCase()))),rx=(e,t,n)=>{if(!e||0===e.length)return 0;let r=e.indexOf([t.blockchain,t.address.toLowerCase()].join("")),i=e.indexOf([n.blockchain,n.address.toLowerCase()].join(""));return-1!==r&&-1===i?-1:-1!==i&&-1===r?1:r{void 0===e&&(e={accounts:{},priority:[]});let t=[],n=[],r=[],i=$L([e,"optionalAccess",e=>e.priority,"optionalAccess",e=>e.map,"call",e=>e((e=>[e.blockchain,e.address.toLowerCase()].join("")))]),o=0,a=[];const s=(t,r=!0)=>{if("function"!=typeof e.drip)return;const u=[t.blockchain,t.address.toLowerCase()].join("");if(!(n.indexOf(u)>-1))if(i&&i.length&&i.indexOf(u)===o){if(n.push(u),e.drip(t),o+=1,!r)return;a.forEach((e=>s(e,!1)))}else!i||0===i.length||o>=i.length?i&&0!==i.length&&-1!==i.indexOf(u)?o>=i.length&&(n.push(u),e.drip(t)):(n.push(u),e.drip(t)):a.find((e=>e.blockchain===t.blockchain&&e.address.toLowerCase()===t.address.toLowerCase()))||(a.push(t),a.sort(((e,t)=>rx(i,e,t))))};r=r.concat((e.priority||[]).map((n=>new Promise((async(r,i)=>{try{let i=new JL(n),o=Object.assign({},n,{name:await i.name(),symbol:await i.symbol(),decimals:await i.decimals(),balance:(await i.balance(e.accounts[n.blockchain])).toString(),type:he[n.blockchain].currency.address.toLowerCase()===n.address.toLowerCase()?"NATIVE":"20"});if("0"!=o.balance){if(tx({assets:t,asset:n}))return r();t.push(o),s(o),r(o)}else r()}catch(e){r()}}))))),Promise.all(r).then((()=>{o=$L([i,"optionalAccess",e=>e.length])||0,a.forEach((e=>s(e,!1)))}));let u=[];for(var c in e.accounts)he.findByName(c).tokens.forEach((t=>{nx({options:e,address:t.address,blockchain:c})||$L([e,"optionalAccess",e=>e.priority,"optionalAccess",e=>e.find,"call",e=>e((e=>e.blockchain===c&&e.address.toLowerCase()===t.address.toLowerCase()))])||u.push(Object.assign({},t,{blockchain:c}))}));if(r=r.concat(u.map((n=>new Promise(((r,i)=>{new JL(n).balance(e.accounts[n.blockchain]).then((e=>{if(tx({assets:t,asset:n}))return r();const i=ex(n,e);"0"!=i.balance?(t.push(i),s(i),r(i)):r()})).catch((()=>{r()}))}))))),null==e.only||Object.keys(e.only).every((e=>0==e.length))){let n=await KL(e);r=r.concat(n.map((n=>new Promise(((r,i)=>{const o=new JL(n);return o.balance(e.accounts[n.blockchain]).then((async e=>{if(tx({assets:t,asset:n}))return r();const i=ex(n,e);"0"!=i.balance?(void 0===i.name&&(i.name=await o.name()),void 0===i.symbol&&(i.symbol=await o.symbol()),void 0===i.decimals&&(i.decimals=await o.decimals()),t.push(i),s(i),r(i)):r()})).catch((()=>{r()}))})))))}return await Promise.all(r),t.sort(((e,t)=>rx(i,e,t))),a.forEach((e=>s(e,!1))),t},sx=9e15,ux="0123456789abcdef",cx="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",lx="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",dx={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-sx,maxE:sx,crypto:!1},hx=!0,px="[DecimalError] Invalid argument: ",fx="[object Decimal]",yx=Math.floor,mx=Math.pow,gx=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,vx=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,bx=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,wx=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Mx=1e7,Ax=cx.length-1,Ex=lx.length-1,Tx={toStringTag:fx}; +t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;const r=n(88),i=n(104),o=n(89);function a(e,t){const[n,o]=u(t);return new r.EthereumRpcError(e,n||i.getMessageFromCode(e),o)}function s(e,t){const[n,o]=u(t);return new r.EthereumProviderError(e,n||i.getMessageFromCode(e),o)}function u(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&"string"!=typeof t)throw new Error("Must specify string message.");return[t||void 0,n]}}return[]}t.ethErrors={rpc:{parse:e=>a(o.errorCodes.rpc.parse,e),invalidRequest:e=>a(o.errorCodes.rpc.invalidRequest,e),invalidParams:e=>a(o.errorCodes.rpc.invalidParams,e),methodNotFound:e=>a(o.errorCodes.rpc.methodNotFound,e),internal:e=>a(o.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||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 a(t,e)},invalidInput:e=>a(o.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>a(o.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>a(o.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>a(o.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>a(o.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>a(o.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>s(o.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>s(o.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>s(o.errorCodes.provider.unsupportedMethod,e),disconnected:e=>s(o.errorCodes.provider.disconnected,e),chainDisconnected:e=>s(o.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:n,data:i}=e;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new r.EthereumProviderError(t,n,i)}}}},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(135),t.sha1=n(136),t.sha224=n(137),t.sha256=n(105),t.sha384=n(138),t.sha512=n(106)},function(e,t,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function l(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=n[d-3]^n[d-8]^n[d-14]^n[d-16];for(var h=0;h<80;++h){var p=~~(h/20),f=0|((t=r)<<5|t>>>27)+l(p,i,o,s)+u+n[h]+a[p];u=s,s=o,o=c(i),i=r,r=f}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function d(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)n[h]=e.readInt32BE(4*h);for(;h<80;++h)n[h]=(t=n[h-3]^n[h-8]^n[h-14]^n[h-16])<<1|t>>>31;for(var p=0;p<80;++p){var f=~~(p/20),y=c(r)+d(f,i,o,s)+u+n[p]+a[f]|0;u=s,s=o,o=l(i),i=r,r=y}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,n){var r=n(24),i=n(105),o=n(45),a=n(37).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}r(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},function(e,t,n){var r=n(24),i=n(106),o=n(45),a=n(37).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}r(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},function(e,t,n){var r=n(140),i=n(151),o=n(94);e.exports={formats:o,parse:i,stringify:r}},function(e,t,n){var r=n(141),i=n(107),o=n(94),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,u(t)?t:[t])},d=Date.prototype.toISOString,h=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f={},y=function e(t,n,o,a,s,c,d,h,y,m,g,v,b,w,M,A){for(var E,N=t,T=A,I=0,k=!1;void 0!==(T=T.get(f))&&!k;){var L=T.get(t);if(I+=1,void 0!==L){if(L===I)throw new RangeError("Cyclic object value");k=!0}void 0===T.get(f)&&(I=0)}if("function"==typeof h?N=h(n,N):N instanceof Date?N=g(N):"comma"===o&&u(N)&&(N=i.maybeMap(N,(function(e){return e instanceof Date?g(e):e}))),null===N){if(s)return d&&!w?d(n,p.encoder,M,"key",v):n;N=""}if("string"==typeof(E=N)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||i.isBuffer(N))return d?[b(w?n:d(n,p.encoder,M,"key",v))+"="+b(d(N,p.encoder,M,"value",v))]:[b(n)+"="+b(String(N))];var x,S=[];if(void 0===N)return S;if("comma"===o&&u(N))w&&d&&(N=i.maybeMap(N,d)),x=[{value:N.length>0?N.join(",")||null:void 0}];else if(u(h))x=h;else{var j=Object.keys(N);x=y?j.sort(y):j}for(var C=a&&u(N)&&1===N.length?n+"[]":n,D=0;D0?M+w:""}},function(e,t,n){var r=n(92),i=n(147),o=n(149),a=r("%TypeError%"),s=r("%WeakMap%",!0),u=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),f=i("Map.prototype.has",!0),y=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(u){if(t)return h(t,r)}else if(n)return function(e,t){var n=y(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(u){if(t)return f(t,r)}else if(n)return function(e,t){return!!y(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),l(e,r,i)):u?(t||(t=new u),p(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=y(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},function(e,t,n){var r="undefined"!=typeof Symbol&&Symbol,i=n(143);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},function(e,t,n){e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){var r={foo:{}},i=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof i)}},function(e,t,n){var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError(r+t);for(var n,a=i.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,a.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(i.call(arguments)))},u=Math.max(0,t.length-a.length),c=[],l=0;l-1?i(n):n}},function(e,t,n){var r=n(93),i=n(92),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(r,a,arguments);if(u&&c){var n=u(t,"length");n.configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var d=function(){return s(r,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,M=String.prototype.toLowerCase,A=RegExp.prototype.test,E=Array.prototype.concat,N=Array.prototype.join,T=Array.prototype.slice,I=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,L=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function O(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||A.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-I(-e):I(e);if(r!==e){var i=String(r),o=v.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var z=n(150),_=z.custom,P=Q(_)?_:null;function B(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function R(e){return b.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==V(e)||j&&"object"==typeof e&&j in e)}function W(e){return!("[object RegExp]"!==V(e)||j&&"object"==typeof e&&j in e)}function Q(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(F(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!F(s,"customInspect")||s.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(F(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return e(v.call(t,0,n.maxStringLength),n)+i}return B(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",n)}(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return y?O(t,w):w}if("bigint"==typeof t){var A=String(t)+"n";return y?O(t,A):A}var I=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=I&&I>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var L=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=N.call(Array(e.indent+1)," ")}return{base:n,prev:N.call(Array(t+1),n)}}(s,r);if(void 0===i)i=[];else if(H(i,t)>=0)return"[Circular]";function _(t,n,o){if(n&&(i=T.call(i)).push(n),o){var a={depth:s.depth};return F(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t&&!W(t)){var Y=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),$=K(t,_);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+($.length>0?" { "+N.call($,", ")+" }":"")}if(Q(t)){var ee=S?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||S?ee:q(ee)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var te="<"+M.call(String(t.nodeName)),ne=t.attributes||[],re=0;re"}if(U(t)){if(0===t.length)return"[]";var ie=K(t,_);return L&&!function(e){for(var t=0;t=0)return!1;return!0}(ie)?"["+X(ie,L)+"]":"[ "+N.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==V(e)||j&&"object"==typeof e&&j in e)}(t)){var oe=K(t,_);return"cause"in Error.prototype||!("cause"in t)||C.call(t,"cause")?0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+N.call(oe,", ")+" }":"{ ["+String(t)+"] "+N.call(E.call("[cause]: "+_(t.cause),oe),", ")+" }"}if("object"==typeof t&&u){if(P&&"function"==typeof t[P]&&z)return z(t,{depth:I-r});if("symbol"!==u&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return a&&a.call(t,(function(e,n){ae.push(_(n,t,!0)+" => "+_(e,t))})),J("Map",o.call(t),ae,L)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return l&&l.call(t,(function(e){se.push(_(e,t))})),J("Set",c.call(t),se,L)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return!("[object Number]"!==V(e)||j&&"object"==typeof e&&j in e)}(t))return q(_(Number(t)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}(t))return q(_(k.call(t)));if(function(e){return!("[object Boolean]"!==V(e)||j&&"object"==typeof e&&j in e)}(t))return q(f.call(t));if(function(e){return!("[object String]"!==V(e)||j&&"object"==typeof e&&j in e)}(t))return q(_(String(t)));if(!function(e){return!("[object Date]"!==V(e)||j&&"object"==typeof e&&j in e)}(t)&&!W(t)){var ue=K(t,_),ce=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",de=!ce&&j&&Object(t)===t&&j in t?v.call(V(t),8,-1):le?"Object":"",he=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||le?"["+N.call(E.call([],de||[],le||[]),": ")+"] ":"");return 0===ue.length?he+"{}":L?he+"{"+X(ue,L)+"}":he+"{ "+N.call(ue,", ")+" }"}return String(t)};var Y=Object.prototype.hasOwnProperty||function(e){return e in this};function F(e,t){return Y.call(e,t)}function V(e){return y.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,c={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,h=l.split(t.delimiter,d),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(m=o(m)?[m]:m),i.call(c,y)?c[y]=r.combine(c[y],m):c[y]=m}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},h=Object.keys(l),p=0;p{if(void 0!==o[n])return["bytes32",null==s?"0x0000000000000000000000000000000000000000000000000000000000000000":r.keccak(this.encodeData(n,s,o,a))];if(void 0===s)throw new Error(`missing value for field ${e} of type ${n}`);if("bytes"===n)return["bytes32",r.keccak(s)];if("string"===n)return"string"==typeof s&&(s=t.from(s,"utf8")),["bytes32",r.keccak(s)];if(n.lastIndexOf("]")===n.length-1){const t=n.slice(0,n.lastIndexOf("[")),o=s.map((n=>c(e,t,n)));return["bytes32",r.keccak(i.rawEncode(o.map((([e])=>e)),o.map((([,e])=>e))))]}return[n,s]};for(const t of o[e]){const[e,r]=c(t.name,t.type,n[t.name]);s.push(e),u.push(r)}}else for(const i of o[e]){let e=n[i.name];if(void 0!==e)if("bytes"===i.type)s.push("bytes32"),e=r.keccak(e),u.push(e);else if("string"===i.type)s.push("bytes32"),"string"==typeof e&&(e=t.from(e,"utf8")),e=r.keccak(e),u.push(e);else if(void 0!==o[i.type])s.push("bytes32"),e=r.keccak(this.encodeData(i.type,e,o,a)),u.push(e);else{if(i.type.lastIndexOf("]")===i.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");s.push(i.type),u.push(e)}}return i.rawEncode(s,u)},encodeType(e,t){let n="",r=this.findTypeDependencies(e,t).filter((t=>t!==e));r=[e].concat(r.sort());for(const e of r){if(!t[e])throw new Error("No type definition specified: "+e);n+=e+"("+t[e].map((({name:e,type:t})=>t+" "+e)).join(",")+")"}return n},findTypeDependencies(e,t,n=[]){if(e=e.match(/^\w*/)[0],n.includes(e)||void 0===t[e])return n;n.push(e);for(const r of t[e])for(const e of this.findTypeDependencies(r.type,t,n))!n.includes(e)&&n.push(e);return n},hashStruct(e,t,n,i=!0){return r.keccak(this.encodeData(e,t,n,i))},hashType(e,t){return r.keccak(this.encodeType(e,t))},sanitizeData(e){const t={};for(const n in o.properties)e[n]&&(t[n]=e[n]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,n=!0){const i=this.sanitizeData(e),o=[t.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",i.domain,i.types,n)),"EIP712Domain"!==i.primaryType&&o.push(this.hashStruct(i.primaryType,i.message,i.types,n)),r.keccak(t.concat(o))}};e.exports={TYPED_MESSAGE_SCHEMA:o,TypedDataUtils:a,hashForSignTypedDataLegacy:function(e){return function(e){const t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;const n=e.map((function(e){return"bytes"===e.type?r.toBuffer(e.value):e.value})),o=e.map((function(e){return e.type})),a=e.map((function(e){if(!e.name)throw t;return e.type+" "+e.name}));return i.soliditySHA3(["bytes32","bytes32"],[i.soliditySHA3(new Array(e.length).fill("string"),a),i.soliditySHA3(o,n)])}(e.data)},hashForSignTypedData_v3:function(e){return a.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return a.hash(e.data)}}}).call(this,n(19).Buffer)},function(e,t,n){e.exports=n(154)(n(165))},function(e,t,n){const r=n(155),i=n(164);e.exports=function(e){const t=r(e),n=i(e);return function(e,r){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,r);case"keccak256":return new t(1088,512,null,256,r);case"keccak384":return new t(832,768,null,384,r);case"keccak512":return new t(576,1024,null,512,r);case"sha3-224":return new t(1152,448,6,224,r);case"sha3-256":return new t(1088,512,6,256,r);case"sha3-384":return new t(832,768,6,384,r);case"sha3-512":return new t(576,1024,6,512,r);case"shake128":return new n(1344,256,31,r);case"shake256":return new n(1088,512,31,r);default:throw new Error("Invald algorithm: "+e)}}}},function(e,t,n){(function(t){const{Transform:r}=n(110);e.exports=e=>class n extends r{constructor(t,n,r,i,o){super(o),this._rate=t,this._capacity=n,this._delimitedSuffix=r,this._hashBitLength=i,this._options=o,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let r=null;try{this.update(e,t)}catch(e){r=e}n(r)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,n){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return t.isBuffer(e)||(e=t.from(e,n)),this._state.absorb(e),this}digest(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new n(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}}).call(this,n(19).Buffer)},function(e,t){},function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,n,r,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=i,r=a,s.prototype.copy.call(t,n,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&function(e,t){for(var n=0;n0,(function(e){r||(r=e),e&&a.forEach(c),o||(a.forEach(c),i(r))}))}));return t.reduce(l)}},function(e,t,n){(function(t){const{Transform:r}=n(110);e.exports=e=>class n extends r{constructor(t,n,r,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=r,this._options=i,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let r=null;try{this.update(e,t)}catch(e){r=e}n(r)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,n){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return t.isBuffer(e)||(e=t.from(e,n)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(e);return void 0!==t&&(n=n.toString(t)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new n(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}}).call(this,n(19).Buffer)},function(e,t,n){(function(t){const r=n(166);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(e){for(let t=0;t>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(r.p1600(this.state),this.count=0);return n},i.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i}).call(this,n(19).Buffer)},function(e,t){const n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49];let p=d^(o<<1|a>>>31),f=h^(a<<1|o>>>31);const y=e[0]^p,m=e[1]^f,g=e[10]^p,v=e[11]^f,b=e[20]^p,w=e[21]^f,M=e[30]^p,A=e[31]^f,E=e[40]^p,N=e[41]^f;p=r^(s<<1|u>>>31),f=i^(u<<1|s>>>31);const T=e[2]^p,I=e[3]^f,k=e[12]^p,L=e[13]^f,x=e[22]^p,S=e[23]^f,j=e[32]^p,C=e[33]^f,D=e[42]^p,O=e[43]^f;p=o^(c<<1|l>>>31),f=a^(l<<1|c>>>31);const z=e[4]^p,_=e[5]^f,P=e[14]^p,B=e[15]^f,R=e[24]^p,U=e[25]^f,W=e[34]^p,Q=e[35]^f,Y=e[44]^p,F=e[45]^f;p=s^(d<<1|h>>>31),f=u^(h<<1|d>>>31);const V=e[6]^p,H=e[7]^f,G=e[16]^p,q=e[17]^f,Z=e[26]^p,J=e[27]^f,X=e[36]^p,K=e[37]^f,$=e[46]^p,ee=e[47]^f;p=c^(r<<1|i>>>31),f=l^(i<<1|r>>>31);const te=e[8]^p,ne=e[9]^f,re=e[18]^p,ie=e[19]^f,oe=e[28]^p,ae=e[29]^f,se=e[38]^p,ue=e[39]^f,ce=e[48]^p,le=e[49]^f,de=y,he=m,pe=v<<4|g>>>28,fe=g<<4|v>>>28,ye=b<<3|w>>>29,me=w<<3|b>>>29,ge=A<<9|M>>>23,ve=M<<9|A>>>23,be=E<<18|N>>>14,we=N<<18|E>>>14,Me=T<<1|I>>>31,Ae=I<<1|T>>>31,Ee=L<<12|k>>>20,Ne=k<<12|L>>>20,Te=x<<10|S>>>22,Ie=S<<10|x>>>22,ke=C<<13|j>>>19,Le=j<<13|C>>>19,xe=D<<2|O>>>30,Se=O<<2|D>>>30,je=_<<30|z>>>2,Ce=z<<30|_>>>2,De=P<<6|B>>>26,Oe=B<<6|P>>>26,ze=U<<11|R>>>21,_e=R<<11|U>>>21,Pe=W<<15|Q>>>17,Be=Q<<15|W>>>17,Re=F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[38]=Ze^~Xe&pe,e[39]=Je^~Ke&fe,e[48]=xe^~je&Ye,e[49]=Se^~Ce&Fe,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},function(e,t,n){(function(t){const r=n(109),i=n(66);function o(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function a(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function s(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function u(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function c(e){var t=typeof e;if("string"===t)return r.isHexString(e)?new i(r.stripHexPrefix(e),16):new i(e,10);if("number"===t)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function l(e,n){var o,d,h,p;if("address"===e)return l("uint160",c(n));if("bool"===e)return l("uint8",n?1:0);if("string"===e)return l("bytes",new t(n,"utf8"));if(function(e){return e.lastIndexOf("]")===e.length-1}(e)){if(void 0===n.length)throw new Error("Not an array?");if("dynamic"!==(o=u(e))&&0!==o&&n.length>o)throw new Error("Elements exceed array size: "+o);for(p in h=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof n&&(n=JSON.parse(n)),n)h.push(l(e,n[p]));if("dynamic"===o){var f=l("uint256",n.length);h.unshift(f)}return t.concat(h)}if("bytes"===e)return n=new t(n),h=t.concat([l("uint256",n.length),n]),n.length%32!=0&&(h=t.concat([h,r.zeros(32-n.length%32)])),h;if(e.startsWith("bytes")){if((o=a(e))<1||o>32)throw new Error("Invalid bytes width: "+o);return r.setLengthRight(n,32)}if(e.startsWith("uint")){if((o=a(e))%8||o<8||o>256)throw new Error("Invalid uint width: "+o);if((d=c(n)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+d.bitLength());if(d<0)throw new Error("Supplied uint is negative");return d.toArrayLike(t,"be",32)}if(e.startsWith("int")){if((o=a(e))%8||o<8||o>256)throw new Error("Invalid int width: "+o);if((d=c(n)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+d.bitLength());return d.toTwos(256).toArrayLike(t,"be",32)}if(e.startsWith("ufixed")){if(o=s(e),(d=c(n))<0)throw new Error("Supplied ufixed is negative");return l("uint256",d.mul(new i(2).pow(new i(o[1]))))}if(e.startsWith("fixed"))return o=s(e),l("int256",c(n).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+e)}function d(e){return"string"===e||"bytes"===e||"dynamic"===u(e)}function h(e,n){if(e.length!==n.length)throw new Error("Number of types are not matching the values");for(var i,s,u=[],l=0;l32)throw new Error("Invalid bytes width: "+i);u.push(r.setLengthRight(h,i))}else if(d.startsWith("uint")){if((i=a(d))%8||i<8||i>256)throw new Error("Invalid uint width: "+i);if((s=c(h)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+s.bitLength());u.push(s.toArrayLike(t,"be",i/8))}else{if(!d.startsWith("int"))throw new Error("Unsupported or invalid type: "+d);if((i=a(d))%8||i<8||i>256)throw new Error("Invalid int width: "+i);if((s=c(h)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+s.bitLength());u.push(s.toTwos(i).toArrayLike(t,"be",i/8))}}return t.concat(u)}e.exports={rawEncode:function(e,n){var r=[],i=[],a=32*e.length;for(var s in e){var u=o(e[s]),c=l(u,n[s]);d(u)?(r.push(l("uint256",a)),i.push(c),a+=c.length):r.push(c)}return t.concat(r.concat(i))},solidityPack:h,soliditySHA3:function(e,t){return r.keccak(h(e,t))}}}).call(this,n(19).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.filterFromParam=t.FilterPolyfill=void 0;const r=n(67),i=n(38),o={jsonrpc:"2.0",id:0};function a(e){return{fromBlock:u(e.fromBlock),toBlock:u(e.toBlock),addresses:void 0===e.address?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}function s(e){const t={fromBlock:c(e.fromBlock),toBlock:c(e.toBlock),topics:e.topics};return null!==e.addresses&&(t.address=e.addresses),t}function u(e){if(void 0===e||"latest"===e||"pending"===e)return"latest";if("earliest"===e)return(0,r.IntNumber)(0);if((0,i.isHexString)(e))return(0,i.intNumberFromHexString)(e);throw new Error("Invalid block option: "+String(e))}function c(e){return"latest"===e?e:(0,i.hexStringFromIntNumber)(e)}function l(){return Object.assign(Object.assign({},o),{error:{code:-32e3,message:"filter not found"}})}function d(){return Object.assign(Object.assign({},o),{result:[]})}t.FilterPolyfill=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,r.IntNumber)(1),this.provider=e}async newFilter(e){const t=a(e),n=this.makeFilterId(),r=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",r),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,i.hexStringFromIntNumber)(n)}async newBlockFilter(){const e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,i.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){const e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,i.hexStringFromIntNumber)(e)}uninstallFilter(e){const t=(0,i.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){const t=(0,i.intNumberFromHexString)(e);return this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t)?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(l())}async getFilterLogs(e){const t=(0,i.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[s(n)]})):l()}makeFilterId(){return(0,r.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise(((t,n)=>{this.provider.sendAsync(e,((e,r)=>e?n(e):Array.isArray(r)||null==r?n(new Error("unexpected response received: "+JSON.stringify(r))):void t(r)))}))}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){const t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return l();const a=await this.getCurrentBlockHeight(),u="latest"===t.toBlock?a:t.toBlock;if(n>a)return d();if(n>t.toBlock)return d();console.log(`Fetching logs from ${n} to ${u} for filter ${e}`);const c=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[s(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:u}))]}));if(Array.isArray(c.result)){const t=c.result.map((e=>(0,i.intNumberFromHexString)(e.blockNumber||"0x0"))),o=Math.max(...t);if(o&&o>n){const t=(0,r.IntNumber)(o+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${t}`),this.cursors.set(e,t)}}return c}async getBlockFilterChanges(e){const t=this.cursors.get(e);if(!t)return l();const n=await this.getCurrentBlockHeight();if(t>n)return d();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);const a=(await Promise.all((0,i.range)(t,n+1).map((e=>this.getBlockHashByNumber((0,r.IntNumber)(e)))))).filter((e=>!!e)),s=(0,r.IntNumber)(t+a.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${s}`),this.cursors.set(e,s),Object.assign(Object.assign({},o),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(d())}async setInitialCursorPosition(e,t){const n=await this.getCurrentBlockHeight(),r="number"==typeof t&&t>n?t:n;return this.cursors.set(e,r),r}setFilterTimeout(e){const t=this.timeouts.get(e);t&&window.clearTimeout(t);const n=window.setTimeout((()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)}),3e5);this.timeouts.set(e,n)}async getCurrentBlockHeight(){const{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_blockNumber",params:[]}));return(0,i.intNumberFromHexString)((0,i.ensureHexString)(e))}async getBlockHashByNumber(e){const t=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getBlockByNumber",params:[(0,i.hexStringFromIntNumber)(e),!1]}));return t.result&&"string"==typeof t.result.hash?(0,i.ensureHexString)(t.result.hash):null}},t.filterFromParam=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRPCMethod=void 0,function(e){e.eth_accounts="eth_accounts",e.eth_coinbase="eth_coinbase",e.net_version="net_version",e.eth_chainId="eth_chainId",e.eth_uninstallFilter="eth_uninstallFilter",e.eth_requestAccounts="eth_requestAccounts",e.eth_sign="eth_sign",e.eth_ecRecover="eth_ecRecover",e.personal_sign="personal_sign",e.personal_ecRecover="personal_ecRecover",e.eth_signTransaction="eth_signTransaction",e.eth_sendRawTransaction="eth_sendRawTransaction",e.eth_sendTransaction="eth_sendTransaction",e.eth_signTypedData_v1="eth_signTypedData_v1",e.eth_signTypedData_v2="eth_signTypedData_v2",e.eth_signTypedData_v3="eth_signTypedData_v3",e.eth_signTypedData_v4="eth_signTypedData_v4",e.eth_signTypedData="eth_signTypedData",e.cbWallet_arbitrary="walletlink_arbitrary",e.wallet_addEthereumChain="wallet_addEthereumChain",e.wallet_switchEthereumChain="wallet_switchEthereumChain",e.wallet_watchAsset="wallet_watchAsset",e.eth_subscribe="eth_subscribe",e.eth_unsubscribe="eth_unsubscribe",e.eth_newFilter="eth_newFilter",e.eth_newBlockFilter="eth_newBlockFilter",e.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",e.eth_getFilterChanges="eth_getFilterChanges",e.eth_getFilterLogs="eth_getFilterLogs"}(t.JSONRPCMethod||(t.JSONRPCMethod={}))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionManager=void 0;const r=n(171),i=n(179),o=()=>{};t.SubscriptionManager=class{constructor(e){const t=new r({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:o}=i({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=o}async handleRequest(e){const t={};return await this.subscriptionMiddleware(e,t,o,o),t}destroy(){this.subscriptionMiddleware.destroy()}}},function(e,t,n){const r=n(118),i=n(172);function o(e,t){return new Promise((n=>{const r=setTimeout(n,e);r.unref&&t&&r.unref()}))}e.exports=class extends i{constructor(e={}){if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");const t=e.pollingInterval||2e4,n=e.retryTimeout||t/10,r=void 0===e.keepEventLoopActive||e.keepEventLoopActive,i=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:t},e)),this._provider=e.provider,this._pollingInterval=t,this._retryTimeout=n,this._keepEventLoopActive=r,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch((e=>this.emit("error",e)))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await o(this._pollingInterval,!this._keepEventLoopActive)}catch(e){const t=new Error("PollingBlockTracker - encountered an error while attempting to update latest block:\n"+e.stack);try{this.emit("error",t)}catch(e){console.error(t)}await o(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){const e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){const e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);const t=await r((t=>this._provider.sendAsync(e,t)))();if(t.error)throw new Error("PollingBlockTracker - encountered error fetching block:\n"+t.error);return t.result}}},function(e,t,n){n(119),n(118);const r=n(175),i=(e,t)=>e+t,o=["sync","latest"];function a(e){return Number.parseInt(e,16)}e.exports=class extends r{constructor(e={}){super(),this._blockResetDuration=e.blockResetDuration||2e4,this._blockResetTimeout,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise((e=>this.once("latest",e)))}removeAllListeners(e){e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e,t){o.includes(e)&&this._maybeStart()}_onRemoveListener(e,t){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return o.map((e=>this.listenerCount(e))).reduce(i)}_newPotentialLatest(e){const t=this._currentBlock;t&&a(e)<=a(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){const t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}},function(e,t){e.exports=function(){for(var e={},t=0;t{throw e}))}}function c(e,t){for(var n=new Array(t),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)u(s,this,t);else{var l=s.length,d=c(s,l);for(n=0;n=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),f(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=l(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return m(t)?e.stylize(""+t,"number"):f(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),A(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(E(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(M(n))return e.stylize(Date.prototype.toString.call(n),"date");if(A(n))return d(n)}var c,w="",N=!1,T=["{","}"];return p(n)&&(N=!0,T=["[","]"]),E(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),b(n)&&(w=" "+RegExp.prototype.toString.call(n)),M(n)&&(w=" "+Date.prototype.toUTCString.call(n)),A(n)&&(w=" "+d(n)),0!==a.length||N&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=N?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,w,T)):T[0]+w+T[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),L(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function y(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===N(e)}function w(e){return"object"==typeof e&&null!==e}function M(e){return w(e)&&"[object Date]"===N(e)}function A(e){return w(e)&&("[object Error]"===N(e)||e instanceof Error)}function E(e){return"function"==typeof e}function N(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(v(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=f,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.isObject=w,t.isDate=M,t.isError=A,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(177);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",k(),t.format.apply(t,arguments))},t.inherits=n(178),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var x="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function S(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!=typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o{e.removeListener("sync",r.update)},update:async({oldBlock:e,newBlock:r})=>{const i=r,o=u(e);(await c({provider:t,fromBlock:o,toBlock:i})).map(l).filter((e=>null!==e)).forEach((e=>{y(n,e)}))}};return e.on("sync",r.update),r}({subId:a});break;case"logs":const n=r.params[1];p=function({subId:e,filter:t}){return t.on("update",(t=>y(e,t))),{type:o,destroy:async()=>await d.uninstallFilter(t.idHex)}}({subId:a,filter:await d.newLogFilter(n)});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${o}"`)}return n[a]=p,void(i.result=a)})),eth_unsubscribe:i((async function(e,t){if(h)throw new Error("SubscriptionManager - attempting to use after destroying");const r=e.params[0],i=n[r];i?(delete n[r],await i.destroy(),t.result=!0):t.result=!1}))});return f.destroy=function(){p.removeAllListeners();for(const e in n)n[e].destroy(),delete n[e];h=!0},{events:p,middleware:f};function y(e,t){p.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:t}})}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createIdRemapMiddleware=void 0;const r=n(121);t.createIdRemapMiddleware=function(){return(e,t,n,i)=>{const o=e.id,a=r.getUniqueId();e.id=a,t.id=a,n((n=>{e.id=o,t.id=o,n()}))}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createAsyncMiddleware=void 0,t.createAsyncMiddleware=function(e){return async(t,n,r,i)=>{let o;const a=new Promise((e=>{o=e}));let s=null,u=!1;const c=async()=>{u=!0,r((e=>{s=e,o()})),await a};try{await e(t,n,c),u?(await a,s(null)):i(null)}catch(e){s?s(e):i(e)}}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createScaffoldMiddleware=void 0,t.createScaffoldMiddleware=function(e){return(t,n,r,i)=>{const o=e[t.method];return void 0===o?r():"function"==typeof o?o(t,n,r,i):(n.result=o,i())}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const r=n(96);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});const i=n(123);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const o=n(184);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});const a=n(97);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;const r=n(96),i=n(123),o=n(97);function a(e,t){const[n,o]=u(t);return new r.EthereumRpcError(e,n||i.getMessageFromCode(e),o)}function s(e,t){const[n,o]=u(t);return new r.EthereumProviderError(e,n||i.getMessageFromCode(e),o)}function u(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&"string"!=typeof t)throw new Error("Must specify string message.");return[t||void 0,n]}}return[]}t.ethErrors={rpc:{parse:e=>a(o.errorCodes.rpc.parse,e),invalidRequest:e=>a(o.errorCodes.rpc.invalidRequest,e),invalidParams:e=>a(o.errorCodes.rpc.invalidParams,e),methodNotFound:e=>a(o.errorCodes.rpc.methodNotFound,e),internal:e=>a(o.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||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 a(t,e)},invalidInput:e=>a(o.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>a(o.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>a(o.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>a(o.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>a(o.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>a(o.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>s(o.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>s(o.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>s(o.errorCodes.provider.unsupportedMethod,e),disconnected:e=>s(o.errorCodes.provider.disconnected,e),chainDisconnected:e=>s(o.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:n,data:i}=e;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new r.EthereumProviderError(t,n,i)}}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMiddleware=void 0;const r=n(122);t.mergeMiddleware=function(e){const t=new r.JsonRpcEngine;return e.forEach((e=>t.push(e))),t.asMiddleware()}},function(e,t,n){const r=n(233).Mutex,{createAsyncMiddleware:i,createScaffoldMiddleware:o}=n(120),a=n(187),s=n(190),u=n(191),{intToHex:c,hexToInt:l}=n(59);function d(e){return h((async(...t)=>{const n=await e(...t);return c(n.id)}))}function h(e){return i((async(t,n)=>{const r=await e.apply(null,t.params);n.result=r}))}function p(e,t){const n=[];for(let t in e)n.push(e[t]);return n}e.exports=function({blockTracker:e,provider:t}){let n=0,i={};const f=new r,y=function({mutex:e}){return t=>async(n,r,i,o)=>{(await e.acquire())(),t(n,r,i,o)}}({mutex:f}),m=o({eth_newFilter:y(d(v)),eth_newBlockFilter:y(d(b)),eth_newPendingTransactionFilter:y(d(w)),eth_uninstallFilter:y(h(E)),eth_getFilterChanges:y(h(M)),eth_getFilterLogs:y(h(A))}),g=async({oldBlock:e,newBlock:t})=>{if(0===i.length)return;const n=await f.acquire();try{await Promise.all(p(i).map((async n=>{try{await n.update({oldBlock:e,newBlock:t})}catch(e){console.error(e)}})))}catch(e){console.error(e)}n()};return m.newLogFilter=v,m.newBlockFilter=b,m.newPendingTransactionFilter=w,m.uninstallFilter=E,m.getFilterChanges=M,m.getFilterLogs=A,m.destroy=()=>{!async function(){const e=p(i).length;i={},T({prevFilterCount:e,newFilterCount:0})}()},m;async function v(e){const n=new a({provider:t,params:e});return await N(n),n}async function b(){const e=new s({provider:t});return await N(e),e}async function w(){const e=new u({provider:t});return await N(e),e}async function M(e){const t=l(e),n=i[t];if(!n)throw new Error(`No filter for index "${t}"`);return n.getChangesAndClear()}async function A(e){const t=l(e),n=i[t];if(!n)throw new Error(`No filter for index "${t}"`);let r=[];return"log"===n.type&&(r=n.getAllResults()),r}async function E(e){const t=l(e),n=i[t],r=Boolean(n);return r&&await async function(e){const t=p(i).length;delete i[e];T({prevFilterCount:t,newFilterCount:p(i).length})}(t),r}async function N(t){const r=p(i).length,o=await e.getLatestBlock();return await t.initialize({currentBlock:o}),n++,i[n]=t,t.id=n,t.idHex=c(n),T({prevFilterCount:r,newFilterCount:p(i).length}),n}function T({prevFilterCount:t,newFilterCount:n}){0===t&&n>0?e.on("sync",g):t>0&&0===n&&e.removeListener("sync",g)}}},function(e,t,n){const r=n(119),i=n(188),o=n(189),{bnToHex:a,hexToInt:s,incrementHexInt:u,minBlockRef:c,blockRefIsNumber:l}=n(59);e.exports=class extends o{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new r(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map((e=>e.toLowerCase())))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),"earliest"===t&&(t="0x0"),this.params.fromBlock=t;const n=c(this.params.toBlock,e),r=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(r);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){const n=t;let r;r=e?u(e):t;const i=Object.assign({},this.params,{fromBlock:r,toBlock:n}),o=(await this._fetchLogs(i)).filter((e=>this.matchLog(e)));this.addResults(o)}async _fetchLogs(e){return await i((t=>this.ethQuery.getLogs(e,t)))()}matchLog(e){if(s(this.params.fromBlock)>=s(e.blockNumber))return!1;if(l(this.params.toBlock)&&s(this.params.toBlock)<=s(e.blockNumber))return!1;const t=e.address&&e.address.toLowerCase();return!(this.params.address&&t&&!this.params.address.includes(t))&&this.params.topics.every(((t,n)=>{let r=e.topics[n];if(!r)return!1;r=r.toLowerCase();let i=Array.isArray(t)?t:[t];return!!i.includes(null)||(i=i.map((e=>e.toLowerCase())),i.includes(r))}))}}},function(e,t,n){const r=(e,t,n,r)=>function(...i){return new t.promiseModule(((o,a)=>{t.multiArgs?i.push(((...e)=>{t.errorFirst?e[0]?a(e):(e.shift(),o(e)):o(e)})):t.errorFirst?i.push(((e,t)=>{e?a(e):o(t)})):i.push(o);const s=this===n?r:this;Reflect.apply(e,s,i)}))},i=new WeakMap;e.exports=(e,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};const n=typeof e;if(null===e||"object"!==n&&"function"!==n)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":n}\``);const o=new WeakMap,a=new Proxy(e,{apply(e,n,i){const s=o.get(e);if(s)return Reflect.apply(s,n,i);const u=t.excludeMain?e:r(e,t,a,e);return o.set(e,u),Reflect.apply(u,n,i)},get(e,n){const s=e[n];if(!((e,n)=>{let r=i.get(e);if(r||(r={},i.set(e,r)),n in r)return r[n];const o=e=>"string"==typeof e||"symbol"==typeof n?n===e:e.test(n),a=Reflect.getOwnPropertyDescriptor(e,n),s=void 0===a||a.writable||a.configurable,u=(t.include?t.include.some(o):!t.exclude.some(o))&&s;return r[n]=u,u})(e,n)||s===Function.prototype[n])return s;const u=o.get(s);if(u)return u;if("function"==typeof s){const n=r(s,t,a,e);return o.set(s,n),n}return s}});return a}},function(e,t,n){const r=n(98);e.exports=class extends r{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}}},function(e,t,n){const r=n(98),i=n(99),{incrementHexInt:o}=n(59);e.exports=class extends r{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){const n=t,r=o(e),a=(await i({provider:this.provider,fromBlock:r,toBlock:n})).map((e=>e.hash));this.addResults(a)}}},function(e,t,n){const r=n(98),i=n(99),{incrementHexInt:o}=n(59);e.exports=class extends r{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){const t=e,n=o(e),r=await i({provider:this.provider,fromBlock:n,toBlock:t}),a=[];for(const e of r)a.push(...e.transactions);this.addResults(a)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKUI=void 0;const r=n(193),i=n(215),o=n(217);t.WalletSDKUI=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new i.Snackbar({darkMode:e.darkMode}),this.linkFlow=new r.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,o.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:{message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return null!==(e=this.standalone)&&void 0!==e&&e}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkFlow=void 0;const r=n(5),i=n(70),o=n(194);t.LinkFlow=class{constructor(e){this.extensionUI$=new i.BehaviorSubject({}),this.subscriptions=new i.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe((e=>{this.isConnected!==e&&(this.isConnected=e,this.render())}))),this.subscriptions.add(this.chainId$.subscribe((e=>{this.chainId!==e&&(this.chainId=e,this.render())})))}detach(){var e;this.root&&(this.subscriptions.unsubscribe(),(0,r.render)(null,this.root),null===(e=this.root.parentElement)||void 0===e||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;const e=this.extensionUI$.subscribe((()=>{this.root&&(0,r.render)((0,r.h)(o.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}));this.subscriptions.add(e)}}},function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectDialog=void 0;const i=r(n(69)),o=n(5),a=n(60),s=n(195),u=n(209),c=r(n(214));t.ConnectDialog=e=>{const{isOpen:t,darkMode:n}=e,[r,l]=(0,a.useState)(!t),[d,h]=(0,a.useState)(!t);(0,a.useEffect)((()=>{const e=[window.setTimeout((()=>{h(!t)}),10)];return t?l(!1):e.push(window.setTimeout((()=>{l(!0)}),360)),()=>{e.forEach(window.clearTimeout)}}),[e.isOpen]);const p=n?"dark":"light";return(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-container",r&&"-cbwsdk-connect-dialog-container-hidden")},(0,o.h)("style",null,c.default),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-backdrop",p,d&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,o.h)("div",{class:"-cbwsdk-connect-dialog"},(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-box",d&&"-cbwsdk-connect-dialog-box-hidden")},e.connectDisabled?null:(0,o.h)(s.ConnectContent,{theme:p,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,o.h)(u.TryExtensionContent,{theme:p}))))}},function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseAppSteps=t.CoinbaseWalletSteps=t.ConnectItem=t.ConnectContent=void 0;const i=r(n(69)),o=n(5),a=n(60),s=n(38),u=n(196),c=n(197),l=r(n(198)),d=r(n(199)),h=n(200),p=r(n(201)),f=r(n(202)),y=n(203),m=n(204),g=n(206),v=r(n(208)),b={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:d.default,steps:E},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:l.default,steps:N}},w=e=>"coinbase-app"===e?p.default:f.default,M=e=>"light"===e?"#FFFFFF":"#0A0B0D";function A({title:e,description:t,icon:n,selected:r,theme:a,onClick:s}){return(0,o.h)("div",{onClick:s,class:(0,i.default)("-cbwsdk-connect-item",a,{selected:r})},(0,o.h)("div",null,(0,o.h)("img",{src:n,alt:e})),(0,o.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,o.h)("h3",{class:"-cbwsdk-connect-item-title"},e),(0,o.h)("p",{class:"-cbwsdk-connect-item-description"},t)))}function E({theme:e}){return(0,o.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"Scan")," "),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,o.h)(h.QRCodeIcon,{fill:M(e)})))))}function N({theme:e}){return(0,o.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"More")),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,o.h)(y.StatusDotIcon,{fill:M(e)})),(0,o.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,o.h)("strong",null,"Scan")),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,o.h)(h.QRCodeIcon,{fill:M(e)})))))}t.ConnectContent=function(e){const{theme:t}=e,[n,r]=(0,a.useState)("coinbase-wallet-app"),l=(0,a.useCallback)((e=>{r(e)}),[]),d=(0,s.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId);if(!n)return null;const h=b[n].steps,p="coinbase-app"===n;return(0,o.h)("div",{"data-testid":"connect-content",class:(0,i.default)("-cbwsdk-connect-content",t)},(0,o.h)("style",null,v.default),(0,o.h)("div",{class:"-cbwsdk-connect-content-header"},(0,o.h)("h2",{class:(0,i.default)("-cbwsdk-connect-content-heading",t)},"Scan to connect with one of our mobile apps"),e.onCancel&&(0,o.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:e.onCancel},(0,o.h)(c.CloseIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,o.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,o.h)("div",null,Object.entries(b).map((([e,r])=>(0,o.h)(A,{key:e,title:r.title,description:r.description,icon:r.icon,selected:n===e,onClick:()=>l(e),theme:t})))),p&&(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-content-update-app",t)},"Don’t see a ",(0,o.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,o.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,o.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,o.h)(m.QRCode,{content:d,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:w(n),width:25,height:25}}),(0,o.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:u.LIB_VERSION}),(0,o.h)("input",{type:"hidden",value:d})),(0,o.h)(h,{theme:t}),!e.isConnected&&(0,o.h)("div",{"data-testid":"connecting-spinner",class:(0,i.default)("-cbwsdk-connect-content-qr-connecting",t)},(0,o.h)(g.Spinner,{size:36,color:"dark"===t?"#FFF":"#000"}),(0,o.h)("p",null,"Connecting...")))))},t.ConnectItem=A,t.CoinbaseWalletSteps=E,t.CoinbaseAppSteps=N},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION="3.6.4"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=void 0;const r=n(5);t.CloseIcon=function(e){return(0,r.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLT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0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.QRCodeIcon=void 0;const r=n(5);t.QRCodeIcon=function(e){return(0,r.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,r.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,r.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,r.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,r.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,r.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,r.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,r.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,r.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default='\n \n \n \n \n \n'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default='\n \n \n \n \n \n \n'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.StatusDotIcon=void 0;const r=n(5);t.StatusDotIcon=function(e){return(0,r.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}},function(e,t,n){(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;const i=n(5),o=n(60),a=r(n(205));t.QRCode=t=>{const[n,r]=(0,o.useState)("");return(0,o.useEffect)((()=>{var n,i;const o=new a.default({content:t.content,background:t.bgColor||"#ffffff",color:t.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(n=t.width)&&void 0!==n?n:256,height:null!==(i=t.height)&&void 0!==i?i:256,padding:0,image:t.image}),s=e.from(o.svg(),"utf8").toString("base64");r("data:image/svg+xml;base64,"+s)})),n?(0,i.h)("img",{src:n,alt:"QR Code"}):null}}).call(this,n(19).Buffer)},function(e,t){function n(e){this.mode=i.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;t65536?(r[0]=240|(1835008&o)>>>18,r[1]=128|(258048&o)>>>12,r[2]=128|(4032&o)>>>6,r[3]=128|63&o):o>2048?(r[0]=224|(61440&o)>>>12,r[1]=128|(4032&o)>>>6,r[2]=128|63&o):o>128?(r[0]=192|(1984&o)>>>6,r[1]=128|63&o):r[0]=o,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function r(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}n.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=o.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++)r=!e&&1==(t>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=o.getBCHTypeInfo(n),i=0;i<15;i++){var a=!e&&1==(r>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(i=0;i<15;i++)a=!e&&1==(r>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a;this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var u=0;u<2;u++)if(null==this.modules[r][s-u]){var c=!1;a>>i&1)),o.getMask(t,r,s-u)&&(c=!c),this.modules[r][s-u]=c,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(e,t,n){for(var i=c.getRSBlocks(e,t),a=new l,s=0;s8*d)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*d+")");for(a.getLengthInBits()+4<=8*d&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*d||(a.put(r.PAD0,8),a.getLengthInBits()>=8*d));)a.put(r.PAD1,8);return r.createBytes(a,i)},r.createBytes=function(e,t){for(var n=0,r=0,i=0,a=new Array(t.length),s=new Array(t.length),c=0;c=0?f.get(y):0}}var m=0;for(h=0;h=0;)t^=o.G15<=0;)t^=o.G18<>>=1;return t},getPatternPosition:function(e){return o.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case 0:return(t+n)%2==0;case 1:return t%2==0;case 2:return n%3==0;case 3:return(t+n)%3==0;case 4:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case 5:return t*n%2+t*n%3==0;case 6:return(t*n%2+t*n%3)%2==0;case 7:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new u([1],0),n=0;n5&&(n+=3+o-5)}for(r=0;r=256;)e-=255;return a.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},s=0;s<8;s++)a.EXP_TABLE[s]=1<>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var d=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function h(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},"string"==typeof e&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,i=function(e,t){for(var n=function(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}(e),r=1,i=0,o=0,a=d.length;o<=a;o++){var s=d[o];if(!s)throw new Error("Content too long: expected "+i+" but got "+n);switch(t){case"L":i=s[0];break;case"M":i=s[1];break;case"Q":i=s[2];break;case"H":i=s[3];break;default:throw new Error("Unknwon error correction level: "+t)}if(n<=i)break;r++}if(r>d.length)throw new Error("Content too long");return r}(n,this.options.ecl),o=function(e){switch(e){case"L":return 1;case"M":return 0;case"Q":return 3;case"H":return 2;default:throw new Error("Unknwon error correction level: "+e)}}(this.options.ecl);this.qrcode=new r(i,o),this.qrcode.addData(n),this.qrcode.make()}h.prototype.svg=function(e){var t=this.options||{},n=this.qrcode.modules;void 0===e&&(e={container:t.container||"svg"});for(var r=void 0===t.pretty||!!t.pretty,i=r?" ":"",o=r?"\r\n":"",a=t.width,s=t.height,u=n.length,c=a/(u+2*t.padding),l=s/(u+2*t.padding),d=void 0!==t.join&&!!t.join,h=void 0!==t.swap&&!!t.swap,p=void 0===t.xmlDeclaration||!!t.xmlDeclaration,f=void 0!==t.predefined&&!!t.predefined,y=f?i+''+o:"",m=i+''+o,g="",v="",b=0;b'+o:i+''+o}d&&(g=i+'');let I="";if(void 0!==this.options.image&&this.options.image.svg){const e=a*this.options.image.width/100,t=s*this.options.image.height/100;I+=``,I+=this.options.image.svg+o,I+=""}var k="";switch(e.container){case"svg":p&&(k+=''+o),k+=''+o,k+=y+m+g,k+=I,k+="";break;case"svg-viewbox":p&&(k+=''+o),k+=''+o,k+=y+m+g,k+=I,k+="";break;case"g":k+=''+o,k+=y+m+g,k+=I,k+="";break;default:k+=(y+m+g+I).replace(/^\s+/,"")}return k},e.exports=h},function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=void 0;const i=n(5),o=r(n(207));t.Spinner=e=>{var t;const n=null!==(t=e.size)&&void 0!==t?t:64,r=e.color||"#000";return(0,i.h)("div",{class:"-cbwsdk-spinner"},(0,i.h)("style",null,o.default),(0,i.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,i.h)("circle",{style:{cx:50,cy:50,r:45,stroke:r}})))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"},function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TryExtensionContent=void 0;const i=r(n(69)),o=n(5),a=n(60),s=n(210),u=n(211),c=n(212),l=r(n(213));t.TryExtensionContent=function({theme:e}){const[t,n]=(0,a.useState)(!1),r=(0,a.useCallback)((()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")}),[]),d=(0,a.useCallback)((()=>{t?window.location.reload():(r(),n(!0))}),[r,t]);return(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension",e)},(0,o.h)("style",null,l.default),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("h3",{class:(0,i.default)("-cbwsdk-try-extension-heading",e)},"Or try the Coinbase Wallet browser extension"),(0,o.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,o.h)("button",{class:(0,i.default)("-cbwsdk-try-extension-cta",e),onClick:d},t?"Refresh":"Install"),(0,o.h)("div",null,!t&&(0,o.h)(s.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===e?"#0052FF":"#588AF5"})))),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,o.h)(u.LaptopIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",e)},"Connect with dapps with just one click on your desktop browser")),(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,o.h)(c.SafeIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",e)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowLeftIcon=void 0;const r=n(5);t.ArrowLeftIcon=function(e){return(0,r.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LaptopIcon=void 0;const r=n(5);t.LaptopIcon=function(e){return(0,r.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,r.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SafeIcon=void 0;const r=n(5);t.SafeIcon=function(e){return(0,r.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"},function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;const i=r(n(69)),o=n(5),a=n(60),s=r(n(216));function u(e){return"coinbase-app"===e?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPj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TdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}t.Snackbar=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){const t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,o.render)((0,o.h)("div",null,(0,o.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map((([e,n])=>(0,o.h)(t.SnackbarInstance,Object.assign({},n,{key:e})))))),this.root)}},t.SnackbarContainer=e=>(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-container")},(0,o.h)("style",null,s.default),(0,o.h)("div",{class:"-cbwsdk-snackbar"},e.children)),t.SnackbarInstance=({autoExpand:e,message:t,menuItems:n,appSrc:r})=>{const[s,c]=(0,a.useState)(!0),[l,d]=(0,a.useState)(null!=e&&e);return(0,a.useEffect)((()=>{const e=[window.setTimeout((()=>{c(!1)}),1),window.setTimeout((()=>{d(!0)}),1e4)];return()=>{e.forEach(window.clearTimeout)}})),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance",s&&"-cbwsdk-snackbar-instance-hidden",l&&"-cbwsdk-snackbar-instance-expanded")},(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{d(!l)}},(0,o.h)("img",{src:u(r),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,o.h)("div",{class:"-gear-container"},!l&&(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,o.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),n&&n.length>0&&(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map(((e,t)=>(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,o.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info))))))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectCssReset=void 0;const i=r(n(218));t.injectCssReset=function(){const e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelay=void 0;const u=s(n(220)),c=n(87),l=n(70),d=n(101),h=n(90),p=n(221),f=n(225),y=n(67),m=n(38),g=a(n(226)),v=n(91),b=n(108),w=n(124),M=n(227),A=n(228),E=n(229),N=n(230);class T extends b.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new l.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new l.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;const{session:n,ui:r,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=null===(t=e.reloadOnDisconnect)||void 0===t||t,this.ui=r}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe((e=>{this.dappDefaultChain!==e&&(this.dappDefaultChain=e)})));const e=v.Session.load(this.storage)||new v.Session(this.storage).save(),t=new p.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:e=>{this.onSessionConfigChanged(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,d.filter)((e=>"Web3Response"===e.event))).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,d.skip)(1),(0,d.tap)((e=>{var t;this.isLinked=e;const n=this.storage.getItem(b.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this.session.linked=e),this.isUnlinkedErrorState=!1,n){const r=n.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");if(""!==r[0]&&!e&&this.session.linked&&!i){this.isUnlinkedErrorState=!0;const e=this.getSessionIdHash();null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:e})}}}))).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,d.filter)((e=>!!e.metadata&&"1"===e.metadata.__destroyed))).subscribe((()=>{var e;const n=t.isDestroyed;return null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:n,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()}))),this.subscriptions.add(t.sessionConfig$.pipe((0,d.filter)((e=>e.metadata&&void 0!==e.metadata.WalletUsername))).pipe((0,d.mergeMap)((t=>g.decrypt(t.metadata.WalletUsername,e.secret)))).subscribe({next:e=>{this.storage.setItem(b.WALLET_USER_NAME_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,d.filter)((e=>e.metadata&&void 0!==e.metadata.AppVersion))).pipe((0,d.mergeMap)((t=>g.decrypt(t.metadata.AppVersion,e.secret)))).subscribe({next:e=>{this.storage.setItem(b.APP_VERSION_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,d.filter)((e=>e.metadata&&void 0!==e.metadata.ChainId&&void 0!==e.metadata.JsonRpcUrl))).pipe((0,d.mergeMap)((t=>(0,l.zip)(g.decrypt(t.metadata.ChainId,e.secret),g.decrypt(t.metadata.JsonRpcUrl,e.secret))))).pipe((0,d.distinctUntilChanged)()).subscribe({next:([e,t])=>{this.chainCallback&&this.chainCallback(e,t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,d.filter)((e=>e.metadata&&void 0!==e.metadata.EthereumAddress))).pipe((0,d.mergeMap)((t=>g.decrypt(t.metadata.EthereumAddress,e.secret)))).subscribe({next:e=>{this.accountsCallback&&this.accountsCallback([e]),T.accountRequestCallbackIds.size>0&&(Array.from(T.accountRequestCallbackIds.values()).forEach((t=>{const n=(0,N.Web3ResponseMessage)({id:t,response:(0,E.RequestEthereumAccountsResponse)([e])});this.invokeCallback(Object.assign(Object.assign({},n),{id:t}))})),T.accountRequestCallbackIds.clear())},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,d.filter)((e=>e.metadata&&void 0!==e.metadata.AppSrc))).pipe((0,d.mergeMap)((t=>g.decrypt(t.metadata.AppSrc,e.secret)))).subscribe({next:e=>{this.ui.setAppSrc(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));const n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,d.timeout)(1e3),(0,d.catchError)((e=>(0,l.of)(null)))).subscribe((e=>{var t,n,r;const i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(e){null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(n=this.diagnostic)||void 0===n||n.log(h.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const o=v.Session.load(this.storage);if((null==o?void 0:o.id)===this._session.id?this.storage.clear():o&&(null===(r=this.diagnostic)||void 0===r||r.log(h.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:v.Session.hash(o.id)})),this._reloadOnDisconnect)return void this.ui.reloadUI();this.accountsCallback&&this.accountsCallback([],!0);const{session:a,ui:s,connection:u}=this.subscribe();this._session=a,this.connection=u,this.ui=s,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()}),(e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.FAILURE,{method:"relay::resetAndReload",message:"failed to reset and reload with "+e,sessionIdHash:this.getSessionIdHash()})}))}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,r){return this.sendRequest({method:w.Web3Method.signEthereumMessage,params:{message:(0,m.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:r||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:w.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,m.hexStringFromBuffer)(e,!0),signature:(0,m.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:w.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,m.bigIntStringFromBN)(e.weiValue),data:(0,m.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,m.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,m.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,m.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,m.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:w.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,m.bigIntStringFromBN)(e.weiValue),data:(0,m.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,m.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,m.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,m.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,m.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:w.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,m.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:w.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,m.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:w.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null;const n=(0,m.randomBytesHex)(8),r=r=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,r),null==t||t()};return{promise:new Promise(((i,o)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:r,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,(e=>{if(null==t||t(),e.errorMessage)return o(new Error(e.errorMessage));i(e)})),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)})),cancel:r}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var n;const r=(0,A.Web3RequestMessage)({id:e,request:t}),i=v.Session.load(this.storage);null===(n=this.diagnostic)||void 0===n||n.log(h.EVENTS.WEB3_REQUEST,{eventId:r.id,method:"relay::"+r.request.method,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?v.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",r,!0).subscribe({next:e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:r.id,method:"relay::"+r.request.method,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?v.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()})},error:e=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r.id,response:{method:r.request.method,errorMessage:e.message}}))}}))}publishWeb3RequestCanceledEvent(e){const t=(0,M.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){const r=this.session.secret;return new l.Observable((e=>{g.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),r).then((t=>{e.next(t),e.complete()}))})).pipe((0,d.mergeMap)((t=>this.connection.publishEvent(e,t,n))))}handleIncomingEvent(e){try{this.subscriptions.add((0,l.from)(g.decrypt(e.data,this.session.secret)).pipe((0,d.map)((e=>JSON.parse(e)))).subscribe({next:e=>{const t=(0,N.isWeb3ResponseMessage)(e)?e:null;t&&this.handleWeb3ResponseMessage(t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(e){return}}handleWeb3ResponseMessage(e){var t;const{response:n}=e;if(null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:"relay::"+n.method,sessionIdHash:this.getSessionIdHash()}),(0,E.isRequestEthereumAccountsResponse)(n))return T.accountRequestCallbackIds.forEach((t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t})))),void T.accountRequestCallbackIds.clear();this.invokeCallback(e)}handleErrorResponse(e,t,n,r){this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:e,response:(0,E.ErrorResponse)(t,(null!=n?n:f.WalletUIError.UserRejectedRequest).message,r)}))}invokeCallback(e){const t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){const e={method:w.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=(0,m.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(t),this.handleErrorResponse(t,e.method,n)};return{promise:new Promise(((r,i)=>{var o;this.relayEventManager.callbacks.set(t,(e=>{if(this.ui.hideRequestEthereumAccounts(),e.errorMessage)return i(new Error(e.errorMessage));r(e)}));const a=(null===(o=null===window||void 0===window?void 0:window.navigator)||void 0===o?void 0:o.userAgent)||null;if(a&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)){let e;try{e=(0,m.isInIFrame)()&&window.top?window.top.location:window.location}catch(t){e=window.location}e.href="https://www.coinbase.com/connect-dapp?uri="+encodeURIComponent(e.href)}else{if(this.ui.inlineAccountsResponse()){const e=e=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:t,response:(0,E.RequestEthereumAccountsResponse)(e)}))};this.ui.requestEthereumAccounts({onCancel:n,onAccounts:e})}else{const e=c.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>n(e)})}T.accountRequestCallbackIds.add(t),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(t,e)}})),cancel:n}}selectProvider(e){const t={method:w.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,m.randomBytesHex)(8);return{cancel:e=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,e)},promise:new Promise(((t,r)=>{this.relayEventManager.callbacks.set(n,(e=>{if(e.errorMessage)return r(new Error(e.errorMessage));t(e)})),this.ui.selectProvider&&this.ui.selectProvider({onApprove:e=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:n,response:(0,E.SelectProviderResponse)(e)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:n,response:(0,E.SelectProviderResponse)(y.ProviderType.Unselected)}))},providerOptions:e})}))}}watchAsset(e,t,n,r,i,o){const a={method:w.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:r,image:i},chainId:o}};let s=null;const u=(0,m.randomBytesHex)(8),c=e=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,a.method,e),null==s||s()};return this.ui.inlineWatchAsset()||(s=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload})),{cancel:c,promise:new Promise(((c,l)=>{this.relayEventManager.callbacks.set(u,(e=>{if(null==s||s(),e.errorMessage)return l(new Error(e.errorMessage));c(e)}));this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,E.WatchAssetReponse)(!0)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,E.WatchAssetReponse)(!1)}))},type:e,address:t,symbol:n,decimals:r,image:i,chainId:o}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,a)}))}}addEthereumChain(e,t,n,r,i,o){const a={method:w.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:r,chainName:i,iconUrls:n,nativeCurrency:o}};let s=null;const u=(0,m.randomBytesHex)(8),c=e=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,a.method,e),null==s||s()};return this.ui.inlineAddEthereumChain(e)||(s=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload})),{promise:new Promise(((t,n)=>{this.relayEventManager.callbacks.set(u,(e=>{if(null==s||s(),e.errorMessage)return n(new Error(e.errorMessage));t(e)}));this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:e=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,E.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,E.AddEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:a.params.chainId,rpcUrls:a.params.rpcUrls,blockExplorerUrls:a.params.blockExplorerUrls,chainName:a.params.chainName,iconUrls:a.params.iconUrls,nativeCurrency:a.params.nativeCurrency}),this.ui.inlineAddEthereumChain(e)||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,a)})),cancel:c}}switchEthereumChain(e,t){const n={method:w.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},r=(0,m.randomBytesHex)(8);return{promise:new Promise(((e,t)=>{this.relayEventManager.callbacks.set(r,(n=>n.errorMessage&&n.errorCode?t(c.ethErrors.provider.custom({code:n.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):n.errorMessage?t(new Error(n.errorMessage)):void e(n))),this.ui.switchEthereumChain({onCancel:e=>{if("number"==typeof e){const t=e;this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r,response:(0,E.ErrorResponse)(w.Web3Method.switchEthereumChain,f.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,t)}))}else e instanceof f.WalletUIError?this.handleErrorResponse(r,w.Web3Method.switchEthereumChain,e,e.errorCode):this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r,response:(0,E.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r,response:(0,E.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:n.params.chainId,address:n.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(r,n)})),cancel:e=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,n.method,e)}}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return v.Session.hash(this._session.id)}sendRequestStandalone(e,t){const n=n=>{this.handleErrorResponse(e,t.method,n)},r=t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:e,response:t}))};switch(t.method){case w.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess:r,onCancel:n});break;case w.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess:r,onCancel:n});break;case w.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess:r,onCancel:n});break;case w.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess:r});break;default:n()}}onSessionConfigChanged(e){}}T.accountRequestCallbackIds=new Set,o([u.default],T.prototype,"resetAndReload",null),o([u.default],T.prototype,"handleIncomingEvent",null),t.WalletSDKRelay=T},function(e,t,n){var r;function i(e,t,n){if(!n||typeof n.value!==r.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+t+"> is not a method!");return{configurable:r.boolTrue,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:r.boolTrue,writable:r.boolTrue}),e}}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.typeOfFunction="function",e.boolTrue=!0}(r||(r={})),t.bind=i,t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKConnection=void 0;const r=n(70),i=n(101),o=n(91),a=n(67),s=n(222),u=n(90),c=n(223),l=n(224);t.WalletSDKConnection=class{constructor(e,t,n,s,l=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=s,this.subscriptions=new r.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,a.IntNumber)(1),this.connectedSubject=new r.BehaviorSubject(!1),this.linkedSubject=new r.BehaviorSubject(!1),this.sessionConfigSubject=new r.ReplaySubject(1);const d=new c.RxWebSocket(n+"/rpc",l);this.ws=d,this.subscriptions.add(d.connectionState$.pipe((0,i.tap)((t=>{var n;return null===(n=this.diagnostic)||void 0===n?void 0:n.log(u.EVENTS.CONNECTED_STATE_CHANGE,{state:t,sessionIdHash:o.Session.hash(e)})})),(0,i.skip)(1),(0,i.filter)((e=>e===c.ConnectionState.DISCONNECTED&&!this.destroyed)),(0,i.delay)(5e3),(0,i.filter)((e=>!this.destroyed)),(0,i.flatMap)((e=>d.connect())),(0,i.retry)()).subscribe()),this.subscriptions.add(d.connectionState$.pipe((0,i.skip)(2),(0,i.switchMap)((e=>(0,r.iif)((()=>e===c.ConnectionState.CONNECTED),this.authenticate().pipe((0,i.tap)((e=>this.sendIsLinked())),(0,i.tap)((e=>this.sendGetSessionConfig())),(0,i.map)((e=>!0))),(0,r.of)(!1)))),(0,i.distinctUntilChanged)(),(0,i.catchError)((e=>(0,r.of)(!1)))).subscribe((e=>this.connectedSubject.next(e)))),this.subscriptions.add(d.connectionState$.pipe((0,i.skip)(1),(0,i.switchMap)((e=>(0,r.iif)((()=>e===c.ConnectionState.CONNECTED),(0,r.timer)(0,1e4))))).subscribe((e=>0===e?this.updateLastHeartbeat():this.heartbeat()))),this.subscriptions.add(d.incomingData$.pipe((0,i.filter)((e=>"h"===e))).subscribe((e=>this.updateLastHeartbeat()))),this.subscriptions.add(d.incomingJSONData$.pipe((0,i.filter)((e=>["IsLinkedOK","Linked"].includes(e.type)))).subscribe((t=>{var n;const r=t;null===(n=this.diagnostic)||void 0===n||n.log(u.EVENTS.LINKED,{sessionIdHash:o.Session.hash(e),linked:r.linked,type:t.type,onlineGuests:r.onlineGuests}),this.linkedSubject.next(r.linked||r.onlineGuests>0)}))),this.subscriptions.add(d.incomingJSONData$.pipe((0,i.filter)((e=>["GetSessionConfigOK","SessionConfigUpdated"].includes(e.type)))).subscribe((t=>{var n;const r=t;null===(n=this.diagnostic)||void 0===n||n.log(u.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:o.Session.hash(e),metadata_keys:r&&r.metadata?Object.keys(r.metadata):void 0}),this.sessionConfigSubject.next({webhookId:r.webhookId,webhookUrl:r.webhookUrl,metadata:r.metadata})})))}connect(){var e;if(this.destroyed)throw new Error("instance is destroyed");null===(e=this.diagnostic)||void 0===e||e.log(u.EVENTS.STARTED_CONNECTING,{sessionIdHash:o.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(e=this.diagnostic)||void 0===e||e.log(u.EVENTS.DISCONNECTED,{sessionIdHash:o.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,i.filter)((e=>e)),(0,i.take)(1),(0,i.map)((()=>{})))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,i.filter)((e=>e)),(0,i.take)(1),(0,i.map)((()=>{})))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,i.filter)((e=>{if("Event"!==e.type)return!1;const t=e;return"string"==typeof t.sessionId&&"string"==typeof t.eventId&&"string"==typeof t.event&&"string"==typeof t.data})),(0,i.map)((e=>e)))}setSessionMetadata(e,t){const n=(0,s.ClientMessageSetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,i.flatMap)((e=>this.makeRequest(n))),(0,i.map)((e=>{if((0,l.isServerMessageFail)(e))throw new Error(e.error||"failed to set session metadata")})))}publishEvent(e,t,n=!1){const r=(0,s.ClientMessagePublishEvent)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,i.flatMap)((e=>this.makeRequest(r))),(0,i.map)((e=>{if((0,l.isServerMessageFail)(e))throw new Error(e.error||"failed to publish event");return e.eventId})))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4)this.ws.disconnect();else try{this.ws.sendData("h")}catch(e){}}makeRequest(e,t=6e4){const n=e.id;try{this.sendData(e)}catch(e){return(0,r.throwError)(e)}return this.ws.incomingJSONData$.pipe((0,i.timeoutWith)(t,(0,r.throwError)(new Error(`request ${n} timed out`))),(0,i.filter)((e=>e.id===n)),(0,i.take)(1))}authenticate(){const e=(0,s.ClientMessageHostSession)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,i.map)((e=>{if((0,l.isServerMessageFail)(e))throw new Error(e.error||"failed to authentcate")})))}sendIsLinked(){const e=(0,s.ClientMessageIsLinked)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){const e=(0,s.ClientMessageGetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ClientMessagePublishEvent=t.ClientMessageSetSessionConfig=t.ClientMessageGetSessionConfig=t.ClientMessageIsLinked=t.ClientMessageHostSession=void 0,t.ClientMessageHostSession=function(e){return Object.assign({type:"HostSession"},e)},t.ClientMessageIsLinked=function(e){return Object.assign({type:"IsLinked"},e)},t.ClientMessageGetSessionConfig=function(e){return Object.assign({type:"GetSessionConfig"},e)},t.ClientMessageSetSessionConfig=function(e){return Object.assign({type:"SetSessionConfig"},e)},t.ClientMessagePublishEvent=function(e){return Object.assign({type:"PublishEvent"},e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RxWebSocket=t.ConnectionState=void 0;const r=n(70),i=n(101);var o;!function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED"}(o=t.ConnectionState||(t.ConnectionState={})),t.RxWebSocket=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new r.BehaviorSubject(o.DISCONNECTED),this.incomingDataSubject=new r.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,r.throwError)(new Error("webSocket object is not null")):new r.Observable((e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(t){return void e.error(t)}this.connectionStateSubject.next(o.CONNECTING),t.onclose=t=>{this.clearWebSocket(),e.error(new Error(`websocket error ${t.code}: ${t.reason}`)),this.connectionStateSubject.next(o.DISCONNECTED)},t.onopen=t=>{e.next(),e.complete(),this.connectionStateSubject.next(o.CONNECTED)},t.onmessage=e=>{this.incomingDataSubject.next(e.data)}})).pipe((0,i.take)(1))}disconnect(){const{webSocket:e}=this;if(e){this.clearWebSocket(),this.connectionStateSubject.next(o.DISCONNECTED);try{e.close()}catch(e){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,i.flatMap)((e=>{let t;try{t=JSON.parse(e)}catch(e){return(0,r.empty)()}return(0,r.of)(t)})))}sendData(e){const{webSocket:t}=this;if(!t)throw new Error("websocket is not connected");t.send(e)}clearWebSocket(){const{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isServerMessageFail=void 0,t.isServerMessageFail=function(e){return e&&"Fail"===e.type&&"number"==typeof e.id&&"string"==typeof e.sessionId&&"string"==typeof e.error}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WalletUIError=void 0;class r extends Error{constructor(e,t){super(e),this.message=e,this.errorCode=t}}t.WalletUIError=r,r.UserRejectedRequest=new r("User rejected request"),r.SwitchEthereumChainUnsupportedChainId=new r("Unsupported chainId",4902)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;const r=n(38);t.encrypt=async function(e,t){if(64!==t.length)throw Error("secret must be 256 bits");const n=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",(0,r.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=new TextEncoder,a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},i,o.encode(e)),s=a.slice(a.byteLength-16),u=a.slice(0,a.byteLength-16),c=new Uint8Array(s),l=new Uint8Array(u),d=new Uint8Array([...n,...c,...l]);return(0,r.uint8ArrayToHex)(d)},t.decrypt=function(e,t){if(64!==t.length)throw Error("secret must be 256 bits");return new Promise(((n,i)=>{!async function(){const o=await crypto.subtle.importKey("raw",(0,r.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=(0,r.hexStringToUint8Array)(e),s=a.slice(0,12),u=a.slice(12,28),c=a.slice(28),l=new Uint8Array([...c,...u]),d={name:"AES-GCM",iv:new Uint8Array(s)};try{const e=await window.crypto.subtle.decrypt(d,o,l),t=new TextDecoder;n(t.decode(e))}catch(e){i(e)}}()}))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestCanceledMessage=void 0;const r=n(100);t.Web3RequestCanceledMessage=function(e){return{type:r.RelayMessageType.WEB3_REQUEST_CANCELED,id:e}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestMessage=void 0;const r=n(100);t.Web3RequestMessage=function(e){return Object.assign({type:r.RelayMessageType.WEB3_REQUEST},e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumAddressFromSignedMessageResponse=t.SubmitEthereumTransactionResponse=t.SignEthereumTransactionResponse=t.SignEthereumMessageResponse=t.isRequestEthereumAccountsResponse=t.SelectProviderResponse=t.WatchAssetReponse=t.RequestEthereumAccountsResponse=t.SwitchEthereumChainResponse=t.AddEthereumChainResponse=t.ErrorResponse=void 0;const r=n(124);t.ErrorResponse=function(e,t,n){return{method:e,errorMessage:t,errorCode:n}},t.AddEthereumChainResponse=function(e){return{method:r.Web3Method.addEthereumChain,result:e}},t.SwitchEthereumChainResponse=function(e){return{method:r.Web3Method.switchEthereumChain,result:e}},t.RequestEthereumAccountsResponse=function(e){return{method:r.Web3Method.requestEthereumAccounts,result:e}},t.WatchAssetReponse=function(e){return{method:r.Web3Method.watchAsset,result:e}},t.SelectProviderResponse=function(e){return{method:r.Web3Method.selectProvider,result:e}},t.isRequestEthereumAccountsResponse=function(e){return e&&e.method===r.Web3Method.requestEthereumAccounts},t.SignEthereumMessageResponse=function(e){return{method:r.Web3Method.signEthereumMessage,result:e}},t.SignEthereumTransactionResponse=function(e){return{method:r.Web3Method.signEthereumTransaction,result:e}},t.SubmitEthereumTransactionResponse=function(e){return{method:r.Web3Method.submitEthereumTransaction,result:e}},t.EthereumAddressFromSignedMessageResponse=function(e){return{method:r.Web3Method.ethereumAddressFromSignedMessage,result:e}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isWeb3ResponseMessage=t.Web3ResponseMessage=void 0;const r=n(100);t.Web3ResponseMessage=function(e){return Object.assign({type:r.RelayMessageType.WEB3_RESPONSE},e)},t.isWeb3ResponseMessage=function(e){return e&&e.type===r.RelayMessageType.WEB3_RESPONSE}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelayEventManager=void 0;const r=n(38);t.WalletSDKRelayEventManager=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const e=this._nextRequestId,t=(0,r.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}}},function(e){e.exports=JSON.parse('{"name":"@coinbase/wallet-sdk","version":"3.6.4","description":"Coinbase Wallet JavaScript SDK","keywords":["cipher","cipherbrowser","coinbase","coinbasewallet","eth","ether","ethereum","etherium","injection","toshi","wallet","walletlink","web3"],"main":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/coinbase/coinbase-wallet-sdk.git","author":"Coinbase, Inc.","license":"Apache-2.0","scripts":{"pretest:unit":"node compile-assets.js","test:unit":"jest","test:unit:coverage":"yarn test:unit && open coverage/lcov-report/index.html","test:karma":"yarn build-npm && karma start","prebuild":"rm -rf ./build && node -p \\"\'export const LIB_VERSION = \' + JSON.stringify(require(\'./package.json\').version) + \';\'\\" > src/version.ts","build":"node compile-assets.js && webpack --config webpack.config.js","build-npm":"tsc -p ./tsconfig.build.json","build:dev":"export LINK_API_URL=\'http://localhost:3000\'; yarn build","build:dev:watch":"nodemon -e \'ts,tsx,js,json,css,scss,svg\' --ignore \'src/**/*-css.ts\' --ignore \'src/**/*-svg.ts\' --watch src/ --exec \'yarn build:dev\'","build:prod":"yarn prebuild && yarn build && yarn build-npm && cp ./package.json ../../README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak \'s| \\"private\\": true,||g\' build/npm/package.json && rm -f build/npm/package.json.bak","lint:types":"tsc --noEmit","lint:prettier":"prettier --check \\"{src,__tests__}/**/*.(js|ts|tsx)\\"","lint:eslint":"eslint ./src --ext .ts,.tsx","lint":"yarn lint:eslint && yarn lint:types && yarn lint:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"prettier . --write","release":"./scripts/release.sh"},"dependencies":{"@metamask/safe-event-emitter":"2.0.0","@solana/web3.js":"^1.70.1","bind-decorator":"^1.0.11","bn.js":"^5.1.1","buffer":"^6.0.3","clsx":"^1.1.0","eth-block-tracker":"4.4.3","eth-json-rpc-filters":"5.1.0","eth-rpc-errors":"4.0.2","json-rpc-engine":"6.1.0","keccak":"^3.0.1","preact":"^10.5.9","qs":"^6.10.3","rxjs":"^6.6.3","sha.js":"^2.4.11","stream-browserify":"^3.0.0","util":"^0.12.4"},"devDependencies":{"@babel/core":"^7.17.9","@babel/plugin-proposal-decorators":"^7.17.9","@babel/plugin-transform-react-jsx":"^7.17.3","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@peculiar/webcrypto":"^1.3.3","@testing-library/jest-dom":"^5.16.4","@testing-library/preact":"^2.0.1","@types/bn.js":"^4.11.6","@types/jest":"^27.4.1","@types/node":"^14.14.20","@types/qs":"^6.9.7","@types/sha.js":"^2.4.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/eslint-plugin-tslint":"^5.7.0","@typescript-eslint/parser":"^5.7.0","babel-jest":"^27.5.1","browserify":"17.0.0","copy-webpack-plugin":"^6.4.1","core-js":"^3.8.2","eslint":"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-preact":"^0.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0","jasmine":"3.8.0","jest":"^27.5.1","jest-chrome":"^0.7.2","jest-websocket-mock":"^2.3.0","karma":"^6.4.0","karma-browserify":"8.1.0","karma-chrome-launcher":"^3.1.0","karma-jasmine":"^4.0.1","nodemon":"^2.0.6","prettier":"^2.5.1","raw-loader":"^4.0.2","regenerator-runtime":"^0.13.7","sass":"^1.50.0","svgo":"^2.8.0","ts-jest":"^27.1.4","ts-loader":"^8.0.13","ts-node":"^10.7.0","tslib":"^2.0.3","typescript":"^4.1.3","watchify":"4.0.0","webpack":"^5.72.0","webpack-cli":"^4.9.2","whatwg-fetch":"^3.5.0"},"engines":{"node":">= 10.0.0"}}')},function(e,t,n){function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},e.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},e}(),a=function(){function e(){this._semaphore=new o(1)}return e.prototype.acquire=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,e.sent()[1]]}}))}))},e.prototype.runExclusive=function(e){return this._semaphore.runExclusive((function(){return e()}))},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();function s(e,t,n){var o=this;return void 0===n&&(n=new Error("timeout")),{acquire:function(){return new Promise((function(a,s){return r(o,void 0,void 0,(function(){var r,o;return i(this,(function(i){switch(i.label){case 0:return r=!1,setTimeout((function(){r=!0,s(n)}),t),[4,e.acquire()];case 1:return o=i.sent(),r?(Array.isArray(o)?o[1]:o)():a(o),[2]}}))}))}))},runExclusive:function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:t=function(){},r.label=1;case 1:return r.trys.push([1,,7,8]),[4,this.acquire()];case 2:return n=r.sent(),Array.isArray(n)?(t=n[1],[4,e(n[0])]):[3,4];case 3:return[2,r.sent()];case 4:return t=n,[4,e()];case 5:return[2,r.sent()];case 6:return[3,8];case 7:return t(),[7];case 8:return[2]}}))}))},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}}]);void 0===QI&&console.error("esm-webpack-plugin: nothing exported!");QI.CoinbaseWalletProvider;const YI=QI.CoinbaseWalletSDK;function FI(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class VI{constructor({blockchain:e,from:t,to:n,value:r,api:i,method:o,params:a,instructions:s,signers:u,alts:c,sent:l,succeeded:d,failed:h}){this.blockchain=e,this.from=t&&t.match("0x")?Xm(t):t,this.to=n&&n.match("0x")?Xm(n):n,this.value=FI([VI,"access",e=>e.bigNumberify,"call",t=>t(r,e),"optionalAccess",e=>e.toString,"call",e=>e()]),this.api=i,this.method=o,this.params=a,this.sent=l,this.succeeded=d,this.failed=h,this.instructions=s,this.signers=u,this.alts=c,this._succeeded=!1,this._failed=!1}async prepare({wallet:e}){this.from=await e.account(this.blockchain)}static bigNumberify(e,t){return"number"==typeof e?lI(e.toString(),he[t].currency.decimals):e&&e.toString?zy.from(e.toString()):e}findFragment(){return this.getContract().interface.fragments.find((e=>!(e.name!=this.method||e.inputs&&this.params&&"object"==typeof this.params&&e.inputs.length!=Object.keys(this.params).length)))}getParamType(e){return FI([e,"optionalAccess",e=>e.components,"optionalAccess",e=>e.length])?`(${e.components.map((e=>this.getParamType(e))).join(",")})`:e.type}getMethodNameWithSignature(){let e=this.findFragment();return e.inputs?`${this.method}(${e.inputs.map((e=>this.getParamType(e))).join(",")})`:this.method}getContractArguments(){if(this.params instanceof Array)return this.params;if(this.params instanceof Object){return this.findFragment().inputs.map((e=>this.params[e.name]))}}getContract(){return new PN(this.to,this.api)}async getData(){let e,t=this.getContractArguments();return e=t?await this.getContract().populateTransaction[this.getMethodNameWithSignature()].apply(null,t):await this.getContract().populateTransaction[this.getMethodNameWithSignature()].apply(null),e.data}success(){return this._succeeded?Promise.resolve(this):new Promise(((e,t)=>{let n=this.succeeded;this.succeeded=t=>{n&&n(t),e(t)}}))}failure(){return this._failed?Promise.resolve(this):new Promise(((e,t)=>{let n=this.failed;this.failed=(t,r)=>{n&&n(t,r),e(t,r)}}))}}function HI(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const GI=async({transaction:e,wallet:t})=>(e=new VI(e),await e.prepare({wallet:t}),await qI({transaction:e,wallet:t}).then((t=>{if(!t)throw"Submitting transaction failed!";{e.id=t,e.url=he.findByName(e.blockchain).explorerUrlFor({transaction:e}),e.sent&&e.sent(e);let n=0;const r=setInterval((async()=>{if(n++,n>=240)return clearInterval(r);const i=await SI(e.blockchain),{value:o}=await i.getSignatureStatus(t),a=HI([o,"optionalAccess",e=>e.confirmationStatus]);if(a){if("confirmed"===a||"finalized"===a){if(o.err){e._failed=!0;const n=await i.getConfirmedTransaction(t),r=HI([n,"optionalAccess",e=>e.meta,"optionalAccess",e=>e.logMessages])?n.meta.logMessages[n.meta.logMessages.length-1]:null;e.failed&&e.failed(e,r)}else e._succeeded=!0,e.succeeded&&e.succeeded(e);return clearInterval(r)}}}),500)}})),e),qI=async({transaction:e,wallet:t})=>{let n,r=await JI({transaction:e,wallet:t});return"object"==typeof r&&r.signatures&&r.message?n=await ZI(r,await t.account()):"object"==typeof r&&r.signature&&r.signature.length?n=r.signature:"string"==typeof r&&r.length&&(n=r),n},ZI=async(e,t)=>{let n=await SI("solana");return await n.sendRawTransaction(e.serialize())},JI=async({transaction:e,wallet:t})=>e.instructions?KI({transaction:e,wallet:t}):XI({transaction:e,wallet:t}),XI=async({transaction:e,wallet:t})=>{let n=new yc(await t.account()),r=new yc(e.to);const i=await SI(e.blockchain);let o=(await i.getLatestBlockhash()).blockhash;const a=[sl.transfer({fromPubkey:n,toPubkey:r,lamports:parseInt(VI.bigNumberify(e.value,e.blockchain),10)})],s=new Pc({payerKey:n,recentBlockhash:o,instructions:a}).compileToV0Message(),u=new Bc(s);return t._sendTransaction(u)},KI=async({transaction:e,wallet:t})=>{let n=new yc(await t.account());const r=await SI(e.blockchain);let i=(await r.getLatestBlockhash()).blockhash;const o=new Pc({payerKey:n,recentBlockhash:i,instructions:e.instructions}).compileToV0Message(e.alts?await Promise.all(e.alts.map((async e=>(await SI("solana")).getAddressLookupTable(new yc(e)).then((e=>e.value))))):void 0),a=new Bc(o);return e.signers&&e.signers.length&&a.sign(Array.from(new Set(e.signers))),t._sendTransaction(a)};let $I=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];function ek(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}$I.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],$I.solana=["solana"];class tk{static __initStatic(){this.info={name:"Solana Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0NDYuNCAzNzYuOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDQ2LjQgMzc2Ljg7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojODI4NDg3O30KCS5zdDF7ZmlsbDp1cm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CBzdHlsZT0iZmlsbDp1cmwoI1NWR0lEXzAwMDAwMDIyNTU3MTYwNTg5MTY1MTU3NTIwMDAwMDE1NDYyNjI0Mjk4Nzk4NTYzMjYxXyk7IiBkPSJNMTQ1LjYsMTg5LjFjLTAuMy0wLjMtMC43LTAuNS0xLjEtMC41CgloLTM4LjhjLTAuNywwLTEuMSwwLjktMC42LDEuNGw3LjcsNy43YzAuMywwLjMsMC43LDAuNSwxLjEsMC41aDM4LjhjMC43LDAsMS4xLTAuOSwwLjYtMS40TDE0NS42LDE4OS4xeiIvPgo8L3N2Zz4K",blockchains:$I.solana}}static __initStatic2(){this.isAvailable=async()=>ek([window,"optionalAccess",e=>e.solana])&&!(window.phantom&&!window.glow&&!window.solana.isGlow&&!["isBitKeep"].some((e=>window.solana&&window.solana[e])))&&!window.coin98&&!(ek([window,"optionalAccess",e=>e.solana])&&ek([window,"optionalAccess",e=>e.solana,"access",e=>e.isBitKeep]))&&!window.solana.isGlow&&!window.trustwallet}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,this.sendTransaction=e=>GI({wallet:this,transaction:e})}getProvider(){return window.solana}async account(){const e=this.getProvider();if(null!=e){if(e.publicKey)return e.publicKey.toString();if(1!=e.isBraveWallet){let e;try{({publicKey:e}=await window.solana.connect({onlyIfTrusted:!0}))}catch(e){}if(e)return e.toString()}}}async connect(){const e=this.getProvider();if(!e)return;let t;try{t=await e.connect()}catch(e){}return t&&t.publicKey?t.publicKey.toString():e.publicKey.toString()}on(e,t){let n;if("account"===e)n=e=>t(ek([e,"optionalAccess",e=>e.toString,"call",e=>e()])),this.getProvider().on("accountChanged",n);return n}off(e,t){if("account"===e)this.getProvider().removeListener("accountChanged",t);return t}async connectedTo(e){return e?"solana"==e:"solana"}switchTo(e){return new Promise(((e,t)=>{t({code:"NOT_SUPPORTED"})}))}addNetwork(e){return new Promise(((e,t)=>{t({code:"NOT_SUPPORTED"})}))}async sign(e){const t=(new TextEncoder).encode(e),n=await this.getProvider().signMessage(t);if(n&&n.signature)return Array.from(n.signature)}_sendTransaction(e){return this.getProvider().signAndSendTransaction(e,{skipPreflight:!1})}}tk.__initStatic(),tk.__initStatic2();class nk extends tk{static __initStatic(){this.info={name:"Backpack",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMDAgMTAwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2NsaXAtcGF0aDp1cmwoI1NWR0lEXzAwMDAwMTA2ODQwODY0OTg0NTM1NTU0MzQwMDAwMDAwNDc2MjMzMDgyNzcwODcyOTcxXyk7fQoJLnN0MXtmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsOiNFMzNFM0Y7fQo8L3N0eWxlPgo8Zz4KCTxkZWZzPgoJCTxyZWN0IGlkPSJTVkdJRF8xXyIgeD0iMjMuOCIgeT0iMTAuNCIgd2lkdGg9IjUyLjQiIGhlaWdodD0iNzYuMiIvPgoJPC9kZWZzPgoJPGNsaXBQYXRoIGlkPSJTVkdJRF8wMDAwMDE3ODE5NTUzMTM2ODQxNzQ3MDkwMDAwMDAxNDk2Njk4MDAxOTUxNjc4MTk3MF8iPgoJCTx1c2UgeGxpbms6aHJlZj0iI1NWR0lEXzFfIiAgc3R5bGU9Im92ZXJmbG93OnZpc2libGU7Ii8+Cgk8L2NsaXBQYXRoPgoJPGcgc3R5bGU9ImNsaXAtcGF0aDp1cmwoI1NWR0lEXzAwMDAwMTc4MTk1NTMxMzY4NDE3NDcwOTAwMDAwMDE0OTY2OTgwMDE5NTE2NzgxOTcwXyk7Ij4KCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNTUsMTYuNGMyLjgsMCw1LjQsMC40LDcuOCwxLjFjLTIuNC01LjUtNy4yLTcuMS0xMi43LTcuMWMtNS41LDAtMTAuNCwxLjYtMTIuNyw3LjFjMi40LTAuNyw1LTEuMSw3LjctMS4xCgkJCUg1NXogTTQ0LjQsMjEuOWMtMTMuMiwwLTIwLjcsMTAuNC0yMC43LDIzLjF2MTMuMWMwLDEuMywxLjEsMi4zLDIuNCwyLjNoNDcuNmMxLjMsMCwyLjQtMSwyLjQtMi4zVjQ1YzAtMTIuOC04LjctMjMuMS0yMS45LTIzLjEKCQkJSDQ0LjR6IE01MCw0NS4xYzQuNiwwLDguMy0zLjcsOC4zLTguM3MtMy43LTguMy04LjMtOC4zcy04LjMsMy43LTguMyw4LjNTNDUuNCw0NS4xLDUwLDQ1LjF6IE0yMy44LDY4LjFjMC0xLjMsMS4xLTIuMywyLjQtMi4zCgkJCWg0Ny42YzEuMywwLDIuNCwxLDIuNCwyLjNWODJjMCwyLjYtMi4xLDQuNi00LjgsNC42SDI4LjZjLTIuNiwwLTQuOC0yLjEtNC44LTQuNlY2OC4xeiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.backpack])&&window.backpack.isBackpack}getProvider(){return window.backpack}async sign(e){const t=(new TextEncoder).encode(e),n=await this.getProvider().signMessage(t);return Object.values(n)}_sendTransaction(e){return this.getProvider().sendAndConfirm(e)}}function rk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}nk.__initStatic(),nk.__initStatic2();const ik=e=>new Promise(((t,n)=>{try{e.wait(1).then(t).catch((r=>{r&&rk([r,"optionalAccess",e=>e.stack,"optionalAccess",e=>e.match,"call",e=>e("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{ik(e).then(t).catch(n)}),500):n(r)}))}catch(r){r&&rk([r,"optionalAccess",e=>e.stack,"optionalAccess",e=>e.match,"call",e=>e("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{ik(e).then(t).catch(n)}),500):n(r)}})),ok=({transaction:e,provider:t,signer:n})=>e.method?ak({transaction:e,signer:n,provider:t}):sk({transaction:e,signer:n}),ak=async({transaction:e,signer:t,provider:n})=>{let r,i=new PN(e.to,e.api,n),o=e.getContractArguments({contract:i}),a=i.connect(t)[e.getMethodNameWithSignature()];try{r=await DI(e),r=r.add(r.div(10))}catch(e){}return o?await a(...o,{value:VI.bigNumberify(e.value,e.blockchain),gasLimit:rk([r,"optionalAccess",e=>e.toHexString,"call",e=>e()])}):await a({value:VI.bigNumberify(e.value,e.blockchain),gasLimit:rk([r,"optionalAccess",e=>e.toHexString,"call",e=>e()])})},sk=({transaction:e,signer:t})=>t.sendTransaction({to:e.to,value:VI.bigNumberify(e.value,e.blockchain)});function uk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class ck{static __initStatic(){this.info={name:"Ethereum Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0t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NsYXNzPSJzdDIiIHBvaW50cz0iMTI5LDIxNy42IDEyOSwyMDQuNyAxMTMuMiwxOTUuNCAJCQkiLz4KCQkJPHBvbHlnb24gY2xhc3M9InN0NCIgcG9pbnRzPSIxMjksMjAxLjcgMTQ0LjgsMTkyLjQgMTI5LDE4NS4yIAkJCSIvPgoJCQk8cG9seWdvbiBjbGFzcz0ic3Q1IiBwb2ludHM9IjExMy4yLDE5Mi40IDEyOSwyMDEuNyAxMjksMTg1LjIgCQkJIi8+CgkJPC9nPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=",blockchains:$I.evm}}static __initStatic2(){this.isAvailable=async()=>uk([window,"optionalAccess",e=>e.ethereum])&&!(uk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isMetaMask])&&1==Object.keys(window.ethereum).filter((e=>e.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/))).length)&&!uk([window,"optionalAccess",e=>e.coin98])&&!(uk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTrust])||uk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTrustWallet]))&&!uk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isDeficonnectProvider])&&!uk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isHyperPay])&&!(window.phantom&&!window.glow&&!uk([window,"optionalAccess",e=>e.solana,"optionalAccess",e=>e.isGlow])&&!["isBitKeep"].some((e=>window.solana&&window.solana[e])))&&!uk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isRabby])&&!uk([window,"optionalAccess",e=>e.backpack,"optionalAccess",e=>e.isBackpack])&&!uk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTokenPocket])&&!uk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isBitKeep])&&!(uk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isCoinbaseWallet])||uk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isWalletLink]))&&!uk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.has,"call",e=>e("MetaMask")])}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,this.sendTransaction=e=>(async({transaction:e,wallet:t})=>{if(e=new VI(e),0==await t.connectedTo(e.blockchain)&&await t.switchTo(e.blockchain),0==await t.connectedTo(e.blockchain))throw{code:"WRONG_NETWORK"};await e.prepare({wallet:t});let n=await PI({blockchain:e.blockchain,method:"transactionCount",address:e.from});e.nonce=n;let r=new eI(t.getProvider(),"any"),i=r.getSigner(0);return await ok({transaction:e,provider:r,signer:i}).then((t=>{if(!t)throw"Submitting transaction failed!";e.id=t.hash,e.nonce=t.nonce||n,e.url=he.findByName(e.blockchain).explorerUrlFor({transaction:e}),e.sent&&e.sent(e),ik(t).then((()=>{e._succeeded=!0,e.succeeded&&e.succeeded(e)})).catch((t=>{t&&t.code&&"TRANSACTION_REPLACED"==t.code?(t.replacement&&t.replacement.hash&&(e.id=t.replacement.hash,e.url=he.findByName(e.blockchain).explorerUrlFor({transaction:e})),t.replacement&&t.replacement.hash&&t.receipt&&1==t.receipt.status?(e._succeeded=!0,e.succeeded&&e.succeeded(e)):t.replacement&&t.replacement.hash&&t.receipt&&0==t.receipt.status&&(e._failed=!0,e.failed&&e.failed(e,t))):(e._failed=!0,e.failed&&e.failed(e,t))}))})),e})({wallet:this,transaction:e})}getProvider(){return window.ethereum}async account(){if(!this.getProvider())return;return(await this.getProvider().request({method:"eth_accounts"})).map((e=>Xm(e)))[0]}async connect(){if(!this.getProvider())return;return(await this.getProvider().request({method:"eth_requestAccounts"})).map((e=>Xm(e)))[0]}on(e,t){let n;if("account"===e)n=e=>t(Xm(e[0])),this.getProvider().on("accountsChanged",n);return n}off(e,t){if("account"===e)this.getProvider().removeListener("accountsChanged",t);return t}async connectedTo(e){const t=he.findById(await this.getProvider().request({method:"eth_chainId"}));return!!t&&(e?e===t.name:t.name)}addNetwork(e){return new Promise(((t,n)=>{const r=he.findByName(e);this.getProvider().request({method:"wallet_addEthereumChain",params:[{chainId:r.id,chainName:r.fullName,nativeCurrency:{name:r.currency.name,symbol:r.currency.symbol,decimals:r.currency.decimals},rpcUrls:[r.rpc],blockExplorerUrls:[r.explorer],iconUrls:[r.logo]}]}).then(t).catch(n)}))}switchTo(e){return new Promise(((t,n)=>{const r=he.findByName(e);this.getProvider().request({method:"wallet_switchEthereumChain",params:[{chainId:r.id}]}).then(t).catch((r=>{4902===r.code?this.addNetwork(e).then((()=>this.switchTo(e).then(t))).catch(n):n(r)}))}))}transactionCount({blockchain:e,address:t}){return PI({blockchain:e,method:"transactionCount",address:t})}async sign(e){if("object"==typeof e){let t=this.getProvider(),n=await this.account();if(!1===await this.connectedTo(he.findByNetworkId(e.domain.chainId).name))throw{code:"WRONG_NETWORK"};return await t.request({method:"eth_signTypedData_v4",params:[n,e],from:n})}if("string"==typeof e){await this.account();let t=new eI(this.getProvider(),"any").getSigner(0);return await t.signMessage(e)}}}ck.__initStatic(),ck.__initStatic2();class lk extends ck{static __initStatic(){this.info={name:"Binance Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxOTIgMTkzLjY4Ij48cmVjdCB3aWR0aD0iMTkyIiBoZWlnaHQ9IjE5My42OCIgZmlsbD0iIzFlMjAyNCIvPjxwYXRoIGQ9Im01Ni45Miw0Ni41M2wzOS4wOC0yMi41NCwzOS4wOCwyMi41NC0xNC4zNSw4LjM2LTI0LjczLTE0LjE4LTI0LjczLDE0LjE4LTE0LjM1LTguMzZabTc4LjE3LDI4LjUzbC0xNC4zNS04LjM2LTI0LjczLDE0LjI3LTI0LjczLTE0LjI3LTE0LjM1LDguMzZ2MTYuNzFsMjQuNzMsMTQuMTh2MjguNDVsMTQuMzUsOC4zNiwxNC4zNS04LjM2di0yOC40NWwyNC43My0xNC4yN3YtMTYuNjNabTAsNDUuMTZ2LTE2LjcxbC0xNC4zNSw4LjM2djE2LjcxbDE0LjM1LTguMzZabTEwLjIxLDUuODJsLTI0LjczLDE0LjI3djE2LjcxbDM5LjA4LTIyLjU0di00NS4yNWwtMTQuMzUsOC4zNnYyOC40NVptLTE0LjM1LTY1LjI1bDE0LjM1LDguMzZ2MTYuNzFsMTQuMzUtOC4zNnYtMTYuNzFsLTE0LjM1LTguMzYtMTQuMzUsOC4zNlptLTQ5LjMsODUuNnYxNi43MWwxNC4zNSw4LjM2LDE0LjM1LTguMzZ2LTE2LjcxbC0xNC4zNSw4LjM2LTE0LjM1LTguMzZabS0yNC43My0yNi4xN2wxNC4zNSw4LjM2di0xNi43MWwtMTQuMzUtOC4zNnYxNi43MVptMjQuNzMtNTkuNDNsMTQuMzUsOC4zNiwxNC4zNS04LjM2LTE0LjM1LTguMzYtMTQuMzUsOC4zNlptLTM0Ljk1LDguMzZsMTQuMzUtOC4zNi0xNC4zNS04LjM2LTE0LjM1LDguMzZ2MTYuNzFsMTQuMzUsOC4zNnYtMTYuNzFabTAsMjguNDVsLTE0LjM1LTguMzZ2NDUuMTZsMzkuMDgsMjIuNTR2LTE2LjcxbC0yNC43My0xNC4yN3MwLTI4LjM2LDAtMjguMzZaIiBmaWxsPSIjZjBiOTBiIi8+PC9zdmc+",blockchains:$I.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.BinanceChain])&&!window.coin98&&!window.trustwallet}getProvider(){return window.BinanceChain}}lk.__initStatic(),lk.__initStatic2();class dk extends ck{static __initStatic(){this.info={name:"Brave",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2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ZjMy0yLjQgNS4zLTUuNyA2LjYtOS4zbDEuNi00LjNjMC40LTEgMC4zLTIuOC0wLjEtMy44bC01LjgtMTMuOGMtMC40LTEtMC4yLTIuNSAwLjYtMy40bDI3LjktMjkuN2MwLjgtMC44IDEuOS0yLjIgMi43LTMtMC40LTAuMyAxLjEtMi4xIDEuNi00LjF6Ii8+Cgo8L3N2Zz4K",blockchains:$I.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isBraveWallet])}}dk.__initStatic(),dk.__initStatic2();var hk="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yOTguMjAzIDgzLjc2NDVMMTcwLjQ0OSAwVjQ2LjgzMzJMMjUyLjQwNSAxMDAuMDg5TDI0Mi43NjMgMTMwLjU5OEgxNzAuNDQ5VjE2OS40MDJIMjQyLjc2M0wyNTIuNDA1IDE5OS45MTFMMTcwLjQ0OSAyNTMuMTY3VjMwMEwyOTguMjAzIDIxNi41MDNMMjc3LjMxMyAxNTAuMTM0TDI5OC4yMDMgODMuNzY0NVoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xNjYxXzI5NSkiLz4KPHBhdGggZD0iTTU5LjMwMDcgMTY5LjQwMkgxMzEuMzQ2VjEzMC41OThINTkuMDMyOUw0OS42NTg5IDEwMC4wODlMMTMxLjM0NiA0Ni44MzMyVjBMMy41OTI1MyA4My43NjQ1TDI0LjQ4MzEgMTUwLjEzNEwzLjU5MjUzIDIxNi41MDNMMTMxLjYxNCAzMDBWMjUzLjE2N0w0OS42NTg5IDE5OS45MTFMNTkuMzAwNyAxNjkuNDAyWiIgZm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A1Ljk5NTMiIHkxPSIxODQ2LjAwMDIiIHgyPSIxOTYuODc1MiIgeTI9IjIxODkuMzQwMyIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIDAgLTE4MjMuNzM5NykiPgoJCTxzdG9wICBvZmZzZXQ9IjIuMDAwMDAwZS0wMiIgc3R5bGU9InN0b3AtY29sb3I6IzAwMDBGRiIvPgoJCTxzdG9wICBvZmZzZXQ9IjguMDAwMDAwZS0wMiIgc3R5bGU9InN0b3AtY29sb3I6IzAwOTRGRiIvPgoJCTxzdG9wICBvZmZzZXQ9IjAuMTYiIHN0eWxlPSJzdG9wLWNvbG9yOiM0OEZGOTEiLz4KCQk8c3RvcCAgb2Zmc2V0PSIwLjQyIiBzdHlsZT0ic3RvcC1jb2xvcjojMDA5NEZGIi8+CgkJPHN0b3AgIG9mZnNldD0iMC42OCIgc3R5bGU9InN0b3AtY29sb3I6IzAwMzhGRiIvPgoJCTxzdG9wICBvZmZzZXQ9IjAuOSIgc3R5bGU9InN0b3AtY29sb3I6IzA1MDBGRiIvPgoJPC9saW5lYXJHcmFkaWVudD4KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0zNDQuNCw5MkwxOTkuOSw0NXYzMjVjMTAzLjItNDMuMywxNDQuNS0xMjYuNCwxNDQuNS0xNzMuM1Y5MkwzNDQuNCw5MnoiLz4KPC9nPgo8L3N2Zz4K";class gk extends ck{static __initStatic(){this.info={name:"Coin98",logo:fk,blockchains:$I.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.coin98])}getProvider(){return window.coin98.provider}}gk.__initStatic(),gk.__initStatic2();class vk extends tk{static __initStatic(){this.info={name:"Coin98",logo:fk,blockchains:$I.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.coin98,"optionalAccess",e=>e.sol])}getProvider(){return window.coin98.sol}}function bk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}vk.__initStatic(),vk.__initStatic2();class wk extends ck{static __initStatic(){this.info={name:"Coinbase",logo:yk,blockchains:$I.evm,platform:"evm"}}getProvider(){return bk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.has,"call",e=>e("CoinbaseWallet")])?bk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.get,"call",e=>e("CoinbaseWallet")]):window.ethereum}static __initStatic2(){this.isAvailable=async()=>bk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isCoinbaseWallet])||bk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isWalletLink])||bk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.has,"call",e=>e("CoinbaseWallet")])}}wk.__initStatic(),wk.__initStatic2();class Mk extends tk{static __initStatic(){this.info={name:"Coinbase",logo:yk,blockchains:$I.solana,platform:"svm"}}getProvider(){return window.coinbaseSolana}static __initStatic2(){this.isAvailable=async()=>!!window.coinbaseSolana}}Mk.__initStatic(),Mk.__initStatic2();class Ak extends ck{static __initStatic(){this.info={name:"Crypto.com | DeFi Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4OS45IDEwMi44IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA4OS45IDEwMi44IiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNGRkZGRkY7fQoJLnN0MXtmaWxsOiMwMzMxNkM7fQo8L3N0eWxlPgoKPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTUuMzc1MSAtMTEzLjYxKSI+Cgk8ZyB0cmFuc2Zvcm09Im1hdHJpeCguMzE3OTQgMCAwIC4zMTQ2NSAtMS4wNDczIDMwLjQ0NykiPgoJCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Im0xNjEuNiAyNjQuMy0xNDEuNCA4MS42djE2My4zbDE0MS40IDgxLjYgMTQxLjQtODEuNnYtMTYzLjNsLTE0MS40LTgxLjZ6bTAgMC0xNDEuNCA4MS42djE2My4zbDE0MS40IDgxLjYgMTQxLjQtODEuNnYtMTYzLjNsLTE0MS40LTgxLjZ6Ii8+CgkJPHBhdGggY2xhc3M9InN0MSIgZD0ibTIxNy41IDUyNy4xaC0yMC4xbC0yNC4xLTIyLjF2LTExLjNsMjQuOS0yMy44di0zNy43bDMyLjYtMjEuMyAzNy4xIDI4LjEtNTAuNCA4OC4xem0tODMuMy01OS42IDMuNy0zNS40LTEyLjItMzEuN2g3MmwtMTEuOSAzMS43IDMuNCAzNS40aC01NXptMTYuNCAzNy41LTI0LjEgMjIuNGgtMjAuNGwtNTAuNy04OC40IDM3LjQtMjcuOCAzMi45IDIxdjM3LjdsMjQuOSAyMy44djExLjN6bS00NC44LTE3MC4xaDExMS40bDEzLjMgNTYuN2gtMTM3LjdsMTMtNTYuN3ptNTUuOC03MC42LTE0MS40IDgxLjZ2MTYzLjNsMTQxLjQgODEuNiAxNDEuNC04MS42di0xNjMuM2wtMTQxLjQtODEuNnoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",blockchains:$I.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isDeficonnectProvider])}}Ak.__initStatic(),Ak.__initStatic2();class Ek extends ck{static __initStatic(){this.info={name:"Exodus",logo:hk,blockchains:$I.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isExodus])}}Ek.__initStatic(),Ek.__initStatic2();class Nk extends tk{static __initStatic(){this.info={name:"Exodus",logo:hk,blockchains:$I.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.solana,"optionalAccess",e=>e.isExodus])}}Nk.__initStatic(),Nk.__initStatic2();class Tk extends tk{static __initStatic(){this.info={name:"Glow",logo:"data:image/webp;base64,UklGRkbpAQBXRUJQVlA4TDrpAQAv38F3EBGJbRsJkgS7p0rtwm3+AXfP/IcQ0f8JWLIkdFr/iEgkyRI0SHyCgCXu4pZI4gxw6U7EeRDYruJd9wYSAXYCoeH3+5uZqVI3QbHhQMVaNVVzVj8594ZNoNaamem6zPNEERADrHo63XMthUfhSEhW7e7Wa7Kf/UKRqu3u/jC1dSk42t0S4jbbMSSJq6oMIFnCVVXGOBAXUz8bQJJdpByHJNg7ZYcoSo6xIb7UrrIBJMvedDlmJ2DXjHMQ5eeZsRMIsb2PoCiJnZQdIIHtPThZS1jCU3GSUDHsXZUgSUjsXUkMJDlI9N6988X086ylzFRNlfpZK7GNbdP9wFRNd1XVWisJQGynW09318x0tNaSXmJD33VfWR+4d+t9KSQY9KXfIoHCR4E+cgoC+wICBALqgCr+Zzf9NmHTNpIg66sthz/dmT8MkhRJkiRZkfQsiZM4jh7z2LIk2XbbVlIr4OG8gMerZOMT/Z8AHh6cm5ubx/yaMkUpAhHVIRMiEKEo6vya29w+YgAQw4QIFAJDBYFAwAMeIgJABCIwEbNgAPAJCiAABSNKRAAJgExAROADCAiBAALANHMY3uld3mmHOxwIIACgnFACiCHwNE9jAvDLb8FdarrQIhCKAkRB8JQHHt3UEACGADwAfASe5fnCJAQCOG4BIgJ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PyOoU9n9TuOXNEgsZQzIdhFt4NpKA0pctb4mgxfpqMwIoCmcHFZwSI77zSDFpsPvnp5TysrHS91IpGzUYN1rMADEXrxYd1Cs6sQAEGBfvxwauKWUARAjdAY7pp/ceCyI/ptUtixoMNY/LjW3y6NrV7wsW8YU77Yt1cfOhz5gR8QhNcUyntOKVrWrCqdf/p7zaU1tUa9YdfeCw/UQMHcyCRPRhEcCLcssTlLxSsRIPLB02U+aAvwUAtXt8Kn3qOff/LVg2NJtxm0x1pjM0ahHXrIyZFgdUsC8TueY9OANz7AQOwfe0vH7To0Q3LuT7+5vd+Oq9v+1il4O1rlgKZTDI1+a5YgOi7PJZnj/Xrjcu/VIiagDmiRcejjRVCV7TQ8vqGZz8HGJCrZEbxI1rce8/E2oPg8qZdZ0QGL2aaQr1efuiK6B8H33k1w8GIHj7BsYNhef15eAD+mFlFxmOVjBC+3+wG02R6K9y7jcAMI16/mkZglHFz/eCDB6Zb8WkDhADBKfiUNg/KVGv0Un11/+qEx//6p7SmHbtSdPXfvXS6l/YH",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>window.solana&&window.solana.isGlow}}Tk.__initStatic(),Tk.__initStatic2();class Ik extends ck{static __initStatic(){this.info={name:"HyperPay",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjA0LjcgMjAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyMDQuNyAyMDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzFBNzJGRSIgZD0iTTEwMi41LDUuMkM1MC44LDUuMiw4LjgsNDcuMiw4LjgsOTlzNDIsOTMuNSw5My44LDkzLjVzOTMuOC00Miw5My44LTkzLjhTMTU0LjIsNS4yLDEwMi41LDUuMnogTTEyNy4yLDExOS4yCgljLTYuMiwwLTIxLjcsMC4zLTIxLjcsMC4zbC03LDI3aC0yOWw2LjgtMjYuNUgzMWw3LjItMjEuOGMwLDAsNzguOCwwLjIsODUuMiwwYzYuNS0wLjIsMTYuNS0xLjgsMTYuOC0xNC44YzAuMy0xNy44LTI3LTE2LjgtMjkuMi0xCgljLTEuNSwxMC0xLjUsMTIuNS0xLjUsMTIuNUg4My44bDUtMjMuNUg0N2w2LjMtMjJjMCwwLDYxLjIsMC4yLDcyLjgsMC4yczQyLjIsMyw0Mi4yLDMxLjJDMTY4LjIsMTEyLDEzOC41LDExOS4zLDEyNy4yLDExOS4yCglMMTI3LjIsMTE5LjJ6Ii8+Cjwvc3ZnPgo=",blockchains:$I.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isHyperPay])}}function kk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}Ik.__initStatic(),Ik.__initStatic2();class Lk extends ck{static __initStatic(){this.info={name:"MetaMask",logo:"data:image/svg+xml;base64,PHN2ZyBpZD0nTGF5ZXJfMScgZGF0YS1uYW1lPSdMYXllciAxJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA0ODUuOTMgNDUwLjU2Jz48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzgyODQ4Nzt9LmNscy0ye2ZpbGw6I2UyNzcyNjtzdHJva2U6I2UyNzcyNjt9LmNscy0xMCwuY2xzLTExLC5jbHMtMiwuY2xzLTMsLmNscy00LC5jbHMtNSwuY2xzLTYsLmNscy03LC5jbHMtOCwuY2x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yIDI2OS4yMSAzNjUuODIgMjY5LjU5IDI4MC42MiAyNzIuMDYgMjQ2LjAxJy8+PC9zdmc+",blockchains:$I.evm}}getProvider(){return kk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.has,"call",e=>e("MetaMask")])?kk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.get,"call",e=>e("MetaMask")]):window.ethereum}static __initStatic2(){this.isAvailable=async()=>kk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isMetaMask])&&1==Object.keys(window.ethereum).filter((e=>e.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/))).length||kk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.providerMap,"optionalAccess",e=>e.has,"call",e=>e("MetaMask")])}}Lk.__initStatic(),Lk.__initStatic2();class xk extends ck{static __initStatic(){this.info={name:"Opera",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA3NS42IDc1LjYiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIHRyYW5zZm9ybT0ibWF0cml4KDEuMzMzMyAwIDAgLTEuMzMzMyAwIDEwNy4yKSI+CiAgCiAgPGxpbmVhckdyYWRpZW50IGlkPSJvcGVyYUxvZ28wMDAwMDAxMjM1MTEiIHgxPSItMTA3LjM0IiB4Mj0iLTEwNi4zNCIgeTE9Ii0xMzcuODUiIHkyPSItMTM3Ljg1IiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDAgLTczLjI1NyAtNzMuMjU3IDAgLTEwMDc1IC03Nzg0LjEpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICA8c3RvcCBzdG9wL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wIHN0b3AtY29sb3I9IiNGRjRCNEIiIG9mZnNldD0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHBhdGggZD0ibTE5IDY4YzIuNiAzLjEgNiA0LjkgOS42IDQuOSA4LjMgMCAxNC45LTkuNCAxNC45LTIwLjlzLTYuNy0yMC45LTE0LjktMjAuOWMtMy43IDAtNyAxLjktOS42IDQuOSA0LjEtNS4zIDEwLjEtOC42IDE2LjktOC42IDQuMiAwIDggMS4zIDExLjQgMy41IDUuOCA1LjIgOS41IDEyLjcgOS41IDIxLjFzLTMuNyAxNS45LTkuNSAyMS4xYy0zLjMgMi4yLTcuMiAzLjUtMTEuNCAzLjUtNi44IDAuMS0xMi44LTMuMy0xNi45LTguNiIgZmlsbD0idXJsKCNiKSIvPgo8L2c+Cjwvc3ZnPgo=",blockchains:$I.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isOpera])}}xk.__initStatic(),xk.__initStatic2();class Sk extends ck{static __initStatic(){this.info={name:"Phantom",logo:pk,blockchains:["ethereum","polygon"],platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>window.phantom&&window.phantom.ethereum}}function jk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}Sk.__initStatic(),Sk.__initStatic2();class Ck extends tk{static __initStatic(){this.info={name:"Phantom",logo:pk,blockchains:$I.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>window.phantom&&!window.glow&&!jk([window,"optionalAccess",e=>e.solana,"optionalAccess",e=>e.isGlow])&&!jk([window,"optionalAccess",e=>e.solana,"optionalAccess",e=>e.isExodus])&&!["isBitKeep"].some((e=>window.solana&&window.solana[e]))}}Ck.__initStatic(),Ck.__initStatic2();class Dk extends ck{static __initStatic(){this.info={name:"Rabby",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiB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1NDY5MjM0OTg1OTA4NjFfKTsiIGQ9Ik0zOS43LDkzLjljMS43LDE1LjIsMTAuNSwyMS4zLDI4LjIsMjMKCWMxNy44LDEuNywyNy45LDAuNiw0MS40LDEuN2MxMS4zLDEsMjEuNCw2LjgsMjUuMSw0LjhjMy4zLTEuNywxLjQtOC4yLTMtMTIuNGMtNS45LTUuNC0xNC05LTI4LjEtMTAuNWMyLjktNy44LDIuMS0xOC43LTIuNC0yNC42CgljLTYuMy04LjYtMTguMS0xMi40LTMzLTEwLjhDNTIuMyw2Ny4xLDM3LjQsNzQuOSwzOS43LDkzLjl6Ii8+Cjwvc3ZnPgo=",blockchains:$I.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isRabby])}}function Ok(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}Dk.__initStatic(),Dk.__initStatic2();const zk="_DePayWeb3WalletsConnectedSolanaMobileWalletInstance",_k=e=>{const t=window.atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e({name:document.title,uri:window.location.origin.toString(),icon:Bk()});var Bk=function(){for(var e="favicon.ico",t=document.getElementsByTagName("link"),n=0;nGI({wallet:this,transaction:e})}async authorize(e){let t=await e.authorize({cluster:"mainnet-beta",identity:Pk()});if(t&&t.auth_token&&t.accounts&&0!==t.accounts.length)return Rk=t.auth_token,this._account=_k(t.accounts[0].address).toString(),t}async reauthorize(e,t){let n=await e.reauthorize({auth_token:t,identity:Pk()});if(n&&n.auth_token&&n.accounts&&0!==n.accounts.length)return t=n.auth_token,this._account=_k(n.accounts[0].address).toString(),n}disconnect(){}async account(){return this._account}async connect(e){return await Af((async t=>{await this.authorize(t),Ok([e,"optionalAccess",e=>e.name])&&(localStorage[zk+"_name"]=this.name=e.name),Ok([e,"optionalAccess",e=>e.logo])&&(localStorage[zk+"_logo"]=this.logo=e.logo)})),this._account}static __initStatic2(){this.isAvailable=async()=>Rk}async connectedTo(e){return e?"solana"==e:"solana"}switchTo(e){return new Promise(((e,t)=>{t({code:"NOT_SUPPORTED"})}))}addNetwork(e){return new Promise(((e,t)=>{t({code:"NOT_SUPPORTED"})}))}on(e,t){}off(e,t){}async sign(e){const t=(new TextEncoder).encode(e);return await Af((async e=>{const n=await this.reauthorize(e,Rk);return(await e.signMessages({addresses:[n.accounts[0].address],payloads:[t]}))[0]}))}async _sendTransaction(e){return await Af((async t=>{await this.reauthorize(t,Rk);return(await t.signAndSendTransactions({transactions:[e]}))[0]}))}}Uk.__initStatic(),Uk.__initStatic2();class Wk extends tk{static __initStatic(){this.info={name:"Solflare",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MCA1MCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAgNTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDp1cmwoI1NWR0lEXzFfKTt9Cgkuc3Qxe2ZpbGw6dXJsKCNTVkdJRF8wMDAwMDA0MTI1OTU5ODg4MjM0NDgzNTI5MDAwMDAxMjg1ODg4NTIyOTkwNzM1MjI0MF8pO30KPC9zdHlsZT4KPGxpbmVhckdyYWRpZ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SI+Cgk8c3RvcCAgb2Zmc2V0PSIwIiBzdHlsZT0ic3RvcC1jb2xvcjojRkZDMTBCIi8+Cgk8c3RvcCAgb2Zmc2V0PSIxIiBzdHlsZT0ic3RvcC1jb2xvcjojRkIzRjJFIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjxwYXRoIHN0eWxlPSJmaWxsOnVybCgjU1ZHSURfMDAwMDAxMDAzNTM3NjAxMTAwMjExMTQ0NDAwMDAwMDg4MDc5Mzk1MzE2NjY5Njc5MzhfKTsiIGQ9Ik0yNC42LDMwLjljMy44LDAsNi44LTMsNi44LTYuNwoJYzAtMy43LTMuMS02LjctNi44LTYuN3MtNi44LDMtNi44LDYuN0MxNy44LDI3LjksMjAuOSwzMC45LDI0LjYsMzAuOXoiLz4KPC9zdmc+Cg==",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.solflare])&&window.solflare.isSolflare}getProvider(){return window.solflare}_sendTransaction(e){return this.getProvider().signTransaction(e)}}Wk.__initStatic(),Wk.__initStatic2();class Qk extends ck{static __initStatic(){this.info={name:"TP Wallet (TokenPocket)",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8bWFzayBpZD0ibWFzazBfNDA4XzIyNSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMjQiIGhlaWdodD0iMTAyNCI+CjxyZWN0IHdpZHRoPSIxMDI0IiBoZWlnaHQ9IjEwMjQiIGZpbGw9IiNDNEM0QzQiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21h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LjA2NlY1MDUuNTgxQzcwOC43MzMgNTA1LjU4MSA3MDcuODE2IDUwNS41ODEgNzA2Ljc2OCA1MDUuNDVWNjUwLjA2NkM3MDcuODE2IDY1MC4wNjYgNzA4Ljg2NCA2NTAuMDY2IDcwOS43OCA2NTAuMDY2WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L2c+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfNDA4XzIyNSIgeDE9IjcwOS44NDQiIHkxPSI1NTYuODI3IiB4Mj0iNjY3Ljc1MyIgeTI9IjU1Ni44MjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0id2hpdGUiLz4KPHN0b3Agb2Zmc2V0PSIwLjk2NjciIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMzIzMyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMyIvPgo8L2xpbmVhckdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzQwOF8yMjUiPgo8cmVjdCB3aWR0aD0iNzI4LjQ0OCIgaGVpZ2h0PSI0NzAiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjggMjc3KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",blockchains:$I.evm}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTokenPocket])}}function Yk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}Qk.__initStatic(),Qk.__initStatic2();class Fk extends ck{static __initStatic(){this.info={name:"Trust Wallet",logo:mk,blockchains:$I.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>(Yk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTrust])||Yk([window,"optionalAccess",e=>e.ethereum,"optionalAccess",e=>e.isTrustWallet]))&&1==Object.keys(window.ethereum).filter((e=>e.match(/^is(?!Connected)(?!Debug)(?!TrustWallet)(?!MetaMask)(?!PocketUniverse)(?!RevokeCash)/))).length}}Fk.__initStatic(),Fk.__initStatic2();class Vk extends tk{static __initStatic(){this.info={name:"Trust Wallet",logo:mk,blockchains:$I.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([window,"access",e=>e.solana,"optionalAccess",e=>e.isTrustWallet])}}Vk.__initStatic(),Vk.__initStatic2();const Hk={ethereum:"mainnet",bsc:"bsc",polygon:"polygon",arbitrum:"arbitrum",base:"base",avalanche:"avalanche",gnosis:"gnosis-chain",optimism:"optimism"},Gk={ethereum:"eth",bsc:"bnb",polygon:"matic",arbitrum:"arb1",base:"base",avalanche:"avax",gnosis:"gno",optimism:"oeth"};class qk{constructor({address:e,blockchain:t}){this.address=e,this.blockchain=t}async transactionCount(){let e,t=await fetch(`https://safe-transaction-${Hk[this.blockchain]}.safe.global/api/v1/safes/${this.address}/all-transactions/`).then((e=>e.json())).catch((e=>{console.error("Error:",e)}));return e=t&&t.results&&t.results.length?t.results[0].nonce+1:parseInt((await PI({blockchain:this.blockchain,address:this.address,api:[{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],method:"nonce"})).toString(),10),e}async retrieveTransaction({blockchain:e,tx:t}){const n=await SI(e);let r=await fetch(`https://safe-transaction-${Hk[e]}.safe.global/api/v1/multisig-transactions/${t}/`).then((e=>e.json())).catch((e=>{console.error("Error:",e)}));return r&&r.isExecuted&&r.transactionHash?await n.getTransaction(r.transactionHash):void 0}explorerUrlFor({transaction:e}){if(e)return`https://app.safe.global/${Gk[e.blockchain]}:${e.from}/transactions/tx?id=multisig_${e.from}_${e.id}`}}const Zk=async(e,t)=>{if(!await(async(e,t)=>{const n=await SI(e);return"0x"!=await n.getCode(t)})(e,t))return;const n=await(async(e,t)=>{let n;try{n=await PI({blockchain:e,address:t,api:[{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"}],method:"NAME"})}catch(e){}if("Default Callback Handler"==n)return"Safe"})(e,t);if("Safe"==n)return new qk({blockchain:e,address:t});if("Argent"==n)return new Argent({blockchain:e,address:t});if(smartContractWallet)throw{message:"Unrecognized smart contract wallet not supported!",code:"SMART_CONTRACT_WALLET_NOT_SUPPORTED"}};function Jk(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const Xk=e=>new Promise(((t,n)=>{try{e.wait(1).then(t).catch((r=>{r&&Jk([r,"optionalAccess",e=>e.stack,"optionalAccess",e=>e.match,"call",e=>e("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{Xk(e).then(t).catch(n)}),500):n(r)}))}catch(r){r&&Jk([r,"optionalAccess",e=>e.stack,"optionalAccess",e=>e.match,"call",e=>e("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{Xk(e).then(t).catch(n)}),500):n(r)}})),Kk=async({blockchain:e,tx:t,smartContractWallet:n})=>{const r=await SI(e);let i,o=async()=>{try{return n&&n.retrieveTransaction?await n.retrieveTransaction({blockchain:e,tx:t}):await r.getTransaction(t)}catch(e){}};for(i=await o();!i;)await new Promise((e=>setTimeout(e,3e3))),i=await o();return i},$k=({transaction:e,wallet:t})=>e.method?eL({transaction:e,wallet:t}):tL({transaction:e,wallet:t}),eL=async({transaction:e,wallet:t})=>{const n=await SI(e.blockchain);let r,i=await n.getGasPrice();i="Uniswap Wallet"===Jk([t,"access",e=>e.session,"optionalAccess",e=>e.peerMeta,"optionalAccess",e=>e.name])?void 0:i.toHexString();try{r=await DI(e),r=r.add(r.div(10))}catch(e){}const o=await e.getData(),a=e.value?Ny(zy.from(e.value)):void 0,s=Ny(e.nonce);return t.connector.sendTransaction({from:e.from,to:e.to,value:a,data:o,gas:Jk([r,"optionalAccess",e=>e.toHexString,"call",e=>e()]),gasPrice:i,nonce:s})},tL=async({transaction:e,wallet:t})=>{const n=await SI(e.blockchain);let r,i=await n.getGasPrice();i="Uniswap Wallet"===Jk([t,"access",e=>e.session,"optionalAccess",e=>e.peerMeta,"optionalAccess",e=>e.name])?void 0:i.toHexString();try{r=await DI(e),r=r.add(r.div(10))}catch(e){}const o=Ny(zy.from(e.value)),a=Ny(e.nonce);return t.connector.sendTransaction({from:e.from,to:e.to,value:o,data:"0x",gas:Jk([r,"optionalAccess",e=>e.toHexString,"call",e=>e()]),gasPrice:i,nonce:a})};function nL(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const rL="_DePayWeb3WalletsConnectedWalletConnectV1Instance";let iL;const oL=()=>iL||(iL=cL((()=>{})),iL),aL=()=>new Promise((async(e,t)=>{if(setTimeout((()=>{delete localStorage.walletconnect,e(!1)}),5e3),!localStorage.walletconnect||0==JSON.parse(localStorage.walletconnect).handshakeTopic.length)return delete localStorage.walletconnect,e(!1);let n,r=oL();try{await r.sendCustomRequest({method:"eth_blockNumber"})?n=await r.sendCustomRequest({method:"eth_accounts"}):delete localStorage.walletconnect}catch(t){delete localStorage.walletconnect,e(!1)}return e(n&&n.length)})),sL=async()=>window[rL]?window[rL]:await aL()?new lL:void 0,uL=e=>{window[rL]=e},cL=e=>new RI({bridge:"https://walletconnect.depay.com",qrcodeModal:{open:async t=>e({uri:t}),close:()=>{}}});class lL{static __initStatic(){this.info={name:"WalletConnect",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wM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sOTUuNSw5My41YzEsMSwyLjcsMSwzLjcsMGMwLDAsMCwwLDAsMGw5NS41LTkzLjVjNC4xLTQsMTAuNy00LDE0LjgsMGMwLDAsMCwwLDAsMGw5NS41LDkzLjUgYzEsMSwyLjcsMSwzLjcsMGw5NS41LTkzLjVDNDU2LjQsMjI1LjksNDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==",blockchains:$I.evm}}static __initStatic2(){this.isAvailable=async()=>null!=await sL()}constructor(){this.name=localStorage[rL+"_name"]&&null!=localStorage[rL+"_name"]?localStorage[rL+"_name"]:this.constructor.info.name,this.logo=localStorage[rL+"_logo"]&&null!=localStorage[rL+"_logo"]?localStorage[rL+"_logo"]:this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,this.sendTransaction=e=>(async({transaction:e,wallet:t})=>{if(e=new VI(e),0==await t.connectedTo(e.blockchain))throw{code:"WRONG_NETWORK"};await e.prepare({wallet:t});const n=await Zk(e.blockchain,e.from);let r=await t.transactionCount({blockchain:e.blockchain,address:e.from});return e.nonce=r,await $k({transaction:e,wallet:t}).then((t=>{if(!t)throw"Submitting transaction failed!";{let i=he.findByName(e.blockchain);e.id=t,e.url=n&&n.explorerUrlFor?n.explorerUrlFor({transaction:e}):i.explorerUrlFor({transaction:e}),e.sent&&e.sent(e),Kk({blockchain:e.blockchain,tx:t,smartContractWallet:n}).then((t=>{e.id=t.hash||e.id,e.url=i.explorerUrlFor({transaction:e}),e.nonce=t.nonce||r,Xk(t).then((()=>{e._succeeded=!0,e.succeeded&&e.succeeded(e)})).catch((t=>{t&&t.code&&"TRANSACTION_REPLACED"==t.code?t.replacement&&t.replacement.hash&&t.receipt&&1==t.receipt.status?(e.id=t.replacement.hash,e._succeeded=!0,e.succeeded&&e.succeeded(e)):t.replacement&&t.replacement.hash&&t.receipt&&0==t.receipt.status&&(e.id=t.replacement.hash,e._failed=!0,e.failed&&e.failed(e,t)):(e._failed=!0,e.failed&&e.failed(e,t))}))}))}})),e})({wallet:this,transaction:e})}disconnect(){uL(void 0),localStorage[rL+"_name"]=void 0,localStorage[rL+"_logo"]=void 0,iL=void 0,this.session=void 0}newWalletConnectInstance(e){let t=cL(e);return t.on("disconnect",((e,t)=>{if(this.disconnect(),e)throw e})),t.on("modal_closed",(()=>{uL(void 0),this.connector=void 0,this.session=void 0})),t}async account(){let e;this.connector||(this.connector=oL());try{e=await this.connector.sendCustomRequest({method:"eth_accounts"})}catch(e){}if(e&&e.length)return Xm(e[0])}async connect(e){let t=e&&e.connect?e.connect:({uri:e})=>{};try{if(this.connector=lL.instance,null==this.connector&&(this.connector=this.newWalletConnectInstance(t)),e&&e.reconnect&&this.connector){try{await this.connector.killSession()}catch(e){}this.disconnect()}if(await aL())return await this.account();{let t=await this.connector.connect();return this.session=t,nL([e,"optionalAccess",e=>e.name])&&(localStorage[rL+"_name"]=this.name=e.name),nL([e,"optionalAccess",e=>e.logo])&&(localStorage[rL+"_logo"]=this.logo=e.logo),t.accounts instanceof Array&&t.accounts.length?(uL(this),Xm(t.accounts[0])):void 0}}catch(e){return void console.log("WALLETCONNECT ERROR",e)}}async connectedTo(e){let t=await this.connector.sendCustomRequest({method:"eth_chainId"});const n=he.findById(t);return!!n&&(e?e===n.name:n.name)}switchTo(e){return new Promise(((t,n)=>{let r,i;const o=he.findByName(e);setTimeout((async()=>{await this.connectedTo(e)||r||i?t():n({code:"NOT_SUPPORTED"})}),3e3),this.connector.sendCustomRequest({method:"wallet_switchEthereumChain",params:[{chainId:o.id}]}).then((()=>{r=!0,t()})).catch((o=>{o&&"string"==typeof o.message&&o.message.match("addEthereumChain")?this.addNetwork(e).then((()=>this.switchTo(e).then((()=>{r=!0,t()})))).catch((()=>{i=!0,n({code:"NOT_SUPPORTED"})})):(i=!0,n({code:"NOT_SUPPORTED"}))}))}))}addNetwork(e){return new Promise(((t,n)=>{const r=he.findByName(e);this.connector.sendCustomRequest({method:"wallet_addEthereumChain",params:[{chainId:r.id,chainName:r.fullName,nativeCurrency:{name:r.currency.name,symbol:r.currency.symbol,decimals:r.currency.decimals},rpcUrls:[r.rpc],blockExplorerUrls:[r.explorer],iconUrls:[r.logo]}]}).then(t).catch(n)}))}on(e,t){let n;if("account"===e)n=(e,n)=>{if(n&&n.params&&n.params[0].accounts&&n.params[0].accounts instanceof Array){const e=n.params[0].accounts.map((e=>Xm(e)));t(e[0])}},this.connector.on("session_update",n);return n}off(e,t){if("account"===e)this.connector.off("session_update")}async transactionCount({blockchain:e,address:t}){const n=await Zk(e,t);return n?await n.transactionCount():await PI({blockchain:e,method:"transactionCount",address:t})}async sign(e){if("object"==typeof e){let t=await this.account();if(!1===await this.connectedTo(he.findByNetworkId(e.domain.chainId).name))throw{code:"WRONG_NETWORK"};return await this.connector.sendCustomRequest({jsonrpc:"2.0",method:"eth_signTypedData_v4",params:[t,JSON.stringify(e)]})}if("string"==typeof e){let n=await this.connectedTo(),r=await this.account();if(await Zk(n,r))throw{message:"Smart contract wallets are not supported for signing!",code:"SMART_CONTRACT_WALLET_NOT_SUPPORTED"};var t=[Mg(e),r];return await this.connector.signPersonalMessage(t)}}}function dL(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}lL.__initStatic(),lL.__initStatic2(),lL.getConnectedInstance=sL,lL.setConnectedInstance=uL;const hL=e=>new Promise(((t,n)=>{try{e.wait(1).then(t).catch((r=>{r&&dL([r,"optionalAccess",e=>e.stack,"optionalAccess",e=>e.match,"call",e=>e("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{hL(e).then(t).catch(n)}),500):n(r)}))}catch(r){r&&dL([r,"optionalAccess",e=>e.stack,"optionalAccess",e=>e.match,"call",e=>e("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{hL(e).then(t).catch(n)}),500):n(r)}})),pL=(e,t)=>new Promise((async(n,r)=>{try{let r;const i=await SI(t);r=await i.getTransaction(e);const o=120;let a=1;for(;a<=o&&!r;)r=await i.getTransaction(e),await new Promise((e=>setTimeout(e,5e3))),a++;n(r)}catch(i){i&&dL([i,"optionalAccess",e=>e.stack,"optionalAccess",e=>e.match,"call",e=>e("JSON-RPC error")])||i&&i.toString().match("undefined")?setTimeout((()=>{pL(e,t).then(n).catch(r)}),500):r(i)}})),fL=({transaction:e,wallet:t})=>e.method?yL({transaction:e,wallet:t}):mL({transaction:e,wallet:t}),yL=async({transaction:e,wallet:t})=>{const n=await SI(e.blockchain),r=he[e.blockchain];let i;try{i=await DI(e),i=i.add(i.div(10))}catch(e){}const o=await n.getGasPrice();return t.signClient.request({topic:t.session.topic,chainId:`${r.namespace}:${r.networkId}`,request:{method:"eth_sendTransaction",params:[{from:e.from,to:e.to,value:e.value?zy.from(e.value.toString()).toHexString():void 0,data:await e.getData(),gas:dL([i,"optionalAccess",e=>e.toHexString,"call",e=>e()]),gasPrice:o.toHexString(),nonce:e.nonce}]}}).catch((e=>{console.log("ERROR",e)}))},mL=async({transaction:e,wallet:t})=>{const n=await SI(e.blockchain);let r,i=he[e.blockchain];try{r=await DI(e),r=r.add(r.div(10))}catch(e){}const o=await n.getGasPrice();return t.signClient.request({topic:t.session.topic,chainId:`${i.namespace}:${i.networkId}`,request:{method:"eth_sendTransaction",params:[{from:e.from,to:e.to,value:e.value?zy.from(e.value.toString()).toHexString():void 0,gas:dL([r,"optionalAccess",e=>e.toHexString,"call",e=>e()]),gasPrice:o.toHexString(),nonce:e.nonce}]}}).catch((e=>{console.log("ERROR",e)}))};function gL(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const vL="depay:wallets:wc2",bL={MetaMask:{methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4","wallet_switchEthereumChain"]},"BitGet (BitKeep)":{methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"],requiredNamespaces:{eip155:{chains:["ethereum","bsc","polygon","arbitrum","base"].map((e=>`eip155:${he[e].networkId}`))}},optionalNamespaces:{}},BitGet:{methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"],requiredNamespaces:{eip155:{chains:["ethereum","bsc","polygon","arbitrum","base"].map((e=>`eip155:${he[e].networkId}`))}},optionalNamespaces:{}},"Uniswap Wallet":{methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"],requiredNamespaces:{eip155:{chains:["ethereum","polygon","arbitrum","optimism","base"].map((e=>`eip155:${he[e].networkId}`))}},optionalNamespaces:{}},"Ledger Live":{methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"],requiredNamespaces:{},optionalNamespaces:{eip155:{chains:he.all.map((e=>`eip155:${e.networkId}`))}}},"Enjin Wallet":{methods:["eth_sendTransaction","personal_sign","eth_signTypedData"]}},wL={events:["accountsChanged"],methods:["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"]},ML=async e=>{if(!localStorage[vL+":projectId"])return;if(e!==localStorage[vL+":lastSessionWalletName"])return;let t,n=await EL();try{t=n.find(AL(e))}catch(e){}const r=t?t[t.length-1]:void 0;if(r&&localStorage[vL+":lastExpiredSessionTopic"]!==r.topic&&r.expiry>Math.ceil(Date.now()/1e3)){return await Promise.race([n.ping({topic:r.topic}),new Promise((e=>setTimeout(e,1500)))])?r:void(localStorage[vL+":lastExpiredSessionTopic"]=r.topic)}},AL=e=>{const t=gL([bL,"access",t=>t[e],"optionalAccess",e=>e.methods])||wL.methods,n=gL([bL,"access",t=>t[e],"optionalAccess",e=>e.events])||wL.events;let r={};gL([bL,"access",t=>t[e],"optionalAccess",e=>e.requiredNamespaces])?r=bL[e].requiredNamespaces:r.eip155={chains:["eip155:1"]},r.eip155&&(r.eip155.methods=t,r.eip155.events=n);let i={};return gL([bL,"access",t=>t[e],"optionalAccess",e=>e.optionalNamespaces])?i=bL[e].optionalNamespaces:i.eip155={chains:$I.evm.map((e=>`${he[e].namespace}:${he[e].networkId}`))},gL([i,"optionalAccess",e=>e.eip155])&&gL([i,"optionalAccess",e=>e.eip155,"optionalAccess",e=>e.chains,"optionalAccess",e=>e.length])&&(i.eip155.methods=t,i.eip155.events=n),{requiredNamespaces:r,optionalNamespaces:i}},EL=()=>(window.getSignClientPromise||(window.getSignClientPromise=new Promise((async e=>{e(await WI.init({projectId:localStorage[vL+":projectId"],metadata:{name:document.title||"dApp",description:gL([document,"access",e=>e.querySelector,"call",e=>e('meta[name="description"]'),"optionalAccess",e=>e.getAttribute,"call",e=>e("content")])||document.title||"dApp",url:location.href,icons:[gL([document,"access",e=>e.querySelector,"call",e=>e("link[rel~='icon'], link[rel~='shortcut icon']"),"optionalAccess",e=>e.href])||`${location.origin}/favicon.ico`]}}))}))),window.getSignClientPromise);class NL{static __initStatic(){this.info={name:"WalletConnect V2",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcgeT0nMHB4JyB2aWV3Qm94PScwIDAgNTAwIDUwMCcgc3R5bGU9J2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAwIDUwMDsnIHhtbDpzcGFjZT0ncHJlc2VydmUnPjxzdHlsZSB0eXBlPSd0ZXh0L2Nzcyc+IC5zdDB7ZmlsbDojNTk5MUNEO30KPC9zdHlsZT48ZyBpZD0nUGFnZS0xJz48ZyBpZD0nd2FsbGV0Y29ubmVjdC1sb2dvLWFsdCc+PHBhdGggaWQ9J1dhbGxldENvbm5lY3QnIGNsYXNzPSdzdDAnIGQ9J00xMDIuNywxNjJjODEuNS03OS44LDIxMy42LTc5LjgsMjk1LjEsMGw5LjgsOS42YzQuMSw0LDQuMSwxMC41LDAsMTQuNEwzNzQsMjE4LjkgYy0yLDItNS4zLDItNy40LDBsLTEzLjUtMTMuMmMtNTYuOC01NS43LTE0OS01NS43LTIwNS44LDBsLTE0LjUsMTQuMWMtMiwyLTUuMywyLTcuNCwwTDkxLjksMTg3Yy00LjEtNC00LjEtMTAuNSwwLTE0LjQgTDEwMi43LDE2MnogTTQ2Ny4xLDIyOS45bDI5LjksMjkuMmM0LjEsNCw0LjEsMTAuNSwwLDE0LjRMMzYyLjMsNDA1LjRjLTQuMSw0LTEwLjcsNC0xNC44LDBjMCwwLDAsMCwwLDBMMjUyLDMxMS45IGMtMS0xLTIuNy0xLTMuNywwaDBsLTk1LjUsOTMuNWMtNC4xLDQtMTAuNyw0LTE0LjgsMGMwLDAsMCwwLDAsMEwzLjQsMjczLjZjLTQuMS00LTQuMS0xMC41LDAtMTQuNGwyOS45LTI5LjIgYzQuMS00LDEwLjctNCwxNC44LDBsOTUuNSw5My41YzEsMSwyLjcsMSwzLjcsMGMwLDAsMCwwLDAsMGw5NS41LTkzLjVjNC4xLTQsMTAuNy00LDE0LjgsMGMwLDAsMCwwLDAsMGw5NS41LDkzLjUgYzEsMSwyLjcsMSwzLjcsMGw5NS41LTkzLjVDNDU2LjQsMjI1LjksNDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==",blockchains:$I.evm}}static __initStatic2(){this.isAvailable=async e=>!!await ML(gL([e,"optionalAccess",e=>e.walletName]))}constructor(){this.name=localStorage[vL+":name"]&&null!=localStorage[vL+":name"]?localStorage[vL+":name"]:this.constructor.info.name,this.logo=localStorage[vL+":logo"]&&null!=localStorage[vL+":logo"]?localStorage[vL+":logo"]:this.constructor.info.logo,this.sendTransaction=e=>(async({transaction:e,wallet:t})=>{if(e=new VI(e),0==await t.connectedTo(e.blockchain))throw{code:"WRONG_NETWORK"};await e.prepare({wallet:t});let n=await PI({blockchain:e.blockchain,method:"transactionCount",address:e.from});return e.nonce=n,await fL({transaction:e,wallet:t}).then((async t=>{if("string"!=typeof t)throw t;{let r=he[e.blockchain];e.id=t,e.url=r.explorerUrlFor({transaction:e}),e.sent&&e.sent(e);let i=await pL(e.id,e.blockchain);e.nonce=i.nonce||n,i?hL(i).then((()=>{e._succeeded=!0,e.succeeded&&e.succeeded(e)})).catch((t=>{t&&t.code&&"TRANSACTION_REPLACED"==t.code?t.replacement&&t.replacement.hash&&t.receipt&&1==t.receipt.status?(e.id=t.replacement.hash,e._succeeded=!0,e.succeeded&&e.succeeded(e)):t.replacement&&t.replacement.hash&&t.receipt&&0==t.receipt.status&&(e.id=t.replacement.hash,e._failed=!0,e.failed&&e.failed(e,t)):(e._failed=!0,e.failed&&e.failed(e,t))})):(e._failed=!0,e.failed&&e.failed(e,"Error retrieving transaction"))}})),e})({wallet:this,transaction:e})}async account(){if(gL([this,"access",e=>e.session,"optionalAccess",e=>e.namespaces,"optionalAccess",e=>e.eip155,"optionalAccess",e=>e.accounts,"optionalAccess",e=>e.length]))return this.session.namespaces.eip155.accounts[0].split(":")[2]}async setSessionBlockchains(){this.session&&gL([this,"access",e=>e.session,"optionalAccess",e=>e.namespaces,"optionalAccess",e=>e.eip155])&&(gL([bL,"access",e=>e[this.walletName],"optionalAccess",e=>e.methods,"optionalAccess",e=>e.includes,"call",e=>e("wallet_switchEthereumChain")])?this.blockchains=[this.session.namespaces.eip155.chains[this.session.namespaces.eip155.chains.length-1]].map((e=>gL([he,"access",e=>e.findByNetworkId,"call",t=>t(e.split(":")[1]),"optionalAccess",e=>e.name]))).filter(Boolean):this.session.namespaces.eip155.chains?this.blockchains=this.session.namespaces.eip155.chains.map((e=>gL([he,"access",e=>e.findByNetworkId,"call",t=>t(e.split(":")[1]),"optionalAccess",e=>e.name]))).filter(Boolean):this.session.namespaces.eip155.accounts&&(this.blockchains=this.session.namespaces.eip155.accounts.map((e=>gL([he,"access",e=>e.findByNetworkId,"call",t=>t(e.split(":")[1]),"optionalAccess",e=>e.name]))).filter(Boolean)))}async connect(e){let t=e&&e.connect?e.connect:({uri:e})=>{};try{this.walletName=gL([e,"optionalAccess",e=>e.name]),this.signClient=await EL(),this.signClient.on("session_delete",(e=>{gL([e,"optionalAccess",e=>e.topic])===gL([this,"access",e=>e.session,"optionalAccess",e=>e.topic])&&(localStorage[vL+":name"]=void 0,localStorage[vL+":logo"]=void 0,this.signClient=void 0,this.session=void 0)})),this.signClient.on("session_update",(async e=>{gL([e,"optionalAccess",e=>e.topic])===gL([this,"access",e=>e.session,"optionalAccess",e=>e.topic])&&(this.session=this.signClient.session.get(e.topic),await this.setSessionBlockchains())})),this.signClient.on("session_event",(e=>{gL([e,"optionalAccess",e=>e.topic]),gL([this,"access",e=>e.session,"optionalAccess",e=>e.topic])}));const n=async()=>{const{uri:e,approval:n}=await this.signClient.connect(AL(this.walletName));await t({uri:e}),this.session=await n(),localStorage[vL+":lastSessionWalletName"]=this.walletName,await new Promise((e=>setTimeout(e,500)))},r=gL([this,"optionalAccess",e=>e.walletName,"optionalAccess",e=>e.length])?await ML(this.walletName):void 0;r?this.session=r:await n();let i=gL([this,"access",e=>e.session,"optionalAccess",e=>e.peer,"optionalAccess",e=>e.metadata]);return i&&i.name&&(this.name=i.name,localStorage[vL+":name"]=i.name,gL([i,"optionalAccess",e=>e.icons])&&i.icons.length&&(this.logo=i.icons[0],localStorage[vL+":logo"]=this.logo)),gL([e,"optionalAccess",e=>e.name])&&(localStorage[vL+":name"]=this.name=e.name),gL([e,"optionalAccess",e=>e.logo])&&(localStorage[vL+":logo"]=this.logo=e.logo),await this.setSessionBlockchains(),await this.account()}catch(e){console.log("WALLETCONNECT ERROR",e)}}async connectedTo(e){return e?this.blockchains.indexOf(e)>-1:this.blockchains}getValidChainId(){return`eip155:${he[this.blockchains[0]].networkId}`}switchTo(e){return new Promise(((t,n)=>{const r=he[e];Promise.race([this.signClient.request({topic:this.session.topic,chainId:this.getValidChainId(),request:{method:"wallet_switchEthereumChain",params:[{chainId:r.id}]}}),new Promise(((t,n)=>setTimeout((()=>{-1===this.blockchains.indexOf(e)&&n({code:"NOT_SUPPORTED"})}),8e3)))]).catch(n)}))}addNetwork(e){return new Promise(((e,t)=>{t({code:"NOT_SUPPORTED"})}))}on(e,t){let n;if("account"===e)n=async e=>{gL([e,"optionalAccess",e=>e.topic])===gL([this,"access",e=>e.session,"optionalAccess",e=>e.topic])&&"accountsChanged"===e.params.event.name&&t(await this.account())},this.signClient.on("session_event",n);return n}off(e,t){if("account"===e)this.signClient.off("session_event",t)}async transactionCount({blockchain:e,address:t}){const n=await Zk(e,t);return n?await n.transactionCount():await PI({blockchain:e,method:"transactionCount",address:t})}async sign(e){if("object"==typeof e){let t=await this.account();return await this.signClient.request({topic:this.session.topic,chainId:this.getValidChainId(),request:{method:"eth_signTypedData_v4",params:[t,JSON.stringify(e)]}})}if("string"==typeof e){const t=await this.account(),n=[Ny(Mg(e)),t];let r=await this.signClient.request({topic:this.session.topic,chainId:this.getValidChainId(),request:{method:"personal_sign",params:n}});return"object"==typeof r&&(r=Ny(r)),r}}}function TL(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}NL.__initStatic(),NL.__initStatic2(),NL.getConnectedInstance=async()=>{if(await NL.isAvailable())return new NL};const IL=e=>new Promise(((t,n)=>{try{e.wait(1).then(t).catch((r=>{r&&TL([r,"optionalAccess",e=>e.stack,"optionalAccess",e=>e.match,"call",e=>e("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{IL(e).then(t).catch(n)}),500):n(r)}))}catch(r){r&&TL([r,"optionalAccess",e=>e.stack,"optionalAccess",e=>e.match,"call",e=>e("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{IL(e).then(t).catch(n)}),500):n(r)}})),kL=({transaction:e,provider:t,signer:n})=>e.method?LL({transaction:e,signer:n,provider:t}):xL({transaction:e,signer:n}),LL=({transaction:e,signer:t,provider:n})=>{let r=new PN(e.to,e.api,n),i=e.getContractArguments({contract:r}),o=r.connect(t)[e.getMethodNameWithSignature()];return i?o(...i,{value:VI.bigNumberify(e.value,e.blockchain)}):o({value:VI.bigNumberify(e.value,e.blockchain)})},xL=({transaction:e,signer:t})=>t.sendTransaction({to:e.to,value:VI.bigNumberify(e.value,e.blockchain)});function SL(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const jL=()=>window._connectedWalletLinkInstance,CL=e=>{window._connectedWalletLinkInstance=e};class DL{static __initStatic(){this.info={name:"Coinbase",logo:yk,blockchains:$I.evm}}static __initStatic2(){this.isAvailable=async()=>null!=jL()}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,Object.keys(localStorage).forEach((e=>{e.match("-walletlink:https://www.walletlink.org")&&delete localStorage[e]})),this.connector=DL.instance||this.newWalletLinkInstance(),this.sendTransaction=e=>(async({transaction:e,wallet:t})=>{if(e=new VI(e),0==await t.connectedTo(e.blockchain)&&await t.switchTo(e.blockchain),0==await t.connectedTo(e.blockchain))throw{code:"WRONG_NETWORK"};await e.prepare({wallet:t});let n=new eI(t.connector,"any"),r=n.getSigner(0);return await kL({transaction:e,provider:n,signer:r}).then((t=>{if(!t)throw"Submitting transaction failed!";e.id=t.hash,e.nonce=t.nonce,e.url=he.findByName(e.blockchain).explorerUrlFor({transaction:e}),e.sent&&e.sent(e),IL(t).then((()=>{e._succeeded=!0,e.succeeded&&e.succeeded(e)})).catch((t=>{t&&t.code&&"TRANSACTION_REPLACED"==t.code?(t.replacement&&t.replacement.hash&&(e.id=t.replacement.hash,e.url=he.findByName(e.blockchain).explorerUrlFor({transaction:e})),t.replacement&&t.replacement.hash&&t.receipt&&1==t.receipt.status?(e._succeeded=!0,e.succeeded&&e.succeeded(e)):t.replacement&&t.replacement.hash&&t.receipt&&0==t.receipt.status&&(e._failed=!0,e.failed&&e.failed(e,t))):(e._failed=!0,e.failed&&e.failed(e,t))}))})),e})({wallet:this,transaction:e})}newWalletLinkInstance(){return new YI({}).makeWeb3Provider()}async account(){if(null!=this.connectedAccounts)return Xm(this.connectedAccounts[0])}async connect(e){let t=e&&e.connect?e.connect:({uri:e})=>{};await t({uri:this.connector.qrUrl}),SL([document,"access",e=>e.querySelector,"call",e=>e(".-cbwsdk-css-reset"),"optionalAccess",e=>e.setAttribute,"call",e=>e("style","display: none;")]),SL([document,"access",e=>e.querySelector,"call",e=>e(".-cbwsdk-extension-dialog-container"),"optionalAccess",e=>e.setAttribute,"call",e=>e("style","display: none;")]),setTimeout((()=>{SL([this,"optionalAccess",e=>e.connector,"optionalAccess",e=>e._relay,"optionalAccess",e=>e.ui,"optionalAccess",e=>e.linkFlow,"optionalAccess",e=>e.isOpen])&&(this.connector._relay.ui.linkFlow.isOpen=!1)}),10),(await this.connector._relayProvider()).setConnectDisabled(!1);let n=await this.connector.enable();return n instanceof Array&&n.length&&CL(this),n=n.map((e=>Xm(e))),this.connectedAccounts=n,this.connectedChainId=await this.connector.getChainId(),n[0]}async connectedTo(e){let t=await this.connector.getChainId();const n=he.findByNetworkId(t);return!!n&&(e?e===n.name:n.name)}switchTo(e){return new Promise(((t,n)=>{const r=he.findByName(e);this.connector.request({method:"wallet_switchEthereumChain",params:[{chainId:r.id}]}).then(t).catch((r=>{4902===r.code?this.addNetwork(e).then((()=>this.switchTo(e).then(t))).catch(n):n(r)}))}))}addNetwork(e){return new Promise(((t,n)=>{const r=he.findByName(e);this.connector.request({method:"wallet_addEthereumChain",params:[{chainId:r.id,chainName:r.fullName,nativeCurrency:{name:r.currency.name,symbol:r.currency.symbol,decimals:r.currency.decimals},rpcUrls:[r.rpc],blockExplorerUrls:[r.explorer],iconUrls:[r.logo]}]}).then(t).catch(n)}))}on(e,t){let n;if("account"===e)n=e=>t(Xm(e[0])),this.connector.on("accountsChanged",n);return n}off(e,t){if("account"===e)this.connector.removeListener("accountsChanged",t);return t}transactionCount({blockchain:e,address:t}){return PI({blockchain:e,method:"transactionCount",address:t})}async sign(e){if("object"==typeof e){let t=this.connector,n=await this.account();if(!1===await this.connectedTo(he.findByNetworkId(e.domain.chainId).name))throw{code:"WRONG_NETWORK"};return await t.request({method:"eth_signTypedData_v4",params:[n,e],from:n})}if("string"==typeof e){await this.account();let t=new eI(this.connector,"any").getSigner(0);return await t.signMessage(e)}}}DL.__initStatic(),DL.__initStatic2(),DL.getConnectedInstance=jL,DL.setConnectedInstance=CL;var OL={MetaMask:Lk,PhantomEVM:Sk,PhantomSVM:Ck,CoinbaseEVM:wk,CoinbaseSVM:Mk,Binance:lk,TrustEVM:Fk,TrustSVM:Vk,Backpack:nk,Glow:Tk,Solflare:Wk,Rabby:Dk,Brave:dk,Opera:xk,Coin98EVM:gk,Coin98SVM:vk,CryptoCom:Ak,HyperPay:Ik,TokenPocket:Qk,ExodusEVM:Ek,ExodusSVM:Nk,WindowEthereum:ck,WindowSolana:tk,SolanaMobileWalletAdapter:Uk,WalletConnectV1:lL,WalletConnectV2:NL,WalletLink:DL};const zL=async e=>{let t=e&&"function"==typeof e.drip?e.drip:void 0,n=await Promise.all(Object.keys(OL).map((async e=>{let n=OL[e];if(await n.isAvailable()){let e;return n.getConnectedInstance?(e=await n.getConnectedInstance(),t&&e&&t(e),e):(t&&n&&t(n),new n)}})));return n.filter(Boolean)};var _L=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],PL=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"}],BL=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"guy",type:"address"},{name:"wad",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"src",type:"address"},{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"wad",type:"uint256"}],name:"withdraw",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"deposit",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"guy",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Withdrawal",type:"event"}];const RL=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}];var UL=({blockchain:e,address:t,api:n,id:r})=>r?new Promise((n=>{PI({blockchain:e,address:t,api:RL,method:"uri",params:[r]}).then((e=>{var t;e=e.match("0x{id}")?e.replace("0x{id}",r):e,(t=e,new Promise((e=>{t.match(/^ipfs/)&&(t=`https://ipfs.io/ipfs/${t.split("://")[1]}`),fetch(t).then((t=>{if(t.ok)return t.json();e()})).then((t=>{if(t){let n=t.name;n?e(n):e()}})).catch((()=>e()))}))).then(n)})).catch((e=>{console.log("error",e),n()}))})):PI({blockchain:e,address:t,api:n,method:"name",cache:864e5});const WL="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";var QL=async({token:e,owner:t})=>{const[n]=await yc.findProgramAddress([new yc(t).toBuffer(),new yc(WL).toBuffer(),new yc(e).toBuffer()],new yc("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"));return function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([n,"optionalAccess",e=>e.toString,"call",e=>e()])};const YL=Of([Pf("mintAuthorityOption"),jf("mintAuthority"),Bf("supply"),Rf("decimals"),If("isInitialized"),Pf("freezeAuthorityOption"),jf("freezeAuthority")]),FL=Cf([Of([],"uninitialized"),Of([],"editionV1"),Of([],"masterEditionV1"),Of([],"reservationListV1"),Of([],"metadataV1"),Of([],"reservationListV2"),Of([],"masterEditionV2"),Of([],"editionMarker")]),VL=Of([jf("address"),If("verified"),Rf("share")]),HL=Of([Df("name"),Df("symbol"),Df("uri"),_f("sellerFeeBasisPoints"),Sf(Uf(VL.replicate("creators")),"creators")]),GL=Of([FL.replicate("key"),jf("updateAuthority"),jf("mint"),HL.replicate("data"),If("primarySaleHappened"),If("isMutable"),Sf(Rf(),"editionNonce")]),qL=Of([Rf("instruction"),Bf("amount")]),ZL=Of([jf("mint"),jf("owner"),Bf("amount"),Pf("delegateOption"),jf("delegate"),Rf("state"),Pf("isNativeOption"),Bf("isNative"),Bf("delegatedAmount"),Pf("closeAuthorityOption"),jf("closeAuthority")]),JL=Of([Rf("instruction"),jf("owner")]),XL=Of([Rf("instruction")]);var KL=Object.freeze({__proto__:null,createTransferInstruction:async({token:e,amount:t,from:n,to:r})=>{let i=await QL({token:e,owner:n}),o=await QL({token:e,owner:r});const a=[{pubkey:new yc(i),isSigner:!1,isWritable:!0},{pubkey:new yc(o),isSigner:!1,isWritable:!0},{pubkey:new yc(n),isSigner:!0,isWritable:!1}],s=Ef.alloc(qL.span);return qL.encode({instruction:3,amount:new Nf(t)},s),new zc({keys:a,programId:new yc(WL),data:s})},createAssociatedTokenAccountInstruction:async({token:e,owner:t,payer:n})=>{let r=await QL({token:e,owner:t});const i=[{pubkey:new yc(n),isSigner:!0,isWritable:!0},{pubkey:new yc(r),isSigner:!1,isWritable:!0},{pubkey:new yc(t),isSigner:!1,isWritable:!1},{pubkey:new yc(e),isSigner:!1,isWritable:!1},{pubkey:sl.programId,isSigner:!1,isWritable:!1},{pubkey:new yc(WL),isSigner:!1,isWritable:!1}];return new zc({keys:i,programId:new yc("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),data:Ef.alloc(0)})},initializeAccountInstruction:({account:e,token:t,owner:n})=>{const r=[{pubkey:new yc(e),isSigner:!1,isWritable:!0},{pubkey:new yc(t),isSigner:!1,isWritable:!1}],i=Ef.alloc(JL.span);return JL.encode({instruction:18,owner:new yc(n)},i),new zc({keys:r,programId:new yc(WL),data:i})},closeAccountInstruction:({account:e,owner:t})=>{const n=[{pubkey:new yc(e),isSigner:!1,isWritable:!0},{pubkey:new yc(t),isSigner:!1,isWritable:!0},{pubkey:new yc(t),isSigner:!0,isWritable:!1}],r=Ef.alloc(XL.span);return XL.encode({instruction:9},r),new zc({keys:n,programId:new yc(WL),data:r})}});function $L(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const ex=new RegExp("\0","g"),tx=async({metaDataPublicKey:e,mintPublicKey:t})=>{let n=[Ef.from("metadata"),e.toBuffer(),t.toBuffer()];return(await yc.findProgramAddress(n,e))[0]},nx=async({blockchain:e,address:t})=>{let n=new yc(t),r=new yc("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"),i=await tx({metaDataPublicKey:r,mintPublicKey:n}),o=await PI({blockchain:e,address:i.toString(),api:GL,cache:864e5});return{name:$L([o,"optionalAccess",e=>e.data,"optionalAccess",e=>e.name,"optionalAccess",e=>e.replace,"call",e=>e(ex,"")]),symbol:$L([o,"optionalAccess",e=>e.data,"optionalAccess",e=>e.symbol,"optionalAccess",e=>e.replace,"call",e=>e(ex,"")])}};let rx=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];function ix(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}rx.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],rx.solana=["solana"];class ox{constructor({blockchain:e,address:t}){this.blockchain=e,rx.evm.includes(this.blockchain)?this.address=Xm(t):rx.solana.includes(this.blockchain)&&(this.address=t)}async decimals(){if(this.address==he.findByName(this.blockchain).currency.address)return he.findByName(this.blockchain).currency.decimals;let e;try{rx.evm.includes(this.blockchain)?e=await(({blockchain:e,address:t,api:n})=>PI({blockchain:e,address:t,api:n,method:"decimals",cache:864e5}))({blockchain:this.blockchain,address:this.address,api:ox[this.blockchain].DEFAULT}):rx.solana.includes(this.blockchain)&&(e=await(async({blockchain:e,address:t})=>(await PI({blockchain:e,address:t,api:YL})).decimals)({blockchain:this.blockchain,address:this.address}))}catch(e){}return e}async symbol(){return this.address==he.findByName(this.blockchain).currency.address?he.findByName(this.blockchain).currency.symbol:rx.evm.includes(this.blockchain)?await(({blockchain:e,address:t,api:n})=>PI({blockchain:e,address:t,api:n,method:"symbol",cache:864e5}))({blockchain:this.blockchain,address:this.address,api:ox[this.blockchain].DEFAULT}):rx.solana.includes(this.blockchain)?await(async({blockchain:e,address:t})=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([await nx({blockchain:e,address:t}),"optionalAccess",e=>e.symbol]))({blockchain:this.blockchain,address:this.address}):void 0}async name(e){return this.address==he.findByName(this.blockchain).currency.address?he.findByName(this.blockchain).currency.name:rx.evm.includes(this.blockchain)?await UL({blockchain:this.blockchain,address:this.address,api:ox[this.blockchain].DEFAULT,id:ix([e,"optionalAccess",e=>e.id])}):rx.solana.includes(this.blockchain)?await(async({blockchain:e,address:t})=>function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([await nx({blockchain:e,address:t}),"optionalAccess",e=>e.name]))({blockchain:this.blockchain,address:this.address}):void 0}async balance(e,t){return rx.evm.includes(this.blockchain)?await(async({blockchain:e,address:t,account:n,api:r,id:i})=>t==he[e].currency.address?await PI({blockchain:e,address:n,method:"balance",cache:1e4}):await PI({blockchain:e,address:t,method:"balanceOf",api:r,params:i?[n,i]:[n],cache:1e4}))({blockchain:this.blockchain,account:e,address:this.address,api:t?ox[this.blockchain][1155]:ox[this.blockchain].DEFAULT,id:t}):rx.solana.includes(this.blockchain)?await(async({blockchain:e,address:t,account:n,api:r})=>{if(t==he[e].currency.address)return zy.from(await PI(`solana://${n}/balance`));{const e=await QL({token:t,owner:n}),r=await PI(`solana://${e}/getTokenAccountBalance`);return r?zy.from(r.value.amount):zy.from("0")}})({blockchain:this.blockchain,account:e,address:this.address,api:ox[this.blockchain].DEFAULT}):void 0}async allowance(e,t){return this.address==he.findByName(this.blockchain).currency.address?zy.from(he.findByName(this.blockchain).maxInt):rx.evm.includes(this.blockchain)?await(({blockchain:e,address:t,api:n,owner:r,spender:i})=>PI({blockchain:e,address:t,api:n,method:"allowance",params:[r,i],cache:5e3}))({blockchain:this.blockchain,address:this.address,api:ox[this.blockchain].DEFAULT,owner:e,spender:t}):rx.solana.includes(this.blockchain)?zy.from(he.findByName(this.blockchain).maxInt):void 0}async BigNumber(e){let t=await this.decimals();return lI(ox.safeAmount({amount:parseFloat(e),decimals:t}).toString(),t)}async readable(e){let t=await this.decimals(),n=cI(e.toString(),t);return n=n.replace(/\.0+$/,""),n}}ox.BigNumber=async({amount:e,blockchain:t,address:n})=>new ox({blockchain:t,address:n}).BigNumber(e),ox.readable=async({amount:e,blockchain:t,address:n})=>new ox({blockchain:t,address:n}).readable(e),ox.safeAmount=({amount:e,decimals:t})=>parseFloat(e.toFixed(t)),ox.ethereum={DEFAULT:PL,ERC20:PL,20:PL,1155:_L,WRAPPED:BL},ox.bsc={DEFAULT:PL,BEP20:PL,20:PL,1155:_L,WRAPPED:BL},ox.polygon={DEFAULT:PL,ERC20:PL,20:PL,1155:_L,WRAPPED:BL},ox.fantom={DEFAULT:PL,FTM20:PL,20:PL,1155:_L,WRAPPED:BL},ox.arbitrum={DEFAULT:PL,ERC20:PL,20:PL,1155:_L,WRAPPED:BL},ox.avalanche={DEFAULT:PL,ERC20:PL,ARC20:PL,20:PL,1155:_L,WRAPPED:BL},ox.gnosis={DEFAULT:PL,ERC20:PL,20:PL,1155:_L,WRAPPED:BL},ox.optimism={DEFAULT:PL,ERC20:PL,20:PL,1155:_L,WRAPPED:BL},ox.base={DEFAULT:PL,ERC20:PL,20:PL,1155:_L,WRAPPED:BL},ox.solana={MINT_LAYOUT:YL,METADATA_LAYOUT:GL,TRANSFER_LAYOUT:qL,METADATA_ACCOUNT:"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",TOKEN_PROGRAM:WL,TOKEN_LAYOUT:ZL,ASSOCIATED_TOKEN_PROGRAM:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",findProgramAddress:QL,findAccount:async({token:e,owner:t})=>{const n=await QL({token:e,owner:t});return await PI({blockchain:"solana",address:n,api:ZL,cache:1e3})},getMetaData:nx,getMetaDataPDA:tx,...KL};const ax=({assets:e,blockchain:t,options:n})=>n.only?e.filter((e=>(n.only[t]||[]).find((t=>t.toLowerCase()==e.address.toLowerCase())))):n.exclude?e.filter((e=>(n.exclude[t]||[]).find((t=>t.toLowerCase()!=e.address.toLowerCase())))):e;var sx=async e=>{void 0===e&&(e={accounts:{}});let t=Promise.all(Object.keys(e.accounts).map((t=>new Promise(((n,r)=>{const i=e.accounts[t],o=new AbortController;setTimeout((()=>o.abort()),1e4),fetch(`https://public.depay.com/accounts/${t}/${i}/assets`,{signal:o.signal}).catch((()=>{n([])})).then((e=>{if(e&&e.ok)return e.json();n([])})).then((async r=>{if(r&&r.length)return await(async({address:e,options:t,assets:n,blockchain:r})=>{if(t.only&&t.only[r]&&!t.only[r].find((e=>e.toLowerCase()==he[r].currency.address.toLowerCase())))return n;if(t.exclude&&t.exclude[r]&&t.exclude[r].find((e=>e.toLowerCase()==he[r].currency.address.toLowerCase())))return n;if(!n.find((e=>e.address.toLowerCase()==he[r].currency.address.toLowerCase()))){let t=await PI({blockchain:r,address:e,method:"balance"},{cache:3e4});n=[{name:he[r].currency.name,symbol:he[r].currency.symbol,address:he[r].currency.address,type:"NATIVE",blockchain:r,balance:t.toString()},...n]}return n})({address:i,options:e,assets:ax({assets:r,blockchain:t,options:e}).map((e=>Object.assign(e,{blockchain:t}))),blockchain:t});n([])})).then(n).catch((()=>{n([])}))}))))).then((e=>e.flat()));return t};function ux(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const cx=(e,t)=>Object.assign({},{address:e.address,symbol:e.symbol,name:e.name,decimals:e.decimals,type:e.type,blockchain:e.blockchain},{balance:t.toString()}),lx=({assets:e,asset:t})=>!!e.find((e=>e.blockchain==t.blockchain&&e.address.toLowerCase()==t.address.toLowerCase())),dx=({options:e,address:t,blockchain:n})=>!(!(e&&e.only&&e.only[n])||e.only[n].find((e=>e.toLowerCase()==t.toLowerCase())))||!!(e&&e.exclude&&e.exclude[n]&&e.exclude[n].find((e=>e.toLowerCase()==t.toLowerCase()))),hx=(e,t,n)=>{if(!e||0===e.length)return 0;let r=e.indexOf([t.blockchain,t.address.toLowerCase()].join("")),i=e.indexOf([n.blockchain,n.address.toLowerCase()].join(""));return-1!==r&&-1===i?-1:-1!==i&&-1===r?1:r{void 0===e&&(e={accounts:{},priority:[]});let t=[],n=[],r=[],i=ux([e,"optionalAccess",e=>e.priority,"optionalAccess",e=>e.map,"call",e=>e((e=>[e.blockchain,e.address.toLowerCase()].join("")))]),o=0,a=[];const s=(t,r=!0)=>{if("function"!=typeof e.drip)return;const u=[t.blockchain,t.address.toLowerCase()].join("");if(!(n.indexOf(u)>-1))if(i&&i.length&&i.indexOf(u)===o){if(n.push(u),e.drip(t),o+=1,!r)return;a.forEach((e=>s(e,!1)))}else!i||0===i.length||o>=i.length?i&&0!==i.length&&-1!==i.indexOf(u)?o>=i.length&&(n.push(u),e.drip(t)):(n.push(u),e.drip(t)):a.find((e=>e.blockchain===t.blockchain&&e.address.toLowerCase()===t.address.toLowerCase()))||(a.push(t),a.sort(((e,t)=>hx(i,e,t))))};r=r.concat((e.priority||[]).map((n=>new Promise((async(r,i)=>{try{let i=new ox(n),o=Object.assign({},n,{name:await i.name(),symbol:await i.symbol(),decimals:await i.decimals(),balance:(await i.balance(e.accounts[n.blockchain])).toString(),type:he[n.blockchain].currency.address.toLowerCase()===n.address.toLowerCase()?"NATIVE":"20"});if("0"!=o.balance){if(lx({assets:t,asset:n}))return r();t.push(o),s(o),r(o)}else r()}catch(e){r()}}))))),Promise.all(r).then((()=>{o=ux([i,"optionalAccess",e=>e.length])||0,a.forEach((e=>s(e,!1)))}));let u=[];for(var c in e.accounts)he.findByName(c).tokens.forEach((t=>{dx({options:e,address:t.address,blockchain:c})||ux([e,"optionalAccess",e=>e.priority,"optionalAccess",e=>e.find,"call",e=>e((e=>e.blockchain===c&&e.address.toLowerCase()===t.address.toLowerCase()))])||u.push(Object.assign({},t,{blockchain:c}))}));if(r=r.concat(u.map((n=>new Promise(((r,i)=>{new ox(n).balance(e.accounts[n.blockchain]).then((e=>{if(lx({assets:t,asset:n}))return r();const i=cx(n,e);"0"!=i.balance?(t.push(i),s(i),r(i)):r()})).catch((()=>{r()}))}))))),null==e.only||Object.keys(e.only).every((e=>0==e.length))){let n=await sx(e);r=r.concat(n.map((n=>new Promise(((r,i)=>{const o=new ox(n);return o.balance(e.accounts[n.blockchain]).then((async e=>{if(lx({assets:t,asset:n}))return r();const i=cx(n,e);"0"!=i.balance?(void 0===i.name&&(i.name=await o.name()),void 0===i.symbol&&(i.symbol=await o.symbol()),void 0===i.decimals&&(i.decimals=await o.decimals()),t.push(i),s(i),r(i)):r()})).catch((()=>{r()}))})))))}return await Promise.all(r),t.sort(((e,t)=>hx(i,e,t))),a.forEach((e=>s(e,!1))),t},mx=9e15,gx="0123456789abcdef",vx="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",bx="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",wx={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-mx,maxE:mx,crypto:!1},Mx=!0,Ax="[DecimalError] Invalid argument: ",Ex="[object Decimal]",Nx=Math.floor,Tx=Math.pow,Ix=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,kx=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Lx=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,xx=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Sx=1e7,jx=vx.length-1,Cx=bx.length-1,Dx={toStringTag:Ex}; /*! * decimal.js v10.4.3 * An arbitrary-precision Decimal type for JavaScript. * https://github.com/MikeMcl/decimal.js * Copyright (c) 2022 Michael Mclaughlin * MIT Licence - */function Nx(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;tn)throw Error(px+e)}function kx(e,t,n,r){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=mx(10,7-t),s=e[i]%o|0,null==r?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(e[i+1]/o/100|0)==mx(10,t-2)-1||(s==o/2||0==s)&&0==(e[i+1]/o/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==o||!r&&n>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==mx(10,t-3)-1,a}function Lx(e,t,n){for(var r,i,o=[0],a=0,s=e.length;an-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}Tx.absoluteValue=Tx.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Sx(e)},Tx.ceil=function(){return Sx(new this.constructor(this),this.e+1,2)},Tx.clampedTo=Tx.clamp=function(e,t){var n=this,r=n.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(px+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new r(n)},Tx.comparedTo=Tx.cmp=function(e){var t,n,r,i,o=this,a=o.d,s=(e=new o.constructor(e)).d,u=o.s,c=e.s;if(!a||!s)return u&&c?u!==c?u:a===s?0:!a^u<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?u:s[0]?-c:0;if(u!==c)return u;if(o.e!==e.e)return o.e>e.e^u<0?1:-1;for(t=0,n=(r=a.length)<(i=s.length)?r:i;ts[t]^u<0?1:-1;return r===i?0:r>i^u<0?1:-1},Tx.cosine=Tx.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,i;if(t.isZero())return t;(r=t.d.length)<32?i=(1/Hx(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");e.precision+=n,t=Vx(e,1,t.times(i),new e(1));for(var o=n;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(r,Gx(r,n)),r.precision=e,r.rounding=t,Sx(2==ox||3==ox?n.neg():n,e,t,!0)):new r(1):new r(NaN)},Tx.cubeRoot=Tx.cbrt=function(){var e,t,n,r,i,o,a,s,u,c,l=this,d=l.constructor;if(!l.isFinite()||l.isZero())return new d(l);for(hx=!1,(o=l.s*mx(l.s*l,1/3))&&Math.abs(o)!=1/0?r=new d(o.toString()):(n=Nx(l.d),(o=((e=l.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=mx(n,1/3),e=yx((e+1)/3)-(e%3==(e<0?-1:2)),(r=new d(n=o==1/0?"5e"+e:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=l.s),a=(e=d.precision)+3;;)if(c=(u=(s=r).times(s).times(s)).plus(l),r=xx(c.plus(l).times(s),c.plus(u),a+2,1),Nx(s.d).slice(0,a)===(n=Nx(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(Sx(r,e+1,1),t=!r.times(r).times(r).eq(l));break}if(!i&&(Sx(s,e+1,0),s.times(s).times(s).eq(l))){r=s;break}a+=4,i=1}return hx=!0,Sx(r,e,d.rounding,t)},Tx.decimalPlaces=Tx.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=7*((e=t.length-1)-yx(this.e/7)),e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},Tx.dividedBy=Tx.div=function(e){return xx(this,new this.constructor(e))},Tx.dividedToIntegerBy=Tx.divToInt=function(e){var t=this.constructor;return Sx(xx(this,new t(e),0,1,1),t.precision,t.rounding)},Tx.equals=Tx.eq=function(e){return 0===this.cmp(e)},Tx.floor=function(){return Sx(new this.constructor(this),this.e+1,3)},Tx.greaterThan=Tx.gt=function(e){return this.cmp(e)>0},Tx.greaterThanOrEqualTo=Tx.gte=function(e){var t=this.cmp(e);return 1==t||0===t},Tx.hyperbolicCosine=Tx.cosh=function(){var e,t,n,r,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/Hx(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=Vx(a,1,o.times(t),new a(1),!0);for(var u,c=e,l=new a(8);c--;)u=o.times(o),o=s.minus(u.times(l.minus(u.times(l))));return Sx(o,a.precision=n,a.rounding=r,!0)},Tx.hyperbolicSine=Tx.sinh=function(){var e,t,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,n=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=Vx(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=Vx(o,2,i=i.times(1/Hx(5,e)),i,!0);for(var a,s=new o(5),u=new o(16),c=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(c))))}return o.precision=t,o.rounding=n,Sx(i,t,n,!0)},Tx.hyperbolicTangent=Tx.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,xx(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},Tx.inverseCosine=Tx.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?t.isNeg()?Ox(n,i,o):new n(0):new n(NaN):t.isZero()?Ox(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,t=t.asin(),e=Ox(n,i+4,o).times(.5),n.precision=i,n.rounding=o,e.minus(t))},Tx.inverseHyperbolicCosine=Tx.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,hx=!1,n=n.times(n).minus(1).sqrt().plus(n),hx=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},Tx.inverseHyperbolicSine=Tx.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,hx=!1,n=n.times(n).plus(1).sqrt().plus(n),hx=!0,r.precision=e,r.rounding=t,n.ln())},Tx.inverseHyperbolicTangent=Tx.atanh=function(){var e,t,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?Sx(new o(i),e,t,!0):(o.precision=n=r-i.e,i=xx(i.plus(1),new o(1).minus(i),n+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)},Tx.inverseSine=Tx.asin=function(){var e,t,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==t?0===t?((e=Ox(o,n+4,r).times(.5)).s=i.s,e):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},Tx.inverseTangent=Tx.atan=function(){var e,t,n,r,i,o,a,s,u,c=this,l=c.constructor,d=l.precision,h=l.rounding;if(c.isFinite()){if(c.isZero())return new l(c);if(c.abs().eq(1)&&d+4<=Ex)return(a=Ox(l,d+4,h).times(.25)).s=c.s,a}else{if(!c.s)return new l(NaN);if(d+4<=Ex)return(a=Ox(l,d+4,h).times(.5)).s=c.s,a}for(l.precision=s=d+10,l.rounding=1,e=n=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(hx=!1,t=Math.ceil(s/7),r=1,u=c.times(c),a=new l(c),i=c;-1!==e;)if(i=i.times(u),o=a.minus(i.div(r+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(r+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return n&&(a=a.times(2<this.d.length-2},Tx.isNaN=function(){return!this.s},Tx.isNegative=Tx.isNeg=function(){return this.s<0},Tx.isPositive=Tx.isPos=function(){return this.s>0},Tx.isZero=function(){return!!this.d&&0===this.d[0]},Tx.lessThan=Tx.lt=function(e){return this.cmp(e)<0},Tx.lessThanOrEqualTo=Tx.lte=function(e){return this.cmp(e)<1},Tx.logarithm=Tx.log=function(e){var t,n,r,i,o,a,s,u,c=this,l=c.constructor,d=l.precision,h=l.rounding;if(null==e)e=new l(10),t=!0;else{if(n=(e=new l(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new l(NaN);t=e.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new l(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(t)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(hx=!1,a=Wx(c,s=d+5),r=t?Dx(l,s+10):Wx(e,s),kx((u=xx(a,r,s,1)).d,i=d,h))do{if(a=Wx(c,s+=10),r=t?Dx(l,s+10):Wx(e,s),u=xx(a,r,s,1),!o){+Nx(u.d).slice(i+1,i+15)+1==1e14&&(u=Sx(u,d+1,0));break}}while(kx(u.d,i+=10,h));return hx=!0,Sx(u,d,h)},Tx.minus=Tx.sub=function(e){var t,n,r,i,o,a,s,u,c,l,d,h,p=this,f=p.constructor;if(e=new f(e),!p.d||!e.d)return p.s&&e.s?p.d?e.s=-e.s:e=new f(e.d||p.s!==e.s?p:NaN):e=new f(NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(c=p.d,h=e.d,s=f.precision,u=f.rounding,!c[0]||!h[0]){if(h[0])e.s=-e.s;else{if(!c[0])return new f(3===u?-0:0);e=new f(p)}return hx?Sx(e,s,u):e}if(n=yx(e.e/7),l=yx(p.e/7),c=c.slice(),o=l-n){for((d=o<0)?(t=c,o=-o,a=h.length):(t=h,n=l,a=c.length),o>(r=Math.max(Math.ceil(s/7),a)+2)&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for((d=(r=c.length)<(a=h.length))&&(a=r),r=0;r0;--r)c[a++]=0;for(r=h.length;r>o;){if(c[--r](a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=c.length)-(i=l.length)<0&&(i=a,n=l,l=c,c=n),t=0;i;)t=(c[--i]=c[i]+l[i]+t)/Mx|0,c[i]%=Mx;for(t&&(c.unshift(t),++r),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=Cx(c,r),hx?Sx(e,s,u):e},Tx.precision=Tx.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(px+e);return n.d?(t=zx(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},Tx.round=function(){var e=this,t=e.constructor;return Sx(new t(e),e.e+1,t.rounding)},Tx.sine=Tx.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:Vx(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=t.times(1/Hx(5,n)),t=Vx(e,2,t,t);for(var i,o=new e(5),a=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(r,Gx(r,n)),r.precision=e,r.rounding=t,Sx(ox>2?n.neg():n,e,t,!0)):new r(NaN)},Tx.squareRoot=Tx.sqrt=function(){var e,t,n,r,i,o,a=this,s=a.d,u=a.e,c=a.s,l=a.constructor;if(1!==c||!s||!s[0])return new l(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(hx=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=Nx(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(t),u=yx((u+1)/2)-(u<0||u%2),r=new l(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new l(c.toString()),n=(u=l.precision)+3;;)if(r=(o=r).plus(xx(a,o,n+2,1)).times(.5),Nx(o.d).slice(0,n)===(t=Nx(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Sx(r,u+1,1),e=!r.times(r).eq(a));break}if(!i&&(Sx(o,u+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return hx=!0,Sx(r,u,l.rounding,e)},Tx.tangent=Tx.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=xx(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,Sx(2==ox||4==ox?n.neg():n,e,t,!0)):new r(NaN)},Tx.times=Tx.mul=function(e){var t,n,r,i,o,a,s,u,c,l=this,d=l.constructor,h=l.d,p=(e=new d(e)).d;if(e.s*=l.s,!(h&&h[0]&&p&&p[0]))return new d(!e.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*e.s:e.s/0);for(n=yx(l.e/7)+yx(e.e/7),(u=h.length)<(c=p.length)&&(o=h,h=p,p=o,a=u,u=c,c=a),o=[],r=a=u+c;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=u+r;i>r;)s=o[i]+p[r]*h[i-r-1]+t,o[i--]=s%Mx|0,t=s/Mx|0;o[i]=(o[i]+t)%Mx|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=Cx(o,n),hx?Sx(e,d.precision,d.rounding):e},Tx.toBinary=function(e,t){return qx(this,2,e,t)},Tx.toDecimalPlaces=Tx.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Ix(e,0,1e9),void 0===t?t=r.rounding:Ix(t,0,8),Sx(n,e+n.e+1,t))},Tx.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=jx(r,!0):(Ix(e,0,1e9),void 0===t?t=i.rounding:Ix(t,0,8),n=jx(r=Sx(new i(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},Tx.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?n=jx(i):(Ix(e,0,1e9),void 0===t?t=o.rounding:Ix(t,0,8),n=jx(r=Sx(new o(i),e+i.e+1,t),!1,e+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},Tx.toFraction=function(e){var t,n,r,i,o,a,s,u,c,l,d,h,p=this,f=p.d,y=p.constructor;if(!f)return new y(p);if(c=n=new y(1),r=u=new y(0),a=(o=(t=new y(r)).e=zx(f)-p.e-1)%7,t.d[0]=mx(10,a<0?7+a:a),null==e)e=o>0?t:c;else{if(!(s=new y(e)).isInt()||s.lt(c))throw Error(px+s);e=s.gt(t)?o>0?t:c:s}for(hx=!1,s=new y(Nx(f)),l=y.precision,y.precision=o=7*f.length*2;d=xx(s,t,0,1,1),1!=(i=n.plus(d.times(r))).cmp(e);)n=r,r=i,i=c,c=u.plus(d.times(i)),u=i,i=t,t=s.minus(d.times(i)),s=i;return i=xx(e.minus(n),r,0,1,1),u=u.plus(i.times(c)),n=n.plus(i.times(r)),u.s=c.s=p.s,h=xx(c,r,o,1).minus(p).abs().cmp(xx(u,n,o,1).minus(p).abs())<1?[c,r]:[u,n],y.precision=l,hx=!0,h},Tx.toHexadecimal=Tx.toHex=function(e,t){return qx(this,16,e,t)},Tx.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:Ix(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(hx=!1,n=xx(n,e,0,t,1).times(e),hx=!0,Sx(n)):(e.s=n.s,n=e),n},Tx.toNumber=function(){return+this},Tx.toOctal=function(e,t){return qx(this,8,e,t)},Tx.toPower=Tx.pow=function(e){var t,n,r,i,o,a,s=this,u=s.constructor,c=+(e=new u(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new u(mx(+s,c));if((s=new u(s)).eq(1))return s;if(r=u.precision,o=u.rounding,e.eq(1))return Sx(s,r,o);if((t=yx(e.e/7))>=e.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return i=Px(u,s,n,r),e.s<0?new u(1).div(i):Sx(i,r,o);if((a=s.s)<0){if(tu.maxE+1||t0?a/0:0):(hx=!1,u.rounding=s.s=1,n=Math.min(12,(t+"").length),(i=Ux(e.times(Wx(s,r+n)),r)).d&&kx((i=Sx(i,r+5,1)).d,r,o)&&(t=r+10,+Nx((i=Sx(Ux(e.times(Wx(s,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=Sx(i,r+1,0))),i.s=a,hx=!0,u.rounding=o,Sx(i,r,o))},Tx.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=jx(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(Ix(e,1,1e9),void 0===t?t=i.rounding:Ix(t,0,8),n=jx(r=Sx(new i(r),e,t),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},Tx.toSignificantDigits=Tx.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Ix(e,1,1e9),void 0===t?t=n.rounding:Ix(t,0,8)),Sx(new n(this),e,t)},Tx.toString=function(){var e=this,t=e.constructor,n=jx(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},Tx.truncated=Tx.trunc=function(){return Sx(new this.constructor(this),this.e+1,1)},Tx.valueOf=Tx.toJSON=function(){var e=this,t=e.constructor,n=jx(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var xx=function(){function e(e,t,n){var r,i=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+i,e[o]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;)e.shift()}return function(r,i,o,a,s,u){var c,l,d,h,p,f,y,m,g,v,b,w,M,A,E,T,N,I,k,L,x=r.constructor,S=r.s==i.s?1:-1,j=r.d,C=i.d;if(!(j&&j[0]&&C&&C[0]))return new x(r.s&&i.s&&(j?!C||j[0]!=C[0]:C)?j&&0==j[0]||!C?0*S:S/0:NaN);for(u?(p=1,l=r.e-i.e):(u=Mx,p=7,l=yx(r.e/p)-yx(i.e/p)),k=C.length,N=j.length,v=(g=new x(S)).d=[],d=0;C[d]==(j[d]||0);d++);if(C[d]>(j[d]||0)&&l--,null==o?(A=o=x.precision,a=x.rounding):A=s?o+(r.e-i.e)+1:o,A<0)v.push(1),f=!0;else{if(A=A/p+2|0,d=0,1==k){for(h=0,C=C[0],A++;(d1&&(C=e(C,h,u),j=e(j,h,u),k=C.length,N=j.length),T=k,w=(b=j.slice(0,k)).length;w=u/2&&++I;do{h=0,(c=t(C,b,k,w))<0?(M=b[0],k!=w&&(M=M*u+(b[1]||0)),(h=M/I|0)>1?(h>=u&&(h=u-1),1==(c=t(y=e(C,h,u),b,m=y.length,w=b.length))&&(h--,n(y,k=10;h/=10)d++;g.e=d+l*p-1,Sx(g,s?o+g.e+1:o,a,f)}return g}}();function Sx(e,t,n,r){var i,o,a,s,u,c,l,d,h,p=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(i=1,s=d[0];s>=10;s/=10)i++;if((o=t-i)<0)o+=7,a=t,u=(l=d[h=0])/mx(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/7))>=(s=d.length)){if(!r)break e;for(;s++<=h;)d.push(0);l=u=0,i=1,a=(o%=7)-7+1}else{for(l=s=d[h],i=1;s>=10;s/=10)i++;u=(a=(o%=7)-7+i)<0?0:l/mx(10,i-a-1)%10|0}if(r=r||t<0||void 0!==d[h+1]||(a<0?l:l%mx(10,i-a-1)),c=n<4?(u||r)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(o>0?a>0?l/mx(10,i-a):0:d[h-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,c?(t-=e.e+1,d[0]=mx(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==o?(d.length=h,s=1,h--):(d.length=h+1,s=mx(10,7-o),d[h]=a>0?(l/mx(10,i-a)%mx(10,a)|0)*s:0),c)for(;;){if(0==h){for(o=1,a=d[0];a>=10;a/=10)o++;for(a=d[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,d[0]==Mx&&(d[0]=1));break}if(d[h]+=s,d[h]!=Mx)break;d[h--]=0,s=1}for(o=d.length;0===d[--o];)d.pop()}return hx&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+_x(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+_x(-i-1)+o,n&&(r=n-a)>0&&(o+=_x(r))):i>=a?(o+=_x(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+_x(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=_x(r))),o}function Cx(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function Dx(e,t,n){if(t>Ax)throw hx=!0,n&&(e.precision=n),Error("[DecimalError] Precision limit exceeded");return Sx(new e(cx),t,1,!0)}function Ox(e,t,n){if(t>Ex)throw Error("[DecimalError] Precision limit exceeded");return Sx(new e(lx),t,n,!0)}function zx(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function _x(e){for(var t="";e--;)t+="0";return t}function Px(e,t,n,r){var i,o=new e(1),a=Math.ceil(r/7+4);for(hx=!1;;){if(n%2&&Zx((o=o.times(t)).d,a)&&(i=!0),0===(n=yx(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}Zx((t=t.times(t)).d,a)}return hx=!0,o}function Rx(e){return 1&e.d[e.d.length-1]}function Bx(e,t,n){for(var r,i=new e(t[0]),o=0;++o17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(hx=!1,u=f):u=t,s=new h(.03125);e.e>-2;)e=e.times(s),d+=5;for(u+=r=Math.log(mx(2,d))/Math.LN10*2+5|0,n=o=a=new h(1),h.precision=u;;){if(o=Sx(o.times(e),u,1),n=n.times(++l),Nx((s=a.plus(xx(o,n,u,1))).d).slice(0,u)===Nx(a.d).slice(0,u)){for(i=d;i--;)a=Sx(a.times(a),u,1);if(null!=t)return h.precision=f,a;if(!(c<3&&kx(a.d,u-r,p,c)))return Sx(a,h.precision=f,p,hx=!0);h.precision=u+=10,n=o=s=new h(1),l=0,c++}a=s}}function Wx(e,t){var n,r,i,o,a,s,u,c,l,d,h,p=1,f=e,y=f.d,m=f.constructor,g=m.rounding,v=m.precision;if(f.s<0||!y||!y[0]||!f.e&&1==y[0]&&1==y.length)return new m(y&&!y[0]?-1/0:1!=f.s?NaN:y?0:f);if(null==t?(hx=!1,l=v):l=t,m.precision=l+=10,r=(n=Nx(y)).charAt(0),!(Math.abs(o=f.e)<15e14))return c=Dx(m,l+2,v).times(o+""),f=Wx(new m(r+"."+n.slice(1)),l-10).plus(c),m.precision=v,null==t?Sx(f,v,g,hx=!0):f;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Nx((f=f.times(e)).d)).charAt(0),p++;for(o=f.e,r>1?(f=new m("0."+n),o++):f=new m(r+"."+n.slice(1)),d=f,u=a=f=xx(f.minus(1),f.plus(1),l,1),h=Sx(f.times(f),l,1),i=3;;){if(a=Sx(a.times(h),l,1),Nx((c=u.plus(xx(a,new m(i),l,1))).d).slice(0,l)===Nx(u.d).slice(0,l)){if(u=u.times(2),0!==o&&(u=u.plus(Dx(m,l+2,v).times(o+""))),u=xx(u,new m(p),l,1),null!=t)return m.precision=v,u;if(!kx(u.d,l-10,g,s))return Sx(u,m.precision=v,g,hx=!0);m.precision=l+=10,c=a=f=xx(d.minus(1),d.plus(1),l,1),h=Sx(f.times(f),l,1),i=s=1}u=c,i+=2}}function Qx(e){return String(e.s*e.s/0)}function Yx(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i)){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),re.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),wx.test(t))return Yx(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(vx.test(t))n=16,t=t.toLowerCase();else if(gx.test(t))n=2;else{if(!bx.test(t))throw Error(px+t);n=8}for((o=t.search(/p/i))>0?(u=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,r=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=Px(r,new r(n),o,2*o)),o=l=(c=Lx(t,n,Mx)).length-1;0===c[o];--o)c.pop();return o<0?new r(0*e.s):(e.e=Cx(c,l),e.d=c,hx=!1,a&&(e=xx(e,i,4*s)),u&&(e=e.times(Math.abs(u)<54?mx(2,u):_S.pow(2,u))),hx=!0,e)}function Vx(e,t,n,r,i){var o,a,s,u,c=e.precision,l=Math.ceil(c/7);for(hx=!1,u=n.times(n),s=new e(r);;){if(a=xx(s.times(u),new e(t++*t++),c,1),s=i?r.plus(a):r.minus(a),r=xx(a.times(u),new e(t++*t++),c,1),void 0!==(a=s.plus(r)).d[l]){for(o=l;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=r,r=a,a=o}return hx=!0,a.d.length=l+1,a}function Hx(e,t){for(var n=e;--t;)n*=e;return n}function Gx(e,t){var n,r=t.s<0,i=Ox(e,e.precision,1),o=i.times(.5);if((t=t.abs()).lte(o))return ox=r?4:1,t;if((n=t.divToInt(i)).isZero())ox=r?3:2;else{if((t=t.minus(n.times(i))).lte(o))return ox=Rx(n)?r?2:3:r?4:1,t;ox=Rx(n)?r?1:4:r?3:2}return t.minus(i).abs()}function qx(e,t,n,r){var i,o,a,s,u,c,l,d,h,p=e.constructor,f=void 0!==n;if(f?(Ix(n,1,1e9),void 0===r?r=p.rounding:Ix(r,0,8)):(n=p.precision,r=p.rounding),e.isFinite()){for(f?(i=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):i=t,(a=(l=jx(e)).indexOf("."))>=0&&(l=l.replace(".",""),(h=new p(1)).e=l.length-a,h.d=Lx(jx(h),10,i),h.e=h.d.length),o=u=(d=Lx(l,10,i)).length;0==d[--u];)d.pop();if(d[0]){if(a<0?o--:((e=new p(e)).d=d,e.e=o,d=(e=xx(e,h,n,r,0,i)).d,o=e.e,c=ix),a=d[n],s=i/2,c=c||void 0!==d[n+1],c=r<4?(void 0!==a||c)&&(0===r||r===(e.s<0?3:2)):a>s||a===s&&(4===r||c||6===r&&1&d[n-1]||r===(e.s<0?8:7)),d.length=n,c)for(;++d[--n]>i-1;)d[n]=0,n||(++o,d.unshift(1));for(u=d.length;!d[u-1];--u);for(a=0,l="";a1)if(16==t||8==t){for(a=16==t?4:3,--u;u%a;u++)l+="0";for(u=(d=Lx(l,i,t)).length;!d[u-1];--u);for(a=1,l="1.";au)for(o-=u;o--;)l+="0";else ot)return e.length=t,!0}function Jx(e){return new this(e).abs()}function Xx(e){return new this(e).acos()}function Kx(e){return new this(e).acosh()}function $x(e,t){return new this(e).plus(t)}function eS(e){return new this(e).asin()}function tS(e){return new this(e).asinh()}function nS(e){return new this(e).atan()}function rS(e){return new this(e).atanh()}function iS(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,o=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?Ox(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=Ox(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,n=this.atan(xx(e,t,o,1)),t=Ox(this,o,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(xx(e,t,o,1)):(n=Ox(this,o,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function oS(e){return new this(e).cbrt()}function aS(e){return Sx(e=new this(e),e.e+1,2)}function sS(e,t,n){return new this(e).clamp(t,n)}function uS(e){if(!e||"object"!=typeof e)throw Error("[DecimalError] Object expected");var t,n,r,i=!0===e.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-sx,0,"toExpPos",0,sx,"maxE",0,sx,"minE",-sx,0,"modulo",0,9];for(t=0;t=o[t+1]&&r<=o[t+2]))throw Error(px+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=dx[n]),void 0!==(r=e[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(px+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");this[n]=!0}else this[n]=!1}return this}function cS(e){return new this(e).cos()}function lS(e){return new this(e).cosh()}function dS(e,t){return new this(e).div(t)}function hS(e){return new this(e).exp()}function pS(e){return Sx(e=new this(e),e.e+1,3)}function fS(){var e,t,n=new this(0);for(hx=!1,e=0;e=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");for(t=crypto.randomBytes(r*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(s.push(i%1e7),o+=4);o=r/4}else for(;o=10;i/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=s,a}function IS(e){return Sx(e=new this(e),e.e+1,this.rounding)}function kS(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function LS(e){return new this(e).sin()}function xS(e){return new this(e).sinh()}function SS(e){return new this(e).sqrt()}function jS(e,t){return new this(e).sub(t)}function CS(){var e=0,t=arguments,n=new this(t[e]);for(hx=!1;n.s&&++eo.maxE?(i.e=NaN,i.d=null):e.e=10;n/=10)t++;return void(hx?t>o.maxE?(i.e=NaN,i.d=null):tn.call(t,...e))),t=void 0)}return n}cx=new _S(cx),lx=new _S(lx);class RS{constructor({blockchain:e,tokenIn:t,decimalsIn:n,tokenOut:r,decimalsOut:i,path:o,pools:a,amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,exchange:d,approvalRequired:h,getApproval:p,getPrep:f,getTransaction:y}){this.blockchain=e,this.tokenIn=t,this.decimalsIn=n,this.tokenOut=r,this.decimalsOut=i,this.path=o,this.pools=a,this.amountIn=PS([s,"optionalAccess",e=>e.toString,"call",e=>e()]),this.amountOutMin=PS([l,"optionalAccess",e=>e.toString,"call",e=>e()]),this.amountOut=PS([c,"optionalAccess",e=>e.toString,"call",e=>e()]),this.amountInMax=PS([u,"optionalAccess",e=>e.toString,"call",e=>e()]),this.exchange=d,this.getPrep=f,this.getTransaction=y}}let BS=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];BS.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],BS.solana=["solana"];const US=async({exchange:e,blockchain:t,pools:n,exchangePath:r,amountIn:i,amountOut:o})=>{let a=i.add(i.mul(100*parseFloat("0.5")).div(1e4));if(!BS.evm.includes(e.blockchain||t))return a;const s=await YI({blockchain:e.blockchain||t,method:"latestBlockNumber"});let u=[];for(var c=0;c<=2;c++)u.push(s-c);const l=await Promise.all(u.map((async i=>{let{amountIn:a}=await e.getAmounts({exchange:e,blockchain:t,path:r,pools:n,amountOut:o,block:i});return a})));if(!l[0]||!l[1]||!l[2])return a;let d;if(l[0].gt(l[1])&&l[1].gt(l[2])){const e=l[0].sub(l[1]),t=l[1].sub(l[2]),n=e.add(t).div(2);if(d=l[0].add(n),d.gt(a))return d}else if(!l[0].eq(l[1])&&!l[1].eq(l[2])){const e=l[0].sub(l[1]).abs(),t=l[1].sub(l[2]).abs();let n,r;if(n=e.lt(t)?e:t,r=l[0].gt(l[1])&&l[0].gt(l[2])?l[0]:l[1].gt(l[2])&&l[1].gt(l[0])?l[1]:l[2],d=r.add(n),d.gt(a))return d}return a},WS=async({exchange:e,blockchain:t,pools:n,exchangePath:r,amounts:i,tokenIn:o,tokenOut:a,amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,amountInInput:d,amountOutInput:h,amountInMaxInput:p,amountOutMinInput:f})=>{if(f||h){if(BS.evm.includes(e.blockchain||t))s=u=await US({exchange:e,blockchain:t,pools:n,exchangePath:r,amountIn:s,amountOut:f||c});else if(BS.solana.includes(e.blockchain||t)){let t=[];await Promise.all(r.map(((o,a)=>{if(0!=a){let o=US({exchange:e,pools:n,exchangePath:[r[a-1],r[a]],amountIn:i[a-1],amountOut:i[a]});return o.then((e=>t.push(e))),o}}))),t.push(i[i.length-1]),s=u=(i=t)[0]}}else if((p||d)&&BS.solana.includes(e.blockchain||t)){let t=[];await Promise.all(r.map(((n,o)=>{if(0!==o&&on.sub(n.mul(100*parseFloat("0.5")).div(1e4)))({exchange:e,exchangePath:[r[o-1],r[o]],amountIn:i[o-1],amountOut:i[o]});return n.then((e=>(t.unshift(e),e))),n}}))),t.push(i[0]),c=l=(i=t.slice().reverse())[i.length-1]}return{amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,amounts:i}},QS=e=>e.match("0x")?rg(e):e;let YS=async({amount:e,blockchain:t,address:n})=>await JL.BigNumber({amount:e,blockchain:t,address:n}),FS=async({blockchain:e,exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{let u={exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s};return o&&"number"==typeof o&&(u.amountOut=await YS({amount:o,blockchain:e,address:r})),s&&"number"==typeof s&&(u.amountOutMin=await YS({amount:s,blockchain:e,address:r})),i&&"number"==typeof i&&(u.amountIn=await YS({amount:i,blockchain:e,address:n})),a&&"number"==typeof a&&(u.amountInMax=await YS({amount:a,blockchain:e,address:n})),u};class VS{constructor(...e){Object.assign(this,...e)}async route({blockchain:e,tokenIn:t,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}){return t===n?Promise.resolve():(void 0===e&&(this.scope?e=this.scope:1===this.blockchains.length&&(e=this.blockchains[0])),(({blockchain:e,exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if(void 0===e&&null!=t.blockchains&&t.blockchains.length>1)throw"You need to provide a blockchain when calling route on an exchange that supports multiple blockchains!";if(void 0!==o&&void 0!==i)throw"You cannot set amountIn and amountOut at the same time, use amountInMax or amountOutMin to describe the non exact part of the swap!";if(void 0!==a&&void 0!==s)throw"You cannot set amountInMax and amountOutMin at the same time, use amountIn or amountOut to describe the part of the swap that needs to be exact!";if(void 0!==i&&void 0!==a)throw"Setting amountIn and amountInMax at the same time makes no sense. Decide if amountIn needs to be exact or not!";if(void 0!==o&&void 0!==s)throw"Setting amountOut and amountOutMin at the same time makes no sense. Decide if amountOut needs to be exact or not!"})({blockchain:e,exchange:this,tokenIn:t,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}),await(({blockchain:e,exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s,findPath:u,getAmounts:c,getPrep:l,getTransaction:d,slippage:h})=>{if(n=QS(n),r=QS(r),[i,o,a,s].filter(Boolean).length>1)throw"You can only pass one: amountIn, amountOut, amountInMax or amountOutMin";if([i,o,a,s].filter(Boolean).length<1)throw"You need to pass exactly one: amountIn, amountOut, amountInMax or amountOutMin";return new Promise((async p=>{let{path:f,exchangePath:y,pools:m}=await u({blockchain:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s});if(void 0===f||0==f.length)return p();let g,[v,b,w,M]=[i,o,a,s];try{({amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g}=await c({exchange:t,blockchain:e,path:f,pools:m,tokenIn:n,tokenOut:r,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s}))}catch(e){return p()}if([i,a,o,s].every((e=>null==e)))return p();if(h||t.slippage)try{({amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g}=await WS({exchange:t,blockchain:e,pools:m,exchangePath:y,amounts:g,tokenIn:n,tokenOut:r,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amountInInput:v,amountOutInput:b,amountInMaxInput:w,amountOutMinInput:M}))}catch(e){return p()}const A=await new JL({blockchain:e,address:n}).decimals(),E=await new JL({blockchain:e,address:r}).decimals();p(new RS({blockchain:e,tokenIn:n,decimalsIn:A,tokenOut:r,decimalsOut:E,path:f,pools:m,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,exchange:t,getPrep:async({account:o})=>await l({exchange:t,blockchain:e,tokenIn:n,tokenOut:r,amountIn:i||a,account:o}),getTransaction:async({account:n,permit2:r,inputTokenPushed:u})=>await d({exchange:t,blockchain:e,pools:m,path:f,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g,amountInInput:v,amountOutInput:b,amountInMaxInput:w,amountOutMinInput:M,account:n,permit2:r,inputTokenPushed:u})}))}))})({...await FS({blockchain:e,exchange:this,tokenIn:t,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}),blockchain:e,findPath:this.findPath,getAmounts:this.getAmounts,getPrep:this.getPrep,getTransaction:this.getTransaction,slippage:this.slippage}))}}function HS(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const GS=({blockchain:e,exchange:t,path:n})=>{if(!n)return;let r=n.map(((t,r)=>t===he[e].currency.address&&n[r+1]!=he[e].wrapped.address&&n[r-1]!=he[e].wrapped.address?he[e].wrapped.address:t));return r[0]==he[e].currency.address&&r[1]==he[e].wrapped.address?r.splice(0,1):r[r.length-1]==he[e].currency.address&&r[r.length-2]==he[e].wrapped.address&&r.splice(r.length-1,1),r},qS=({reserves:e,min:t,token:n,token0:r,token1:i,decimals:o})=>r.toLowerCase()==n.toLowerCase()?e[0].gte(mI(t.toString(),o)):i.toLowerCase()==n.toLowerCase()&&e[1].gte(mI(t.toString(),o)),ZS=async({blockchain:e,exchange:t,path:n})=>{const r=GS({blockchain:e,exchange:t,path:n});if(!r||1===r.length)return!1;try{let i=await YI({blockchain:e,address:t[e].factory.address,method:"getPair",api:t[e].factory.api,cache:36e5,params:GS({blockchain:e,exchange:t,path:n})});if(!i||i==he[e].zero)return!1;let[o,a,s]=await Promise.all([YI({blockchain:e,address:i,method:"getReserves",api:t[e].pair.api,cache:36e5}),YI({blockchain:e,address:i,method:"token0",api:t[e].pair.api,cache:36e5}),YI({blockchain:e,address:i,method:"token1",api:t[e].pair.api,cache:36e5})]);if(r.includes(he[e].wrapped.address))return qS({min:1,token:he[e].wrapped.address,decimals:he[e].currency.decimals,reserves:o,token0:a,token1:s});if(n.find((t=>he[e].stables.usd.includes(t)))){let t=n.find((t=>he[e].stables.usd.includes(t))),r=new JL({blockchain:e,address:t}),i=await r.decimals();return qS({min:1e3,token:t,decimals:i,reserves:o,token0:a,token1:s})}return!0}catch(e){return console.log("e",e),!1}};let JS=({blockchain:e,exchange:t,path:n,amountIn:r,tokenIn:i,tokenOut:o})=>new Promise((i=>{YI({blockchain:e,address:t[e].router.address,method:"getAmountsOut",api:t[e].router.api,params:{amountIn:r,path:GS({blockchain:e,exchange:t,path:n})}}).then((e=>{i(e[e.length-1])})).catch((()=>i()))})),XS=({blockchain:e,exchange:t,path:n,amountOut:r,block:i})=>new Promise((o=>{YI({blockchain:e,address:t[e].router.address,method:"getAmountsIn",api:t[e].router.api,params:{amountOut:r,path:GS({blockchain:e,exchange:t,path:n})},block:i}).then((e=>o(e[0]))).catch((()=>o()))}));var KS={findPath:async({blockchain:e,exchange:t,tokenIn:n,tokenOut:r})=>{if([n,r].includes(he[e].currency.address)&&[n,r].includes(he[e].wrapped.address))return{path:void 0,exchangePath:void 0};let i;if(await ZS({blockchain:e,exchange:t,path:[n,r]}))i=[n,r];else if(n!=he[e].wrapped.address&&await ZS({blockchain:e,exchange:t,path:[n,he[e].wrapped.address]})&&r!=he[e].wrapped.address&&await ZS({blockchain:e,exchange:t,path:[r,he[e].wrapped.address]}))i=[n,he[e].wrapped.address,r];else if(!he[e].stables.usd.includes(n)&&(await Promise.all(he[e].stables.usd.map((r=>ZS({blockchain:e,exchange:t,path:[n,r]}))))).filter(Boolean).length&&r!=he[e].wrapped.address&&await ZS({blockchain:e,exchange:t,path:[he[e].wrapped.address,r]})){let o=(await Promise.all(he[e].stables.usd.map((async r=>await ZS({blockchain:e,exchange:t,path:[n,r]})?r:void 0)))).find(Boolean);i=[n,o,he[e].wrapped.address,r]}else if(n!=he[e].wrapped.address&&await ZS({blockchain:e,exchange:t,path:[n,he[e].wrapped.address]})&&!he[e].stables.usd.includes(r)&&(await Promise.all(he[e].stables.usd.map((n=>ZS({blockchain:e,exchange:t,path:[n,r]}))))).filter(Boolean).length){let o=(await Promise.all(he[e].stables.usd.map((async n=>await ZS({blockchain:e,exchange:t,path:[n,r]})?n:void 0)))).find(Boolean);i=[n,he[e].wrapped.address,o,r]}return HS([i,"optionalAccess",e=>e.length])&&i[0]==he[e].currency.address?i.splice(1,0,he[e].wrapped.address):HS([i,"optionalAccess",e=>e.length])&&i[i.length-1]==he[e].currency.address&&i.splice(i.length-1,0,he[e].wrapped.address),{path:i,exchangePath:GS({blockchain:e,exchange:t,path:i})}},pathExists:ZS,getAmounts:async({blockchain:e,exchange:t,path:n,block:r,tokenIn:i,tokenOut:o,amountOut:a,amountIn:s,amountInMax:u,amountOutMin:c})=>{if(a){if(null==(s=await XS({blockchain:e,exchange:t,block:r,path:n,amountOut:a,tokenIn:i,tokenOut:o}))||u&&s.gt(u))return{};void 0===u&&(u=s)}else if(s){if(null==(a=await JS({blockchain:e,exchange:t,path:n,amountIn:s,tokenIn:i,tokenOut:o}))||c&&a.lt(c))return{};void 0===c&&(c=a)}else if(c){if(null==(s=await XS({blockchain:e,exchange:t,block:r,path:n,amountOut:c,tokenIn:i,tokenOut:o}))||u&&s.gt(u))return{};void 0===u&&(u=s)}else if(u){if(null==(a=await JS({blockchain:e,exchange:t,path:n,amountIn:u,tokenIn:i,tokenOut:o}))||c&&a.lt(c))return{};void 0===c&&(c=a)}return{amountOut:a,amountIn:s,amountInMax:u,amountOutMin:c}},getPrep:async({exchange:e,blockchain:t,tokenIn:n,amountIn:r,account:i})=>{if(n===he[t].currency.address)return;const o=await YI({blockchain:t,address:n,method:"allowance",api:JL[t][20],params:[i,e[t].router.address]});if(o.gte(r))return;return{transaction:{blockchain:t,from:i,to:n,api:JL[t][20],method:"approve",params:[e[t].router.address,r.sub(o)]}}},getTransaction:({exchange:e,blockchain:t,path:n,amountIn:r,amountInMax:i,amountOut:o,amountOutMin:a,amountInInput:s,amountOutInput:u,amountInMaxInput:c,amountOutMinInput:l,account:d})=>{let h={blockchain:t,from:d,to:e[t].router.address,api:e[t].router.api};return n[0]===he[t].currency.address?s||l?(h.method="swapExactETHForTokens",h.value=r.toString(),h.params={amountOutMin:a.toString()}):(u||c)&&(h.method="swapETHForExactTokens",h.value=i.toString(),h.params={amountOut:o.toString()}):n[n.length-1]===he[t].currency.address?s||l?(h.method="swapExactTokensForETH",h.params={amountIn:r.toString(),amountOutMin:a.toString()}):(u||c)&&(h.method="swapTokensForExactETH",h.params={amountInMax:i.toString(),amountOut:o.toString()}):s||l?(h.method="swapExactTokensForTokens",h.params={amountIn:r.toString(),amountOutMin:a.toString()}):(u||c)&&(h.method="swapTokensForExactTokens",h.params={amountInMax:i.toString(),amountOut:o.toString()}),h.params=Object.assign({},h.params,{path:GS({blockchain:t,exchange:e,path:n}),to:d,deadline:Math.round(Date.now()/1e3)+86400}),h},ROUTER:[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"amountADesired",type:"uint256"},{internalType:"uint256",name:"amountBDesired",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"addLiquidity",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"},{internalType:"uint256",name:"liquidity",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountTokenDesired",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"addLiquidityETH",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"},{internalType:"uint256",name:"liquidity",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"reserveIn",type:"uint256"},{internalType:"uint256",name:"reserveOut",type:"uint256"}],name:"getAmountIn",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"reserveIn",type:"uint256"},{internalType:"uint256",name:"reserveOut",type:"uint256"}],name:"getAmountOut",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"}],name:"getAmountsIn",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"}],name:"getAmountsOut",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"reserveA",type:"uint256"},{internalType:"uint256",name:"reserveB",type:"uint256"}],name:"quote",outputs:[{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidity",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityETH",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityETHSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityETHWithPermit",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityWithPermit",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapETHForExactTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactETHForTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactETHForTokensSupportingFeeOnTransferTokens",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForETH",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForETHSupportingFeeOnTransferTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokensSupportingFeeOnTransferTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactETH",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"_feeToSetter",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!1,internalType:"address",name:"pair",type:"address"},{indexed:!1,internalType:"uint256",name:"",type:"uint256"}],name:"PairCreated",type:"event"},{constant:!0,inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"allPairs",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"allPairsLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"}],name:"createPair",outputs:[{internalType:"address",name:"pair",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"feeTo",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"feeToSetter",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"getPair",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_feeTo",type:"address"}],name:"setFeeTo",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_feeToSetter",type:"address"}],name:"setFeeToSetter",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],PAIR:[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0In",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1In",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount0Out",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1Out",type:"uint256"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"Swap",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint112",name:"reserve0",type:"uint112"},{indexed:!1,internalType:"uint112",name:"reserve1",type:"uint112"}],name:"Sync",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"MINIMUM_LIQUIDITY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getReserves",outputs:[{internalType:"uint112",name:"_reserve0",type:"uint112"},{internalType:"uint112",name:"_reserve1",type:"uint112"},{internalType:"uint32",name:"_blockTimestampLast",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_token0",type:"address"},{internalType:"address",name:"_token1",type:"address"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"kLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"mint",outputs:[{internalType:"uint256",name:"liquidity",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"price0CumulativeLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"price1CumulativeLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"skim",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"amount0Out",type:"uint256"},{internalType:"uint256",name:"amount1Out",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"sync",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"}]};const $S={name:"honeyswap",label:"Honeyswap",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABQCAYAAADBTPF9AAAACXBIWXMAAAsTAAALEwEAmpwYAAALmklEQVR4nO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k4FKn0F1AErFV25vmbeZ2BvG1lcxHXA9ZZK+scZ8wJDdIVlccuYE3wfwLeBXDOw79NPcLbm+gR4DniirqZ6Y2eZerTJQdAMT8BewHgCMAnwY38dpbux251AHPvDG28Da4ANXQW7RiPxw0XkduCCbh1zjzdVtcuNYtvEnIx9n4LY3yksx46B6Y699+l9YG3KKI0Y1p631tfMa+ruxF7vUtEWhVaO/bT5gAOBYdgD40lgN/Zbth1IKLqtJ46kE43ETxKRO4Fje3uug2xTZSHow73dqrktKn009j06GBgFDOK7xa2NwJcpozTusZq/6Ot9yusPf8TWxIuKi7m0NSU3AZ1+mTML7AEeVtVFgVD55y7a7TV5s9VWR5RVeC3vod4NDfW7louIB5hM9pdnr1RldiDkW1ZW4d2ZZVsZk0+Tcp0SCJXH/VW+G1Q5Fng2S2beB87xV/lOD4R8b3WbO08oCAH3Egj53vVX+c5SOBPoNE6kl2wH5qnqsf4q3wqHynSNghJwL4Eq33Nq6XHADbT77FwvSQF/UdUp/ipfuFC/Yp3Xv4FdUVbhTZaN8a795rOmJ4DBIkym5zFFr6rqRYFQ+QNlFd7MI6xySEG+ge05dKovFgj5rgKmAi92k30Tyiy1dFogVN6nUPZ8Iy/2C3UCf5VvHTA9VpuYCVyEPdCQwn4rU8ALqvpIIFS+I3deOs//AZb84smmUsyHAAAAAElFTkSuQmCC",protocol:"uniswap_v2",slippage:!0,blockchains:["gnosis"],gnosis:{router:{address:"0x1C232F01118CB8B424793ae03F870aa7D0ac7f77",api:KS.ROUTER},factory:{address:"0xA818b4F111Ccac7AA31D0BCc0806d64F2E0737D7",api:KS.FACTORY},pair:{api:KS.PAIR}}};var ej=e=>new VS(Object.assign($S,{scope:e,findPath:e=>KS.findPath({...e,exchange:$S}),pathExists:e=>KS.pathExists({...e,exchange:$S}),getAmounts:e=>KS.getAmounts({...e,exchange:$S}),getPrep:e=>KS.getPrep({...e,exchange:$S}),getTransaction:e=>KS.getTransaction({...e,exchange:$S})}));const tj="79226673515401279992447579055",nj=e=>-e;class rj{static priceToSqrtPriceX64(e,t,n){return r=e.mul(_S.pow(10,n-t)).sqrt(),new Sf(r.mul(_S.pow(2,64)).floor().toFixed());var r}static sqrtPriceX64ToPrice(e,t,n){return(r=e,new _S(r.toString()).mul(_S.pow(2,-64))).pow(2).mul(_S.pow(10,t-n));var r}static tickIndexToSqrtPriceX64(e){return new Sf(e>0?function(e){let t;t=new Sf(0!=(1&e)?"79232123823359799118286999567":"79228162514264337593543950336");0!=(2&e)&&(t=ij(t.mul(new Sf("79236085330515764027303304731")),96,256));0!=(4&e)&&(t=ij(t.mul(new Sf("79244008939048815603706035061")),96,256));0!=(8&e)&&(t=ij(t.mul(new Sf("79259858533276714757314932305")),96,256));0!=(16&e)&&(t=ij(t.mul(new Sf("79291567232598584799939703904")),96,256));0!=(32&e)&&(t=ij(t.mul(new Sf("79355022692464371645785046466")),96,256));0!=(64&e)&&(t=ij(t.mul(new Sf("79482085999252804386437311141")),96,256));0!=(128&e)&&(t=ij(t.mul(new Sf("79736823300114093921829183326")),96,256));0!=(256&e)&&(t=ij(t.mul(new Sf("80248749790819932309965073892")),96,256));0!=(512&e)&&(t=ij(t.mul(new Sf("81282483887344747381513967011")),96,256));0!=(1024&e)&&(t=ij(t.mul(new Sf("83390072131320151908154831281")),96,256));0!=(2048&e)&&(t=ij(t.mul(new Sf("87770609709833776024991924138")),96,256));0!=(4096&e)&&(t=ij(t.mul(new Sf("97234110755111693312479820773")),96,256));0!=(8192&e)&&(t=ij(t.mul(new Sf("119332217159966728226237229890")),96,256));0!=(16384&e)&&(t=ij(t.mul(new Sf("179736315981702064433883588727")),96,256));0!=(32768&e)&&(t=ij(t.mul(new Sf("407748233172238350107850275304")),96,256));0!=(65536&e)&&(t=ij(t.mul(new Sf("2098478828474011932436660412517")),96,256));0!=(131072&e)&&(t=ij(t.mul(new Sf("55581415166113811149459800483533")),96,256));0!=(262144&e)&&(t=ij(t.mul(new Sf("38992368544603139932233054999993551")),96,256));return ij(t,32,256)}(e):function(e){let t,n=Math.abs(e);t=new Sf(0!=(1&n)?"18445821805675392311":"18446744073709551616");0!=(2&n)&&(t=ij(t.mul(new Sf("18444899583751176498")),64,256));0!=(4&n)&&(t=ij(t.mul(new Sf("18443055278223354162")),64,256));0!=(8&n)&&(t=ij(t.mul(new Sf("18439367220385604838")),64,256));0!=(16&n)&&(t=ij(t.mul(new Sf("18431993317065449817")),64,256));0!=(32&n)&&(t=ij(t.mul(new Sf("18417254355718160513")),64,256));0!=(64&n)&&(t=ij(t.mul(new Sf("18387811781193591352")),64,256));0!=(128&n)&&(t=ij(t.mul(new Sf("18329067761203520168")),64,256));0!=(256&n)&&(t=ij(t.mul(new Sf("18212142134806087854")),64,256));0!=(512&n)&&(t=ij(t.mul(new Sf("17980523815641551639")),64,256));0!=(1024&n)&&(t=ij(t.mul(new Sf("17526086738831147013")),64,256));0!=(2048&n)&&(t=ij(t.mul(new Sf("16651378430235024244")),64,256));0!=(4096&n)&&(t=ij(t.mul(new Sf("15030750278693429944")),64,256));0!=(8192&n)&&(t=ij(t.mul(new Sf("12247334978882834399")),64,256));0!=(16384&n)&&(t=ij(t.mul(new Sf("8131365268884726200")),64,256));0!=(32768&n)&&(t=ij(t.mul(new Sf("3584323654723342297")),64,256));0!=(65536&n)&&(t=ij(t.mul(new Sf("696457651847595233")),64,256));0!=(131072&n)&&(t=ij(t.mul(new Sf("26294789957452057")),64,256));0!=(262144&n)&&(t=ij(t.mul(new Sf("37481735321082")),64,256));return t}(e))}static sqrtPriceX64ToTickIndex(e){if(e.gt(new Sf(tj))||e.lt(new Sf("4295048016")))throw new Error("Provided sqrtPrice is not within the supported sqrtPrice range.");const t=e.bitLength()-1,n=function(e,t,n){let r=e.toTwos(n).shln(t);return r.imaskn(n+1),r.fromTwos(n)}(new Sf(t-64),32,128);let r=new Sf("8000000000000000","hex"),i=0,o=new Sf(0),a=t>=64?e.shrn(t-63):e.shln(63-t);for(;r.gt(new Sf(0))&&i<14;){a=a.mul(a);let e=a.shrn(127);a=a.shrn(63+e.toNumber()),o=o.add(r.mul(e)),r=r.shrn(1),i+=1}const s=o.shrn(32),u=n.add(s).mul(new Sf("59543866431248")),c=ij(u.sub(new Sf("184467440737095516")),64,128).toNumber(),l=ij(u.add(new Sf("15793534762490258745")),64,128).toNumber();if(c==l)return c;return rj.tickIndexToSqrtPriceX64(l).lte(e)?l:c}static tickIndexToPrice(e,t,n){return rj.sqrtPriceX64ToPrice(rj.tickIndexToSqrtPriceX64(e),t,n)}static priceToTickIndex(e,t,n){return rj.sqrtPriceX64ToTickIndex(rj.priceToSqrtPriceX64(e,t,n))}static priceToInitializableTickIndex(e,t,n,r){return((e,t)=>e-e%t)(rj.priceToTickIndex(e,t,n),r)}static invertPrice(e,t,n){const r=rj.priceToTickIndex(e,t,n),i=nj(r);return rj.tickIndexToPrice(i,n,t)}static invertSqrtPriceX64(e){const t=rj.sqrtPriceX64ToTickIndex(e),n=nj(t);return rj.tickIndexToSqrtPriceX64(n)}}function ij(e,t,n){let r=e.toTwos(n).shrn(t);return r.imaskn(n-t+1),r.fromTwos(n-t)}const oj=new Sf(1e4),aj=new Sf(1e6),sj=new Sf(0),uj=new Sf(1),cj=new Sf(2),lj=cj.pow(new Sf(64)).sub(uj);class dj extends Sf{toBuffer(){const e=super.toArray().reverse(),t=buffer.Buffer.from(e);if(8===t.length)return t;assert__default.default(t.length<8,"u64 too large");const n=buffer.Buffer.alloc(8);return t.copy(n),n}static fromBuffer(e){return assert__default.default(8===e.length,`Invalid buffer length: ${e.length}`),new dj([...e].reverse().map((e=>`00${e.toString(16)}`.slice(-2))).join(""),16)}}class hj{static mul(e,t,n){const r=e.mul(t);if(this.isOverLimit(r,n))throw new Error(`Mul result higher than u${n}`);return r}static mulDiv(e,t,n,r){return this.mulDivRoundUpIf(e,t,n,!1,r)}static mulDivRoundUp(e,t,n,r){return this.mulDivRoundUpIf(e,t,n,!0,r)}static mulDivRoundUpIf(e,t,n,r,i){if(n.eq(sj))throw new Error("mulDiv denominator is zero");const o=this.mul(e,t,i),a=o.div(n);return r&&o.mod(n).gt(sj)?a.add(uj):a}static checked_mul_shift_right(e,t,n){return this.checked_mul_shift_right_round_up_if(e,t,!1,n)}static checked_mul_shift_right_round_up_if(e,t,n,r){if(e.eq(sj)||t.eq(sj))return sj;const i=this.mul(e,t,r);if(this.isOverLimit(i,r))throw new Error(`MulShiftRight overflowed u${r}.`);const o=i.div(new Sf(2).pow(new Sf(64)));const a=n&&o.and(lj).gt(sj);if(a&&o.eq(lj))throw new Error(`MulShiftRight overflowed u${r}.`);return a?o.add(uj):o}static isOverLimit(e,t){const n=cj.pow(new Sf(t)).sub(uj);return e.gt(n)}static divRoundUp(e,t){return this.divRoundUpIf(e,t,!0)}static divRoundUpIf(e,t,n){if(t.eq(sj))throw new Error("divRoundUpIf - divide by zero");let r=e.div(t);return n&&e.mod(t).gt(sj)?r.add(uj):r}}const pj=(e,t,n)=>{const r=rj.tickIndexToSqrtPriceX64(e);return{nextTickPrice:r,nextSqrtPriceLimit:n?Sf.max(t,r):Sf.min(t,r)}},fj=(e,t)=>e.gt(t)?[t,e]:[e,t],yj=(e,t,n,r)=>{let[i,o]=fj(e,t),a=o.sub(i),s=n.mul(a).shln(64),u=i.mul(o),c=s.div(u),l=s.mod(u),d=r&&!l.eq(sj)?c.add(uj):c;if(d.gt(lj))throw new Error("Results larger than U64");return d},mj=(e,t,n,r)=>{let[i,o]=fj(e,t),a=o.sub(i);return hj.checked_mul_shift_right_round_up_if(n,a,r,128)},gj=(e,t,n,r,i)=>r===i?((e,t,n,r)=>{if(n.eq(sj))return e;let i=hj.mul(e,n,256),o=hj.mul(t,e,256).shln(64);if(hj.isOverLimit(o,256))throw new Error("getNextSqrtPriceFromARoundUp - numerator overflow u256");let a=t.shln(64);if(!r&&a.lte(i))throw new Error("getNextSqrtPriceFromARoundUp - Unable to divide currLiquidityX64 by product");let s=r?a.add(i):a.sub(i),u=hj.divRoundUp(o,s);if(u.lt(new Sf("4295048016")))throw new Error("getNextSqrtPriceFromARoundUp - price less than min sqrt price");if(u.gt(new Sf(tj)))throw new Error("getNextSqrtPriceFromARoundUp - price less than max sqrt price");return u})(e,t,n,r):((e,t,n,r)=>{let i=n.shln(64),o=hj.divRoundUpIf(i,t,!r);return r?e.add(o):e.sub(o)})(e,t,n,r),vj=(e,t,n,r,i)=>i===r?yj(e,t,n,r):mj(e,t,n,r),bj=(e,t,n,r,i,o,a)=>{let s=vj(r,i,n,o,a),u=e;if(o){u=hj.mulDiv(e,aj.sub(new Sf(t)),aj,128)}let c=u.gte(s)?i:gj(r,n,u,o,a),l=c.eq(i),d=((e,t,n,r,i)=>i===r?mj(e,t,n,!r):yj(e,t,n,!r))(r,c,n,o,a);l||(s=vj(r,c,n,o,a));let h,p=o?s:d,f=o?d:s;if(!o&&f.gt(e)&&(f=e),o&&!l)h=e.sub(p);else{const e=new Sf(t);h=hj.mulDivRoundUp(p,e,aj.sub(e),128)}return{amountIn:p,amountOut:f,nextPrice:c,feeAmount:h}},wj=(e,t,n)=>n?t.sub(e):t.add(e),Mj=(e,t,n,r,i)=>{let o=r,a=i,s=e;if(t>0){let e=((e,t)=>e.mul(new dj(t).div(oj)))(s,t);s=s.sub(e),o=o.add(r)}if(n.gt(sj)){const e=s.shln(64).div(n);a=a.add(e)}return{nextProtocolFee:o,nextFeeGrowthGlobalInput:a}},Aj=Uf([Pf("mint"),Pf("vault"),Pf("authority"),Wf("emissionsPerSecondX64"),Wf("growthGlobalX64")]),Ej=Uf([Ff("anchorDiscriminator"),Pf("whirlpoolsConfig"),Nf(Vf(),1,"whirlpoolBump"),Qf("tickSpacing"),Nf(Vf(),2,"tickSpacingSeed"),Qf("feeRate"),Qf("protocolFeeRate"),Wf("liquidity"),Wf("sqrtPrice"),Of("tickCurrentIndex"),Ff("protocolFeeOwedA"),Ff("protocolFeeOwedB"),Pf("tokenMintA"),Pf("tokenVaultA"),Wf("feeGrowthGlobalA"),Pf("tokenMintB"),Pf("tokenVaultB"),Wf("feeGrowthGlobalB"),Ff("rewardLastUpdatedTimestamp"),Nf(Aj,3,"rewardInfos")]),Tj=Uf([Cf("initialized"),Df("liquidityNet"),Wf("liquidityGross"),Wf("feeGrowthOutsideA"),Wf("feeGrowthOutsideB"),Nf(Wf(),3,"reward_growths_outside")]),Nj=Uf([Ff("anchorDiscriminator"),Of("startTickIndex"),Nf(Tj,88,"ticks"),Pf("whirlpool")]),Ij=(e,t,n)=>{const r=(Math.floor(e/t/88)+n)*t*88,i=88*t;if(r<-443636-(-443636%i+i))throw`startTickIndex is too small - - ${r}`;if(r>443636)throw`startTickIndex is too large - ${r}`;return r},kj=async({pool:e,freshWhirlpoolData:t,aToB:n})=>{const r=await(async({aToB:e,pool:t,tickSpacing:n,tickCurrentIndex:r})=>{const i=e?0:n;let o=0,a=[];for(let s=0;s<3;s++){let s;try{s=Ij(r+i,n,o)}catch(e){return a}const u=(await Ec.findProgramAddress([xf.from("tick_array"),new Ec(t.toString()).toBuffer(),xf.from(s.toString())],new Ec("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0];a.push(u),o=e?o-1:o+1}return a})({aToB:n,pool:e,tickSpacing:t.tickSpacing,tickCurrentIndex:t.tickCurrentIndex});return await Promise.all(r.map((async(e,t)=>{let n;try{n=await YI({blockchain:"solana",address:e.toString(),api:Nj,cache:10})}catch(e){}return{address:e,data:n}})))};class Lj{static fromTickIndex(e,t){const n=Math.floor(Math.floor(e/t)/88);let r=Math.floor(e%(88*t)/t);return r<0&&(r=88+r),new Lj(n,r,t)}constructor(e,t,n){if(t>=88)throw new Error("Invalid offsetIndex - value has to be smaller than TICK_ARRAY_SIZE");if(t<0)throw new Error("Invalid offsetIndex - value is smaller than 0");if(n<0)throw new Error("Invalid tickSpacing - value is less than 0");this.arrayIndex=e,this.offsetIndex=t,this.tickSpacing=n}toTickIndex(){return 88*this.arrayIndex*this.tickSpacing+this.offsetIndex*this.tickSpacing}toNextInitializableTickIndex(){return Lj.fromTickIndex(this.toTickIndex()+this.tickSpacing,this.tickSpacing)}toPrevInitializableTickIndex(){return Lj.fromTickIndex(this.toTickIndex()-this.tickSpacing,this.tickSpacing)}}class xj{constructor(e,t,n){if(!e[0]||!e[0].data)throw new Error("TickArray index 0 must be initialized");this.sequence=[];for(const t of e){if(!t||!t.data)break;this.sequence.push({address:t.address,data:t.data})}this.tickArrays=e,this.tickSpacing=t,this.aToB=n,this.touchedArrays=[...Array(this.sequence.length).fill(!1)],this.startArrayIndex=Lj.fromTickIndex(this.sequence[0].data.startTickIndex,this.tickSpacing).arrayIndex}isValidTickArray0(e){const t=this.aToB?0:this.tickSpacing,n=this.sequence[0].data;return this.checkIfIndexIsInTickArrayRange(n.startTickIndex,e+t)}getNumOfTouchedArrays(){return this.touchedArrays.filter((e=>!!e)).length}getTouchedArrays(e){let t=this.touchedArrays.reduce(((e,t,n)=>(t&&e.push(this.sequence[n].address),e)),[]);if(0===t.length)return[];const n=e-t.length;return n>0&&(t=t.concat(Array(n).fill(t[t.length-1]))),t}getTick(e){const t=Lj.fromTickIndex(e,this.tickSpacing);if(!this.isArrayIndexInBounds(t,this.aToB))throw new Error("Provided tick index is out of bounds for this sequence.");const n=this.getLocalArrayIndex(t.arrayIndex,this.aToB),r=this.sequence[n].data;if(this.touchedArrays[n]=!0,!r)throw new Error(`TickArray at index ${n} is not initialized.`);if(!this.checkIfIndexIsInTickArrayRange(r.startTickIndex,e))throw new Error(`TickArray at index ${n} is unexpected for this sequence.`);return r.ticks[t.offsetIndex]}findNextInitializedTickIndex(e){const t=this.aToB?e:e+this.tickSpacing;let n=Lj.fromTickIndex(t,this.tickSpacing);if(!this.isArrayIndexInBounds(n,this.aToB))throw new Error(`Swap input value traversed too many arrays. Out of bounds at attempt to traverse tick index - ${n.toTickIndex()}.`);for(;this.isArrayIndexInBounds(n,this.aToB);){const e=this.getTick(n.toTickIndex());if(e.initialized)return{nextIndex:n.toTickIndex(),nextTickData:e};n=this.aToB?n.toPrevInitializableTickIndex():n.toNextInitializableTickIndex()}return{nextIndex:Math.max(Math.min(this.aToB?n.toTickIndex()+this.tickSpacing:n.toTickIndex()-1,443636),-443636),nextTickData:null}}getLocalArrayIndex(e,t){return t?this.startArrayIndex-e:e-this.startArrayIndex}isArrayIndexInBounds(e,t){const n=this.getLocalArrayIndex(e.arrayIndex,t),r=this.sequence.length;return n>=0&&n=e&&t{try{const n=await YI({blockchain:"solana",address:e.pubkey.toString(),api:Ej,cache:10}),s=n.tokenMintA.toString()===t,u=await kj({pool:e.pubkey,freshWhirlpoolData:n,aToB:s}),c=new xj(u,n.tickSpacing,s),l=new Sf(s?"4295048016":tj),d=!(!r&&!i),h=(({tokenAmount:e,aToB:t,freshWhirlpoolData:n,tickSequence:r,sqrtPriceLimit:i,amountSpecifiedIsInput:o})=>{let a=e,s=sj,u=n.sqrtPrice,c=n.liquidity,l=n.tickCurrentIndex,d=sj;const h=n.feeRate,p=n.protocolFeeRate;let f=new dj(0),y=t?n.feeGrowthGlobalA:n.feeGrowthGlobalB;for(;a.gt(sj)&&!i.eq(u);){let{nextIndex:e}=r.findNextInitializedTickIndex(l),{nextTickPrice:n,nextSqrtPriceLimit:m}=pj(e,i,t);const g=bj(a,h,c,u,m,o,t);d=d.add(g.feeAmount),o?(a=a.sub(g.amountIn),a=a.sub(g.feeAmount),s=s.add(g.amountOut)):(a=a.sub(g.amountOut),s=s.add(g.amountIn),s=s.add(g.feeAmount));let{nextProtocolFee:v,nextFeeGrowthGlobalInput:b}=Mj(g.feeAmount,p,c,f,y);if(f=v,y=b,g.nextPrice.eq(n)){const n=r.getTick(e);n.initialized&&(c=wj(n.liquidityNet,c,t)),l=t?e-1:e}else l=rj.sqrtPriceX64ToTickIndex(g.nextPrice);u=g.nextPrice}return s})({tokenAmount:new Sf((r||i||o||a).toString()),aToB:s,freshWhirlpoolData:n,tickSequence:c,sqrtPriceLimit:l,amountSpecifiedIsInput:d});return{price:h.toString(),tickArrays:u,aToB:s,sqrtPriceLimit:l}}catch(e){return{price:void 0,tickArrays:void 0,aToB:void 0,sqrtPriceLimit:void 0}}};let jj=async(e,t)=>await YI("solana://whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc/getProgramAccounts",{params:{filters:[{dataSize:Ej.span},{memcmp:{offset:8,bytes:"2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ"}},{memcmp:{offset:101,bytes:e}},{memcmp:{offset:181,bytes:t}}]},api:Ej,cache:86400,cacheKey:["whirlpool",e.toString(),t.toString()].join("-")}),Cj=async({tokenIn:e,tokenOut:t,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o})=>{try{let a=await jj(e,t);return 0===a.length&&(a=await jj(t,e)),a=a.filter((e=>e.data.liquidity.gt(1))),a=(await Promise.all(a.map((async a=>{const{price:s,tickArrays:u,sqrtPriceLimit:c,aToB:l}=await Sj({account:a,tokenIn:e,tokenOut:t,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o});return void 0!==s&&{pubkey:a.pubkey,price:s,tickArrays:u,sqrtPriceLimit:c,aToB:l,data:{tokenVaultA:a.data.tokenVaultA,tokenVaultB:a.data.tokenVaultB}}})))).filter(Boolean),a}catch(e){return[]}},Dj=async({tokenIn:e,tokenOut:t,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o})=>{const a=await Cj({tokenIn:e,tokenOut:t,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o});if(!a||0===a.length)return;let s;return s=n||r?(e=>e.reduce(((e,t)=>Wy.from(t.price).gt(Wy.from(e.price))?t:e)))(a):(e=>e.reduce(((e,t)=>Wy.from(t.price).lt(Wy.from(e.price))?t:e)))(a),s};function Oj(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const zj=he.solana;let _j=({path:e})=>{if(!e)return;let t=e.map(((t,n)=>t===zj.currency.address&&e[n+1]!=zj.wrapped.address&&e[n-1]!=zj.wrapped.address?zj.wrapped.address:t));return t[0]==zj.currency.address&&t[1]==zj.wrapped.address?t.splice(0,1):t[t.length-1]==zj.currency.address&&t[t.length-2]==zj.wrapped.address&&t.splice(t.length-1,1),t},Pj=async({path:e,amountIn:t,amountInMax:n,amountOut:r,amountOutMin:i})=>1!=e.length&&(e=_j({path:e}),(await Cj({tokenIn:e[0],tokenOut:e[1],amountIn:t,amountInMax:n,amountOut:r,amountOutMin:i})).length>0),Rj=async({path:e,amountIn:t,amountInMax:n})=>{let r=[Wy.from(t||n)];if(r.push(Wy.from((await Dj({tokenIn:e[0],tokenOut:e[1],amountIn:t,amountInMax:n})).price)),3===e.length&&r.push(Wy.from((await Dj({tokenIn:e[1],tokenOut:e[2],amountIn:t?r[1]:void 0,amountInMax:n?r[1]:void 0})).price)),r.length==e.length)return r},Bj=async({path:e,amountOut:t,amountOutMin:n})=>{e=e.slice().reverse();let r=[Wy.from(t||n)];if(r.push(Wy.from((await Dj({tokenIn:e[1],tokenOut:e[0],amountOut:t,amountOutMin:n})).price)),3===e.length&&r.push(Wy.from((await Dj({tokenIn:e[2],tokenOut:e[1],amountOut:t?r[1]:void 0,amountOutMin:n?r[1]:void 0})).price)),r.length==e.length)return r.slice().reverse()};const Uj=he.solana,Wj=new Sf("14449647541112719096"),Qj=new Sf("16635068063392030915"),Yj=async({instructions:e,owner:t,token:n,account:r})=>{let i;try{i=!!await YI({blockchain:"solana",address:r.toString()})}catch(e){}i||e.push(await JL.solana.createAssociatedTokenAccountInstruction({token:n,owner:t,payer:t}))},Fj=async({account:e,poolOne:t,tickArraysOne:n,tokenAccountOneA:r,tokenVaultOneA:i,tokenAccountOneB:o,tokenVaultOneB:a,poolTwo:s,tickArraysTwo:u,tokenAccountTwoA:c,tokenVaultTwoA:l,tokenAccountTwoB:d,tokenVaultTwoB:h})=>{let p=!1;const f=n.map(((e,t)=>!1!==p?n[p]:e.data?e:(p=t-1,n[t-1])));let y=!1;const m=u.map(((e,t)=>!1!==y?u[y]:e.data?e:(y=t-1,u[t-1])));return[{pubkey:new Ec(JL.solana.TOKEN_PROGRAM),isWritable:!1,isSigner:!1},{pubkey:new Ec(e),isWritable:!1,isSigner:!0},{pubkey:new Ec(t.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(s.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(r.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(i.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(o.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(a.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(c.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(l.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(d.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(h.toString()),isWritable:!0,isSigner:!1},{pubkey:f[0].address,isWritable:!0,isSigner:!1},{pubkey:f[1].address,isWritable:!0,isSigner:!1},{pubkey:f[2].address,isWritable:!0,isSigner:!1},{pubkey:m[0].address,isWritable:!0,isSigner:!1},{pubkey:m[1].address,isWritable:!0,isSigner:!1},{pubkey:m[2].address,isWritable:!0,isSigner:!1},{pubkey:(await Ec.findProgramAddress([xf.from("oracle"),new Ec(t.toString()).toBuffer()],new Ec("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1},{pubkey:(await Ec.findProgramAddress([xf.from("oracle"),new Ec(s.toString()).toBuffer()],new Ec("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1}]},Vj=({amount:e,otherAmountThreshold:t,amountSpecifiedIsInput:n,aToBOne:r,aToBTwo:i,sqrtPriceLimitOne:o,sqrtPriceLimitTwo:a})=>{let s,u;return s=Uf([Ff("anchorDiscriminator"),Ff("amount"),Ff("otherAmountThreshold"),Cf("amountSpecifiedIsInput"),Cf("aToBOne"),Cf("aToBTwo"),Wf("sqrtPriceLimitOne"),Wf("sqrtPriceLimitTwo")]),u=xf.alloc(s.span),s.encode({anchorDiscriminator:Qj,amount:new Sf(e.toString()),otherAmountThreshold:new Sf(t.toString()),amountSpecifiedIsInput:n,aToBOne:r,aToBTwo:i,sqrtPriceLimitOne:o,sqrtPriceLimitTwo:a},u),u},Hj=async({account:e,pool:t,tokenAccountA:n,tokenVaultA:r,tokenAccountB:i,tokenVaultB:o,tickArrays:a})=>{let s=!1;const u=a.map(((e,t)=>!1!==s?a[s]:e.data?e:(s=t-1,a[t-1])));return[{pubkey:new Ec(JL.solana.TOKEN_PROGRAM),isWritable:!1,isSigner:!1},{pubkey:new Ec(e),isWritable:!1,isSigner:!0},{pubkey:new Ec(t.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(n.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(r.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(i.toString()),isWritable:!0,isSigner:!1},{pubkey:new Ec(o.toString()),isWritable:!0,isSigner:!1},{pubkey:u[0].address,isWritable:!0,isSigner:!1},{pubkey:u[1].address,isWritable:!0,isSigner:!1},{pubkey:u[2].address,isWritable:!0,isSigner:!1},{pubkey:(await Ec.findProgramAddress([xf.from("oracle"),new Ec(t.toString()).toBuffer()],new Ec("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1}]},Gj=({amount:e,otherAmountThreshold:t,sqrtPriceLimit:n,amountSpecifiedIsInput:r,aToB:i})=>{let o,a;return o=Uf([Ff("anchorDiscriminator"),Ff("amount"),Ff("otherAmountThreshold"),Wf("sqrtPriceLimit"),Cf("amountSpecifiedIsInput"),Cf("aToB")]),a=xf.alloc(o.span),o.encode({anchorDiscriminator:Wj,amount:new Sf(e.toString()),otherAmountThreshold:new Sf(t.toString()),sqrtPriceLimit:n,amountSpecifiedIsInput:r,aToB:i},a),a};var qj={findPath:async({tokenIn:e,tokenOut:t,amountIn:n,amountOut:r,amountInMax:i,amountOutMin:o})=>{if([e,t].includes(zj.currency.address)&&[e,t].includes(zj.wrapped.address))return{path:void 0,exchangePath:void 0};let a,s,u,c;return await Pj({path:[e,t],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})?a=[e,t]:e!=zj.wrapped.address&&e!=zj.currency.address&&await Pj({path:[e,zj.wrapped.address],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})&&t!=zj.wrapped.address&&t!=zj.currency.address&&await Pj({path:[t,zj.wrapped.address],amountIn:r||o,amountInMax:r||o,amountOut:n||i,amountOutMin:n||i})?a=[e,zj.wrapped.address,t]:!zj.stables.usd.includes(e)&&(s=(await Promise.all(zj.stables.usd.map((async t=>await Pj({path:[e,t],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})?t:void 0)))).filter(Boolean))&&!zj.stables.usd.includes(t)&&(u=(await Promise.all(zj.stables.usd.map((async e=>await Pj({path:[t,e],amountIn:r||o,amountInMax:r||o,amountOut:n||i,amountOutMin:n||i})?e:void 0)))).filter(Boolean))&&(c=s.filter((e=>u.includes(e)))[0])&&(a=[e,c,t]),Oj([a,"optionalAccess",e=>e.length])&&a[0]==zj.currency.address?a.splice(1,0,zj.wrapped.address):Oj([a,"optionalAccess",e=>e.length])&&a[a.length-1]==zj.currency.address&&a.splice(a.length-1,0,zj.wrapped.address),{path:a,exchangePath:_j({path:a})}},pathExists:Pj,getAmounts:async({path:e,tokenIn:t,tokenOut:n,amountOut:r,amountIn:i,amountInMax:o,amountOutMin:a})=>{let s;if(e=_j({path:e}),r){if(s=await Bj({path:e,amountOut:r,tokenIn:t,tokenOut:n}),null==(i=s?s[0]:void 0)||o&&i.gt(o))return{};void 0===o&&(o=i)}else if(i){if(s=await Rj({path:e,amountIn:i,tokenIn:t,tokenOut:n}),null==(r=s?s[s.length-1]:void 0)||a&&r.lt(a))return{};void 0===a&&(a=r)}else if(a){if(s=await Bj({path:e,amountOutMin:a,tokenIn:t,tokenOut:n}),null==(i=s?s[0]:void 0)||o&&i.gt(o))return{};void 0===o&&(o=i)}else if(o){if(s=await Rj({path:e,amountInMax:o,tokenIn:t,tokenOut:n}),null==(r=s?s[s.length-1]:void 0)||a&&r.lt(a))return{};void 0===a&&(a=r)}return{amountOut:r||a,amountIn:i||o,amountInMax:o||i,amountOutMin:a||r,amounts:s}},getTransaction:async({path:e,amountIn:t,amountInMax:n,amountOut:r,amountOutMin:i,amounts:o,amountInInput:a,amountOutInput:s,amountInMaxInput:u,amountOutMinInput:c,account:l})=>{let d={blockchain:"solana"},h=[];const p=_j({path:e});if(p.length>3)throw"Orca can only handle fixed paths with a max length of 3 (2 pools)!";const f=p[0],y=3==p.length?p[1]:void 0,m=p[p.length-1];let g;2==p.length?g=[await Dj({tokenIn:f,tokenOut:m,amountIn:a||u,amountOut:s||c})]:a||u?(g=[await Dj({tokenIn:f,tokenOut:y,amountIn:a||u})],g.push(await Dj({tokenIn:y,tokenOut:m,amountIn:g[0].price}))):(g=[await Dj({tokenIn:y,tokenOut:m,amountOut:s||c})],g.unshift(await Dj({tokenIn:f,tokenOut:y,amountOut:g[0].price})));let v,b=e[0]===Uj.currency.address&&p[0]===Uj.wrapped.address,w=e[e.length-1]===Uj.currency.address&&p[p.length-1]===Uj.wrapped.address;const M=await _I("solana");if(b||w){const e=await M.getMinimumBalanceForRentExemption(JL.solana.TOKEN_LAYOUT.span),n=bh.generate();v=n.publicKey.toString();const r=b?new Sf(t.toString()).add(new Sf(e)):new Sf(e);let i=yl.createAccount({fromPubkey:new Ec(l),newAccountPubkey:new Ec(v),programId:new Ec(JL.solana.TOKEN_PROGRAM),space:JL.solana.TOKEN_LAYOUT.span,lamports:r});i.signers=[n],h.push(i),h.push(JL.solana.initializeAccountInstruction({account:v,token:Uj.wrapped.address,owner:l}))}if(1===g.length){let e=!(!a&&!c),o=e?t:r,s=e?i:n,u=new Ec(b?v:await JL.solana.findProgramAddress({owner:l,token:f})),d=new Ec(w?v:await JL.solana.findProgramAddress({owner:l,token:m}));w||await Yj({instructions:h,owner:l,token:m,account:d}),h.push(new Yc({programId:new Ec("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"),keys:await Hj({account:l,pool:g[0].pubkey,tokenAccountA:g[0].aToB?u:d,tokenVaultA:g[0].data.tokenVaultA,tokenAccountB:g[0].aToB?d:u,tokenVaultB:g[0].data.tokenVaultB,tickArrays:g[0].tickArrays}),data:Gj({amount:o,otherAmountThreshold:s,sqrtPriceLimit:g[0].sqrtPriceLimit,amountSpecifiedIsInput:e,aToB:g[0].aToB})}))}else if(2===g.length){let e=!(!a&&!c),o=e?t:r,s=e?i:n,u=new Ec(b?v:await JL.solana.findProgramAddress({owner:l,token:f})),d=p[1],y=new Ec(await JL.solana.findProgramAddress({owner:l,token:d}));await Yj({instructions:h,owner:l,token:d,account:y});let M=new Ec(w?v:await JL.solana.findProgramAddress({owner:l,token:m}));w||await Yj({instructions:h,owner:l,token:m,account:M}),h.push(new Yc({programId:new Ec("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"),keys:await Fj({account:l,poolOne:g[0].pubkey,tickArraysOne:g[0].tickArrays,tokenAccountOneA:g[0].aToB?u:y,tokenVaultOneA:g[0].data.tokenVaultA,tokenAccountOneB:g[0].aToB?y:u,tokenVaultOneB:g[0].data.tokenVaultB,poolTwo:g[1].pubkey,tickArraysTwo:g[1].tickArrays,tokenAccountTwoA:g[1].aToB?y:M,tokenVaultTwoA:g[1].data.tokenVaultA,tokenAccountTwoB:g[1].aToB?M:y,tokenVaultTwoB:g[1].data.tokenVaultB}),data:Vj({amount:o,otherAmountThreshold:s,amountSpecifiedIsInput:e,aToBOne:g[0].aToB,aToBTwo:g[1].aToB,sqrtPriceLimitOne:g[0].sqrtPriceLimit,sqrtPriceLimitTwo:g[1].sqrtPriceLimit})}))}return(b||w)&&h.push(JL.solana.closeAccountInstruction({account:v,owner:l})),d.instructions=h,d},WHIRLPOOL_LAYOUT:Ej};const Zj={name:"orca",label:"Orca",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lc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LjQtMTEsNi44LTExYzEzLjIsMCwzMy4zLDE0LjksMzcuNCwyMC40Yy0xLjMsMy40LTkuOCw0LjEtMTQsMy44Yy00LjItMC4zLTExLjUtMS0xNy0zLjgKCUMzMjYsMTQ5LjIsMzIwLjUsMTQ1LjUsMzE4LjMsMTQyLjV6Ii8+Cjwvc3ZnPgo=",protocol:"orca",slippage:!0,blockchains:["solana"],solana:{router:{address:"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",api:qj.WHIRLPOOL_LAYOUT}}};var Jj=e=>new VS(Object.assign(Zj,{scope:e,findPath:e=>qj.findPath({...e,exchange:Zj}),pathExists:e=>qj.pathExists({...e,exchange:Zj}),getAmounts:e=>qj.getAmounts({...e,exchange:Zj}),getPrep:e=>{},getTransaction:e=>qj.getTransaction({...e,exchange:Zj})}));const Xj={name:"pancakeswap",label:"PancakeSwap",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTk4IiBoZWlnaHQ9IjE5OSIgdmlld0JveD0iMCAwIDE5OCAxOTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTguNTUyIDE5OC42MDdDNjkuMDYxMyAxOTguNTg1IDQ1LjMwNiAxOTEuNTggMjguNzA3OSAxNzguOTk4QzExLjkxMDggMTY2LjI2NSAzIDE0OC4xOTUgMyAxMjcuNzQ4QzMgMTA4LjA0NyAxMS44OTEzIDkzLjg0MTEgMjEuOTUxNyA4NC4yMzg1QzI5LjgzNTkgNzYuNzEzMiAzOC41MzYzIDcxLjg5MzYgNDQuNTk0NSA2OS4xMjEzQzQzLjIyNDUgNjQuOTU5NCA0MS41MTUzIDU5LjUxMDggMzkuOTg2MSA1My44ODMyQzM3LjkzOTkgNDYuMzUyNyAzNS45MzI1IDM3LjUxNzQgMzUuOTMyNSA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ZpbGw9IiM2MzMwMDEiLz4KPC9zdmc+Cg==",protocol:"uniswap_v2",slippage:!0,blockchains:["bsc"],bsc:{router:{address:"0x10ED43C718714eb63d5aA57B78B54704E256024E",api:KS.ROUTER},factory:{address:"0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73",api:KS.FACTORY},pair:{api:KS.PAIR}}};var Kj=e=>new VS(Object.assign(Xj,{scope:e,findPath:e=>KS.findPath({...e,exchange:Xj}),pathExists:e=>KS.pathExists({...e,exchange:Xj}),getAmounts:e=>KS.getAmounts({...e,exchange:Xj}),getPrep:e=>KS.getPrep({...e,exchange:Xj}),getTransaction:e=>KS.getTransaction({...e,exchange:Xj})}));function $j(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const eC=({blockchain:e,exchange:t,path:n})=>{if(!n)return;let r=n.map(((t,r)=>t===he[e].currency.address&&n[r+1]!=he[e].wrapped.address&&n[r-1]!=he[e].wrapped.address?he[e].wrapped.address:t));return r[0]==he[e].currency.address&&r[1]==he[e].wrapped.address?r.splice(0,1):r[r.length-1]==he[e].currency.address&&r[r.length-2]==he[e].wrapped.address&&r.splice(r.length-1,1),r},tC=async({blockchain:e,exchange:t,path:n,amountIn:r,amountOut:i,block:o})=>{if((n=eC({blockchain:e,exchange:t,path:n})).length>2)throw"PancakeSwap V3 can only check paths for up to 2 tokens!";try{let o=(await Promise.all(t.fees.map((r=>YI({blockchain:he[e].name,address:t[e].factory.address,method:"getPool",api:t[e].factory.api,cache:3600,params:[n[0],n[1],r]}).then((t=>({blockchain:e,address:t,path:n,fee:r,token0:[...n].sort()[0],token1:[...n].sort()[1]}))).catch((()=>{})))))).filter(Boolean);return o=o.filter((t=>t.address!=he[e].zero)),o=(await Promise.all(o.map((async e=>{try{let n;return n=r?await(async({exchange:e,pool:t,inputAmount:n})=>(await YI({blockchain:t.blockchain,address:e[t.blockchain].quoter.address,api:e[t.blockchain].quoter.api,method:"quoteExactInput",params:{path:hI(["address","uint24","address"],[t.path[0],t.fee,t.path[1]]),amountIn:n},cache:5})).amountOut)({exchange:t,pool:e,inputAmount:r}):await(async({exchange:e,pool:t,outputAmount:n})=>(await YI({blockchain:t.blockchain,address:e[t.blockchain].quoter.address,api:e[t.blockchain].quoter.api,method:"quoteExactOutput",params:{path:hI(["address","uint24","address"],[t.path[1],t.fee,t.path[0]]),amountOut:n},cache:5})).amountIn)({exchange:t,pool:e,outputAmount:i}),{...e,amountIn:r||n,amountOut:i||n}}catch(e){}})))).filter(Boolean),r?o.sort(((e,t)=>t.amountOut.gt(e.amountOut)?1:-1))[0]:o.sort(((e,t)=>t.amountIn.lt(e.amountIn)?1:-1))[0]}catch(e){return}};let nC=({blockchain:e,exchange:t,path:n,pools:r,amountIn:i})=>r[r.length-1].amountOut,rC=async({blockchain:e,exchange:t,path:n,pools:r,amountOut:i,block:o})=>{if(void 0===o)return r[0].amountIn;{let n;2==r.length?n=hI(["address","uint24","address","uint24","address"],[r[1].path[1],r[1].fee,r[0].path[1],r[0].fee,r[0].path[0]]):1==r.length&&(n=hI(["address","uint24","address"],[r[0].path[1],r[0].fee,r[0].path[0]]));return(await YI({block:o,blockchain:e,address:t[e].quoter.address,api:t[e].quoter.api,method:"quoteExactOutput",params:{path:n,amountOut:i}})).amountIn}};var iC={findPath:async({blockchain:e,exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(he[e].currency.address)&&[n,r].includes(he[e].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await tC({exchange:t,blockchain:e,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==he[e].wrapped.address||r==he[e].wrapped.address||(c=[],o||s?(c.push(await tC({exchange:t,blockchain:e,path:[he[e].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await tC({exchange:t,blockchain:e,path:[n,he[e].wrapped.address],amountOut:c[0].amountIn}))):(c.push(await tC({exchange:t,blockchain:e,path:[n,he[e].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await tC({exchange:t,blockchain:e,path:[he[e].wrapped.address,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length&&(u=[n,he[e].wrapped.address,r])),!u){c=[];let l=await Promise.all(he[e].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await tC({exchange:t,blockchain:e,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await tC({exchange:t,blockchain:e,path:[n,u],amountOut:c[0].amountIn}))):(c.push(await tC({exchange:t,blockchain:e,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await tC({exchange:t,blockchain:e,path:[u,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length)return[u,c]}))),d=l.filter(Boolean)[0];d&&(u=[n,d[0],r],c=d[1])}return $j([u,"optionalAccess",e=>e.length])&&u[0]==he[e].currency.address?u.splice(1,0,he[e].wrapped.address):$j([u,"optionalAccess",e=>e.length])&&u[u.length-1]==he[e].currency.address&&u.splice(u.length-1,0,he[e].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:eC({blockchain:e,exchange:t,path:u})}},pathExists:async({blockchain:e,exchange:t,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>{try{return!!await tC({blockchain:e,exchange:t,path:n,amountIn:r||o,amountOut:i||a})}catch(e){return!1}},getAmounts:async({blockchain:e,exchange:t,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await rC({blockchain:e,exchange:t,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await nC({blockchain:e,exchange:t,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await rC({blockchain:e,exchange:t,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await nC({blockchain:e,exchange:t,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getPrep:async({exchange:e,blockchain:t,tokenIn:n,amountIn:r,account:i,tokenOut:o})=>{if(n===he[t].currency.address)return;let a;a=o===he[t].currency.address?e[t].smartRouter.address:e[t].router.address;if((await YI({blockchain:t,address:n,method:"allowance",api:JL[t][20],params:[i,a]})).lt(r)){return{transaction:{blockchain:t,from:i,to:n,api:JL[t][20],method:"approve",params:[a,he[t].maxInt]}}}},getTransaction:async({blockchain:e,exchange:t,pools:n,path:r,amountIn:i,amountInMax:o,amountOut:a,amountOutMin:s,amountInInput:u,amountOutInput:c,amountInMaxInput:l,amountOutMinInput:d,account:h,inputTokenPushed:p})=>{const f={blockchain:e,from:h},y=Math.floor(Date.now()/1e3)+21600,m=eC({blockchain:e,exchange:t,path:r});if(r[r.length-1]===he[e].currency.address){f.to=t[e].smartRouter.address,f.api=t[e].smartRouter.api,f.method="multicall";const r=new jv(t[e].smartRouter.api);if(f.params={data:[]},2===m.length)u||d?f.params.data.push(r.encodeFunctionData("exactInputSingle",[{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:t[e].smartRouter.address,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString(),sqrtPriceLimitX96:he[e].zero}])):(c||l)&&f.params.data.push(r.encodeFunctionData("exactOutputSingle",[{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:t[e].smartRouter.address,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString(),sqrtPriceLimitX96:he[e].zero}]));else{const h=hI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]]);u||d?f.params.data.push(r.encodeFunctionData("exactInput",[{path:h,recipient:t[e].smartRouter.address,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString()}])):(c||l)&&f.params.data.push(r.encodeFunctionData("exactOutput",[{path:h,recipient:t[e].smartRouter.address,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString()}]))}f.params.data.push(r.encodeFunctionData("unwrapWETH9",[(s||a).toString(),h]))}else if(f.to=t[e].router.address,f.api=t[e].router.api,r[0]===he[e].currency.address&&(f.value=(i||o).toString()),2===m.length)u||d?(f.method="exactInputSingle",f.params={params:{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:h,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString(),sqrtPriceLimitX96:he[e].zero}}):(c||l)&&(f.method="exactOutputSingle",f.params={params:{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:h,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString(),sqrtPriceLimitX96:he[e].zero}});else{const e=hI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]]);u||d?(f.method="exactInput",f.params={params:{path:e,recipient:h,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString()}}):(c||l)&&(f.method="exactOutput",f.params={params:{path:e,recipient:h,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString()}})}return f},ROUTER:[{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"}],internalType:"struct ISwapRouter.ExactInputParams",name:"params",type:"tuple"}],name:"exactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct ISwapRouter.ExactInputSingleParams",name:"params",type:"tuple"}],name:"exactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"}],internalType:"struct ISwapRouter.ExactOutputParams",name:"params",type:"tuple"}],name:"exactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct ISwapRouter.ExactOutputSingleParams",name:"params",type:"tuple"}],name:"exactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"refundETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowed",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowedIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"unwrapWETH9",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],SMART_ROUTER:[{inputs:[{internalType:"address",name:"_factoryV2",type:"address"},{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factoryV3",type:"address"},{internalType:"address",name:"_positionManager",type:"address"},{internalType:"address",name:"_stableFactory",type:"address"},{internalType:"address",name:"_stableInfo",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"factory",type:"address"},{indexed:!0,internalType:"address",name:"info",type:"address"}],name:"SetStableSwap",type:"event"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveMax",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveMaxMinusOne",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveZeroThenMax",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveZeroThenMaxMinusOne",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"callPositionManager",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"paths",type:"bytes[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint24",name:"maximumTickDivergence",type:"uint24"},{internalType:"uint32",name:"secondsAgo",type:"uint32"}],name:"checkOracleSlippage",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint24",name:"maximumTickDivergence",type:"uint24"},{internalType:"uint32",name:"secondsAgo",type:"uint32"}],name:"checkOracleSlippage",outputs:[],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"}],internalType:"struct IV3SwapRouter.ExactInputParams",name:"params",type:"tuple"}],name:"exactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IV3SwapRouter.ExactInputSingleParams",name:"params",type:"tuple"}],name:"exactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address[]",name:"path",type:"address[]"},{internalType:"uint256[]",name:"flag",type:"uint256[]"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address",name:"to",type:"address"}],name:"exactInputStableSwap",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"}],internalType:"struct IV3SwapRouter.ExactOutputParams",name:"params",type:"tuple"}],name:"exactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IV3SwapRouter.ExactOutputSingleParams",name:"params",type:"tuple"}],name:"exactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address[]",name:"path",type:"address[]"},{internalType:"uint256[]",name:"flag",type:"uint256[]"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address",name:"to",type:"address"}],name:"exactOutputStableSwap",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factoryV2",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"getApprovalType",outputs:[{internalType:"enum IApproveAndCall.ApprovalType",name:"",type:"uint8"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount0Min",type:"uint256"},{internalType:"uint256",name:"amount1Min",type:"uint256"}],internalType:"struct IApproveAndCall.IncreaseLiquidityParams",name:"params",type:"tuple"}],name:"increaseLiquidity",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint256",name:"amount0Min",type:"uint256"},{internalType:"uint256",name:"amount1Min",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],internalType:"struct IApproveAndCall.MintParams",name:"params",type:"tuple"}],name:"mint",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"previousBlockhash",type:"bytes32"},{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"positionManager",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"pull",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"refundETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowed",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowedIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_info",type:"address"}],name:"setStableSwap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"stableSwapFactory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"stableSwapInfo",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"unwrapWETH9",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"}],name:"wrapETH",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"_poolDeployer",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!0,internalType:"int24",name:"tickSpacing",type:"int24"}],name:"FeeAmountEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"bool",name:"whitelistRequested",type:"bool"},{indexed:!1,internalType:"bool",name:"enabled",type:"bool"}],name:"FeeAmountExtraInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"int24",name:"tickSpacing",type:"int24"},{indexed:!1,internalType:"address",name:"pool",type:"address"}],name:"PoolCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"lmPoolDeployer",type:"address"}],name:"SetLmPoolDeployer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"bool",name:"verified",type:"bool"}],name:"WhiteListAdded",type:"event"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"}],name:"createPool",outputs:[{internalType:"address",name:"pool",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],name:"enableFeeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacingExtraInfo",outputs:[{internalType:"bool",name:"whitelistRequested",type:"bool"},{internalType:"bool",name:"enabled",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint24",name:"",type:"uint24"}],name:"getPool",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"lmPoolDeployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"poolDeployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"bool",name:"whitelistRequested",type:"bool"},{internalType:"bool",name:"enabled",type:"bool"}],name:"setFeeAmountExtraInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"uint32",name:"feeProtocol0",type:"uint32"},{internalType:"uint32",name:"feeProtocol1",type:"uint32"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"address",name:"lmPool",type:"address"}],name:"setLmPool",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_lmPoolDeployer",type:"address"}],name:"setLmPoolDeployer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"bool",name:"verified",type:"bool"}],name:"setWhiteListAddress",outputs:[],stateMutability:"nonpayable",type:"function"}],POOL:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"Collect",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"CollectProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid1",type:"uint256"}],name:"Flash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"observationCardinalityNextOld",type:"uint16"},{indexed:!1,internalType:"uint16",name:"observationCardinalityNextNew",type:"uint16"}],name:"IncreaseObservationCardinalityNext",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Initialize",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint32",name:"feeProtocol0Old",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol1Old",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol0New",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol1New",type:"uint32"}],name:"SetFeeProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"addr",type:"address"}],name:"SetLmPoolEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"int256",name:"amount0",type:"int256"},{indexed:!1,internalType:"int256",name:"amount1",type:"int256"},{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"uint128",name:"liquidity",type:"uint128"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"},{indexed:!1,internalType:"uint128",name:"protocolFeesToken0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"protocolFeesToken1",type:"uint128"}],name:"Swap",type:"event"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collect",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal0X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal1X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"}],name:"increaseObservationCardinalityNext",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"liquidity",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"lmPool",outputs:[{internalType:"contract IPancakeV3LmPool",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxLiquidityPerTick",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"observations",outputs:[{internalType:"uint32",name:"blockTimestamp",type:"uint32"},{internalType:"int56",name:"tickCumulative",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityCumulativeX128",type:"uint160"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32[]",name:"secondsAgos",type:"uint32[]"}],name:"observe",outputs:[{internalType:"int56[]",name:"tickCumulatives",type:"int56[]"},{internalType:"uint160[]",name:"secondsPerLiquidityCumulativeX128s",type:"uint160[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"positions",outputs:[{internalType:"uint128",name:"liquidity",type:"uint128"},{internalType:"uint256",name:"feeGrowthInside0LastX128",type:"uint256"},{internalType:"uint256",name:"feeGrowthInside1LastX128",type:"uint256"},{internalType:"uint128",name:"tokensOwed0",type:"uint128"},{internalType:"uint128",name:"tokensOwed1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFees",outputs:[{internalType:"uint128",name:"token0",type:"uint128"},{internalType:"uint128",name:"token1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32",name:"feeProtocol0",type:"uint32"},{internalType:"uint32",name:"feeProtocol1",type:"uint32"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_lmPool",type:"address"}],name:"setLmPool",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slot0",outputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{internalType:"int24",name:"tick",type:"int24"},{internalType:"uint16",name:"observationIndex",type:"uint16"},{internalType:"uint16",name:"observationCardinality",type:"uint16"},{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"},{internalType:"uint32",name:"feeProtocol",type:"uint32"},{internalType:"bool",name:"unlocked",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"}],name:"snapshotCumulativesInside",outputs:[{internalType:"int56",name:"tickCumulativeInside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityInsideX128",type:"uint160"},{internalType:"uint32",name:"secondsInside",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"bool",name:"zeroForOne",type:"bool"},{internalType:"int256",name:"amountSpecified",type:"int256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[{internalType:"int256",name:"amount0",type:"int256"},{internalType:"int256",name:"amount1",type:"int256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int16",name:"",type:"int16"}],name:"tickBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"tickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"",type:"int24"}],name:"ticks",outputs:[{internalType:"uint128",name:"liquidityGross",type:"uint128"},{internalType:"int128",name:"liquidityNet",type:"int128"},{internalType:"uint256",name:"feeGrowthOutside0X128",type:"uint256"},{internalType:"uint256",name:"feeGrowthOutside1X128",type:"uint256"},{internalType:"int56",name:"tickCumulativeOutside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityOutsideX128",type:"uint160"},{internalType:"uint32",name:"secondsOutside",type:"uint32"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"path",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"quoteExactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactInputSingleParams",name:"params",type:"tuple"}],name:"quoteExactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"quoteExactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactOutputSingleParams",name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]};const oC={name:"pancakeswap_v3",label:"PancakeSwap v3",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTk4IiBoZWlnaHQ9IjE5OSIgdmlld0JveD0iMCAwIDE5OCAxOTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTguNTUyIDE5OC42MDdDNjkuMDYxMyAxOTguNTg1IDQ1LjMwNiAxOTEuNTggMjguNzA3OSAxNzguOTk4QzExLjkxMDggMTY2LjI2NSAzIDE0OC4xOTUgMyAxMjcuNzQ4QzMgMTA4LjA0NyAxMS44OTEzIDkzLjg0MTEgMjEuOTUxNyA4NC4yMzg1QzI5LjgzNTkgNzYuNzEzMiAzOC41MzYzIDcxLjg5MzYgNDQuNTk0NSA2OS4xMjEzQzQzLjIyNDUgNjQuOTU5NCA0MS41MTUzIDU5LjUxMDggMzkuOTg2MSA1My44ODMyQzM3LjkzOTkgNDYuMzUyNyAzNS45MzI1IDM3LjUxNzQgMzUuOTMyNSAzMS4wNDI5QzM1LjkzMjUgMjMuMzc5NSAzNy42MjA0IDE1LjY4MzMgNDIuMTcxNCA5LjcwMzA2QzQ2Ljk3OTcgMy4zODQ3NiA1NC4yMTgyIDAgNjIuOTI2NCAwQzY5LjczMjIgMCA3NS41MTAzIDIuNDk5MDMgODAuMDMzOSA2LjgxM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i41MDMgNDIuMDczNCAxODkuMzYyIDk4LjY5MzEgMTg5LjM2MkMxNTUuMzEzIDE4OS4zNjIgMTg2LjAxOCAxNjIuNTAzIDE4Ni4wMTggMTI2Ljg3MUMxODYuMDE4IDEyNi44MjYgMTg2LjAxOCAxMjYuNzgxIDE4Ni4wMTggMTI2LjczN0MxODUuOTQ2IDE1NS41MiAxNDAuMjMxIDE3Ny43NTUgOTguNjkzMSAxNzcuNzU1WiIgZmlsbD0iI0ZFREM5MCIvPgo8cGF0aCBkPSJNNzUuNjEzNSAxMTcuODk2Qzc1LjYxMzUgMTI3LjYxNCA3MS4wMjEgMTMyLjY3NSA2NS4zNTU4IDEzMi42NzVDNTkuNjkwNyAxMzIuNjc1IDU1LjA5ODEgMTI3LjYxNCA1NS4wOTgxIDExNy44OTZDNTUuMDk4MSAxMDguMTc4IDU5LjY5MDcgMTAzLjExNyA2NS4zNTU4IDEwMy4xMTdDNzEuMDIxIDEwMy4xMTcgNzUuNjEzNSAxMDguMTc4IDc1LjYxMzUgMTE3Ljg5NloiIGZpbGw9IiM2MzMwMDEiLz4KPHBhdGggZD0iTTE0Mi4yODggMTE3Ljg5NkMxNDIuMjg4IDEyNy42MTQgMTM3LjY5NiAxMzIuNjc1IDEzMi4wMzEgMTMyLjY3NUMxMjYuMzY1IDEzMi42NzUgMTIxLjc3MyAxMjcuNjE0IDEyMS43NzMgMTE3Ljg5NkMxMjEuNzczIDEwOC4xNzggMTI2LjM2NSAxMDMuMTE3IDEzMi4wMzEgMTAzLjExN0MxMzcuNjk2IDEwMy4xMTcgMTQyLjI4OCAxMDguMTc4IDE0Mi4yODggMTE3Ljg5NloiIGZpbGw9IiM2MzMwMDEiLz4KPC9zdmc+Cg==",protocol:"pancakeswap_v3",slippage:!0,fees:[100,500,2500,1e4],blockchains:["bsc"],bsc:{router:{address:"0x1b81D678ffb9C0263b24A97847620C99d213eB14",api:iC.ROUTER},smartRouter:{address:"0x13f4EA83D0bd40E75C8222255bc855a974568Dd4",api:iC.SMART_ROUTER},factory:{address:"0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865",api:iC.FACTORY},pair:{api:iC.POOL},quoter:{address:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997",api:iC.QUOTER}}};var aC=e=>new VS(Object.assign(oC,{scope:e,findPath:e=>iC.findPath({...e,exchange:oC}),pathExists:e=>iC.pathExists({...e,exchange:oC}),getAmounts:e=>iC.getAmounts({...e,exchange:oC}),getPrep:e=>iC.getPrep({...e,exchange:oC}),getTransaction:e=>iC.getTransaction({...e,exchange:oC})}));const sC={name:"quickswap",label:"QuickSwap",logo:"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNzAyLjQ1IDcwMi40NyI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwLXBhdGgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMy43OCAtMjMuNzcpIj48cmVjdCB3aWR0aD0iNzUwIiBoZWlnaHQ9Ijc1MCIgZmlsbD0ibm9uZSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwLXBhdGgpIj48cGF0aCBkPSJNMzU0Ljc0LDI0LjM3YTM1MS4yNywzNTEuMjcsMCwwLDEsMzYzLjc0LDI3NywzNTQsMzU0LDAsMCwxLDEuMjMsMTQxLjI2QTM1MS43NiwzNTEuNzYsMCwwLDEsNTEwLjEyLDY5OS4zYy03My43NywzMS0xNTguMjUsMzUuMzUtMjM0LjkxLDEyLjU0QTM1MiwzNTIsMCwwLDEsNDYuNTEsNDk5LjU2Yy0yOC03My40NS0zMC4xNi0xNTYuMzgtNi4yNC0yMzEuMjVBMzUwLjg4LDM1MC44OC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0xMS4zMSwyMTQsMjE0LDAsMCwwLDYxLjYxLTM0LjY3YzE4LjA5LTE0LjY4LDMzLjY2LTMxLjUzLDQ0LjA2LTUyLjYxYTEwMS4zNiwxMDEuMzYsMCwwLDAsMTAuMjItMzZjMS0xMS4zMS0uODgtMjItMy45NS0zMi42NC4zNC0yLjYxLDIuNzItMy44LDQuMTEtNS42Myw1LjM4LTcuMDcsOS4zNS0xNC42OSwxMS0yMy40NmEyNy40MywyNy40MywwLDAsMSwxLjIxLTMuNDMsMTExLDExMSwwLDAsMSw4LDIxLjE2YzIuNjMsMTAuMzEsNC4xMSwyMC44LDMuMzMsMzEuNGExMjMuMzEsMTIzLjMxLDAsMCwxLTE2LjA2LDUyLjMyYy05LjE2LDE2LjE1LTIxLDMwLTM0LjYsNDIuMzdhMTk5Ljg5LDE5OS44OSwwLDAsMS0zOS4zNywyNy41NCwyMTkuNSwyMTkuNSwwLDAsMS01NC4yNiwyMC43MSwyMDkuMjcsMjA5LjI3LDAsMCwxLTM2LjA1LDUuMmMtNS44NS4zMy0xMS43MS44My0xNy41Mi40Ni00LjUxLS4yOS05LjE0LDAtMTMuNTYtMS4zNyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzLjc4IC0yMy43NykiIGZpbGw9IiMwZTFmNjYiLz48L2c+PC9zdmc+",protocol:"uniswap_v2",slippage:!0,blockchains:["polygon"],polygon:{router:{address:"0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff",api:KS.ROUTER},factory:{address:"0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32",api:KS.FACTORY},pair:{api:KS.PAIR}}};var uC=e=>new VS(Object.assign(sC,{scope:e,findPath:e=>KS.findPath({...e,exchange:sC}),pathExists:e=>KS.pathExists({...e,exchange:sC}),getAmounts:e=>KS.getAmounts({...e,exchange:sC}),getPrep:e=>KS.getPrep({...e,exchange:sC}),getTransaction:e=>KS.getTransaction({...e,exchange:sC})}));const cC={name:"spookyswap",label:"SpookySwap",logo:"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i40LTkuMSwxOC45Yy0yLjYsNy4yLTkuMSwyNS40LTkuMSwyNS40CgkJUzIxOC44LDI4OCwzMjIuNSwyODhjNjIuNiwwLDEyNC42LDUuMiwxODYuNSwxNS43YzAsMC05LjEtMjIuMi0xNS0zMS4zQzQ5MC43LDI2Ny4yLDQ4Ny41LDI2MS4zLDQ4My41LDI1Ni4xTDQ4My41LDI1Ni4xeiIvPgoJPHBhdGggZmlsbD0iI0ZGRTYwMCIgZD0iTTEzMy4zLDEzMS41YzYuNS0wLjcsMTUuNywxOS42LDE1LjcsMTkuNnMyMC45LTUuOSwyNC44LDBjMy4zLDUuOS0xNSwxOS42LTE1LDE5LjZzMTEuMSwxOS42LDcuMiwyMy41CgkJYy0zLjMsMy45LTIyLjgtOC41LTIyLjgtOC41cy0xNSwxNy0xOS42LDE0LjNjLTUuMi0yLjYsMC43LTI0LjgsMC43LTI0LjhzLTIxLjUtOS4xLTE5LjYtMTQuM2MxLjMtNS4yLDIzLjUtNy4yLDIzLjUtNy4yCgkJUzEyNi44LDEzMi44LDEzMy4zLDEzMS41TDEzMy4zLDEzMS41eiIvPgo8L2c+Cjwvc3ZnPgo=",protocol:"uniswap_v2",slippage:!0,blockchains:["fantom"],fantom:{router:{address:"0xF491e7B69E4244ad4002BC14e878a34207E38c29",api:KS.ROUTER},factory:{address:"0x152eE697f2E276fA89E96742e9bB9aB1F2E61bE3",api:KS.FACTORY},pair:{api:KS.PAIR}}};var lC=e=>new VS(Object.assign(cC,{scope:e,findPath:e=>KS.findPath({...e,exchange:cC}),pathExists:e=>KS.pathExists({...e,exchange:cC}),getAmounts:e=>KS.getAmounts({...e,exchange:cC}),getPrep:e=>KS.getPrep({...e,exchange:cC}),getTransaction:e=>KS.getTransaction({...e,exchange:cC})}));function dC(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const hC=({blockchain:e,path:t})=>{if(!t)return;let n=t.map(((n,r)=>n===he[e].currency.address&&t[r+1]!=he[e].wrapped.address&&t[r-1]!=he[e].wrapped.address?he[e].wrapped.address:n));return n[0]==he[e].currency.address&&n[1]==he[e].wrapped.address?n.splice(0,1):n[n.length-1]==he[e].currency.address&&n[n.length-2]==he[e].wrapped.address&&n.splice(n.length-1,1),n},pC=async({exchange:e,blockchain:t,path:n,amountIn:r,amountOut:i,block:o})=>{let a;if(n=hC({blockchain:t,path:n}),a=r?await YI({blockchain:he[t].name,address:e[t].quoter.address,method:"findBestPathFromAmountIn",api:e[t].quoter.api,cache:5,block:o,params:{route:n,amountIn:r}}).catch((()=>{})):await YI({blockchain:he[t].name,address:e[t].quoter.address,method:"findBestPathFromAmountOut",api:e[t].quoter.api,cache:5,block:o,params:{route:n,amountOut:i}}).catch((()=>{})),a&&!a.virtualAmountsWithoutSlippage.some((e=>"0"===e.toString())))return a};let fC=async({exchange:e,blockchain:t,path:n,pools:r,amountIn:i})=>{let o=await YI({blockchain:he[t].name,address:e[t].quoter.address,method:"findBestPathFromAmountIn",api:e[t].quoter.api,cache:5,params:{route:hC({blockchain:t,path:n}),amountIn:i}}).catch((()=>{}));if(o)return o.virtualAmountsWithoutSlippage[o.virtualAmountsWithoutSlippage.length-1]},yC=async({exchange:e,blockchain:t,path:n,pools:r,amountOut:i,block:o})=>{let a=await YI({blockchain:he[t].name,address:e[t].quoter.address,method:"findBestPathFromAmountOut",api:e[t].quoter.api,cache:5,block:o,params:{route:hC({blockchain:t,path:n}),amountOut:i}}).catch((()=>{}));if(a)return a.virtualAmountsWithoutSlippage[0]};var mC={findPath:async({exchange:e,blockchain:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(he[t].currency.address)&&[n,r].includes(he[t].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await pC({exchange:e,blockchain:t,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==he[t].wrapped.address||r==he[t].wrapped.address||(c=[],o||s?(c.push(await pC({exchange:e,blockchain:t,path:[he[t].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await pC({exchange:e,blockchain:t,path:[n,he[t].wrapped.address],amountOut:c[0].virtualAmountsWithoutSlippage[0]}))):(c.push(await pC({exchange:e,blockchain:t,path:[n,he[t].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await pC({exchange:e,blockchain:t,path:[he[t].wrapped.address,r],amountIn:c[0].virtualAmountsWithoutSlippage[1]}))),2===c.filter(Boolean).length&&(u=[n,he[t].wrapped.address,r])),!u){c=[];let l=await Promise.all(he[t].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await pC({exchange:e,blockchain:t,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await pC({exchange:e,blockchain:t,path:[n,u],amountOut:c[0].virtualAmountsWithoutSlippage[0]}))):(c.push(await pC({exchange:e,blockchain:t,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await pC({exchange:e,blockchain:t,path:[u,r],amountIn:c[0].virtualAmountsWithoutSlippage[1]}))),2===c.filter(Boolean).length)return[u,c]}))),d=l.filter(Boolean)[0];d&&(u=[n,d[0],r],c=d[1])}return dC([u,"optionalAccess",e=>e.length])&&u[0]==he[t].currency.address?u.splice(1,0,he[t].wrapped.address):dC([u,"optionalAccess",e=>e.length])&&u[u.length-1]==he[t].currency.address&&u.splice(u.length-1,0,he[t].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:hC({blockchain:t,path:u})}},pathExists:async({exchange:e,blockchain:t,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>!!await pC({exchange:e,blockchain:t,path:n,amountIn:r||o,amountOut:i||a}),getAmounts:async({exchange:e,blockchain:t,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await yC({exchange:e,blockchain:t,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await fC({exchange:e,blockchain:t,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await yC({exchange:e,blockchain:t,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await fC({exchange:e,blockchain:t,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getTransaction:async({exchange:e,blockchain:t,pools:n,path:r,amountIn:i,amountInMax:o,amountOut:a,amountOutMin:s,amountInInput:u,amountOutInput:c,amountInMaxInput:l,amountOutMinInput:d,account:h})=>{const p={blockchain:t,from:h,to:e[t].router.address,api:e[t].router.api},f=Math.round(Date.now()/1e3)+86400,y=[n.map((e=>e.binSteps[0])),n.map((e=>e.versions[0])),hC({blockchain:t,path:r})];return r[0]===he[t].currency.address?l?(p.method="swapNATIVEForExactTokens",p.params={amountOut:a,path:y,to:h,deadline:f},p.value=o):(p.method="swapExactNATIVEForTokens",p.params={amountOutMin:s||a,path:y,to:h,deadline:f},p.value=i):r[r.length-1]===he[t].currency.address?l?(p.method="swapTokensForExactNATIVE",p.params={amountNATIVEOut:a,amountInMax:o,path:y,to:h,deadline:f}):(p.method="swapExactTokensForNATIVE",p.params={amountIn:i,amountOutMinNATIVE:s||a,path:y,to:h,deadline:f}):l?(p.method="swapTokensForExactTokens",p.params={amountOut:a,amountInMax:o,path:y,to:h,deadline:f}):(p.method="swapExactTokensForTokens",p.params={amountIn:i,amountOutMin:s||a,path:y,to:h,deadline:f}),p},getPrep:async({exchange:e,blockchain:t,tokenIn:n,amountIn:r,account:i})=>{if(n===he[t].currency.address)return;const o=await YI({blockchain:t,address:n,method:"allowance",api:JL[t][20],params:[i,e[t].router.address]});if(o.gte(r))return;return{transaction:{blockchain:t,from:i,to:n,api:JL[t][20],method:"approve",params:[e[t].router.address,r.sub(o)]}}},ROUTER:[{inputs:[{internalType:"contract ILBFactory",name:"factory",type:"address"},{internalType:"contract IJoeFactory",name:"factoryV1",type:"address"},{internalType:"contract ILBLegacyFactory",name:"legacyFactory",type:"address"},{internalType:"contract ILBLegacyRouter",name:"legacyRouter",type:"address"},{internalType:"contract IWNATIVE",name:"wnative",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AddressHelper__CallFailed",type:"error"},{inputs:[],name:"AddressHelper__NonContract",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientAmount",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientLiquidity",type:"error"},{inputs:[{internalType:"uint256",name:"amountSlippage",type:"uint256"}],name:"LBRouter__AmountSlippageBPTooBig",type:"error"},{inputs:[{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"}],name:"LBRouter__AmountSlippageCaught",type:"error"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"LBRouter__BinReserveOverflows",type:"error"},{inputs:[],name:"LBRouter__BrokenSwapSafetyCheck",type:"error"},{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"currentTimestamp",type:"uint256"}],name:"LBRouter__DeadlineExceeded",type:"error"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBRouter__FailedToSendNATIVE",type:"error"},{inputs:[{internalType:"uint256",name:"idDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"}],name:"LBRouter__IdDesiredOverflows",type:"error"},{inputs:[{internalType:"int256",name:"id",type:"int256"}],name:"LBRouter__IdOverflows",type:"error"},{inputs:[{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"uint256",name:"activeId",type:"uint256"}],name:"LBRouter__IdSlippageCaught",type:"error"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"LBRouter__InsufficientAmountOut",type:"error"},{inputs:[{internalType:"address",name:"wrongToken",type:"address"}],name:"LBRouter__InvalidTokenPath",type:"error"},{inputs:[{internalType:"uint256",name:"version",type:"uint256"}],name:"LBRouter__InvalidVersion",type:"error"},{inputs:[],name:"LBRouter__LengthsMismatch",type:"error"},{inputs:[{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"LBRouter__MaxAmountInExceeded",type:"error"},{inputs:[],name:"LBRouter__NotFactoryOwner",type:"error"},{inputs:[{internalType:"address",name:"tokenX",type:"address"},{internalType:"address",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBRouter__PairNotCreated",type:"error"},{inputs:[],name:"LBRouter__SenderIsNotWNATIVE",type:"error"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"LBRouter__SwapOverflows",type:"error"},{inputs:[{internalType:"uint256",name:"excess",type:"uint256"}],name:"LBRouter__TooMuchTokensIn",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"reserve",type:"uint256"}],name:"LBRouter__WrongAmounts",type:"error"},{inputs:[{internalType:"address",name:"tokenX",type:"address"},{internalType:"address",name:"tokenY",type:"address"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"msgValue",type:"uint256"}],name:"LBRouter__WrongNativeLiquidityParameters",type:"error"},{inputs:[],name:"LBRouter__WrongTokenOrder",type:"error"},{inputs:[],name:"TokenHelper__TransferFailed",type:"error"},{inputs:[{components:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"int256[]",name:"deltaIds",type:"int256[]"},{internalType:"uint256[]",name:"distributionX",type:"uint256[]"},{internalType:"uint256[]",name:"distributionY",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"refundTo",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ILBRouter.LiquidityParameters",name:"liquidityParameters",type:"tuple"}],name:"addLiquidity",outputs:[{internalType:"uint256",name:"amountXAdded",type:"uint256"},{internalType:"uint256",name:"amountYAdded",type:"uint256"},{internalType:"uint256",name:"amountXLeft",type:"uint256"},{internalType:"uint256",name:"amountYLeft",type:"uint256"},{internalType:"uint256[]",name:"depositIds",type:"uint256[]"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"int256[]",name:"deltaIds",type:"int256[]"},{internalType:"uint256[]",name:"distributionX",type:"uint256[]"},{internalType:"uint256[]",name:"distributionY",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"refundTo",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ILBRouter.LiquidityParameters",name:"liquidityParameters",type:"tuple"}],name:"addLiquidityNATIVE",outputs:[{internalType:"uint256",name:"amountXAdded",type:"uint256"},{internalType:"uint256",name:"amountYAdded",type:"uint256"},{internalType:"uint256",name:"amountXLeft",type:"uint256"},{internalType:"uint256",name:"amountYLeft",type:"uint256"},{internalType:"uint256[]",name:"depositIds",type:"uint256[]"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint24",name:"activeId",type:"uint24"},{internalType:"uint16",name:"binStep",type:"uint16"}],name:"createLBPair",outputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getFactory",outputs:[{internalType:"contract ILBFactory",name:"lbFactory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint256",name:"price",type:"uint256"}],name:"getIdFromPrice",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyFactory",outputs:[{internalType:"contract ILBLegacyFactory",name:"legacyLBfactory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyRouter",outputs:[{internalType:"contract ILBLegacyRouter",name:"legacyRouter",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint24",name:"id",type:"uint24"}],name:"getPriceFromId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapIn",outputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"uint128",name:"amountOutLeft",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapOut",outputs:[{internalType:"uint128",name:"amountInLeft",type:"uint128"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getV1Factory",outputs:[{internalType:"contract IJoeFactory",name:"factoryV1",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getWNATIVE",outputs:[{internalType:"contract IWNATIVE",name:"wnative",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidity",outputs:[{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountNATIVEMin",type:"uint256"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityNATIVE",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountNATIVE",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactNATIVEForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactNATIVEForTokensSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinNATIVE",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForNATIVE",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinNATIVE",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForNATIVESupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokensSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapNATIVEForExactTokens",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountNATIVEOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactNATIVE",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"sweep",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBToken",name:"lbToken",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"sweepLBToken",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"feeRecipient",type:"address"},{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"LBFactory__AddressZero",type:"error"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__BinStepHasNoPreset",type:"error"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__BinStepTooLow",type:"error"},{inputs:[{internalType:"uint256",name:"fees",type:"uint256"},{internalType:"uint256",name:"maxFees",type:"uint256"}],name:"LBFactory__FlashLoanFeeAboveMax",type:"error"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"}],name:"LBFactory__IdenticalAddresses",type:"error"},{inputs:[],name:"LBFactory__ImplementationNotSet",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"_binStep",type:"uint256"}],name:"LBFactory__LBPairAlreadyExists",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__LBPairDoesNotExist",type:"error"},{inputs:[],name:"LBFactory__LBPairIgnoredIsAlreadyInTheSameState",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__LBPairNotCreated",type:"error"},{inputs:[{internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBFactory__LBPairSafetyCheckFailed",type:"error"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__PresetIsLockedForUsers",type:"error"},{inputs:[],name:"LBFactory__PresetOpenStateIsAlreadyInTheSameState",type:"error"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"LBFactory__QuoteAssetAlreadyWhitelisted",type:"error"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"LBFactory__QuoteAssetNotWhitelisted",type:"error"},{inputs:[{internalType:"address",name:"feeRecipient",type:"address"}],name:"LBFactory__SameFeeRecipient",type:"error"},{inputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],name:"LBFactory__SameFlashLoanFee",type:"error"},{inputs:[{internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBFactory__SameImplementation",type:"error"},{inputs:[],name:"PairParametersHelper__InvalidParameter",type:"error"},{inputs:[],name:"PendingOwnable__AddressZero",type:"error"},{inputs:[],name:"PendingOwnable__NoPendingOwner",type:"error"},{inputs:[],name:"PendingOwnable__NotOwner",type:"error"},{inputs:[],name:"PendingOwnable__NotPendingOwner",type:"error"},{inputs:[],name:"PendingOwnable__PendingOwnerAlreadySet",type:"error"},{inputs:[],name:"SafeCast__Exceeds16Bits",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldRecipient",type:"address"},{indexed:!1,internalType:"address",name:"newRecipient",type:"address"}],name:"FeeRecipientSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldFlashLoanFee",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newFlashLoanFee",type:"uint256"}],name:"FlashLoanFeeSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"tokenX",type:"address"},{indexed:!0,internalType:"contract IERC20",name:"tokenY",type:"address"},{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!1,internalType:"contract ILBPair",name:"LBPair",type:"address"},{indexed:!1,internalType:"uint256",name:"pid",type:"uint256"}],name:"LBPairCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract ILBPair",name:"LBPair",type:"address"},{indexed:!1,internalType:"bool",name:"ignored",type:"bool"}],name:"LBPairIgnoredStateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldLBPairImplementation",type:"address"},{indexed:!1,internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBPairImplementationSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"PendingOwnerSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!0,internalType:"bool",name:"isOpen",type:"bool"}],name:"PresetOpenStateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"}],name:"PresetRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!1,internalType:"uint256",name:"baseFactor",type:"uint256"},{indexed:!1,internalType:"uint256",name:"filterPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"decayPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"reductionFactor",type:"uint256"},{indexed:!1,internalType:"uint256",name:"variableFeeControl",type:"uint256"},{indexed:!1,internalType:"uint256",name:"protocolShare",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxVolatilityAccumulator",type:"uint256"}],name:"PresetSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"QuoteAssetAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"QuoteAssetRemoved",type:"event"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"addQuoteAsset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"becomeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint24",name:"activeId",type:"uint24"},{internalType:"uint16",name:"binStep",type:"uint16"}],name:"createLBPair",outputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],name:"forceDecay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getAllBinSteps",outputs:[{internalType:"uint256[]",name:"binStepWithPreset",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"}],name:"getAllLBPairs",outputs:[{components:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"contract ILBPair",name:"LBPair",type:"address"},{internalType:"bool",name:"createdByOwner",type:"bool"},{internalType:"bool",name:"ignoredForRouting",type:"bool"}],internalType:"struct ILBFactory.LBPairInformation[]",name:"lbPairsAvailable",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFeeRecipient",outputs:[{internalType:"address",name:"feeRecipient",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFlashLoanFee",outputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getLBPairAtIndex",outputs:[{internalType:"contract ILBPair",name:"lbPair",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLBPairImplementation",outputs:[{internalType:"address",name:"lbPairImplementation",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenA",type:"address"},{internalType:"contract IERC20",name:"tokenB",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"getLBPairInformation",outputs:[{components:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"contract ILBPair",name:"LBPair",type:"address"},{internalType:"bool",name:"createdByOwner",type:"bool"},{internalType:"bool",name:"ignoredForRouting",type:"bool"}],internalType:"struct ILBFactory.LBPairInformation",name:"lbPairInformation",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMaxFlashLoanFee",outputs:[{internalType:"uint256",name:"maxFee",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getMinBinStep",outputs:[{internalType:"uint256",name:"minBinStep",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getNumberOfLBPairs",outputs:[{internalType:"uint256",name:"lbPairNumber",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNumberOfQuoteAssets",outputs:[{internalType:"uint256",name:"numberOfQuoteAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOpenBinSteps",outputs:[{internalType:"uint256[]",name:"openBinStep",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"getPreset",outputs:[{internalType:"uint256",name:"baseFactor",type:"uint256"},{internalType:"uint256",name:"filterPeriod",type:"uint256"},{internalType:"uint256",name:"decayPeriod",type:"uint256"},{internalType:"uint256",name:"reductionFactor",type:"uint256"},{internalType:"uint256",name:"variableFeeControl",type:"uint256"},{internalType:"uint256",name:"protocolShare",type:"uint256"},{internalType:"uint256",name:"maxVolatilityAccumulator",type:"uint256"},{internalType:"bool",name:"isOpen",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getQuoteAssetAtIndex",outputs:[{internalType:"contract IERC20",name:"asset",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"}],name:"isQuoteAsset",outputs:[{internalType:"bool",name:"isQuote",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"}],name:"removePreset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"removeQuoteAsset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"revokePendingOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"feeRecipient",type:"address"}],name:"setFeeRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"setFeesParametersOnPair",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],name:"setFlashLoanFee",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"bool",name:"ignored",type:"bool"}],name:"setLBPairIgnored",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newLBPairImplementation",type:"address"}],name:"setLBPairImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner_",type:"address"}],name:"setPendingOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"},{internalType:"bool",name:"isOpen",type:"bool"}],name:"setPreset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"bool",name:"isOpen",type:"bool"}],name:"setPresetOpenState",outputs:[],stateMutability:"nonpayable",type:"function"}],PAIR:[{inputs:[{internalType:"contract ILBFactory",name:"factory_",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AddressHelper__CallFailed",type:"error"},{inputs:[],name:"AddressHelper__NonContract",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"BinHelper__CompositionFactorFlawed",type:"error"},{inputs:[],name:"BinHelper__LiquidityOverflow",type:"error"},{inputs:[],name:"FeeHelper__FeeTooLarge",type:"error"},{inputs:[],name:"LBPair__AddressZero",type:"error"},{inputs:[],name:"LBPair__AlreadyInitialized",type:"error"},{inputs:[],name:"LBPair__EmptyMarketConfigs",type:"error"},{inputs:[],name:"LBPair__FlashLoanCallbackFailed",type:"error"},{inputs:[],name:"LBPair__FlashLoanInsufficientAmount",type:"error"},{inputs:[],name:"LBPair__InsufficientAmountIn",type:"error"},{inputs:[],name:"LBPair__InsufficientAmountOut",type:"error"},{inputs:[],name:"LBPair__InvalidInput",type:"error"},{inputs:[],name:"LBPair__InvalidStaticFeeParameters",type:"error"},{inputs:[],name:"LBPair__MaxTotalFeeExceeded",type:"error"},{inputs:[],name:"LBPair__OnlyFactory",type:"error"},{inputs:[],name:"LBPair__OnlyProtocolFeeRecipient",type:"error"},{inputs:[],name:"LBPair__OutOfLiquidity",type:"error"},{inputs:[],name:"LBPair__TokenNotSupported",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroAmount",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroAmountsOut",type:"error"},{inputs:[],name:"LBPair__ZeroBorrowAmount",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroShares",type:"error"},{inputs:[],name:"LBToken__AddressThisOrZero",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBToken__BurnExceedsBalance",type:"error"},{inputs:[],name:"LBToken__InvalidLength",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"LBToken__SelfApproval",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"LBToken__SpenderNotApproved",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBToken__TransferExceedsBalance",type:"error"},{inputs:[],name:"LiquidityConfigurations__InvalidConfig",type:"error"},{inputs:[],name:"OracleHelper__InvalidOracleId",type:"error"},{inputs:[],name:"OracleHelper__LookUpTimestampTooOld",type:"error"},{inputs:[],name:"OracleHelper__NewLengthTooSmall",type:"error"},{inputs:[],name:"PackedUint128Math__AddOverflow",type:"error"},{inputs:[],name:"PackedUint128Math__MultiplierTooLarge",type:"error"},{inputs:[],name:"PackedUint128Math__SubUnderflow",type:"error"},{inputs:[],name:"PairParametersHelper__InvalidParameter",type:"error"},{inputs:[],name:"ReentrancyGuard__ReentrantCall",type:"error"},{inputs:[],name:"SafeCast__Exceeds128Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds24Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds40Bits",type:"error"},{inputs:[],name:"TokenHelper__TransferFailed",type:"error"},{inputs:[],name:"Uint128x128Math__LogUnderflow",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulDivOverflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulShiftOverflow",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"feeRecipient",type:"address"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"CollectedProtocolFees",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint24",name:"id",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"CompositionFees",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],name:"DepositedToBins",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"contract ILBFlashLoanCallback",name:"receiver",type:"address"},{indexed:!1,internalType:"uint24",name:"activeId",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"amounts",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"FlashLoan",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint24",name:"idReference",type:"uint24"},{indexed:!1,internalType:"uint24",name:"volatilityReference",type:"uint24"}],name:"ForcedDecay",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint16",name:"oracleLength",type:"uint16"}],name:"OracleLengthIncreased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint16",name:"baseFactor",type:"uint16"},{indexed:!1,internalType:"uint16",name:"filterPeriod",type:"uint16"},{indexed:!1,internalType:"uint16",name:"decayPeriod",type:"uint16"},{indexed:!1,internalType:"uint16",name:"reductionFactor",type:"uint16"},{indexed:!1,internalType:"uint24",name:"variableFeeControl",type:"uint24"},{indexed:!1,internalType:"uint16",name:"protocolShare",type:"uint16"},{indexed:!1,internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"StaticFeeParametersSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint24",name:"id",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"amountsIn",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"amountsOut",type:"bytes32"},{indexed:!1,internalType:"uint24",name:"volatilityAccumulator",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"Swap",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],name:"WithdrawnFromBins",type:"event"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"approveForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"batchBalances",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"batchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amountsToBurn",type:"uint256[]"}],name:"burn",outputs:[{internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"collectProtocolFees",outputs:[{internalType:"bytes32",name:"collectedProtocolFees",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBFlashLoanCallback",name:"receiver",type:"address"},{internalType:"bytes32",name:"amounts",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flashLoan",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"forceDecay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getActiveId",outputs:[{internalType:"uint24",name:"activeId",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"getBin",outputs:[{internalType:"uint128",name:"binReserveX",type:"uint128"},{internalType:"uint128",name:"binReserveY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBinStep",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getFactory",outputs:[{internalType:"contract ILBFactory",name:"factory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"price",type:"uint256"}],name:"getIdFromPrice",outputs:[{internalType:"uint24",name:"id",type:"uint24"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bool",name:"swapForY",type:"bool"},{internalType:"uint24",name:"id",type:"uint24"}],name:"getNextNonEmptyBin",outputs:[{internalType:"uint24",name:"nextId",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOracleParameters",outputs:[{internalType:"uint8",name:"sampleLifetime",type:"uint8"},{internalType:"uint16",name:"size",type:"uint16"},{internalType:"uint16",name:"activeSize",type:"uint16"},{internalType:"uint40",name:"lastUpdated",type:"uint40"},{internalType:"uint40",name:"firstTimestamp",type:"uint40"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint40",name:"lookupTimestamp",type:"uint40"}],name:"getOracleSampleAt",outputs:[{internalType:"uint64",name:"cumulativeId",type:"uint64"},{internalType:"uint64",name:"cumulativeVolatility",type:"uint64"},{internalType:"uint64",name:"cumulativeBinCrossed",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"getPriceFromId",outputs:[{internalType:"uint256",name:"price",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getProtocolFees",outputs:[{internalType:"uint128",name:"protocolFeeX",type:"uint128"},{internalType:"uint128",name:"protocolFeeY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getReserves",outputs:[{internalType:"uint128",name:"reserveX",type:"uint128"},{internalType:"uint128",name:"reserveY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStaticFeeParameters",outputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapIn",outputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"uint128",name:"amountOutLeft",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapOut",outputs:[{internalType:"uint128",name:"amountInLeft",type:"uint128"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getTokenX",outputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getTokenY",outputs:[{internalType:"contract IERC20",name:"tokenY",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getVariableFeeParameters",outputs:[{internalType:"uint24",name:"volatilityAccumulator",type:"uint24"},{internalType:"uint24",name:"volatilityReference",type:"uint24"},{internalType:"uint24",name:"idReference",type:"uint24"},{internalType:"uint40",name:"timeOfLastUpdate",type:"uint40"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"newLength",type:"uint16"}],name:"increaseOracleLength",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"},{internalType:"uint24",name:"activeId",type:"uint24"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"bytes32[]",name:"liquidityConfigs",type:"bytes32[]"},{internalType:"address",name:"refundTo",type:"address"}],name:"mint",outputs:[{internalType:"bytes32",name:"amountsReceived",type:"bytes32"},{internalType:"bytes32",name:"amountsLeft",type:"bytes32"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"setStaticFeeParameters",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"swapForY",type:"bool"},{internalType:"address",name:"to",type:"address"}],name:"swap",outputs:[{internalType:"bytes32",name:"amountsOut",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"factoryV1",type:"address"},{internalType:"address",name:"legacyFactoryV2",type:"address"},{internalType:"address",name:"factoryV2",type:"address"},{internalType:"address",name:"legacyRouterV2",type:"address"},{internalType:"address",name:"routerV2",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"JoeLibrary__AddressZero",type:"error"},{inputs:[],name:"JoeLibrary__IdenticalAddresses",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientAmount",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientLiquidity",type:"error"},{inputs:[],name:"LBQuoter_InvalidLength",type:"error"},{inputs:[],name:"SafeCast__Exceeds128Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds24Bits",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulDivOverflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulShiftOverflow",type:"error"},{inputs:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"uint128",name:"amountIn",type:"uint128"}],name:"findBestPathFromAmountIn",outputs:[{components:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"address[]",name:"pairs",type:"address[]"},{internalType:"uint256[]",name:"binSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint128[]",name:"virtualAmountsWithoutSlippage",type:"uint128[]"},{internalType:"uint128[]",name:"fees",type:"uint128[]"}],internalType:"struct LBQuoter.Quote",name:"quote",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"uint128",name:"amountOut",type:"uint128"}],name:"findBestPathFromAmountOut",outputs:[{components:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"address[]",name:"pairs",type:"address[]"},{internalType:"uint256[]",name:"binSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint128[]",name:"virtualAmountsWithoutSlippage",type:"uint128[]"},{internalType:"uint128[]",name:"fees",type:"uint128[]"}],internalType:"struct LBQuoter.Quote",name:"quote",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFactoryV1",outputs:[{internalType:"address",name:"factoryV1",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFactoryV2",outputs:[{internalType:"address",name:"factoryV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyFactoryV2",outputs:[{internalType:"address",name:"legacyFactoryV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyRouterV2",outputs:[{internalType:"address",name:"legacyRouterV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRouterV2",outputs:[{internalType:"address",name:"routerV2",type:"address"}],stateMutability:"view",type:"function"}]};const gC={name:"trader_joe_v2_1",label:"Trader Joe v2.1",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABvCAYAAAA0YEQFAAABAGlDQ1BpY2MAABiVY2BgPMEABCwGDAy5eSVFQe5OChGRUQrsDxgYgRAMEpOLCxhwA6Cqb9cgai/r4lGHC3CmpBYnA+kPQKxSBLQcaKQIkC2SDmFrgNhJELYNiF1eUlACZAeA2EUhQc5AdgqQrZGOxE5CYicXFIHU9wDZNrk5pckIdzPwpOaFBgNpDiCWYShmCGJwZ3AC+R+iJH8RA4PFVwYG5gkIsaSZDAzbWxkYJG4hxFQWMDDwtzAwbDuPEEOESUFiUSJYiAWImdLSGBg+LWdg4I1kYBC+wMDAFQ0LCBxuUwC7zZ0hHwjTGXIYUoEingx5DMkMekCWEYMBgyGDGQCm1j8/yRb+6wAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAABPXpUWHRSYXcgcHJvZmlsZSB0eXBlIGljYwAAKJGdU9mtxCAM/KeKLcH4JOUkJEiv/waeuaJslP3YHYkgOW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QdUo4TPfbA9eClU/AyGSjPjYupX3hqa+0nXdf9D0vV19cAvEyLnRj6kUceSS3TQTFs8hqxwRom3iZMNzLzBlZ6kB2voBydUo6rteOSk/LIy+bgpqIHcVE71v1nDz/88AfvvYKdR1fSXgPwKlpUCBDuULGYb6bTA47COiu8iR21WbFew1qvIKX7tdY5N51yUpksa9edViZ8pzcwcEW10C7XXgNwaVvkldq/X50ENHp6Us1qNQMgT46TMlapdCbtmGZ1dOOuXWeW5ILX+o5/TFprnBMfLC2RP/T/B96QkmdPWpSQAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIzLTA3LTA3VDA5OjE5OjA4KzAwOjAwC8IICQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMy0wNy0wN1QwOToxOTowOCswMDowMHqfsLUAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjMtMDctMDdUMDk6MTk6MDgrMDA6MDAtipFqAAAAHnRFWHRpY2M6Y29weXJpZ2h0AEdvb2dsZSBJbmMuIDIwMTasCzM4AAAAFHRFWHRpY2M6ZGVzY3JpcHRpb24Ac1JHQrqQcwcAAAAASUVORK5CYII=",protocol:"trader_joe_v2_1",slippage:!0,blockchains:["avalanche"],avalanche:{router:{address:"0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",api:mC.ROUTER},factory:{address:"0x8e42f2F4101563bF679975178e880FD87d3eFd4e",api:mC.FACTORY},pair:{api:mC.PAIR},quoter:{address:"0x64b57F4249aA99a812212cee7DAEFEDC40B203cD",api:mC.QUOTER}}};var vC=e=>new VS(Object.assign(gC,{scope:e,findPath:e=>mC.findPath({...e,exchange:gC}),pathExists:e=>mC.pathExists({...e,exchange:gC}),getAmounts:e=>mC.getAmounts({...e,exchange:gC}),getPrep:e=>mC.getPrep({...e,exchange:gC}),getTransaction:e=>mC.getTransaction({...e,exchange:gC})}));const bC={name:"uniswap_v2",label:"Uniswap v2",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQxIiBoZWlna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gMjcyLjgzNCAyNjcuNjg2IDI2OS4yMjUgMjYzLjY5IDI2Ni43ODVDMjU2LjA4IDI2Mi4xMzggMjQ0LjU3MSAyNjUuOTgzIDI0NC41NzEgMjczLjE3M0MyNDQuNTcxIDI3Ni43NTIgMjUwLjU3MiAyODAuNjU2IDI1Ni4wNzQgMjgwLjY1NkMyNTkuNzM1IDI4MC42NTYgMjY0Ljc0NiAyNzguNDczIDI2Ni4zNjQgMjc2LjE3MloiIGZpbGw9IiNGRjAwN0EiLz4KPC9zdmc+Cg==",protocol:"uniswap_v2",slippage:!0,blockchains:["ethereum"],ethereum:{router:{address:"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",api:KS.ROUTER},factory:{address:"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",api:KS.FACTORY},pair:{api:KS.PAIR}}};var wC=e=>new VS(Object.assign(bC,{scope:e,findPath:e=>KS.findPath({...e,exchange:bC}),pathExists:e=>KS.pathExists({...e,exchange:bC}),getAmounts:e=>KS.getAmounts({...e,exchange:bC}),getPrep:e=>KS.getPrep({...e,exchange:bC}),getTransaction:e=>KS.getTransaction({...e,exchange:bC})}));function MC(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const AC="0x0000000000000000000000000000000000000001",EC="0x0000000000000000000000000000000000000002",TC=({blockchain:e,exchange:t,path:n})=>{if(!n)return;let r=n.map(((t,r)=>t===he[e].currency.address&&n[r+1]!=he[e].wrapped.address&&n[r-1]!=he[e].wrapped.address?he[e].wrapped.address:t));return r[0]==he[e].currency.address&&r[1]==he[e].wrapped.address?r.splice(0,1):r[r.length-1]==he[e].currency.address&&r[r.length-2]==he[e].wrapped.address&&r.splice(r.length-1,1),r},NC=async({blockchain:e,exchange:t,path:n,amountIn:r,amountOut:i,block:o})=>{if((n=TC({blockchain:e,exchange:t,path:n})).length>2)throw"Uniswap V3 can only check paths for up to 2 tokens!";try{let o=(await Promise.all(t.fees.map((r=>YI({blockchain:he[e].name,address:t[e].factory.address,method:"getPool",api:t[e].factory.api,cache:3600,params:[n[0],n[1],r]}).then((t=>({blockchain:e,address:t,path:n,fee:r,token0:[...n].sort()[0],token1:[...n].sort()[1]}))).catch((()=>{})))))).filter(Boolean);return o=o.filter((t=>t.address!=he[e].zero)),o=(await Promise.all(o.map((async e=>{try{let n;return n=r?await(async({exchange:e,pool:t,inputAmount:n})=>(await YI({blockchain:t.blockchain,address:e[t.blockchain].quoter.address,api:e[t.blockchain].quoter.api,method:"quoteExactInput",params:{path:hI(["address","uint24","address"],[t.path[0],t.fee,t.path[1]]),amountIn:n},cache:5})).amountOut)({exchange:t,pool:e,inputAmount:r}):await(async({exchange:e,pool:t,outputAmount:n})=>(await YI({blockchain:t.blockchain,address:e[t.blockchain].quoter.address,api:e[t.blockchain].quoter.api,method:"quoteExactOutput",params:{path:hI(["address","uint24","address"],[t.path[1],t.fee,t.path[0]]),amountOut:n},cache:5})).amountIn)({exchange:t,pool:e,outputAmount:i}),{...e,amountIn:r||n,amountOut:i||n}}catch(e){}})))).filter(Boolean),r?o.sort(((e,t)=>t.amountOut.gt(e.amountOut)?1:-1))[0]:o.sort(((e,t)=>t.amountIn.lt(e.amountIn)?1:-1))[0]}catch(e){return}};let IC=({blockchain:e,exchange:t,path:n,pools:r,amountIn:i})=>r[r.length-1].amountOut,kC=async({blockchain:e,exchange:t,path:n,pools:r,amountOut:i,block:o})=>{if(void 0===o)return r[0].amountIn;{let n;2==r.length?n=hI(["address","uint24","address","uint24","address"],[r[1].path[1],r[1].fee,r[0].path[1],r[0].fee,r[0].path[0]]):1==r.length&&(n=hI(["address","uint24","address"],[r[0].path[1],r[0].fee,r[0].path[0]]));return(await YI({block:o,blockchain:e,address:t[e].quoter.address,api:t[e].quoter.api,method:"quoteExactOutput",params:{path:n,amountOut:i}})).amountIn}};var LC={findPath:async({blockchain:e,exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(he[e].currency.address)&&[n,r].includes(he[e].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await NC({exchange:t,blockchain:e,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==he[e].wrapped.address||r==he[e].wrapped.address||(c=[],o||s?(c.push(await NC({exchange:t,blockchain:e,path:[he[e].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await NC({exchange:t,blockchain:e,path:[n,he[e].wrapped.address],amountOut:c[0].amountIn}))):(c.push(await NC({exchange:t,blockchain:e,path:[n,he[e].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await NC({exchange:t,blockchain:e,path:[he[e].wrapped.address,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length&&(u=[n,he[e].wrapped.address,r])),!u){c=[];let l=await Promise.all(he[e].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await NC({exchange:t,blockchain:e,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await NC({exchange:t,blockchain:e,path:[n,u],amountOut:c[0].amountIn}))):(c.push(await NC({exchange:t,blockchain:e,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await NC({exchange:t,blockchain:e,path:[u,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length)return[u,c]}))),d=l.filter(Boolean)[0];d&&(u=[n,d[0],r],c=d[1])}return MC([u,"optionalAccess",e=>e.length])&&u[0]==he[e].currency.address?u.splice(1,0,he[e].wrapped.address):MC([u,"optionalAccess",e=>e.length])&&u[u.length-1]==he[e].currency.address&&u.splice(u.length-1,0,he[e].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:TC({blockchain:e,exchange:t,path:u})}},pathExists:async({blockchain:e,exchange:t,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>{try{return!!await NC({blockchain:e,exchange:t,path:n,amountIn:r||o,amountOut:i||a})}catch(e){return!1}},getAmounts:async({blockchain:e,exchange:t,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await kC({blockchain:e,exchange:t,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await IC({blockchain:e,exchange:t,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await kC({blockchain:e,exchange:t,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await IC({blockchain:e,exchange:t,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getPrep:async({exchange:e,blockchain:t,tokenIn:n,amountIn:r,account:i})=>{if(n===he[t].currency.address)return;if((await YI({blockchain:t,address:n,method:"allowance",api:JL[t][20],params:[i,e[t].permit.address]})).lt(r)){return{transaction:{blockchain:t,from:i,to:n,api:JL[t][20],method:"approve",params:[e[t].permit.address,he[t].maxInt]}}}{const o=await YI({blockchain:t,address:e[t].permit.address,method:"allowance",api:e[t].permit.api,params:[i,n,e[t].router.address]});if(o.amount.lt(r)||o.expiration-1800{let y,m=[],g=[],v="0";if(p){const e=Ny(p.signature).length;let t;65!==e&&64!==e||(t=function(e){return Sy(Iy([(e=_y(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}(_y(p.signature))),m.push("0a"),g.push(Og.encode(["((address token,uint160 amount,uint48 expiration,uint48 nonce) details,address spender,uint256 sigDeadline)","bytes"],[p,t]))}r[0]===he[e].currency.address&&(m.push("0b"),g.push(Og.encode(["address","uint256"],[EC,(i||o).toString()])),v=(i||o).toString()),1===n.length?y=hI(["address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1]]):2===n.length&&(y=hI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]])),d||u?(m.push("00"),g.push(Og.encode(["address","uint256","uint256","bytes","bool"],[r[r.length-1]===he[e].currency.address?EC:AC,(i||o).toString(),(a||s).toString(),y,r[0]!==he[e].currency.address&&!f]))):(m.push("01"),g.push(Og.encode(["address","uint256","uint256","bytes","bool"],[r[r.length-1]===he[e].currency.address?EC:AC,(a||s).toString(),(i||o).toString(),y,r[0]!==he[e].currency.address&&!f]))),r[r.length-1]===he[e].currency.address&&(m.push("0c"),g.push(Og.encode(["address","uint256"],[AC,(a||s).toString()])));return{blockchain:e,from:h,to:t[e].router.address,api:t[e].router.api,method:"execute",params:{commands:`0x${m.join("")}`,inputs:g},value:v}},ROUTER:[{inputs:[{components:[{internalType:"address",name:"permit2",type:"address"},{internalType:"address",name:"weth9",type:"address"},{internalType:"address",name:"seaportV1_5",type:"address"},{internalType:"address",name:"seaportV1_4",type:"address"},{internalType:"address",name:"openseaConduit",type:"address"},{internalType:"address",name:"nftxZap",type:"address"},{internalType:"address",name:"x2y2",type:"address"},{internalType:"address",name:"foundation",type:"address"},{internalType:"address",name:"sudoswap",type:"address"},{internalType:"address",name:"elementMarket",type:"address"},{internalType:"address",name:"nft20Zap",type:"address"},{internalType:"address",name:"cryptopunks",type:"address"},{internalType:"address",name:"looksRareV2",type:"address"},{internalType:"address",name:"routerRewardsDistributor",type:"address"},{internalType:"address",name:"looksRareRewardsDistributor",type:"address"},{internalType:"address",name:"looksRareToken",type:"address"},{internalType:"address",name:"v2Factory",type:"address"},{internalType:"address",name:"v3Factory",type:"address"},{internalType:"bytes32",name:"pairInitCodeHash",type:"bytes32"},{internalType:"bytes32",name:"poolInitCodeHash",type:"bytes32"}],internalType:"struct RouterParameters",name:"params",type:"tuple"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"BalanceTooLow",type:"error"},{inputs:[],name:"BuyPunkFailed",type:"error"},{inputs:[],name:"ContractLocked",type:"error"},{inputs:[],name:"ETHNotAccepted",type:"error"},{inputs:[{internalType:"uint256",name:"commandIndex",type:"uint256"},{internalType:"bytes",name:"message",type:"bytes"}],name:"ExecutionFailed",type:"error"},{inputs:[],name:"FromAddressIsNotOwner",type:"error"},{inputs:[],name:"InsufficientETH",type:"error"},{inputs:[],name:"InsufficientToken",type:"error"},{inputs:[],name:"InvalidBips",type:"error"},{inputs:[{internalType:"uint256",name:"commandType",type:"uint256"}],name:"InvalidCommandType",type:"error"},{inputs:[],name:"InvalidOwnerERC1155",type:"error"},{inputs:[],name:"InvalidOwnerERC721",type:"error"},{inputs:[],name:"InvalidPath",type:"error"},{inputs:[],name:"InvalidReserves",type:"error"},{inputs:[],name:"InvalidSpender",type:"error"},{inputs:[],name:"LengthMismatch",type:"error"},{inputs:[],name:"SliceOutOfBounds",type:"error"},{inputs:[],name:"TransactionDeadlinePassed",type:"error"},{inputs:[],name:"UnableToClaim",type:"error"},{inputs:[],name:"UnsafeCast",type:"error"},{inputs:[],name:"V2InvalidPath",type:"error"},{inputs:[],name:"V2TooLittleReceived",type:"error"},{inputs:[],name:"V2TooMuchRequested",type:"error"},{inputs:[],name:"V3InvalidAmountOut",type:"error"},{inputs:[],name:"V3InvalidCaller",type:"error"},{inputs:[],name:"V3InvalidSwap",type:"error"},{inputs:[],name:"V3TooLittleReceived",type:"error"},{inputs:[],name:"V3TooMuchRequested",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"RewardsSent",type:"event"},{inputs:[{internalType:"bytes",name:"looksRareClaim",type:"bytes"}],name:"collectRewards",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"commands",type:"bytes"},{internalType:"bytes[]",name:"inputs",type:"bytes[]"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"commands",type:"bytes"},{internalType:"bytes[]",name:"inputs",type:"bytes[]"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"uniswapV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!0,internalType:"int24",name:"tickSpacing",type:"int24"}],name:"FeeAmountEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"int24",name:"tickSpacing",type:"int24"},{indexed:!1,internalType:"address",name:"pool",type:"address"}],name:"PoolCreated",type:"event"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"}],name:"createPool",outputs:[{internalType:"address",name:"pool",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],name:"enableFeeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint24",name:"",type:"uint24"}],name:"getPool",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"parameters",outputs:[{internalType:"address",name:"factory",type:"address"},{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"}],POOL:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"Collect",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"CollectProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid1",type:"uint256"}],name:"Flash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"observationCardinalityNextOld",type:"uint16"},{indexed:!1,internalType:"uint16",name:"observationCardinalityNextNew",type:"uint16"}],name:"IncreaseObservationCardinalityNext",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Initialize",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"feeProtocol0Old",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol1Old",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol0New",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol1New",type:"uint8"}],name:"SetFeeProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"int256",name:"amount0",type:"int256"},{indexed:!1,internalType:"int256",name:"amount1",type:"int256"},{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"uint128",name:"liquidity",type:"uint128"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Swap",type:"event"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collect",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal0X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal1X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"}],name:"increaseObservationCardinalityNext",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"liquidity",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxLiquidityPerTick",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"observations",outputs:[{internalType:"uint32",name:"blockTimestamp",type:"uint32"},{internalType:"int56",name:"tickCumulative",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityCumulativeX128",type:"uint160"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32[]",name:"secondsAgos",type:"uint32[]"}],name:"observe",outputs:[{internalType:"int56[]",name:"tickCumulatives",type:"int56[]"},{internalType:"uint160[]",name:"secondsPerLiquidityCumulativeX128s",type:"uint160[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"positions",outputs:[{internalType:"uint128",name:"liquidity",type:"uint128"},{internalType:"uint256",name:"feeGrowthInside0LastX128",type:"uint256"},{internalType:"uint256",name:"feeGrowthInside1LastX128",type:"uint256"},{internalType:"uint128",name:"tokensOwed0",type:"uint128"},{internalType:"uint128",name:"tokensOwed1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFees",outputs:[{internalType:"uint128",name:"token0",type:"uint128"},{internalType:"uint128",name:"token1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint8",name:"feeProtocol0",type:"uint8"},{internalType:"uint8",name:"feeProtocol1",type:"uint8"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slot0",outputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{internalType:"int24",name:"tick",type:"int24"},{internalType:"uint16",name:"observationIndex",type:"uint16"},{internalType:"uint16",name:"observationCardinality",type:"uint16"},{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"},{internalType:"uint8",name:"feeProtocol",type:"uint8"},{internalType:"bool",name:"unlocked",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"}],name:"snapshotCumulativesInside",outputs:[{internalType:"int56",name:"tickCumulativeInside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityInsideX128",type:"uint160"},{internalType:"uint32",name:"secondsInside",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"bool",name:"zeroForOne",type:"bool"},{internalType:"int256",name:"amountSpecified",type:"int256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[{internalType:"int256",name:"amount0",type:"int256"},{internalType:"int256",name:"amount1",type:"int256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int16",name:"",type:"int16"}],name:"tickBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"tickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"",type:"int24"}],name:"ticks",outputs:[{internalType:"uint128",name:"liquidityGross",type:"uint128"},{internalType:"int128",name:"liquidityNet",type:"int128"},{internalType:"uint256",name:"feeGrowthOutside0X128",type:"uint256"},{internalType:"uint256",name:"feeGrowthOutside1X128",type:"uint256"},{internalType:"int56",name:"tickCumulativeOutside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityOutsideX128",type:"uint160"},{internalType:"uint32",name:"secondsOutside",type:"uint32"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"quoteExactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactInputSingleParams",name:"params",type:"tuple"}],name:"quoteExactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"quoteExactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactOutputSingleParams",name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"path",type:"bytes"}],name:"uniswapV3SwapCallback",outputs:[],stateMutability:"view",type:"function"}],PERMIT2:[{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"}],name:"AllowanceExpired",type:"error"},{inputs:[],name:"ExcessiveInvalidation",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"InsufficientAllowance",type:"error"},{inputs:[{internalType:"uint256",name:"maxAmount",type:"uint256"}],name:"InvalidAmount",type:"error"},{inputs:[],name:"InvalidContractSignature",type:"error"},{inputs:[],name:"InvalidNonce",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"InvalidSignatureLength",type:"error"},{inputs:[],name:"InvalidSigner",type:"error"},{inputs:[],name:"LengthMismatch",type:"error"},{inputs:[{internalType:"uint256",name:"signatureDeadline",type:"uint256"}],name:"SignatureExpired",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint160",name:"amount",type:"uint160"},{indexed:!1,internalType:"uint48",name:"expiration",type:"uint48"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"spender",type:"address"}],name:"Lockdown",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint48",name:"newNonce",type:"uint48"},{indexed:!1,internalType:"uint48",name:"oldNonce",type:"uint48"}],name:"NonceInvalidation",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint160",name:"amount",type:"uint160"},{indexed:!1,internalType:"uint48",name:"expiration",type:"uint48"},{indexed:!1,internalType:"uint48",name:"nonce",type:"uint48"}],name:"Permit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"uint256",name:"word",type:"uint256"},{indexed:!1,internalType:"uint256",name:"mask",type:"uint256"}],name:"UnorderedNonceInvalidation",type:"event"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint48",name:"newNonce",type:"uint48"}],name:"invalidateNonces",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"wordPos",type:"uint256"},{internalType:"uint256",name:"mask",type:"uint256"}],name:"invalidateUnorderedNonces",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"}],internalType:"struct IAllowanceTransfer.TokenSpenderPair[]",name:"approvals",type:"tuple[]"}],name:"lockdown",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],name:"nonceBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IAllowanceTransfer.PermitDetails[]",name:"details",type:"tuple[]"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IAllowanceTransfer.PermitBatch",name:"permitBatch",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IAllowanceTransfer.PermitDetails",name:"details",type:"tuple"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IAllowanceTransfer.PermitSingle",name:"permitSingle",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions",name:"permitted",type:"tuple"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails",name:"transferDetails",type:"tuple"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions[]",name:"permitted",type:"tuple[]"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitBatchTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails[]",name:"transferDetails",type:"tuple[]"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions",name:"permitted",type:"tuple"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails",name:"transferDetails",type:"tuple"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes32",name:"witness",type:"bytes32"},{internalType:"string",name:"witnessTypeString",type:"string"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitWitnessTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions[]",name:"permitted",type:"tuple[]"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitBatchTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails[]",name:"transferDetails",type:"tuple[]"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes32",name:"witness",type:"bytes32"},{internalType:"string",name:"witnessTypeString",type:"string"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitWitnessTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"address",name:"token",type:"address"}],internalType:"struct IAllowanceTransfer.AllowanceTransferDetails[]",name:"transferDetails",type:"tuple[]"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"address",name:"token",type:"address"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]};const xC={name:"uniswap_v3",label:"Uniswap v3",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIGRhdGEtdGVzdGlkPSJ1bmlzd2FwLWxvZ28iIGNsYXNzPSJyZ3c2ZXo0NHAgcmd3NmV6NGVqIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMjAuMzUyNiAxOS45MjQyQzIwLjI5MjggMjAuMTU0OSAyMC4xODg1IDIwLjM3MTUgMjAuMDQ1NSAyMC41NjE4QzE5Ljc3OTMgMjAuOTA4OCAxOS40MjcgMjEuMTc5NCAxOS4wMjM5IDIxLjM0NjZDMTguNjYxNCAyMS41MDM1IDE4LjI3NzQgMjEuNjA1IDE3Ljg4NDkgMjEuNjQ3NUMxNy44MDQyIDIxLjY1NzggMTcuNzIwNiAyMS42NjQxIDE3LjYzOTUgMjEuNjcwM0wxNy42MjYzI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E5IDM5LjIyNDEgMzEuMzY5MSAzOS4wNjQyTDMxLjMxODcgMzkuMTA0NlpNMjEuMDgwMSAzNi45NjE5QzIxLjExMjMgMzYuOTk4OSAyMS4xNDQ5IDM3LjAzNTUgMjEuMTc3OSAzNy4wNzE4QzIxLjE2NDQgMzcuMDU2NyAyMS4xNTEgMzcuMDQxNSAyMS4xMzc1IDM3LjAyNjRMMjEuMTM3NSAzNy4wMjY0TDIxLjEzNzUgMzcuMDI2NEwyMS4xMzc1IDM3LjAyNjRDMjEuMTE4NCAzNy4wMDQ5IDIxLjA5OTMgMzYuOTgzNCAyMS4wODAxIDM2Ljk2MTlaIiBmaWxsPSJjdXJyZW50Q29sb3IiPjwvcGF0aD48L3N2Zz4K",protocol:"uniswap_v3",slippage:!0,fees:[100,500,3e3,1e4],blockchains:["ethereum","bsc","polygon","optimism","arbitrum"],ethereum:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:LC.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:LC.FACTORY},pool:{api:LC.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:LC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:LC.PERMIT2}},bsc:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:LC.ROUTER},factory:{address:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",api:LC.FACTORY},pool:{api:LC.POOL},quoter:{address:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",api:LC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:LC.PERMIT2}},polygon:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:LC.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:LC.FACTORY},pool:{api:LC.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:LC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:LC.PERMIT2}},optimism:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:LC.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:LC.FACTORY},pool:{api:LC.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:LC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:LC.PERMIT2}},arbitrum:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:LC.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:LC.FACTORY},pool:{api:LC.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:LC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:LC.PERMIT2}},base:{router:{address:"0x198EF79F1F515F02dFE9e3115eD9fC07183f02fC",api:LC.ROUTER},factory:{address:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",api:LC.FACTORY},pool:{api:LC.POOL},quoter:{address:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",api:LC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:LC.PERMIT2}}};var SC=e=>new VS(Object.assign(xC,{scope:e,findPath:e=>LC.findPath({...e,exchange:xC}),pathExists:e=>LC.pathExists({...e,exchange:xC}),getAmounts:e=>LC.getAmounts({...e,exchange:xC}),getPrep:e=>LC.getPrep({...e,exchange:xC}),getTransaction:e=>LC.getTransaction({...e,exchange:xC})}));var jC={findPath:async({blockchain:e,tokenIn:t,tokenOut:n})=>{if(![t,n].includes(he[e].currency.address)||![t,n].includes(he[e].wrapped.address))return{path:void 0,exchangePath:void 0};let r=[t,n];return{path:r,exchangePath:r}},pathExists:async({blockchain:e,path:t})=>!(!t||2!==t.length)&&(t.includes(he[e].currency.address)&&t.includes(he[e].wrapped.address)),getAmounts:async({path:e,block:t,tokenIn:n,tokenOut:r,amountOut:i,amountIn:o,amountInMax:a,amountOutMin:s})=>(i?o=a=s=i:o?i=a=s=o:s?o=a=i=s:a&&(i=s=o=a),{amountOut:i,amountIn:o,amountInMax:a,amountOutMin:s}),getTransaction:({exchange:e,blockchain:t,path:n,amountIn:r,amountInMax:i,amountOut:o,amountOutMin:a,amountInInput:s,amountOutInput:u,amountInMaxInput:c,amountOutMinInput:l,account:d})=>{let h={blockchain:t,from:d,to:e[t].router.address,api:e[t].router.api};return n[0]===he[t].currency.address&&n[1]===he[t].wrapped.address?(h.method="deposit",h.value=r.toString(),h):n[0]===he[t].wrapped.address&&n[1]===he[t].currency.address?(h.method="withdraw",h.value=0,h.params={wad:r},h):void 0},WETH:[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"guy",type:"address"},{name:"wad",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"src",type:"address"},{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"wad",type:"uint256"}],name:"withdraw",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"deposit",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"guy",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Withdrawal",type:"event"}]};const CC={name:"wavax",label:"Wrapped Avax",logo:he.avalanche.wrapped.logo,protocol:"weth",slippage:!1,blockchains:["avalanche"],avalanche:{router:{address:he.avalanche.wrapped.address,api:jC.WETH}}};var DC=e=>new VS(Object.assign(CC,{scope:e,findPath:e=>jC.findPath({...e,exchange:CC}),pathExists:e=>jC.pathExists({...e,exchange:CC}),getAmounts:e=>jC.getAmounts({...e,exchange:CC}),getPrep:e=>{},getTransaction:e=>jC.getTransaction({...e,exchange:CC})}));const OC={name:"wbnb",label:"Wrapped BNB",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHh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2LjRMODAuNiw1Ni40eiBNNDMuMSw2NS40bDE1LjQtOWwtMTUuNC05bC0xNS40LDl2MThsMTUuNCw5TDQzLjEsNjUuNAoJTDQzLjEsNjUuNHogTTQzLjEsOTUuOUwyNy43LDg3djQ4LjVsNDIsMjQuMnYtMThsLTI2LjYtMTUuM1Y5NS45TDQzLjEsOTUuOXoiLz4KPC9zdmc+Cg==",slippage:!1,blockchains:["bsc"],bsc:{router:{address:he.bsc.wrapped.address,api:jC.WETH}}};var zC=e=>new VS(Object.assign(OC,{scope:e,findPath:e=>jC.findPath({...e,exchange:OC}),pathExists:e=>jC.pathExists({...e,exchange:OC}),getAmounts:e=>jC.getAmounts({...e,exchange:OC}),getPrep:e=>{},getTransaction:e=>jC.getTransaction({...e,exchange:OC})}));const _C={name:"weth",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiB0ZXh0LXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIgoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjgzLjUgMjgzLjUiCgkgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjgzLjUgMjgzLjU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojMzQzNDM0O30KCS5zdDF7ZmlsbDojOEM4QzhDO30KCS5zdDJ7ZmlsbDojM0MzQzNCO30KCS5zdDN7ZmlsbDojMTQxNDE0O30KCS5zdDR7ZmlsbDojMzkzOTM5O30KPC9zdHlsZT4KPGc+Cgk8Zz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTQxLjcsMjUuOWwtMS41LDUuMnYxNTMuM2wxLjUsMS41bDcxLjItNDIuMUwxNDEuNywyNS45eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNS45TDcwLjYsMTQzLjhsNzEuMSw0Mi4xdi03NC40VjI1Ljl6Ii8+CgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MS43LDE5OS40bC0wLjgsMS4xdjU0LjZsMC44LDIuNWw3MS4yLTEwMC4zTDE0MS43LDE5OS40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["ethereum"],ethereum:{router:{address:he.ethereum.wrapped.address,api:jC.WETH}}};var PC=e=>new VS(Object.assign(_C,{scope:e,findPath:e=>jC.findPath({...e,exchange:_C}),pathExists:e=>jC.pathExists({...e,exchange:_C}),getAmounts:e=>jC.getAmounts({...e,exchange:_C}),getPrep:e=>{},getTransaction:e=>jC.getTransaction({...e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zLjhsNzEuMSw0Mi4xdi03NC40VjI1Ljl6Ii8+CgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MS43LDE5OS40bC0wLjgsMS4xdjU0LjZsMC44LDIuNWw3MS4yLTEwMC4zTDE0MS43LDE5OS40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["arbitrum"],arbitrum:{router:{address:he.arbitrum.wrapped.address,api:jC.WETH}}};var BC=e=>new VS(Object.assign(RC,{scope:e,findPath:e=>jC.findPath({...e,exchange:RC}),pathExists:e=>jC.pathExists({...e,exchange:RC}),getAmounts:e=>jC.getAmounts({...e,exchange:RC}),getPrep:e=>{},getTransaction:e=>jC.getTransaction({...e,exchange:RC})}));const UC={name:"weth_optimism",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiB0ZXh0LXJlbm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2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["optimism"],optimism:{router:{address:he.optimism.wrapped.address,api:jC.WETH}}};var WC=e=>new VS(Object.assign(UC,{scope:e,findPath:e=>jC.findPath({...e,exchange:UC}),pathExists:e=>jC.pathExists({...e,exchange:UC}),getAmounts:e=>jC.getAmounts({...e,exchange:UC}),getPrep:e=>{},getTransaction:e=>jC.getTransaction({...e,exchange:UC})}));const QC={name:"weth_base",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiB0ZXh0LXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIgoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjgzLjUgMjgzLjUiCgkgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjgzLjUgMjgzLjU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojMzQzNDM0O30KCS5zdDF7ZmlsbDojOEM4QzhDO30KCS5zdDJ7ZmlsbDojM0MzQzNCO30KCS5zdDN7ZmlsbDojMTQxNDE0O30KCS5zdDR7ZmlsbDojMzkzOTM5O30KPC9zdHlsZT4KPGc+Cgk8Zz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTQxLjcsMjUuOWwtMS41LDUuMnYxNTMuM2wxLjUsMS41bDcxLjItNDIuMUwxNDEuNywyNS45eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNS45TDcwLjYsMTQzLjhsNzEuMSw0Mi4xdi03NC40VjI1Ljl6Ii8+CgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MS43LDE5OS40bC0wLjgsMS4xdjU0LjZsMC44LDIuNWw3MS4yLTEwMC4zTDE0MS43LDE5OS40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["base"],base:{router:{address:he.base.wrapped.address,api:jC.WETH}}};var YC=e=>new VS(Object.assign(QC,{scope:e,findPath:e=>jC.findPath({...e,exchange:QC}),pathExists:e=>jC.pathExists({...e,exchange:QC}),getAmounts:e=>jC.getAmounts({...e,exchange:QC}),getPrep:e=>{},getTransaction:e=>jC.getTransaction({...e,exchange:QC})}));const FC={name:"wftm",label:"Wrapped Fantom",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4b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LjctMC40LTEuMS0wLjdsLTAuNS0wLjNsLTEuNi0wLjlMMTMwLjcsNDYuNXoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["fantom"],fantom:{router:{address:he.fantom.wrapped.address,api:jC.WETH}}};var VC=e=>new VS(Object.assign(FC,{scope:e,findPath:e=>jC.findPath({...e,exchange:FC}),pathExists:e=>jC.pathExists({...e,exchange:FC}),getAmounts:e=>jC.getAmounts({...e,exchange:FC}),getPrep:e=>{},getTransaction:e=>jC.getTransaction({...e,exchange:FC})}));const HC={name:"wmatic",label:"Wrapped MATIC",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0NS40IDQ1LjQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ1LjQgNDUuNDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM4MjQ3RTU7fQo8L3N0eWxlPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMzEuOSwxNi42Yy0wLjctMC40LTEuNi0wLjQtMi4yLDBsLTUuMywzLjFsLTMuNSwybC01LjEsMy4xYy0wLjcsMC40LTEuNiwwLjQtMi4yLDBsLTQtMi40CgljLTAuNi0wLjQtMS4xLTEuMS0xLjEtMnYtNC42YzAtMC45LDAuNS0xLjYsMS4xLTJsNC0yLjNjMC43LTAuNCwxLjUtMC40LDIuMiwwbDQsMi40YzAuNywwLjQsMS4xLDEuMSwxLjEsMnYzLjFsMy41LTIuMXYtMy4yCgljMC0wLjktMC40LTEuNi0xLjEtMmwtNy41LTQuNGMtMC43LTAuNC0xLjUtMC40LTIuMiwwTDYsMTEuN2MtMC43LDAuNC0xLjEsMS4xLTEuMSwxLjh2OC43YzAsMC45LDAuNCwxLjYsMS4xLDJsNy42LDQuNAoJYzAuNywwLjQsMS41LDAuNCwyLjIsMGw1LjEtMi45bDMuNS0yLjFsNS4xLTIuOWMwLjctMC40LDEuNi0wLjQsMi4yLDBsNCwyLjNjMC43LDAuNCwxLjEsMS4xLDEuMSwydjQuNmMwLDAuOS0wLjQsMS42LTEuMSwyCglsLTMuOSwyLjNjLTAuNywwLjQtMS41LDAuNC0yLjIsMGwtNC0yLjNjLTAuNy0wLjQtMS4xLTEuMS0xLjEtMnYtMi45TDIxLDI4Ljd2My4xYzAsMC45LDAuNCwxLjYsMS4xLDJsNy41LDQuNAoJYzAuNywwLjQsMS41LDAuNCwyLjIsMGw3LjUtNC40YzAuNy0wLjQsMS4xLTEuMSwxLjEtMlYyM2MwLTAuOS0wLjQtMS42LTEuMS0yQzM5LjIsMjEsMzEuOSwxNi42LDMxLjksMTYuNnoiLz4KPC9zdmc+Cg==",protocol:"weth",slippage:!1,blockchains:["polygon"],polygon:{router:{address:he.polygon.wrapped.address,api:jC.WETH}}};var GC=e=>new VS(Object.assign(HC,{scope:e,findPath:e=>jC.findPath({...e,exchange:HC}),pathExists:e=>jC.pathExists({...e,exchange:HC}),getAmounts:e=>jC.getAmounts({...e,exchange:HC}),getPrep:e=>{},getTransaction:e=>jC.getTransaction({...e,exchange:HC})}));const qC={name:"wxdai",label:"Wrapped XDAI",logo:he.gnosis.wrapped.logo,protocol:"weth",slippage:!1,blockchains:["gnosis"],gnosis:{router:{address:he.gnosis.wrapped.address,api:jC.WETH}}};var ZC=e=>new VS(Object.assign(qC,{scope:e,findPath:e=>jC.findPath({...e,exchange:qC}),pathExists:e=>jC.pathExists({...e,exchange:qC}),getAmounts:e=>jC.getAmounts({...e,exchange:qC}),getPrep:e=>{},getTransaction:e=>jC.getTransaction({...e,exchange:qC})}));const JC=[Jj(),SC(),aC(),wC(),Kj(),vC(),uC(),lC(),ej(),PC(),WC(),YC(),BC(),zC(),GC(),VC(),DC(),ZC()];JC.forEach((e=>{JC[e.name]=e})),JC.ethereum=[SC("ethereum"),wC("ethereum"),PC("ethereum")],JC.ethereum.forEach((e=>{JC.ethereum[e.name]=e})),JC.bsc=[aC("bsc"),SC("bsc"),Kj("bsc"),zC("bsc")],JC.bsc.forEach((e=>{JC.bsc[e.name]=e})),JC.polygon=[SC("polygon"),uC("polygon"),GC("polygon")],JC.polygon.forEach((e=>{JC.polygon[e.name]=e})),JC.solana=[Jj("solana")],JC.solana.forEach((e=>{JC.solana[e.name]=e})),JC.optimism=[SC("optimism"),WC("optimism")],JC.optimism.forEach((e=>{JC.optimism[e.name]=e})),JC.base=[SC("base"),YC("base")],JC.base.forEach((e=>{JC.base[e.name]=e})),JC.arbitrum=[SC("arbitrum"),BC("arbitrum")],JC.arbitrum.forEach((e=>{JC.arbitrum[e.name]=e})),JC.fantom=[lC("fantom"),VC("fantom")],JC.fantom.forEach((e=>{JC.fantom[e.name]=e})),JC.avalanche=[vC("avalanche"),DC("avalanche")],JC.avalanche.forEach((e=>{JC.avalanche[e.name]=e})),JC.gnosis=[ej("gnosis"),ZC("gnosis")],JC.gnosis.forEach((e=>{JC.gnosis[e.name]=e}));JC.route=({blockchain:e,tokenIn:t,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>Promise.all(JC[e].map((e=>e.route({tokenIn:t,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})))).then((e=>e.filter(Boolean).sort(((e,t)=>(r||o?BigInt(e.amountOut)BigInt(t.amountIn))?1:(r||o?BigInt(e.amountOut)>BigInt(t.amountOut):BigInt(e.amountIn)KC||(KC="object"==typeof fe?fe:window,KC);const eD=()=>(void 0===$C()._Web3ClientConfiguration&&($C()._Web3ClientConfiguration={}),$C()._Web3ClientConfiguration);class tD extends nI{constructor(e,t,n,r){super(e),this._network=t,this._endpoint=e,this._endpoints=n,this._failover=r,this._pendingBatch=[]}detectNetwork(){return Promise.resolve(he.findByName(this._network).id)}requestChunk(e,t){const n=e.map((e=>e.request));return aN(t,JSON.stringify(n)).then((t=>{e.forEach(((e,n)=>{const r=t[n];if(r.error){const t=new Error(r.error.message);t.code=r.error.code,t.data=r.error.data,e.reject(t)}else e.resolve(r.result)}))})).catch((t=>{if(t&&"SERVER_ERROR"==t.code){const t=this._endpoints.indexOf(this._endpoint)+1;this._failover(),this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this.requestChunk(e,this._endpoint)}else e.forEach((e=>{e.reject(t)}))}))}send(e,t){const n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((e,t)=>{r.resolve=e,r.reject=t}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const t=[];for(let n=0;n(e.map((e=>e.request)),this.requestChunk(e,this._endpoint))))}),eD().batchInterval||10)),i}}const nD=()=>(null==$C()._Web3ClientProviders&&($C()._Web3ClientProviders={}),$C()._Web3ClientProviders),rD=(e,t)=>{void 0===nD()[e]&&(nD()[e]=[]);const n=nD()[e].indexOf(t);n>-1&&nD()[e].splice(n,1),nD()[e].unshift(t)},iD=async(e,t,n=!0)=>{let r;nD()[e]=t.map(((r,i)=>new tD(r,e,t,(()=>{1===nD()[e].length?iD(e,t,n):nD()[e].splice(i,1)}))));let i=$C();if(null==i.fetch||void 0!==Re&&Re.env&&"test"==Re.env.NODE_ENV||void 0!==i.cy||!1===n)r=nD()[e][0];else{let n=await Promise.all(t.map((e=>new Promise((async t=>{let n=(new Date).getTime();setTimeout((()=>t(900)),900);if(!(await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({method:"net_version",id:1,jsonrpc:"2.0"})})).ok)return t(999);let r=(new Date).getTime();t(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=nD()[e][o]}rD(e,r)};var oD=async e=>{let t=nD();if(t&&t[e])return t[e][0];let n=$C();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[e]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[e]=new Promise((async t=>{await iD(e,he[e].endpoints),t($C()._Web3ClientProviders[e][0])}))),await n._Web3ClientGetProviderPromise[e]},aD=async e=>{let t=nD();if(t&&t[e])return t[e];let n=$C();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[e]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[e]=new Promise((async t=>{await iD(e,he[e].endpoints),t($C()._Web3ClientProviders[e])}))),await n._Web3ClientGetProvidersPromise[e]};class sD extends vh{constructor(e,t,n,r){super(e),this._provider=new vh(e),this._network=t,this._endpoint=e,this._endpoints=n,this._failover=r,this._pendingBatch=[],this._rpcRequest=this._rpcRequestReplacement.bind(this)}requestChunk(e){const t=e.map((e=>e.request)),n=t=>{if(t&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((e=>t.toString().match(e)))){const t=this._endpoints.indexOf(this._endpoint)+1;this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this._provider=new vh(this._endpoint),this.requestChunk(e)}else e.forEach((e=>{e.reject(t)}))};try{return this._provider._rpcBatchRequest(t).then((t=>{e.forEach(((e,n)=>{const r=t[n];if(r.error){const t=new Error(r.error.message);t.code=r.error.code,t.data=r.error.data,e.reject(t)}else e.resolve(r)}))})).catch(n)}catch(e){return n(e)}}_rpcRequestReplacement(e,t){const n={methodName:e,args:t};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((e,t)=>{r.resolve=e,r.reject=t}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const t=[];for(let n=0;n(e.map((e=>e.request)),this.requestChunk(e))))}),eD().batchInterval||10)),i}}const uD=()=>(null==$C()._Web3ClientProviders&&($C()._Web3ClientProviders={}),$C()._Web3ClientProviders),cD=(e,t)=>{void 0===uD()[e]&&(uD()[e]=[]);const n=uD()[e].indexOf(t);n>-1&&uD()[e].splice(n,1),uD()[e].unshift(t)},lD=async(e,t,n=!0)=>{let r;uD()[e]=t.map(((r,i)=>new sD(r,e,t,(()=>{1===uD()[e].length?lD(e,t,n):uD()[e].splice(i,1)}))));let i=$C();if(null==i.fetch||void 0!==Re&&Re.env&&"test"==Re.env.NODE_ENV||void 0!==i.cy||!1===n)r=uD()[e][0];else{let n=await Promise.all(t.map((e=>new Promise((async t=>{let n=(new Date).getTime();setTimeout((()=>t(900)),900);if(!(await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({method:"getIdentity",id:1,jsonrpc:"2.0"})})).ok)return t(999);let r=(new Date).getTime();t(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=uD()[e][o]}cD(e,r)};var dD=async e=>{let t=uD();if(t&&t[e])return t[e][0];let n=$C();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[e]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[e]=new Promise((async t=>{await lD(e,he[e].endpoints),t($C()._Web3ClientProviders[e][0])}))),await n._Web3ClientGetProviderPromise[e]},hD=async e=>{let t=uD();if(t&&t[e])return t[e];let n=$C();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[e]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[e]=new Promise((async t=>{await lD(e,he[e].endpoints),t($C()._Web3ClientProviders[e])}))),await n._Web3ClientGetProvidersPromise[e]};let pD=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];pD.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],pD.solana=["solana"];let fD=()=>(null==$C()._Web3ClientCacheStore&&($C()._Web3ClientCacheStore={}),$C()._Web3ClientCacheStore),yD=()=>(null==$C()._Web3ClientPromiseStore&&($C()._Web3ClientPromiseStore={}),$C()._Web3ClientPromiseStore),mD=function({key:e}){yD()[e]=void 0},gD=function({call:e,key:t,expires:n=0}){return new Promise(((r,i)=>{let o,a=function({key:e}){return yD()[e]}({key:t=JSON.stringify(t)});if(a)return a.then(r).catch(i);(function({key:e,promise:t}){return yD()[e]=t,t})({key:t,promise:new Promise(((a,s)=>0===n?e().then((e=>{r(e),a(e)})).catch((e=>{i(e),s(e)})):(o=function({key:e,expires:t}){let n=fD()[e];if(function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([n,"optionalAccess",e=>e.expiresAt])>Date.now())return n.value}({key:t,expires:n}),o?(r(o),a(o),o):void e().then((e=>{e&&function({key:e,value:t,expires:n}){fD()[e]={expiresAt:Date.now()+n,value:t}}({key:t,value:e,expires:n}),r(e),a(e)})).catch((e=>{i(e),s(e)})))))}).then((()=>{mD({key:t})})).catch((()=>{mD({key:t})}))}))};const vD=async e=>{if(pD.evm.includes(e))return await oD(e);if(pD.solana.includes(e))return await dD(e);throw"Unknown blockchain: "+e};const bD=({address:e,api:t,method:n,params:r,provider:i,block:o})=>{const a=new YT(e,t,i),s=(({contract:e,method:t,params:n})=>e.interface.fragments.find((e=>e.name==t)).inputs.map(((e,t)=>Array.isArray(n)?n[t]:n[e.name])))({contract:a,method:n,params:r}),u=a.interface.fragments.find((e=>e.name===n));return void 0===a[n]&&(n=`${n}(${u.inputs.map((e=>e.type)).join(",")})`),u&&"nonpayable"===u.stateMutability?a.callStatic[n](...s,{blockTag:o}):a[n](...s,{blockTag:o})},wD=({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a})=>n?bD({address:t,api:n,method:r,params:i,provider:a,block:o}):"latestBlockNumber"===r?a.getBlockNumber():"balance"===r?(({address:e,provider:t})=>t.getBalance(e))({address:t,provider:a}):"transactionCount"===r?(({address:e,provider:t})=>t.getTransactionCount(e))({address:t,provider:a}):void 0;const MD=async({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a,providers:s})=>{try{if(null==r||"getAccountInfo"===r)return null==n&&(n=jf),await(async({address:e,api:t,method:n,params:r,provider:i,block:o})=>{const a=await i.getAccountInfo(new Ec(e));if(a&&a.data)return t.decode(a.data)})({address:t,api:n,method:r,params:i,provider:a,block:o});if("getProgramAccounts"===r)return await a.getProgramAccounts(new Ec(t),i).then((e=>n?e.map((e=>(e.data=n.decode(e.account.data),e))):e));if("getTokenAccountBalance"===r)return await a.getTokenAccountBalance(new Ec(t));if("latestBlockNumber"===r)return await a.getSlot(i||void 0);if("balance"===r)return await(({address:e,provider:t})=>t.getBalance(new Ec(e)))({address:t,provider:a})}catch(u){if(s&&u&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((e=>u.toString().match(e)))){let u=s[s.indexOf(a)+1]||s[0];return MD({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:u,providers:s})}throw u}};const AD=async function(e,t){const{blockchain:n,address:r,method:i}=(e=>{if("object"==typeof e)return e;let t=e.match(/(?\w+):\/\/(?[\w\d]+)(\/(?[\w\d]+)*)?/);return null==t.groups.part2?t.groups.part1.match(/\d/)?{blockchain:t.groups.blockchain,address:t.groups.part1}:{blockchain:t.groups.blockchain,method:t.groups.part1}:{blockchain:t.groups.blockchain,address:t.groups.part1,method:t.groups.part2}})(e),{api:o,params:a,cache:s,block:u,timeout:c,strategy:l,cacheKey:d}=("object"==typeof e?e:t)||{};return await gD({expires:s||0,key:d||[n,r,i,a,u],call:async()=>{if(pD.evm.includes(n))return await(async({blockchain:e,address:t,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{if(s=s||eD().strategy||"failover",a=a||eD().timeout||void 0,"fastest"===s){const s=await aD(e);let u=[];const c=s.map((a=>new Promise((s=>{u.push(wD({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a}).then(s))})))),l=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a||1e4)));return u=Promise.all(u.map((e=>new Promise((t=>{e.catch(t)}))))).then((()=>{})),Promise.race([...c,l,u])}{const s=await oD(e),u=wD({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:s});return a?(a=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a))),Promise.race([u,a])):u}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});if(pD.solana.includes(n))return await(async({blockchain:e,address:t,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{s=s||eD().strategy||"failover",a=a||eD().timeout||void 0;const u=await hD(e);if("fastest"===s){let s=[];const c=u.map((a=>new Promise((u=>{s.push(MD({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a}).then(u))})))),l=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a||1e4)));return s=Promise.all(s.map((e=>new Promise((t=>{e.catch(t)}))))).then((()=>{})),Promise.race([...c,l,s])}{const s=await dD(e),c=MD({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:s,providers:u});return a?(a=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a))),Promise.race([c,a])):c}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});throw"Unknown blockchain: "+n}})};let ED;const TD=async({wSolSenderAccountKeypair:e,paymentRoute:t})=>{if(!e)return;const n=t.fromToken.address===he.solana.currency.address?new Sf(t.fromAmount):new Sf("0"),r=await vD("solana"),i=new Sf(await r.getMinimumBalanceForRentExemption(JL.solana.TOKEN_LAYOUT.span)),o=t.fromAddress,a=n.add(i);return[yl.createAccount({fromPubkey:new Ec(o),newAccountPubkey:e.publicKey,programId:new Ec(JL.solana.TOKEN_PROGRAM),space:JL.solana.TOKEN_LAYOUT.span,lamports:a}),JL.solana.initializeAccountInstruction({account:e.publicKey.toString(),token:he.solana.wrapped.address,owner:o})]},ND=async({wSolEscrowAccountKeypair:e,paymentRoute:t})=>{if(!e)return;const n=await vD("solana"),r=new Sf(await n.getMinimumBalanceForRentExemption(JL.solana.TOKEN_LAYOUT.span)),i=await RD();return[yl.createAccount({fromPubkey:new Ec(t.fromAddress),newAccountPubkey:e.publicKey,programId:new Ec(JL.solana.TOKEN_PROGRAM),space:JL.solana.TOKEN_LAYOUT.span,lamports:r}),JL.solana.initializeAccountInstruction({account:e.publicKey.toString(),token:he.solana.wrapped.address,owner:i.toString()})]},ID=({paymentRoute:e})=>{let t=[...e.exchangeRoutes[0].path];return t.indexOf(he.solana.currency.address)>-1&&t.splice(t.indexOf(he.solana.currency.address),1),t.indexOf(e.fromToken.address)>-1&&t.splice(t.indexOf(e.fromToken.address),1),t.indexOf(e.toToken.address)>-1&&t.splice(t.indexOf(e.toToken.address),1),2===t.length&&t[0]===he.solana.wrapped.address?t[1]:t[0]},kD=async({paymentRoute:e})=>await JL.solana.findProgramAddress({token:ID({paymentRoute:e}),owner:e.fromAddress}),LD=async({paymentRoute:e})=>{if(0===e.exchangeRoutes.length||QD(e.exchangeRoutes[0].path).length<=2)return;const t=await(async({paymentRoute:e})=>await AD({blockchain:"solana",address:await kD({paymentRoute:e}),api:JL.solana.TOKEN_LAYOUT,cache:1e3}))({paymentRoute:e});return t?void 0:JL.solana.createAssociatedTokenAccountInstruction({token:ID({paymentRoute:e}),owner:e.fromAddress,payer:e.fromAddress})},xD=async({wSolSenderAccountKeypair:e,paymentRoute:t})=>{if(e)return JL.solana.closeAccountInstruction({account:e.publicKey.toString(),owner:t.fromAddress})},SD=async({from:e})=>{let t=[xf.from("payments"),new Ec(e).toBuffer()],[n]=await Ec.findProgramAddress(t,new Ec(XC.solana.address));return n},jD=async({from:e})=>{let t=(await SD({from:e})).toString();return await AD({blockchain:"solana",address:t,api:Uf([Ff("anchorDiscriminator"),Ff("nonce")]),cache:1e3})},CD=async({from:e})=>{if(await jD({from:e}))return;const t=[{pubkey:yl.programId,isSigner:!1,isWritable:!1},{pubkey:new Ec(e),isSigner:!0,isWritable:!0},{pubkey:await SD({from:e}),isSigner:!1,isWritable:!0}],n=xf.alloc(XC.solana.api.createPaymentsAccount.layout.span);return XC.solana.api.createPaymentsAccount.layout.encode({anchorDiscriminator:XC.solana.api.createPaymentsAccount.anchorDiscriminator},n),new Yc({keys:t,programId:new Ec(XC.solana.address),data:n})},DD=async({paymentRoute:e})=>await JL.solana.findProgramAddress({token:e.fromToken.address,owner:e.fromAddress}),OD=async({paymentRoute:e})=>await JL.solana.findProgramAddress({token:e.toToken.address,owner:e.toAddress}),zD=async({paymentRoute:e})=>{if(e.toToken.address===he.solana.currency.address){const t=await AD({blockchain:"solana",method:"balance",address:e.toAddress}),n=await vD("solana"),r=new Sf(await n.getMinimumBalanceForRentExemption(0)),i=new Sf(e.toAmount);if(new Sf(t).add(i).gt(r))return;return yl.transfer({fromPubkey:new Ec(e.fromAddress),toPubkey:new Ec(e.toAddress),lamports:r.sub(i)})}{const t=e.toToken.address,n=await(async({paymentRoute:e})=>await JL.solana.findAccount({token:e.toToken.address,owner:e.toAddress}))({paymentRoute:e});if(n)return;return JL.solana.createAssociatedTokenAccountInstruction({token:t,owner:e.toAddress,payer:e.fromAddress})}},_D=async({paymentRoute:e})=>await JL.solana.findProgramAddress({token:e.toToken.address,owner:e.fee.receiver}),PD=async({paymentRoute:e})=>{if(e.fee){if(e.toToken.address===he.solana.currency.address){const t=await AD({blockchain:"solana",method:"balance",address:e.fee.receiver}),n=await vD("solana"),r=new Sf(await n.getMinimumBalanceForRentExemption(0)),i=new Sf(e.feeAmount);if(new Sf(t).add(i).gt(r))return;return yl.transfer({fromPubkey:new Ec(e.fromAddress),toPubkey:new Ec(e.fee.receiver),lamports:r.sub(i)})}{const t=e.toToken.address,n=await(async({paymentRoute:e})=>await JL.solana.findAccount({token:e.toToken.address,owner:e.fee.receiver}))({paymentRoute:e});if(n)return;return JL.solana.createAssociatedTokenAccountInstruction({token:t,owner:e.fee.receiver,payer:e.fromAddress})}}},RD=async()=>{let e=[xf.from("escrow_sol")],[t,n]=await Ec.findProgramAddress(e,new Ec(XC.solana.address));return t},BD=async({paymentRoute:e})=>{let t=[xf.from("escrow"),new Ec(e.toToken.address===he.solana.currency.address?he.solana.wrapped.address:e.toToken.address).toBuffer()],[n,r]=await Ec.findProgramAddress(t,new Ec(XC.solana.address));return n},UD=async({paymentRoute:e})=>{if(0===e.exchangeRoutes.length||e.toToken.address===he.solana.currency.address)return;const t=await(async({paymentRoute:e})=>await AD({blockchain:"solana",address:(await BD({paymentRoute:e})).toString(),api:JL.solana.TOKEN_LAYOUT,cache:1e3}))({paymentRoute:e});if(t)return;const n=[{pubkey:yl.programId,isSigner:!1,isWritable:!1},{pubkey:new Ec(JL.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Ec(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:new Ec(e.toToken.address===he.solana.currency.address?he.solana.wrapped.address:e.toToken.address),isSigner:!1,isWritable:!0},{pubkey:await BD({paymentRoute:e}),isSigner:!1,isWritable:!0}],r=xf.alloc(XC.solana.api.createEscrowTokenAccount.layout.span);return XC.solana.api.createEscrowTokenAccount.layout.encode({anchorDiscriminator:XC.solana.api.createEscrowTokenAccount.anchorDiscriminator},r),new Yc({keys:n,programId:new Ec(XC.solana.address),data:r})},WD=async({paymentRoute:e})=>{if(0===e.exchangeRoutes.length||e.toToken.address!=he.solana.currency.address)return;if(await(async({paymentRoute:e})=>await AD({blockchain:"solana",address:(await RD()).toString(),api:Uf([Ff("amount"),Pf("owner")]),cache:1e3}))({paymentRoute:e}))return;const t=[{pubkey:yl.programId,isSigner:!1,isWritable:!1},{pubkey:new Ec(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await RD(),isSigner:!1,isWritable:!0}],n=xf.alloc(XC.solana.api.createEscrowSolAccount.layout.span);return XC.solana.api.createEscrowSolAccount.layout.encode({anchorDiscriminator:XC.solana.api.createEscrowSolAccount.anchorDiscriminator},n),new Yc({keys:t,programId:new Ec(XC.solana.address),data:n})},QD=e=>e.filter((e=>e!==he.solana.currency.address)),YD=()=>(ED=Math.ceil((new Date).getTime()/1e3)+1800,ED),FD=async({paymentRoute:e,wSolSenderAccountKeypair:t,wSolEscrowAccountKeypair:n})=>{const r=await jD({from:e.fromAddress}),i=(({paymentRoute:e})=>{if(e.fromToken.address===he.solana.currency.address&&e.toToken.address===he.solana.currency.address)return"routeSol";if(e.fromToken.address!==he.solana.currency.address&&e.toToken.address!==he.solana.currency.address&&0===e.exchangeRoutes.length)return"routeToken";if(e.exchangeRoutes.length>0&&2===QD(e.exchangeRoutes[0].path).length)return e.toToken.address===he.solana.currency.address?"routeOrcaSwapSolOut":"routeOrcaSwap";if(e.exchangeRoutes.length>0&&QD(e.exchangeRoutes[0].path).length>2)return e.toToken.address===he.solana.currency.address?"routeOrcaTwoHopSwapSolOut":"routeOrcaTwoHopSwap";throw"Payment method does not exist!"})({paymentRoute:e});switch(i){case"routeSol":return await(async({paymentRoute:e,paymentsAccountData:t})=>{const n=new Ec(e.toAddress),r=e.fee?new Ec(e.fee.receiver):n,i=[{pubkey:yl.programId,isSigner:!1,isWritable:!1},{pubkey:new Ec(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await SD({from:e.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0}],o=xf.alloc(XC.solana.api.routeSol.layout.span);return XC.solana.api.routeSol.layout.encode({anchorDiscriminator:XC.solana.api.routeSol.anchorDiscriminator,nonce:t?t.nonce:new Sf("0"),paymentAmount:new Sf(e.toAmount.toString()),feeAmount:new Sf((e.feeAmount||"0").toString()),deadline:new Sf(YD())},o),new Yc({keys:i,programId:new Ec(XC.solana.address),data:o})})({paymentRoute:e,paymentsAccountData:r});case"routeToken":return await(async({paymentRoute:e,paymentsAccountData:t})=>{const n=await DD({paymentRoute:e}),r=await OD({paymentRoute:e}),i=e.fee?await _D({paymentRoute:e}):r,o=[{pubkey:new Ec(JL.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Ec(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await SD({from:e.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new Ec(n),isSigner:!1,isWritable:!0},{pubkey:new Ec(r),isSigner:!1,isWritable:!0},{pubkey:new Ec(i),isSigner:!1,isWritable:!0}],a=xf.alloc(XC.solana.api.routeToken.layout.span);return XC.solana.api.routeToken.layout.encode({anchorDiscriminator:XC.solana.api.routeToken.anchorDiscriminator,nonce:t?t.nonce:new Sf("0"),paymentAmount:new Sf(e.toAmount.toString()),feeAmount:new Sf((e.feeAmount||"0").toString()),deadline:new Sf(YD())},a),new Yc({keys:o,programId:new Ec(XC.solana.address),data:a})})({paymentRoute:e,paymentsAccountData:r});case"routeOrcaSwap":return await(async({paymentRoute:e,paymentsAccountData:t,wSolSenderAccountKeypair:n})=>{const r=n?n.publicKey:await DD({paymentRoute:e}),i=await OD({paymentRoute:e}),o=e.fee?await _D({paymentRoute:e}):i,a=await BD({paymentRoute:e}),s=(await e.exchangeRoutes[0].getTransaction({account:e.fromAddress})).instructions.find((e=>e.programId.toString()===XC.solana.ammProgram)),u=Uf([Ff("anchorDiscriminator"),Ff("amount"),Ff("otherAmountThreshold"),Wf("sqrtPriceLimit"),Cf("amountSpecifiedIsInput"),Cf("aToB")]).decode(s.data),c=[{pubkey:new Ec(JL.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Ec(XC.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Ec(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await SD({from:e.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new Ec(r),isSigner:!1,isWritable:!0},s.keys[2],s.keys[4],s.keys[6],s.keys[7],s.keys[8],s.keys[9],s.keys[10],{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:new Ec(i),isSigner:!1,isWritable:!0},{pubkey:new Ec(o),isSigner:!1,isWritable:!0}],l=xf.alloc(XC.solana.api.routeOrcaSwap.layout.span);return XC.solana.api.routeOrcaSwap.layout.encode({anchorDiscriminator:XC.solana.api.routeOrcaSwap.anchorDiscriminator,nonce:t?t.nonce:new Sf("0"),amountIn:u.amount,sqrtPriceLimit:u.sqrtPriceLimit,amountSpecifiedIsInput:u.amountSpecifiedIsInput,aToB:u.aToB,paymentAmount:new Sf(e.toAmount.toString()),feeAmount:new Sf((e.feeAmount||"0").toString()),deadline:new Sf(YD())},l),new Yc({keys:c,programId:new Ec(XC.solana.address),data:l})})({paymentRoute:e,paymentsAccountData:r,wSolSenderAccountKeypair:t});case"routeOrcaSwapSolOut":return await(async({paymentRoute:e,paymentsAccountData:t,wSolEscrowAccountKeypair:n})=>{const r=await DD({paymentRoute:e}),i=n.publicKey,o=(await e.exchangeRoutes[0].getTransaction({account:e.fromAddress})).instructions.find((e=>e.programId.toString()===XC.solana.ammProgram)),a=Uf([Ff("anchorDiscriminator"),Ff("amount"),Ff("otherAmountThreshold"),Wf("sqrtPriceLimit"),Cf("amountSpecifiedIsInput"),Cf("aToB")]).decode(o.data),s=[{pubkey:yl.programId,isSigner:!1,isWritable:!1},{pubkey:new Ec(JL.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Ec(XC.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Ec(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await SD({from:e.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new Ec(r),isSigner:!1,isWritable:!0},o.keys[2],o.keys[4],o.keys[6],o.keys[7],o.keys[8],o.keys[9],o.keys[10],{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:await RD(),isSigner:!1,isWritable:!0},{pubkey:new Ec(e.toAddress),isSigner:!1,isWritable:!0},{pubkey:new Ec(e.fee?e.fee.receiver:e.toAddress),isSigner:!1,isWritable:!0}],u=xf.alloc(XC.solana.api.routeOrcaSwapSolOut.layout.span);return XC.solana.api.routeOrcaSwapSolOut.layout.encode({anchorDiscriminator:XC.solana.api.routeOrcaSwapSolOut.anchorDiscriminator,nonce:t?t.nonce:new Sf("0"),amountIn:a.amount,sqrtPriceLimit:a.sqrtPriceLimit,amountSpecifiedIsInput:a.amountSpecifiedIsInput,aToB:a.aToB,paymentAmount:new Sf(e.toAmount.toString()),feeAmount:new Sf((e.feeAmount||"0").toString()),deadline:new Sf(YD())},u),new Yc({keys:s,programId:new Ec(XC.solana.address),data:u})})({paymentRoute:e,paymentsAccountData:r,wSolEscrowAccountKeypair:n});case"routeOrcaTwoHopSwap":return await(async({paymentRoute:e,paymentsAccountData:t,wSolSenderAccountKeypair:n})=>{const r=new Ec(await OD({paymentRoute:e})),i=e.fee?new Ec(await _D({paymentRoute:e})):r,o=await BD({paymentRoute:e}),a=new Ec(await kD({paymentRoute:e})),s=(await e.exchangeRoutes[0].getTransaction({account:e.fromAddress})).instructions.find((e=>e.programId.toString()===XC.solana.ammProgram)),u=n?n.publicKey:new Ec(await DD({paymentRoute:e})),c=Uf([Ff("anchorDiscriminator"),Ff("amount"),Ff("otherAmountThreshold"),Cf("amountSpecifiedIsInput"),Cf("aToBOne"),Cf("aToBTwo"),Wf("sqrtPriceLimitOne"),Wf("sqrtPriceLimitTwo")]).decode(s.data),l=[{pubkey:new Ec(JL.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Ec(XC.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Ec(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await SD({from:e.fromAddress}),isSigner:!1,isWritable:!0},s.keys[2],s.keys[3],{pubkey:u,isSigner:!1,isWritable:!0},s.keys[5],s.keys[7],{pubkey:a,isSigner:!1,isWritable:!0},s.keys[9],s.keys[11],s.keys[12],s.keys[13],s.keys[14],s.keys[15],s.keys[16],s.keys[17],s.keys[18],s.keys[19],{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0}],d=xf.alloc(XC.solana.api.routeOrcaTwoHopSwap.layout.span);return XC.solana.api.routeOrcaTwoHopSwap.layout.encode({anchorDiscriminator:XC.solana.api.routeOrcaTwoHopSwap.anchorDiscriminator,nonce:t?t.nonce:new Sf("0"),amountIn:c.amount,amountSpecifiedIsInput:c.amountSpecifiedIsInput,aToBOne:c.aToBOne,aToBTwo:c.aToBTwo,sqrtPriceLimitOne:c.sqrtPriceLimitOne,sqrtPriceLimitTwo:c.sqrtPriceLimitTwo,paymentAmount:new Sf(e.toAmount.toString()),feeAmount:new Sf((e.feeAmount||"0").toString()),deadline:new Sf(YD())},d),new Yc({keys:l,programId:new Ec(XC.solana.address),data:d})})({paymentRoute:e,paymentsAccountData:r,wSolSenderAccountKeypair:t});case"routeOrcaTwoHopSwapSolOut":return await(async({paymentRoute:e,paymentsAccountData:t,wSolEscrowAccountKeypair:n})=>{const r=new Ec(await kD({paymentRoute:e})),i=(await e.exchangeRoutes[0].getTransaction({account:e.fromAddress})).instructions.find((e=>e.programId.toString()===XC.solana.ammProgram)),o=new Ec(await DD({paymentRoute:e})),a=Uf([Ff("anchorDiscriminator"),Ff("amount"),Ff("otherAmountThreshold"),Cf("amountSpecifiedIsInput"),Cf("aToBOne"),Cf("aToBTwo"),Wf("sqrtPriceLimitOne"),Wf("sqrtPriceLimitTwo")]).decode(i.data),s=[{pubkey:yl.programId,isSigner:!1,isWritable:!1},{pubkey:new Ec(JL.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Ec(XC.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Ec(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await SD({from:e.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},i.keys[2],i.keys[3],i.keys[5],i.keys[7],{pubkey:r,isSigner:!1,isWritable:!0},i.keys[9],i.keys[11],i.keys[12],i.keys[13],i.keys[14],i.keys[15],i.keys[16],i.keys[17],i.keys[18],i.keys[19],{pubkey:n.publicKey,isSigner:!1,isWritable:!0},{pubkey:await RD(),isSigner:!1,isWritable:!0},{pubkey:new Ec(e.toAddress),isSigner:!1,isWritable:!0},{pubkey:new Ec(e.fee?e.fee.receiver:e.toAddress),isSigner:!1,isWritable:!0}],u=xf.alloc(XC.solana.api.routeOrcaTwoHopSwapSolOut.layout.span);return XC.solana.api.routeOrcaTwoHopSwapSolOut.layout.encode({anchorDiscriminator:XC.solana.api.routeOrcaTwoHopSwapSolOut.anchorDiscriminator,nonce:t?t.nonce:new Sf("0"),amountIn:a.amount,amountSpecifiedIsInput:a.amountSpecifiedIsInput,aToBOne:a.aToBOne,aToBTwo:a.aToBTwo,sqrtPriceLimitOne:a.sqrtPriceLimitOne,sqrtPriceLimitTwo:a.sqrtPriceLimitTwo,paymentAmount:new Sf(e.toAmount.toString()),feeAmount:new Sf((e.feeAmount||"0").toString()),deadline:new Sf(YD())},u),new Yc({keys:s,programId:new Ec(XC.solana.address),data:u})})({paymentRoute:e,paymentsAccountData:r,wSolEscrowAccountKeypair:n})}},VD=async({paymentRoute:e})=>{const t=await(async({paymentRoute:e})=>{if(e.fromToken.address===he.solana.currency.address&&e.toToken.address!==he.solana.currency.address)return bh.generate()})({paymentRoute:e}),n=await(async({paymentRoute:e})=>{if(e.fromToken.address!==he.solana.currency.address&&e.toToken.address===he.solana.currency.address)return bh.generate()})({paymentRoute:e});let r=(await Promise.all([CD({from:e.fromAddress}),TD({paymentRoute:e,wSolSenderAccountKeypair:t}),LD({paymentRoute:e}),zD({paymentRoute:e}),PD({paymentRoute:e}),WD({paymentRoute:e}),ND({paymentRoute:e,wSolEscrowAccountKeypair:n}),UD({paymentRoute:e}),FD({paymentRoute:e,wSolSenderAccountKeypair:t,wSolEscrowAccountKeypair:n}),xD({paymentRoute:e,wSolSenderAccountKeypair:t})])).filter(Boolean).flat();const i={blockchain:e.blockchain,instructions:r,signers:[t,n].filter(Boolean),alts:[XC.solana.alt]};return i.deadline=ED,i},HD=[{inputs:[{internalType:"address",name:"_PERMIT2",type:"address"},{internalType:"address",name:"_FORWARDER",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ExchangeCallFailed",type:"error"},{inputs:[],name:"ExchangeCallMissing",type:"error"},{inputs:[],name:"ExchangeNotApproved",type:"error"},{inputs:[],name:"ForwardingPaymentFailed",type:"error"},{inputs:[],name:"InsufficientBalanceInAfterPayment",type:"error"},{inputs:[],name:"InsufficientBalanceOutAfterPayment",type:"error"},{inputs:[],name:"NativeFeePaymentFailed",type:"error"},{inputs:[],name:"NativePaymentFailed",type:"error"},{inputs:[],name:"PaymentDeadlineReached",type:"error"},{inputs:[],name:"PaymentToZeroAddressNotAllowed",type:"error"},{inputs:[],name:"WrongAmountPaidIn",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"exchange",type:"address"}],name:"Disabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"exchange",type:"address"}],name:"Enabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"InternalTransfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferStarted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"FORWARDER",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT2",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"exchange",type:"address"},{internalType:"bool",name:"enabled",type:"bool"}],name:"enable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"exchanges",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"bool",name:"permit2",type:"bool"},{internalType:"uint256",name:"paymentAmount",type:"uint256"},{internalType:"uint256",name:"feeAmount",type:"uint256"},{internalType:"address",name:"tokenInAddress",type:"address"},{internalType:"address",name:"exchangeAddress",type:"address"},{internalType:"address",name:"tokenOutAddress",type:"address"},{internalType:"address",name:"paymentReceiverAddress",type:"address"},{internalType:"address",name:"feeReceiverAddress",type:"address"},{internalType:"uint8",name:"exchangeType",type:"uint8"},{internalType:"uint8",name:"receiverType",type:"uint8"},{internalType:"bytes",name:"exchangeCallData",type:"bytes"},{internalType:"bytes",name:"receiverCallData",type:"bytes"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct IDePayRouterV2.Payment",name:"payment",type:"tuple"}],name:"pay",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"bool",name:"permit2",type:"bool"},{internalType:"uint256",name:"paymentAmount",type:"uint256"},{internalType:"uint256",name:"feeAmount",type:"uint256"},{internalType:"address",name:"tokenInAddress",type:"address"},{internalType:"address",name:"exchangeAddress",type:"address"},{internalType:"address",name:"tokenOutAddress",type:"address"},{internalType:"address",name:"paymentReceiverAddress",type:"address"},{internalType:"address",name:"feeReceiverAddress",type:"address"},{internalType:"uint8",name:"exchangeType",type:"uint8"},{internalType:"uint8",name:"receiverType",type:"uint8"},{internalType:"bytes",name:"exchangeCallData",type:"bytes"},{internalType:"bytes",name:"receiverCallData",type:"bytes"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct IDePayRouterV2.Payment",name:"payment",type:"tuple"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IPermit2.PermitDetails",name:"details",type:"tuple"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IPermit2.PermitSingle",name:"permitSingle",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"pay",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdraw",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];var GD={ethereum:{address:"0x6466F27B169C908Ba8174d80aEfa7173CbC3D0c7",api:HD},bsc:{address:"0x7ea09401db4692a8AEF4111b75bD32AE758f552A",api:HD},polygon:{address:"0x50CFAB577623B1359602E11514a9482B061A941e",api:HD},fantom:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:HD},avalanche:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:HD},gnosis:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:HD},arbitrum:{address:"0xA1cfbeeF344A52e18f748fd6a126f9426A40fbc7",api:HD},optimism:{address:"0x8698E529E9867eEbcC68b4792daC627cd8870736",api:HD},base:{address:"0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11",api:HD}},qD={...GD,...XC},ZD="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==fe?fe:"undefined"!=typeof self?self:{},JD="object"==typeof ZD&&ZD&&ZD.Object===Object&&ZD,XD="object"==typeof self&&self&&self.Object===Object&&self,KD=(JD||XD||Function("return this")()).Symbol;KD&&KD.toStringTag,KD&&KD.toStringTag;const $D=e=>{switch(e){case"solana":return 125e-6;case"gnosis":return.009;case"polygon":return.01;case"fantom":return.05;case"avalanche":return.1;case"bsc":return.2;case"base":return.25;case"arbitrum":return.3;case"optimism":return.4;case"ethereum":return 10;default:return 100}},eO=({paymentRoute:e})=>e.directTransfer&&!e.fee?e.toToken.address==he[e.blockchain].currency.address?e.toAddress:e.toToken.address:GD[e.blockchain].address,tO=({paymentRoute:e})=>e.directTransfer&&!e.fee?e.toToken.address==he[e.blockchain].currency.address?void 0:JL[e.blockchain].DEFAULT:GD[e.blockchain].api,nO=({paymentRoute:e})=>e.directTransfer&&!e.fee?e.toToken.address==he[e.blockchain].currency.address?void 0:"transfer":"pay",rO=async({paymentRoute:e})=>{if(e.directTransfer&&!e.fee)return e.toToken.address==he[e.blockchain].currency.address?void 0:[e.toAddress,e.toAmount];{const t=Math.ceil(new Date/1e3)+86400,n=e.exchangeRoutes[0],r=(({exchangeRoute:e,blockchain:t})=>void 0===e?0:"uniswap_v3"===e.exchange.name?2:e.exchange[t].address===he[t].wrapped.address?0:1)({exchangeRoute:n,blockchain:e.blockchain}),i=n?await n.getTransaction({account:GD[e.blockchain].address,inputTokenPushed:2===r}):void 0,o=i?(({exchangeTransaction:e})=>{const t=new YT(e.to,e.api),n=e.method,r=e.params;let i,o,a;return o=t.interface.fragments.find((e=>!(e.name!=n||e.inputs&&r&&"object"==typeof r&&e.inputs.length!=Object.keys(r).length))),1===o.inputs.length&&"tuple"===o.inputs[0].type?(i=n,a=[r[o.inputs[0].name]]):(i=`${n}(${o.inputs.map((e=>e.type)).join(",")})`,a=o.inputs.map((e=>{if("tuple"===e.type){let t={};return e.components.forEach(((n,i)=>{t[n.name]=r[e.name][i]})),i=n,t}return r[e.name]}))),t.interface.encodeFunctionData(i,a)})({exchangeTransaction:i}):he[e.blockchain].zero;let a=he[e.blockchain].zero;return n&&(a="bsc"===e.blockchain&&"pancakeswap_v3"===n.exchange.name&&e.toToken.address===he[e.blockchain].currency.address?n.exchange[e.blockchain].smartRouter.address:n.exchange[e.blockchain].router.address),{payment:{amountIn:e.fromAmount,paymentAmount:e.toAmount,feeAmount:e.feeAmount||0,tokenInAddress:e.fromToken.address,exchangeAddress:a,tokenOutAddress:e.toToken.address,paymentReceiverAddress:e.toAddress,feeReceiverAddress:e.fee?e.fee.receiver:he[e.blockchain].zero,exchangeType:r,receiverType:0,exchangeCallData:o,receiverCallData:he[e.blockchain].zero,deadline:t}}}},iO=({paymentRoute:e})=>e.fromToken.address==he[e.blockchain].currency.address?e.directTransfer?e.toAmount.toString():e.fromAmount.toString():Wy.from("0").toString();let oO=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];oO.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],oO.solana=["solana"];const aO=({paymentRoute:e,fee:t})=>{if(oO.evm.includes(e.blockchain))return(async({paymentRoute:e})=>({blockchain:e.blockchain,to:eO({paymentRoute:e}),api:tO({paymentRoute:e}),method:nO({paymentRoute:e}),params:await rO({paymentRoute:e}),value:iO({paymentRoute:e})}))({paymentRoute:e,fee:t});if(oO.solana.includes(e.blockchain))return VD({paymentRoute:e,fee:t});throw"Blockchain not supported!"};function sO(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class uO{constructor({blockchain:e,fromAddress:t,fromToken:n,fromAmount:r,fromDecimals:i,fromBalance:o,toToken:a,toAmount:s,toDecimals:u,toAddress:c,fee:l,feeAmount:d,exchangeRoutes:h,approvalRequired:p,approvalTransaction:f,directTransfer:y}){this.blockchain=e,this.fromAddress=t,this.fromToken=n,this.fromAmount=sO([r||s,"optionalAccess",e=>e.toString,"call",e=>e()]),this.fromDecimals=i,this.fromBalance=o,this.toToken=a,this.toAmount=sO([s,"optionalAccess",e=>e.toString,"call",e=>e()]),this.toDecimals=u,this.toAddress=c,this.fee=l,this.feeAmount=d,this.exchangeRoutes=h||[],this.approvalRequired=p,this.approvalTransaction=f,this.directTransfer=y,this.getTransaction=async()=>await aO({paymentRoute:this})}}function cO({assets:e,blacklist:t,accept:n,from:r}){return Promise.resolve(dO({assets:e,blacklist:t})).then((e=>function({assets:e,accept:t,from:n}){return Promise.all(e.map((async e=>{let r=t.filter((t=>t.blockchain==e.blockchain)),i=new JL(e);return Promise.all(r.map((async t=>{if(t.token&&t.amount){let r=t.blockchain,o=e.decimals,a=new JL({blockchain:r,address:t.token}),s=await a.decimals(),u=(await a.BigNumber(t.amount)).toString();return new uO({blockchain:r,fromToken:i,fromDecimals:o,toToken:a,toAmount:u,toDecimals:s,fromBalance:e.balance,fromAddress:n[t.blockchain],toAddress:t.toAddress,fee:t.fee})}if(t.fromToken&&t.fromAmount&&i.address.toLowerCase()==t.fromToken.toLowerCase()){let r=t.blockchain,o=(await i.BigNumber(t.fromAmount)).toString(),a=e.decimals,s=new JL({blockchain:r,address:t.toToken}),u=await s.decimals();return new uO({blockchain:r,fromToken:i,fromDecimals:a,fromAmount:o,toToken:s,toDecimals:u,fromBalance:e.balance,fromAddress:n[t.blockchain],toAddress:t.toAddress,fee:t.fee})}})))}))).then((e=>e.flat().filter((e=>e))))}({assets:e,accept:n,from:r}))).then((e=>mO({routes:e}))).then(hO).then(pO).then(fO).then((e=>wO({routes:e}))).then(yO).then(AO).then(MO).then((e=>e.map((e=>new uO(e)))))}function lO({accept:e,from:t,whitelist:n,blacklist:r,drip:i}){if(e.some((e=>e&&e.fee&&"string"==typeof e.fee.amount&&e.fee.amount.match(/\.\d\d+\%/))))throw"Only up to 1 decimal is supported for fee amounts!";return new Promise((async(o,a)=>{let s=[],u=[];if(n)for(const e in n)(n[e]||[]).forEach((t=>{u.push(e),s.push({blockchain:e,address:t})}));else e.forEach((e=>{u.push(e.blockchain),s.push({blockchain:e.blockchain,address:e.token||e.toToken})}));[...new Set(u)].forEach((e=>{s.find((t=>t.blockchain===e&&t.address===he[e].currency.address))||s.push({blockchain:e,address:he[e].currency.address})})),s.sort(((e,t)=>$D(e.blockchain)<$D(t.blockchain)?-1:$D(t.blockchain)<$D(e.blockchain)?1:e.address.toLowerCase()===he[e.blockchain].currency.address.toLowerCase()?-1:t.address.toLowerCase()===he[t.blockchain].currency.address.toLowerCase()?1:0));let c=0;const l=[],d=[],h=s.map((e=>[e.blockchain,e.address.toLowerCase()].join(""))),p=()=>Math.ceil(new Date),f=p();setTimeout((()=>{l.forEach((e=>y(lO,!1)))}),1e3);const y=(e,t=!0)=>{try{const n={blockchain:e.blockchain,address:e.fromToken.address},r=[n.blockchain,n.address.toLowerCase()].join(""),o=p()-f>1e3;if(d.indexOf(r)>-1)return;if(h.indexOf(r)===c){if(d.push(r),i(e),c+=1,!t)return;l.forEach((t=>y(e,!1)))}else c>=h.length||o?(-1===h.indexOf(r)||c>=h.length||o)&&(d.push(r),i(e)):l.find((e=>e.blockchain===n.blockchain&&e.address.toLowerCase()===n.address.toLowerCase()))||(l.push(n),l.sort(((e,t)=>((e,t,n)=>{if(!e||0===e.length)return 0;let r=e.indexOf([t.blockchain,t.address.toLowerCase()].join("")),i=e.indexOf([n.blockchain,n.address.toLowerCase()].join(""));return-1!==r&&-1===i?-1:-1!==i&&-1===r?1:r{cO({assets:[n],blacklist:r,accept:e,from:t}).then((e=>{sO([e,"optionalAccess",e=>e.length])&&y(e[0])}))}:void 0});let g=await cO({assets:m,blacklist:r,accept:e,from:t})||[];g.assets=m,o(g)}))}let dO=({assets:e,blacklist:t})=>null==t?e:e.filter((e=>null==t[e.blockchain]||!t[e.blockchain].find((t=>t.toLowerCase()==e.address.toLowerCase())))),hO=async e=>await Promise.all(e.map((e=>e.directTransfer?[]:e.toToken&&e.toAmount?JC.route({blockchain:e.blockchain,tokenIn:e.fromToken.address,tokenOut:e.toToken.address,amountOutMin:e.toAmount,fromAddress:e.fromAddress,toAddress:e.toAddress}):e.fromToken&&e.fromAmount?JC.route({blockchain:e.blockchain,tokenIn:e.fromToken.address,tokenOut:e.toToken.address,amountIn:e.fromAmount,fromAddress:e.fromAddress,toAddress:e.toAddress}):void 0))).then((t=>e.map(((e,n)=>(e.exchangeRoutes=t[n],e))))),pO=e=>e.filter((e=>0!=e.exchangeRoutes.length||e.fromToken.address.toLowerCase()==e.toToken.address.toLowerCase())),fO=async e=>e.filter((e=>e.fromToken.address.toLowerCase()==e.toToken.address.toLowerCase()?Wy.from(e.fromBalance).gte(Wy.from(e.toAmount)):e.fromAmount&&e.toAmount?Wy.from(e.fromBalance).gte(Wy.from(e.exchangeRoutes[0].amountInMax)):e.exchangeRoutes[0]&&e.exchangeRoutes[0].amountIn?Wy.from(e.fromBalance).gte(Wy.from(e.exchangeRoutes[0].amountIn)):void 0)),yO=e=>Promise.all(e.map((e=>"solana"===e.blockchain?Promise.resolve(he.solana.maxInt):e.fromToken.allowance(e.fromAddress,qD[e.blockchain].address).catch((()=>{}))))).then((t=>(e.map(((n,r)=>{void 0===t[r]||n.directTransfer||n.fromToken.address.toLowerCase()==he[n.blockchain].currency.address.toLowerCase()||"solana"===n.blockchain?e[r].approvalRequired=!1:(e[r].approvalRequired=Wy.from(n.fromAmount).gte(Wy.from(t[r])),e[r].approvalRequired&&(e[r].approvalTransaction={blockchain:n.blockchain,to:n.fromToken.address,api:JL[n.blockchain].DEFAULT,method:"approve",params:[qD[n.blockchain].address,he[n.blockchain].maxInt]}))})),e))),mO=({routes:e})=>e.map((e=>(oO.evm.includes(e.blockchain)?e.directTransfer=e.fromToken.address.toLowerCase()==e.toToken.address.toLowerCase()&&null==e.fee:"solana"===e.blockchain&&(e.directTransfer=e.fromToken.address.toLowerCase()==e.toToken.address.toLowerCase()),e))),gO=({paymentRoute:e,exchangeRoute:t})=>{let n,r,i;return t?(t&&t.exchange.wrapper,n=t.amountIn.toString(),r=vO({amount:t.amountOutMin.toString(),paymentRoute:e})):(n=e.fromAmount,r=vO({amount:e.fromAmount,paymentRoute:e})),e.fee&&(i=bO({paymentRoute:e})),{fromAmount:n,toAmount:r,feeAmount:i}},vO=({amount:e,paymentRoute:t})=>{if(t.fee){let n=bO({paymentRoute:t});return Wy.from(e).sub(n).toString()}return e},bO=({paymentRoute:e})=>{if("string"==typeof e.fee.amount&&e.fee.amount.match("%"))return Wy.from(e.toAmount).mul(10*parseFloat(e.fee.amount)).div(1e3).toString();if("string"==typeof e.fee.amount)return e.fee.amount;if("number"==typeof e.fee.amount)return mI(e.fee.amount.toString(),e.toDecimals).toString();throw"Unknown fee amount type!"},wO=({routes:e})=>e.map((e=>{if(oO.evm.includes(e.blockchain))if(e.directTransfer&&!e.fee)e.fromAmount=e.toAmount;else{let{fromAmount:t,toAmount:n,feeAmount:r}=gO({paymentRoute:e,exchangeRoute:e.exchangeRoutes[0]});e.fromAmount=t,e.toAmount=n,e.fee&&(e.feeAmount=r)}else if(oO.solana.includes(e.blockchain)){let{fromAmount:t,toAmount:n,feeAmount:r}=gO({paymentRoute:e,exchangeRoute:e.exchangeRoutes[0]});e.fromAmount=t,e.toAmount=n,e.fee&&(e.feeAmount=r)}return e})),MO=e=>e.filter(((t,n)=>null==e.find(((e,r)=>t.fromToken.address==e.fromToken.address&&(t.fromToken.blockchain==e.fromToken.blockchain&&(!(!e.directTransfer||t.directTransfer)||(!(!Wy.from(e.fromAmount).lt(Wy.from(t.fromAmount))||t.directTransfer)||(e.fromAmount==t.fromAmount&&r{let t=-1;return e.sort(((e,n)=>$D(e.fromToken.blockchain)<$D(n.fromToken.blockchain)?t:$D(n.fromToken.blockchain)<$D(e.fromToken.blockchain)?1:e.fromToken.address.toLowerCase()==e.toToken.address.toLowerCase()?t:n.fromToken.address.toLowerCase()==n.toToken.address.toLowerCase()||e.approvalRequired&&!n.approvalRequired?1:n.approvalRequired&&!e.approvalRequired||JSON.stringify([e.fromToken.address.toLowerCase(),e.toToken.address.toLowerCase()].sort())==JSON.stringify([he[e.blockchain].currency.address.toLowerCase(),he[e.blockchain].wrapped.address.toLowerCase()].sort())?t:JSON.stringify([n.fromToken.address.toLowerCase(),n.toToken.address.toLowerCase()].sort())==JSON.stringify([he[n.blockchain].currency.address.toLowerCase(),he[n.blockchain].wrapped.address.toLowerCase()].sort())?1:e.fromToken.address.toLowerCase()==he[e.blockchain].currency.address.toLowerCase()?t:n.fromToken.address.toLowerCase()==he[n.blockchain].currency.address.toLowerCase()?1:e.fromToken.address0){for(o+=a,t=1;tn)throw Error(Ax+e)}function _x(e,t,n,r){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=Tx(10,7-t),s=e[i]%o|0,null==r?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(e[i+1]/o/100|0)==Tx(10,t-2)-1||(s==o/2||0==s)&&0==(e[i+1]/o/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==o||!r&&n>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==Tx(10,t-3)-1,a}function Px(e,t,n){for(var r,i,o=[0],a=0,s=e.length;an-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}Dx.absoluteValue=Dx.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Rx(e)},Dx.ceil=function(){return Rx(new this.constructor(this),this.e+1,2)},Dx.clampedTo=Dx.clamp=function(e,t){var n=this,r=n.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(Ax+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new r(n)},Dx.comparedTo=Dx.cmp=function(e){var t,n,r,i,o=this,a=o.d,s=(e=new o.constructor(e)).d,u=o.s,c=e.s;if(!a||!s)return u&&c?u!==c?u:a===s?0:!a^u<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?u:s[0]?-c:0;if(u!==c)return u;if(o.e!==e.e)return o.e>e.e^u<0?1:-1;for(t=0,n=(r=a.length)<(i=s.length)?r:i;ts[t]^u<0?1:-1;return r===i?0:r>i^u<0?1:-1},Dx.cosine=Dx.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,i;if(t.isZero())return t;(r=t.d.length)<32?i=(1/tS(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");e.precision+=n,t=eS(e,1,t.times(i),new e(1));for(var o=n;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(r,nS(r,n)),r.precision=e,r.rounding=t,Rx(2==fx||3==fx?n.neg():n,e,t,!0)):new r(1):new r(NaN)},Dx.cubeRoot=Dx.cbrt=function(){var e,t,n,r,i,o,a,s,u,c,l=this,d=l.constructor;if(!l.isFinite()||l.isZero())return new d(l);for(Mx=!1,(o=l.s*Tx(l.s*l,1/3))&&Math.abs(o)!=1/0?r=new d(o.toString()):(n=Ox(l.d),(o=((e=l.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=Tx(n,1/3),e=Nx((e+1)/3)-(e%3==(e<0?-1:2)),(r=new d(n=o==1/0?"5e"+e:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=l.s),a=(e=d.precision)+3;;)if(c=(u=(s=r).times(s).times(s)).plus(l),r=Bx(c.plus(l).times(s),c.plus(u),a+2,1),Ox(s.d).slice(0,a)===(n=Ox(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(Rx(r,e+1,1),t=!r.times(r).times(r).eq(l));break}if(!i&&(Rx(s,e+1,0),s.times(s).times(s).eq(l))){r=s;break}a+=4,i=1}return Mx=!0,Rx(r,e,d.rounding,t)},Dx.decimalPlaces=Dx.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=7*((e=t.length-1)-Nx(this.e/7)),e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},Dx.dividedBy=Dx.div=function(e){return Bx(this,new this.constructor(e))},Dx.dividedToIntegerBy=Dx.divToInt=function(e){var t=this.constructor;return Rx(Bx(this,new t(e),0,1,1),t.precision,t.rounding)},Dx.equals=Dx.eq=function(e){return 0===this.cmp(e)},Dx.floor=function(){return Rx(new this.constructor(this),this.e+1,3)},Dx.greaterThan=Dx.gt=function(e){return this.cmp(e)>0},Dx.greaterThanOrEqualTo=Dx.gte=function(e){var t=this.cmp(e);return 1==t||0===t},Dx.hyperbolicCosine=Dx.cosh=function(){var e,t,n,r,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/tS(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=eS(a,1,o.times(t),new a(1),!0);for(var u,c=e,l=new a(8);c--;)u=o.times(o),o=s.minus(u.times(l.minus(u.times(l))));return Rx(o,a.precision=n,a.rounding=r,!0)},Dx.hyperbolicSine=Dx.sinh=function(){var e,t,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,n=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=eS(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=eS(o,2,i=i.times(1/tS(5,e)),i,!0);for(var a,s=new o(5),u=new o(16),c=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(c))))}return o.precision=t,o.rounding=n,Rx(i,t,n,!0)},Dx.hyperbolicTangent=Dx.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,Bx(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},Dx.inverseCosine=Dx.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?t.isNeg()?Yx(n,i,o):new n(0):new n(NaN):t.isZero()?Yx(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,t=t.asin(),e=Yx(n,i+4,o).times(.5),n.precision=i,n.rounding=o,e.minus(t))},Dx.inverseHyperbolicCosine=Dx.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,Mx=!1,n=n.times(n).minus(1).sqrt().plus(n),Mx=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},Dx.inverseHyperbolicSine=Dx.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,Mx=!1,n=n.times(n).plus(1).sqrt().plus(n),Mx=!0,r.precision=e,r.rounding=t,n.ln())},Dx.inverseHyperbolicTangent=Dx.atanh=function(){var e,t,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?Rx(new o(i),e,t,!0):(o.precision=n=r-i.e,i=Bx(i.plus(1),new o(1).minus(i),n+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)},Dx.inverseSine=Dx.asin=function(){var e,t,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==t?0===t?((e=Yx(o,n+4,r).times(.5)).s=i.s,e):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},Dx.inverseTangent=Dx.atan=function(){var e,t,n,r,i,o,a,s,u,c=this,l=c.constructor,d=l.precision,h=l.rounding;if(c.isFinite()){if(c.isZero())return new l(c);if(c.abs().eq(1)&&d+4<=Cx)return(a=Yx(l,d+4,h).times(.25)).s=c.s,a}else{if(!c.s)return new l(NaN);if(d+4<=Cx)return(a=Yx(l,d+4,h).times(.5)).s=c.s,a}for(l.precision=s=d+10,l.rounding=1,e=n=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(Mx=!1,t=Math.ceil(s/7),r=1,u=c.times(c),a=new l(c),i=c;-1!==e;)if(i=i.times(u),o=a.minus(i.div(r+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(r+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return n&&(a=a.times(2<this.d.length-2},Dx.isNaN=function(){return!this.s},Dx.isNegative=Dx.isNeg=function(){return this.s<0},Dx.isPositive=Dx.isPos=function(){return this.s>0},Dx.isZero=function(){return!!this.d&&0===this.d[0]},Dx.lessThan=Dx.lt=function(e){return this.cmp(e)<0},Dx.lessThanOrEqualTo=Dx.lte=function(e){return this.cmp(e)<1},Dx.logarithm=Dx.log=function(e){var t,n,r,i,o,a,s,u,c=this,l=c.constructor,d=l.precision,h=l.rounding;if(null==e)e=new l(10),t=!0;else{if(n=(e=new l(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new l(NaN);t=e.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new l(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(t)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(Mx=!1,a=Jx(c,s=d+5),r=t?Qx(l,s+10):Jx(e,s),_x((u=Bx(a,r,s,1)).d,i=d,h))do{if(a=Jx(c,s+=10),r=t?Qx(l,s+10):Jx(e,s),u=Bx(a,r,s,1),!o){+Ox(u.d).slice(i+1,i+15)+1==1e14&&(u=Rx(u,d+1,0));break}}while(_x(u.d,i+=10,h));return Mx=!0,Rx(u,d,h)},Dx.minus=Dx.sub=function(e){var t,n,r,i,o,a,s,u,c,l,d,h,p=this,f=p.constructor;if(e=new f(e),!p.d||!e.d)return p.s&&e.s?p.d?e.s=-e.s:e=new f(e.d||p.s!==e.s?p:NaN):e=new f(NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(c=p.d,h=e.d,s=f.precision,u=f.rounding,!c[0]||!h[0]){if(h[0])e.s=-e.s;else{if(!c[0])return new f(3===u?-0:0);e=new f(p)}return Mx?Rx(e,s,u):e}if(n=Nx(e.e/7),l=Nx(p.e/7),c=c.slice(),o=l-n){for((d=o<0)?(t=c,o=-o,a=h.length):(t=h,n=l,a=c.length),o>(r=Math.max(Math.ceil(s/7),a)+2)&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for((d=(r=c.length)<(a=h.length))&&(a=r),r=0;r0;--r)c[a++]=0;for(r=h.length;r>o;){if(c[--r](a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=c.length)-(i=l.length)<0&&(i=a,n=l,l=c,c=n),t=0;i;)t=(c[--i]=c[i]+l[i]+t)/Sx|0,c[i]%=Sx;for(t&&(c.unshift(t),++r),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=Wx(c,r),Mx?Rx(e,s,u):e},Dx.precision=Dx.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Ax+e);return n.d?(t=Fx(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},Dx.round=function(){var e=this,t=e.constructor;return Rx(new t(e),e.e+1,t.rounding)},Dx.sine=Dx.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:eS(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=t.times(1/tS(5,n)),t=eS(e,2,t,t);for(var i,o=new e(5),a=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(r,nS(r,n)),r.precision=e,r.rounding=t,Rx(fx>2?n.neg():n,e,t,!0)):new r(NaN)},Dx.squareRoot=Dx.sqrt=function(){var e,t,n,r,i,o,a=this,s=a.d,u=a.e,c=a.s,l=a.constructor;if(1!==c||!s||!s[0])return new l(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(Mx=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=Ox(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(t),u=Nx((u+1)/2)-(u<0||u%2),r=new l(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new l(c.toString()),n=(u=l.precision)+3;;)if(r=(o=r).plus(Bx(a,o,n+2,1)).times(.5),Ox(o.d).slice(0,n)===(t=Ox(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Rx(r,u+1,1),e=!r.times(r).eq(a));break}if(!i&&(Rx(o,u+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return Mx=!0,Rx(r,u,l.rounding,e)},Dx.tangent=Dx.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=Bx(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,Rx(2==fx||4==fx?n.neg():n,e,t,!0)):new r(NaN)},Dx.times=Dx.mul=function(e){var t,n,r,i,o,a,s,u,c,l=this,d=l.constructor,h=l.d,p=(e=new d(e)).d;if(e.s*=l.s,!(h&&h[0]&&p&&p[0]))return new d(!e.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*e.s:e.s/0);for(n=Nx(l.e/7)+Nx(e.e/7),(u=h.length)<(c=p.length)&&(o=h,h=p,p=o,a=u,u=c,c=a),o=[],r=a=u+c;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=u+r;i>r;)s=o[i]+p[r]*h[i-r-1]+t,o[i--]=s%Sx|0,t=s/Sx|0;o[i]=(o[i]+t)%Sx|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=Wx(o,n),Mx?Rx(e,d.precision,d.rounding):e},Dx.toBinary=function(e,t){return rS(this,2,e,t)},Dx.toDecimalPlaces=Dx.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(zx(e,0,1e9),void 0===t?t=r.rounding:zx(t,0,8),Rx(n,e+n.e+1,t))},Dx.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=Ux(r,!0):(zx(e,0,1e9),void 0===t?t=i.rounding:zx(t,0,8),n=Ux(r=Rx(new i(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},Dx.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?n=Ux(i):(zx(e,0,1e9),void 0===t?t=o.rounding:zx(t,0,8),n=Ux(r=Rx(new o(i),e+i.e+1,t),!1,e+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},Dx.toFraction=function(e){var t,n,r,i,o,a,s,u,c,l,d,h,p=this,f=p.d,y=p.constructor;if(!f)return new y(p);if(c=n=new y(1),r=u=new y(0),a=(o=(t=new y(r)).e=Fx(f)-p.e-1)%7,t.d[0]=Tx(10,a<0?7+a:a),null==e)e=o>0?t:c;else{if(!(s=new y(e)).isInt()||s.lt(c))throw Error(Ax+s);e=s.gt(t)?o>0?t:c:s}for(Mx=!1,s=new y(Ox(f)),l=y.precision,y.precision=o=7*f.length*2;d=Bx(s,t,0,1,1),1!=(i=n.plus(d.times(r))).cmp(e);)n=r,r=i,i=c,c=u.plus(d.times(i)),u=i,i=t,t=s.minus(d.times(i)),s=i;return i=Bx(e.minus(n),r,0,1,1),u=u.plus(i.times(c)),n=n.plus(i.times(r)),u.s=c.s=p.s,h=Bx(c,r,o,1).minus(p).abs().cmp(Bx(u,n,o,1).minus(p).abs())<1?[c,r]:[u,n],y.precision=l,Mx=!0,h},Dx.toHexadecimal=Dx.toHex=function(e,t){return rS(this,16,e,t)},Dx.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:zx(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(Mx=!1,n=Bx(n,e,0,t,1).times(e),Mx=!0,Rx(n)):(e.s=n.s,n=e),n},Dx.toNumber=function(){return+this},Dx.toOctal=function(e,t){return rS(this,8,e,t)},Dx.toPower=Dx.pow=function(e){var t,n,r,i,o,a,s=this,u=s.constructor,c=+(e=new u(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new u(Tx(+s,c));if((s=new u(s)).eq(1))return s;if(r=u.precision,o=u.rounding,e.eq(1))return Rx(s,r,o);if((t=Nx(e.e/7))>=e.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return i=Hx(u,s,n,r),e.s<0?new u(1).div(i):Rx(i,r,o);if((a=s.s)<0){if(tu.maxE+1||t0?a/0:0):(Mx=!1,u.rounding=s.s=1,n=Math.min(12,(t+"").length),(i=Zx(e.times(Jx(s,r+n)),r)).d&&_x((i=Rx(i,r+5,1)).d,r,o)&&(t=r+10,+Ox((i=Rx(Zx(e.times(Jx(s,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=Rx(i,r+1,0))),i.s=a,Mx=!0,u.rounding=o,Rx(i,r,o))},Dx.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=Ux(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(zx(e,1,1e9),void 0===t?t=i.rounding:zx(t,0,8),n=Ux(r=Rx(new i(r),e,t),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},Dx.toSignificantDigits=Dx.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(zx(e,1,1e9),void 0===t?t=n.rounding:zx(t,0,8)),Rx(new n(this),e,t)},Dx.toString=function(){var e=this,t=e.constructor,n=Ux(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},Dx.truncated=Dx.trunc=function(){return Rx(new this.constructor(this),this.e+1,1)},Dx.valueOf=Dx.toJSON=function(){var e=this,t=e.constructor,n=Ux(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var Bx=function(){function e(e,t,n){var r,i=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+i,e[o]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;)e.shift()}return function(r,i,o,a,s,u){var c,l,d,h,p,f,y,m,g,v,b,w,M,A,E,N,T,I,k,L,x=r.constructor,S=r.s==i.s?1:-1,j=r.d,C=i.d;if(!(j&&j[0]&&C&&C[0]))return new x(r.s&&i.s&&(j?!C||j[0]!=C[0]:C)?j&&0==j[0]||!C?0*S:S/0:NaN);for(u?(p=1,l=r.e-i.e):(u=Sx,p=7,l=Nx(r.e/p)-Nx(i.e/p)),k=C.length,T=j.length,v=(g=new x(S)).d=[],d=0;C[d]==(j[d]||0);d++);if(C[d]>(j[d]||0)&&l--,null==o?(A=o=x.precision,a=x.rounding):A=s?o+(r.e-i.e)+1:o,A<0)v.push(1),f=!0;else{if(A=A/p+2|0,d=0,1==k){for(h=0,C=C[0],A++;(d1&&(C=e(C,h,u),j=e(j,h,u),k=C.length,T=j.length),N=k,w=(b=j.slice(0,k)).length;w=u/2&&++I;do{h=0,(c=t(C,b,k,w))<0?(M=b[0],k!=w&&(M=M*u+(b[1]||0)),(h=M/I|0)>1?(h>=u&&(h=u-1),1==(c=t(y=e(C,h,u),b,m=y.length,w=b.length))&&(h--,n(y,k=10;h/=10)d++;g.e=d+l*p-1,Rx(g,s?o+g.e+1:o,a,f)}return g}}();function Rx(e,t,n,r){var i,o,a,s,u,c,l,d,h,p=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(i=1,s=d[0];s>=10;s/=10)i++;if((o=t-i)<0)o+=7,a=t,u=(l=d[h=0])/Tx(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/7))>=(s=d.length)){if(!r)break e;for(;s++<=h;)d.push(0);l=u=0,i=1,a=(o%=7)-7+1}else{for(l=s=d[h],i=1;s>=10;s/=10)i++;u=(a=(o%=7)-7+i)<0?0:l/Tx(10,i-a-1)%10|0}if(r=r||t<0||void 0!==d[h+1]||(a<0?l:l%Tx(10,i-a-1)),c=n<4?(u||r)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(o>0?a>0?l/Tx(10,i-a):0:d[h-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,c?(t-=e.e+1,d[0]=Tx(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==o?(d.length=h,s=1,h--):(d.length=h+1,s=Tx(10,7-o),d[h]=a>0?(l/Tx(10,i-a)%Tx(10,a)|0)*s:0),c)for(;;){if(0==h){for(o=1,a=d[0];a>=10;a/=10)o++;for(a=d[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,d[0]==Sx&&(d[0]=1));break}if(d[h]+=s,d[h]!=Sx)break;d[h--]=0,s=1}for(o=d.length;0===d[--o];)d.pop()}return Mx&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+Vx(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+Vx(-i-1)+o,n&&(r=n-a)>0&&(o+=Vx(r))):i>=a?(o+=Vx(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Vx(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=Vx(r))),o}function Wx(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function Qx(e,t,n){if(t>jx)throw Mx=!0,n&&(e.precision=n),Error("[DecimalError] Precision limit exceeded");return Rx(new e(vx),t,1,!0)}function Yx(e,t,n){if(t>Cx)throw Error("[DecimalError] Precision limit exceeded");return Rx(new e(bx),t,n,!0)}function Fx(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function Vx(e){for(var t="";e--;)t+="0";return t}function Hx(e,t,n,r){var i,o=new e(1),a=Math.ceil(r/7+4);for(Mx=!1;;){if(n%2&&iS((o=o.times(t)).d,a)&&(i=!0),0===(n=Nx(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}iS((t=t.times(t)).d,a)}return Mx=!0,o}function Gx(e){return 1&e.d[e.d.length-1]}function qx(e,t,n){for(var r,i=new e(t[0]),o=0;++o17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(Mx=!1,u=f):u=t,s=new h(.03125);e.e>-2;)e=e.times(s),d+=5;for(u+=r=Math.log(Tx(2,d))/Math.LN10*2+5|0,n=o=a=new h(1),h.precision=u;;){if(o=Rx(o.times(e),u,1),n=n.times(++l),Ox((s=a.plus(Bx(o,n,u,1))).d).slice(0,u)===Ox(a.d).slice(0,u)){for(i=d;i--;)a=Rx(a.times(a),u,1);if(null!=t)return h.precision=f,a;if(!(c<3&&_x(a.d,u-r,p,c)))return Rx(a,h.precision=f,p,Mx=!0);h.precision=u+=10,n=o=s=new h(1),l=0,c++}a=s}}function Jx(e,t){var n,r,i,o,a,s,u,c,l,d,h,p=1,f=e,y=f.d,m=f.constructor,g=m.rounding,v=m.precision;if(f.s<0||!y||!y[0]||!f.e&&1==y[0]&&1==y.length)return new m(y&&!y[0]?-1/0:1!=f.s?NaN:y?0:f);if(null==t?(Mx=!1,l=v):l=t,m.precision=l+=10,r=(n=Ox(y)).charAt(0),!(Math.abs(o=f.e)<15e14))return c=Qx(m,l+2,v).times(o+""),f=Jx(new m(r+"."+n.slice(1)),l-10).plus(c),m.precision=v,null==t?Rx(f,v,g,Mx=!0):f;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Ox((f=f.times(e)).d)).charAt(0),p++;for(o=f.e,r>1?(f=new m("0."+n),o++):f=new m(r+"."+n.slice(1)),d=f,u=a=f=Bx(f.minus(1),f.plus(1),l,1),h=Rx(f.times(f),l,1),i=3;;){if(a=Rx(a.times(h),l,1),Ox((c=u.plus(Bx(a,new m(i),l,1))).d).slice(0,l)===Ox(u.d).slice(0,l)){if(u=u.times(2),0!==o&&(u=u.plus(Qx(m,l+2,v).times(o+""))),u=Bx(u,new m(p),l,1),null!=t)return m.precision=v,u;if(!_x(u.d,l-10,g,s))return Rx(u,m.precision=v,g,Mx=!0);m.precision=l+=10,c=a=f=Bx(d.minus(1),d.plus(1),l,1),h=Rx(f.times(f),l,1),i=s=1}u=c,i+=2}}function Xx(e){return String(e.s*e.s/0)}function Kx(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i)){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),re.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),xx.test(t))return Kx(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(kx.test(t))n=16,t=t.toLowerCase();else if(Ix.test(t))n=2;else{if(!Lx.test(t))throw Error(Ax+t);n=8}for((o=t.search(/p/i))>0?(u=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,r=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=Hx(r,new r(n),o,2*o)),o=l=(c=Px(t,n,Sx)).length-1;0===c[o];--o)c.pop();return o<0?new r(0*e.s):(e.e=Wx(c,l),e.d=c,Mx=!1,a&&(e=Bx(e,i,4*s)),u&&(e=e.times(Math.abs(u)<54?Tx(2,u):VS.pow(2,u))),Mx=!0,e)}function eS(e,t,n,r,i){var o,a,s,u,c=e.precision,l=Math.ceil(c/7);for(Mx=!1,u=n.times(n),s=new e(r);;){if(a=Bx(s.times(u),new e(t++*t++),c,1),s=i?r.plus(a):r.minus(a),r=Bx(a.times(u),new e(t++*t++),c,1),void 0!==(a=s.plus(r)).d[l]){for(o=l;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=r,r=a,a=o}return Mx=!0,a.d.length=l+1,a}function tS(e,t){for(var n=e;--t;)n*=e;return n}function nS(e,t){var n,r=t.s<0,i=Yx(e,e.precision,1),o=i.times(.5);if((t=t.abs()).lte(o))return fx=r?4:1,t;if((n=t.divToInt(i)).isZero())fx=r?3:2;else{if((t=t.minus(n.times(i))).lte(o))return fx=Gx(n)?r?2:3:r?4:1,t;fx=Gx(n)?r?1:4:r?3:2}return t.minus(i).abs()}function rS(e,t,n,r){var i,o,a,s,u,c,l,d,h,p=e.constructor,f=void 0!==n;if(f?(zx(n,1,1e9),void 0===r?r=p.rounding:zx(r,0,8)):(n=p.precision,r=p.rounding),e.isFinite()){for(f?(i=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):i=t,(a=(l=Ux(e)).indexOf("."))>=0&&(l=l.replace(".",""),(h=new p(1)).e=l.length-a,h.d=Px(Ux(h),10,i),h.e=h.d.length),o=u=(d=Px(l,10,i)).length;0==d[--u];)d.pop();if(d[0]){if(a<0?o--:((e=new p(e)).d=d,e.e=o,d=(e=Bx(e,h,n,r,0,i)).d,o=e.e,c=px),a=d[n],s=i/2,c=c||void 0!==d[n+1],c=r<4?(void 0!==a||c)&&(0===r||r===(e.s<0?3:2)):a>s||a===s&&(4===r||c||6===r&&1&d[n-1]||r===(e.s<0?8:7)),d.length=n,c)for(;++d[--n]>i-1;)d[n]=0,n||(++o,d.unshift(1));for(u=d.length;!d[u-1];--u);for(a=0,l="";a1)if(16==t||8==t){for(a=16==t?4:3,--u;u%a;u++)l+="0";for(u=(d=Px(l,i,t)).length;!d[u-1];--u);for(a=1,l="1.";au)for(o-=u;o--;)l+="0";else ot)return e.length=t,!0}function oS(e){return new this(e).abs()}function aS(e){return new this(e).acos()}function sS(e){return new this(e).acosh()}function uS(e,t){return new this(e).plus(t)}function cS(e){return new this(e).asin()}function lS(e){return new this(e).asinh()}function dS(e){return new this(e).atan()}function hS(e){return new this(e).atanh()}function pS(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,o=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?Yx(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=Yx(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,n=this.atan(Bx(e,t,o,1)),t=Yx(this,o,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(Bx(e,t,o,1)):(n=Yx(this,o,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function fS(e){return new this(e).cbrt()}function yS(e){return Rx(e=new this(e),e.e+1,2)}function mS(e,t,n){return new this(e).clamp(t,n)}function gS(e){if(!e||"object"!=typeof e)throw Error("[DecimalError] Object expected");var t,n,r,i=!0===e.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-mx,0,"toExpPos",0,mx,"maxE",0,mx,"minE",-mx,0,"modulo",0,9];for(t=0;t=o[t+1]&&r<=o[t+2]))throw Error(Ax+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=wx[n]),void 0!==(r=e[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(Ax+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");this[n]=!0}else this[n]=!1}return this}function vS(e){return new this(e).cos()}function bS(e){return new this(e).cosh()}function wS(e,t){return new this(e).div(t)}function MS(e){return new this(e).exp()}function AS(e){return Rx(e=new this(e),e.e+1,3)}function ES(){var e,t,n=new this(0);for(Mx=!1,e=0;e=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");for(t=crypto.randomBytes(r*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(s.push(i%1e7),o+=4);o=r/4}else for(;o=10;i/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=s,a}function zS(e){return Rx(e=new this(e),e.e+1,this.rounding)}function _S(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function PS(e){return new this(e).sin()}function BS(e){return new this(e).sinh()}function RS(e){return new this(e).sqrt()}function US(e,t){return new this(e).sub(t)}function WS(){var e=0,t=arguments,n=new this(t[e]);for(Mx=!1;n.s&&++eo.maxE?(i.e=NaN,i.d=null):e.e=10;n/=10)t++;return void(Mx?t>o.maxE?(i.e=NaN,i.d=null):tn.call(t,...e))),t=void 0)}return n}vx=new VS(vx),bx=new VS(bx);class GS{constructor({blockchain:e,tokenIn:t,decimalsIn:n,tokenOut:r,decimalsOut:i,path:o,pools:a,amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,exchange:d,approvalRequired:h,getApproval:p,getPrep:f,getTransaction:y}){this.blockchain=e,this.tokenIn=t,this.decimalsIn=n,this.tokenOut=r,this.decimalsOut=i,this.path=o,this.pools=a,this.amountIn=HS([s,"optionalAccess",e=>e.toString,"call",e=>e()]),this.amountOutMin=HS([l,"optionalAccess",e=>e.toString,"call",e=>e()]),this.amountOut=HS([c,"optionalAccess",e=>e.toString,"call",e=>e()]),this.amountInMax=HS([u,"optionalAccess",e=>e.toString,"call",e=>e()]),this.exchange=d,this.getPrep=f,this.getTransaction=y}}let qS=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];qS.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],qS.solana=["solana"];const ZS=async({exchange:e,blockchain:t,pools:n,exchangePath:r,amountIn:i,amountOut:o})=>{let a=i.add(i.mul(100*parseFloat("0.5")).div(1e4));if(!qS.evm.includes(e.blockchain||t))return a;const s=await PI({blockchain:e.blockchain||t,method:"latestBlockNumber"});let u=[];for(var c=0;c<=2;c++)u.push(s-c);const l=await Promise.all(u.map((async i=>{let{amountIn:a}=await e.getAmounts({exchange:e,blockchain:t,path:r,pools:n,amountOut:o,block:i});return a})));if(!l[0]||!l[1]||!l[2])return a;let d;if(l[0].gt(l[1])&&l[1].gt(l[2])){const e=l[0].sub(l[1]),t=l[1].sub(l[2]),n=e.add(t).div(2);if(d=l[0].add(n),d.gt(a))return d}else if(!l[0].eq(l[1])&&!l[1].eq(l[2])){const e=l[0].sub(l[1]).abs(),t=l[1].sub(l[2]).abs();let n,r;if(n=e.lt(t)?e:t,r=l[0].gt(l[1])&&l[0].gt(l[2])?l[0]:l[1].gt(l[2])&&l[1].gt(l[0])?l[1]:l[2],d=r.add(n),d.gt(a))return d}return a},JS=async({exchange:e,blockchain:t,pools:n,exchangePath:r,amounts:i,tokenIn:o,tokenOut:a,amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,amountInInput:d,amountOutInput:h,amountInMaxInput:p,amountOutMinInput:f})=>{if(f||h){if(qS.evm.includes(e.blockchain||t))s=u=await ZS({exchange:e,blockchain:t,pools:n,exchangePath:r,amountIn:s,amountOut:f||c});else if(qS.solana.includes(e.blockchain||t)){let t=[];await Promise.all(r.map(((o,a)=>{if(0!=a){let o=ZS({exchange:e,pools:n,exchangePath:[r[a-1],r[a]],amountIn:i[a-1],amountOut:i[a]});return o.then((e=>t.push(e))),o}}))),t.push(i[i.length-1]),s=u=(i=t)[0]}}else if((p||d)&&qS.solana.includes(e.blockchain||t)){let t=[];await Promise.all(r.map(((n,o)=>{if(0!==o&&on.sub(n.mul(100*parseFloat("0.5")).div(1e4)))({exchange:e,exchangePath:[r[o-1],r[o]],amountIn:i[o-1],amountOut:i[o]});return n.then((e=>(t.unshift(e),e))),n}}))),t.push(i[0]),c=l=(i=t.slice().reverse())[i.length-1]}return{amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,amounts:i}},XS=e=>e.match("0x")?Xm(e):e;let KS=async({amount:e,blockchain:t,address:n})=>await ox.BigNumber({amount:e,blockchain:t,address:n}),$S=async({blockchain:e,exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{let u={exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s};return o&&"number"==typeof o&&(u.amountOut=await KS({amount:o,blockchain:e,address:r})),s&&"number"==typeof s&&(u.amountOutMin=await KS({amount:s,blockchain:e,address:r})),i&&"number"==typeof i&&(u.amountIn=await KS({amount:i,blockchain:e,address:n})),a&&"number"==typeof a&&(u.amountInMax=await KS({amount:a,blockchain:e,address:n})),u};class ej{constructor(...e){Object.assign(this,...e)}async route({blockchain:e,tokenIn:t,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}){return t===n?Promise.resolve():(void 0===e&&(this.scope?e=this.scope:1===this.blockchains.length&&(e=this.blockchains[0])),(({blockchain:e,exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if(void 0===e&&null!=t.blockchains&&t.blockchains.length>1)throw"You need to provide a blockchain when calling route on an exchange that supports multiple blockchains!";if(void 0!==o&&void 0!==i)throw"You cannot set amountIn and amountOut at the same time, use amountInMax or amountOutMin to describe the non exact part of the swap!";if(void 0!==a&&void 0!==s)throw"You cannot set amountInMax and amountOutMin at the same time, use amountIn or amountOut to describe the part of the swap that needs to be exact!";if(void 0!==i&&void 0!==a)throw"Setting amountIn and amountInMax at the same time makes no sense. Decide if amountIn needs to be exact or not!";if(void 0!==o&&void 0!==s)throw"Setting amountOut and amountOutMin at the same time makes no sense. Decide if amountOut needs to be exact or not!"})({blockchain:e,exchange:this,tokenIn:t,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}),await(({blockchain:e,exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s,findPath:u,getAmounts:c,getPrep:l,getTransaction:d,slippage:h})=>{if(n=XS(n),r=XS(r),[i,o,a,s].filter(Boolean).length>1)throw"You can only pass one: amountIn, amountOut, amountInMax or amountOutMin";if([i,o,a,s].filter(Boolean).length<1)throw"You need to pass exactly one: amountIn, amountOut, amountInMax or amountOutMin";return new Promise((async p=>{let{path:f,exchangePath:y,pools:m}=await u({blockchain:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s});if(void 0===f||0==f.length)return p();let g,[v,b,w,M]=[i,o,a,s];try{({amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g}=await c({exchange:t,blockchain:e,path:f,pools:m,tokenIn:n,tokenOut:r,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s}))}catch(e){return p()}if([i,a,o,s].every((e=>null==e)))return p();if(h||t.slippage)try{({amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g}=await JS({exchange:t,blockchain:e,pools:m,exchangePath:y,amounts:g,tokenIn:n,tokenOut:r,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amountInInput:v,amountOutInput:b,amountInMaxInput:w,amountOutMinInput:M}))}catch(e){return p()}const A=await new ox({blockchain:e,address:n}).decimals(),E=await new ox({blockchain:e,address:r}).decimals();p(new GS({blockchain:e,tokenIn:n,decimalsIn:A,tokenOut:r,decimalsOut:E,path:f,pools:m,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,exchange:t,getPrep:async({account:o})=>await l({exchange:t,blockchain:e,tokenIn:n,tokenOut:r,amountIn:i||a,account:o}),getTransaction:async({account:n,permit2:r,inputTokenPushed:u})=>await d({exchange:t,blockchain:e,pools:m,path:f,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g,amountInInput:v,amountOutInput:b,amountInMaxInput:w,amountOutMinInput:M,account:n,permit2:r,inputTokenPushed:u})}))}))})({...await $S({blockchain:e,exchange:this,tokenIn:t,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}),blockchain:e,findPath:this.findPath,getAmounts:this.getAmounts,getPrep:this.getPrep,getTransaction:this.getTransaction,slippage:this.slippage}))}}function tj(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const nj=({blockchain:e,exchange:t,path:n})=>{if(!n)return;let r=n.map(((t,r)=>t===he[e].currency.address&&n[r+1]!=he[e].wrapped.address&&n[r-1]!=he[e].wrapped.address?he[e].wrapped.address:t));return r[0]==he[e].currency.address&&r[1]==he[e].wrapped.address?r.splice(0,1):r[r.length-1]==he[e].currency.address&&r[r.length-2]==he[e].wrapped.address&&r.splice(r.length-1,1),r},rj=({reserves:e,min:t,token:n,token0:r,token1:i,decimals:o})=>r.toLowerCase()==n.toLowerCase()?e[0].gte(lI(t.toString(),o)):i.toLowerCase()==n.toLowerCase()&&e[1].gte(lI(t.toString(),o)),ij=async({blockchain:e,exchange:t,path:n})=>{const r=nj({blockchain:e,exchange:t,path:n});if(!r||1===r.length)return!1;try{let i=await PI({blockchain:e,address:t[e].factory.address,method:"getPair",api:t[e].factory.api,cache:36e5,params:nj({blockchain:e,exchange:t,path:n})});if(!i||i==he[e].zero)return!1;let[o,a,s]=await Promise.all([PI({blockchain:e,address:i,method:"getReserves",api:t[e].pair.api,cache:36e5}),PI({blockchain:e,address:i,method:"token0",api:t[e].pair.api,cache:36e5}),PI({blockchain:e,address:i,method:"token1",api:t[e].pair.api,cache:36e5})]);if(r.includes(he[e].wrapped.address))return rj({min:1,token:he[e].wrapped.address,decimals:he[e].currency.decimals,reserves:o,token0:a,token1:s});if(n.find((t=>he[e].stables.usd.includes(t)))){let t=n.find((t=>he[e].stables.usd.includes(t))),r=new ox({blockchain:e,address:t}),i=await r.decimals();return rj({min:1e3,token:t,decimals:i,reserves:o,token0:a,token1:s})}return!0}catch(e){return console.log("e",e),!1}};let oj=({blockchain:e,exchange:t,path:n,amountIn:r,tokenIn:i,tokenOut:o})=>new Promise((i=>{PI({blockchain:e,address:t[e].router.address,method:"getAmountsOut",api:t[e].router.api,params:{amountIn:r,path:nj({blockchain:e,exchange:t,path:n})}}).then((e=>{i(e[e.length-1])})).catch((()=>i()))})),aj=({blockchain:e,exchange:t,path:n,amountOut:r,block:i})=>new Promise((o=>{PI({blockchain:e,address:t[e].router.address,method:"getAmountsIn",api:t[e].router.api,params:{amountOut:r,path:nj({blockchain:e,exchange:t,path:n})},block:i}).then((e=>o(e[0]))).catch((()=>o()))}));var sj={findPath:async({blockchain:e,exchange:t,tokenIn:n,tokenOut:r})=>{if([n,r].includes(he[e].currency.address)&&[n,r].includes(he[e].wrapped.address))return{path:void 0,exchangePath:void 0};let i;if(await ij({blockchain:e,exchange:t,path:[n,r]}))i=[n,r];else if(n!=he[e].wrapped.address&&await ij({blockchain:e,exchange:t,path:[n,he[e].wrapped.address]})&&r!=he[e].wrapped.address&&await ij({blockchain:e,exchange:t,path:[r,he[e].wrapped.address]}))i=[n,he[e].wrapped.address,r];else if(!he[e].stables.usd.includes(n)&&(await Promise.all(he[e].stables.usd.map((r=>ij({blockchain:e,exchange:t,path:[n,r]}))))).filter(Boolean).length&&r!=he[e].wrapped.address&&await ij({blockchain:e,exchange:t,path:[he[e].wrapped.address,r]})){let o=(await Promise.all(he[e].stables.usd.map((async r=>await ij({blockchain:e,exchange:t,path:[n,r]})?r:void 0)))).find(Boolean);i=[n,o,he[e].wrapped.address,r]}else if(n!=he[e].wrapped.address&&await ij({blockchain:e,exchange:t,path:[n,he[e].wrapped.address]})&&!he[e].stables.usd.includes(r)&&(await Promise.all(he[e].stables.usd.map((n=>ij({blockchain:e,exchange:t,path:[n,r]}))))).filter(Boolean).length){let o=(await Promise.all(he[e].stables.usd.map((async n=>await ij({blockchain:e,exchange:t,path:[n,r]})?n:void 0)))).find(Boolean);i=[n,he[e].wrapped.address,o,r]}return tj([i,"optionalAccess",e=>e.length])&&i[0]==he[e].currency.address?i.splice(1,0,he[e].wrapped.address):tj([i,"optionalAccess",e=>e.length])&&i[i.length-1]==he[e].currency.address&&i.splice(i.length-1,0,he[e].wrapped.address),{path:i,exchangePath:nj({blockchain:e,exchange:t,path:i})}},pathExists:ij,getAmounts:async({blockchain:e,exchange:t,path:n,block:r,tokenIn:i,tokenOut:o,amountOut:a,amountIn:s,amountInMax:u,amountOutMin:c})=>{if(a){if(null==(s=await aj({blockchain:e,exchange:t,block:r,path:n,amountOut:a,tokenIn:i,tokenOut:o}))||u&&s.gt(u))return{};void 0===u&&(u=s)}else if(s){if(null==(a=await oj({blockchain:e,exchange:t,path:n,amountIn:s,tokenIn:i,tokenOut:o}))||c&&a.lt(c))return{};void 0===c&&(c=a)}else if(c){if(null==(s=await aj({blockchain:e,exchange:t,block:r,path:n,amountOut:c,tokenIn:i,tokenOut:o}))||u&&s.gt(u))return{};void 0===u&&(u=s)}else if(u){if(null==(a=await oj({blockchain:e,exchange:t,path:n,amountIn:u,tokenIn:i,tokenOut:o}))||c&&a.lt(c))return{};void 0===c&&(c=a)}return{amountOut:a,amountIn:s,amountInMax:u,amountOutMin:c}},getPrep:async({exchange:e,blockchain:t,tokenIn:n,amountIn:r,account:i})=>{if(n===he[t].currency.address)return;const o=await PI({blockchain:t,address:n,method:"allowance",api:ox[t][20],params:[i,e[t].router.address]});if(o.gte(r))return;return{transaction:{blockchain:t,from:i,to:n,api:ox[t][20],method:"approve",params:[e[t].router.address,r.sub(o)]}}},getTransaction:({exchange:e,blockchain:t,path:n,amountIn:r,amountInMax:i,amountOut:o,amountOutMin:a,amountInInput:s,amountOutInput:u,amountInMaxInput:c,amountOutMinInput:l,account:d})=>{let h={blockchain:t,from:d,to:e[t].router.address,api:e[t].router.api};return n[0]===he[t].currency.address?s||l?(h.method="swapExactETHForTokens",h.value=r.toString(),h.params={amountOutMin:a.toString()}):(u||c)&&(h.method="swapETHForExactTokens",h.value=i.toString(),h.params={amountOut:o.toString()}):n[n.length-1]===he[t].currency.address?s||l?(h.method="swapExactTokensForETH",h.params={amountIn:r.toString(),amountOutMin:a.toString()}):(u||c)&&(h.method="swapTokensForExactETH",h.params={amountInMax:i.toString(),amountOut:o.toString()}):s||l?(h.method="swapExactTokensForTokens",h.params={amountIn:r.toString(),amountOutMin:a.toString()}):(u||c)&&(h.method="swapTokensForExactTokens",h.params={amountInMax:i.toString(),amountOut:o.toString()}),h.params=Object.assign({},h.params,{path:nj({blockchain:t,exchange:e,path:n}),to:d,deadline:Math.round(Date.now()/1e3)+86400}),h},ROUTER:[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"amountADesired",type:"uint256"},{internalType:"uint256",name:"amountBDesired",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"addLiquidity",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"},{internalType:"uint256",name:"liquidity",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountTokenDesired",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"addLiquidityETH",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"},{internalType:"uint256",name:"liquidity",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"reserveIn",type:"uint256"},{internalType:"uint256",name:"reserveOut",type:"uint256"}],name:"getAmountIn",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"reserveIn",type:"uint256"},{internalType:"uint256",name:"reserveOut",type:"uint256"}],name:"getAmountOut",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"}],name:"getAmountsIn",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"}],name:"getAmountsOut",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"reserveA",type:"uint256"},{internalType:"uint256",name:"reserveB",type:"uint256"}],name:"quote",outputs:[{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidity",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityETH",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityETHSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityETHWithPermit",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityWithPermit",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapETHForExactTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactETHForTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactETHForTokensSupportingFeeOnTransferTokens",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForETH",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForETHSupportingFeeOnTransferTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokensSupportingFeeOnTransferTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactETH",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"_feeToSetter",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!1,internalType:"address",name:"pair",type:"address"},{indexed:!1,internalType:"uint256",name:"",type:"uint256"}],name:"PairCreated",type:"event"},{constant:!0,inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"allPairs",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"allPairsLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"}],name:"createPair",outputs:[{internalType:"address",name:"pair",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"feeTo",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"feeToSetter",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"getPair",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_feeTo",type:"address"}],name:"setFeeTo",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_feeToSetter",type:"address"}],name:"setFeeToSetter",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],PAIR:[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0In",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1In",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount0Out",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1Out",type:"uint256"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"Swap",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint112",name:"reserve0",type:"uint112"},{indexed:!1,internalType:"uint112",name:"reserve1",type:"uint112"}],name:"Sync",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"MINIMUM_LIQUIDITY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getReserves",outputs:[{internalType:"uint112",name:"_reserve0",type:"uint112"},{internalType:"uint112",name:"_reserve1",type:"uint112"},{internalType:"uint32",name:"_blockTimestampLast",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_token0",type:"address"},{internalType:"address",name:"_token1",type:"address"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"kLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"mint",outputs:[{internalType:"uint256",name:"liquidity",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"price0CumulativeLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"price1CumulativeLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"skim",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"amount0Out",type:"uint256"},{internalType:"uint256",name:"amount1Out",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"sync",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"}]};const uj={name:"honeyswap",label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GvU/FcLJryZdMjC09DidH6wlfL76774JUPZyWTMkmEZnIW59w1qgwxDOIHV5T99Yfz7xrRXDzqzGzfI+x78Txwd11N9dr0g52ukW8TciZwIfY2jk4FKn0F1AErFV25vmbeZ2BvG1lcxHXA9ZZK+scZ8wJDdIVlccuYE3wfwLeBXDOw79NPcLbm+gR4DniirqZ6Y2eZerTJQdAMT8BewHgCMAnwY38dpbux251AHPvDG28Da4ANXQW7RiPxw0XkduCCbh1zjzdVtcuNYtvEnIx9n4LY3yksx46B6Y699+l9YG3KKI0Y1p631tfMa+ruxF7vUtEWhVaO/bT5gAOBYdgD40lgN/Zbth1IKLqtJ46kE43ETxKRO4Fje3uug2xTZSHow73dqrktKn009j06GBgFDOK7xa2NwJcpozTusZq/6Ot9yusPf8TWxIuKi7m0NSU3AZ1+mTML7AEeVtVFgVD55y7a7TV5s9VWR5RVeC3vod4NDfW7louIB5hM9pdnr1RldiDkW1ZW4d2ZZVsZk0+Tcp0SCJXH/VW+G1Q5Fng2S2beB87xV/lOD4R8b3WbO08oCAH3Egj53vVX+c5SOBPoNE6kl2wH5qnqsf4q3wqHynSNghJwL4Eq33Nq6XHADbT77FwvSQF/UdUp/ipfuFC/Yp3Xv4FdUVbhTZaN8a795rOmJ4DBIkym5zFFr6rqRYFQ+QNlFd7MI6xySEG+ge05dKovFgj5rgKmAi92k30Tyiy1dFogVN6nUPZ8Iy/2C3UCf5VvHTA9VpuYCVyEPdCQwn4rU8ALqvpIIFS+I3deOs//AZb84smmUsyHAAAAAElFTkSuQmCC",protocol:"uniswap_v2",slippage:!0,blockchains:["gnosis"],gnosis:{router:{address:"0x1C232F01118CB8B424793ae03F870aa7D0ac7f77",api:sj.ROUTER},factory:{address:"0xA818b4F111Ccac7AA31D0BCc0806d64F2E0737D7",api:sj.FACTORY},pair:{api:sj.PAIR}}};var cj=e=>new ej(Object.assign(uj,{scope:e,findPath:e=>sj.findPath({...e,exchange:uj}),pathExists:e=>sj.pathExists({...e,exchange:uj}),getAmounts:e=>sj.getAmounts({...e,exchange:uj}),getPrep:e=>sj.getPrep({...e,exchange:uj}),getTransaction:e=>sj.getTransaction({...e,exchange:uj})}));const lj="79226673515401279992447579055",dj=e=>-e;class hj{static priceToSqrtPriceX64(e,t,n){return r=e.mul(VS.pow(10,n-t)).sqrt(),new Nf(r.mul(VS.pow(2,64)).floor().toFixed());var r}static sqrtPriceX64ToPrice(e,t,n){return(r=e,new VS(r.toString()).mul(VS.pow(2,-64))).pow(2).mul(VS.pow(10,t-n));var r}static tickIndexToSqrtPriceX64(e){return new Nf(e>0?function(e){let t;t=new Nf(0!=(1&e)?"79232123823359799118286999567":"79228162514264337593543950336");0!=(2&e)&&(t=pj(t.mul(new Nf("79236085330515764027303304731")),96,256));0!=(4&e)&&(t=pj(t.mul(new Nf("79244008939048815603706035061")),96,256));0!=(8&e)&&(t=pj(t.mul(new Nf("79259858533276714757314932305")),96,256));0!=(16&e)&&(t=pj(t.mul(new Nf("79291567232598584799939703904")),96,256));0!=(32&e)&&(t=pj(t.mul(new Nf("79355022692464371645785046466")),96,256));0!=(64&e)&&(t=pj(t.mul(new Nf("79482085999252804386437311141")),96,256));0!=(128&e)&&(t=pj(t.mul(new Nf("79736823300114093921829183326")),96,256));0!=(256&e)&&(t=pj(t.mul(new Nf("80248749790819932309965073892")),96,256));0!=(512&e)&&(t=pj(t.mul(new Nf("81282483887344747381513967011")),96,256));0!=(1024&e)&&(t=pj(t.mul(new Nf("83390072131320151908154831281")),96,256));0!=(2048&e)&&(t=pj(t.mul(new Nf("87770609709833776024991924138")),96,256));0!=(4096&e)&&(t=pj(t.mul(new Nf("97234110755111693312479820773")),96,256));0!=(8192&e)&&(t=pj(t.mul(new Nf("119332217159966728226237229890")),96,256));0!=(16384&e)&&(t=pj(t.mul(new Nf("179736315981702064433883588727")),96,256));0!=(32768&e)&&(t=pj(t.mul(new Nf("407748233172238350107850275304")),96,256));0!=(65536&e)&&(t=pj(t.mul(new Nf("2098478828474011932436660412517")),96,256));0!=(131072&e)&&(t=pj(t.mul(new Nf("55581415166113811149459800483533")),96,256));0!=(262144&e)&&(t=pj(t.mul(new Nf("38992368544603139932233054999993551")),96,256));return pj(t,32,256)}(e):function(e){let t,n=Math.abs(e);t=new Nf(0!=(1&n)?"18445821805675392311":"18446744073709551616");0!=(2&n)&&(t=pj(t.mul(new Nf("18444899583751176498")),64,256));0!=(4&n)&&(t=pj(t.mul(new Nf("18443055278223354162")),64,256));0!=(8&n)&&(t=pj(t.mul(new Nf("18439367220385604838")),64,256));0!=(16&n)&&(t=pj(t.mul(new Nf("18431993317065449817")),64,256));0!=(32&n)&&(t=pj(t.mul(new Nf("18417254355718160513")),64,256));0!=(64&n)&&(t=pj(t.mul(new Nf("18387811781193591352")),64,256));0!=(128&n)&&(t=pj(t.mul(new Nf("18329067761203520168")),64,256));0!=(256&n)&&(t=pj(t.mul(new Nf("18212142134806087854")),64,256));0!=(512&n)&&(t=pj(t.mul(new Nf("17980523815641551639")),64,256));0!=(1024&n)&&(t=pj(t.mul(new Nf("17526086738831147013")),64,256));0!=(2048&n)&&(t=pj(t.mul(new Nf("16651378430235024244")),64,256));0!=(4096&n)&&(t=pj(t.mul(new Nf("15030750278693429944")),64,256));0!=(8192&n)&&(t=pj(t.mul(new Nf("12247334978882834399")),64,256));0!=(16384&n)&&(t=pj(t.mul(new Nf("8131365268884726200")),64,256));0!=(32768&n)&&(t=pj(t.mul(new Nf("3584323654723342297")),64,256));0!=(65536&n)&&(t=pj(t.mul(new Nf("696457651847595233")),64,256));0!=(131072&n)&&(t=pj(t.mul(new Nf("26294789957452057")),64,256));0!=(262144&n)&&(t=pj(t.mul(new Nf("37481735321082")),64,256));return t}(e))}static sqrtPriceX64ToTickIndex(e){if(e.gt(new Nf(lj))||e.lt(new Nf("4295048016")))throw new Error("Provided sqrtPrice is not within the supported sqrtPrice range.");const t=e.bitLength()-1,n=function(e,t,n){let r=e.toTwos(n).shln(t);return r.imaskn(n+1),r.fromTwos(n)}(new Nf(t-64),32,128);let r=new Nf("8000000000000000","hex"),i=0,o=new Nf(0),a=t>=64?e.shrn(t-63):e.shln(63-t);for(;r.gt(new Nf(0))&&i<14;){a=a.mul(a);let e=a.shrn(127);a=a.shrn(63+e.toNumber()),o=o.add(r.mul(e)),r=r.shrn(1),i+=1}const s=o.shrn(32),u=n.add(s).mul(new Nf("59543866431248")),c=pj(u.sub(new Nf("184467440737095516")),64,128).toNumber(),l=pj(u.add(new Nf("15793534762490258745")),64,128).toNumber();if(c==l)return c;return hj.tickIndexToSqrtPriceX64(l).lte(e)?l:c}static tickIndexToPrice(e,t,n){return hj.sqrtPriceX64ToPrice(hj.tickIndexToSqrtPriceX64(e),t,n)}static priceToTickIndex(e,t,n){return hj.sqrtPriceX64ToTickIndex(hj.priceToSqrtPriceX64(e,t,n))}static priceToInitializableTickIndex(e,t,n,r){return((e,t)=>e-e%t)(hj.priceToTickIndex(e,t,n),r)}static invertPrice(e,t,n){const r=hj.priceToTickIndex(e,t,n),i=dj(r);return hj.tickIndexToPrice(i,n,t)}static invertSqrtPriceX64(e){const t=hj.sqrtPriceX64ToTickIndex(e),n=dj(t);return hj.tickIndexToSqrtPriceX64(n)}}function pj(e,t,n){let r=e.toTwos(n).shrn(t);return r.imaskn(n-t+1),r.fromTwos(n-t)}const fj=new Nf(1e4),yj=new Nf(1e6),mj=new Nf(0),gj=new Nf(1),vj=new Nf(2),bj=vj.pow(new Nf(64)).sub(gj);class wj extends Nf{toBuffer(){const e=super.toArray().reverse(),t=buffer.Buffer.from(e);if(8===t.length)return t;assert__default.default(t.length<8,"u64 too large");const n=buffer.Buffer.alloc(8);return t.copy(n),n}static fromBuffer(e){return assert__default.default(8===e.length,`Invalid buffer length: ${e.length}`),new wj([...e].reverse().map((e=>`00${e.toString(16)}`.slice(-2))).join(""),16)}}class Mj{static mul(e,t,n){const r=e.mul(t);if(this.isOverLimit(r,n))throw new Error(`Mul result higher than u${n}`);return r}static mulDiv(e,t,n,r){return this.mulDivRoundUpIf(e,t,n,!1,r)}static mulDivRoundUp(e,t,n,r){return this.mulDivRoundUpIf(e,t,n,!0,r)}static mulDivRoundUpIf(e,t,n,r,i){if(n.eq(mj))throw new Error("mulDiv denominator is zero");const o=this.mul(e,t,i),a=o.div(n);return r&&o.mod(n).gt(mj)?a.add(gj):a}static checked_mul_shift_right(e,t,n){return this.checked_mul_shift_right_round_up_if(e,t,!1,n)}static checked_mul_shift_right_round_up_if(e,t,n,r){if(e.eq(mj)||t.eq(mj))return mj;const i=this.mul(e,t,r);if(this.isOverLimit(i,r))throw new Error(`MulShiftRight overflowed u${r}.`);const o=i.div(new Nf(2).pow(new Nf(64)));const a=n&&o.and(bj).gt(mj);if(a&&o.eq(bj))throw new Error(`MulShiftRight overflowed u${r}.`);return a?o.add(gj):o}static isOverLimit(e,t){const n=vj.pow(new Nf(t)).sub(gj);return e.gt(n)}static divRoundUp(e,t){return this.divRoundUpIf(e,t,!0)}static divRoundUpIf(e,t,n){if(t.eq(mj))throw new Error("divRoundUpIf - divide by zero");let r=e.div(t);return n&&e.mod(t).gt(mj)?r.add(gj):r}}const Aj=(e,t,n)=>{const r=hj.tickIndexToSqrtPriceX64(e);return{nextTickPrice:r,nextSqrtPriceLimit:n?Nf.max(t,r):Nf.min(t,r)}},Ej=(e,t)=>e.gt(t)?[t,e]:[e,t],Nj=(e,t,n,r)=>{let[i,o]=Ej(e,t),a=o.sub(i),s=n.mul(a).shln(64),u=i.mul(o),c=s.div(u),l=s.mod(u),d=r&&!l.eq(mj)?c.add(gj):c;if(d.gt(bj))throw new Error("Results larger than U64");return d},Tj=(e,t,n,r)=>{let[i,o]=Ej(e,t),a=o.sub(i);return Mj.checked_mul_shift_right_round_up_if(n,a,r,128)},Ij=(e,t,n,r,i)=>r===i?((e,t,n,r)=>{if(n.eq(mj))return e;let i=Mj.mul(e,n,256),o=Mj.mul(t,e,256).shln(64);if(Mj.isOverLimit(o,256))throw new Error("getNextSqrtPriceFromARoundUp - numerator overflow u256");let a=t.shln(64);if(!r&&a.lte(i))throw new Error("getNextSqrtPriceFromARoundUp - Unable to divide currLiquidityX64 by product");let s=r?a.add(i):a.sub(i),u=Mj.divRoundUp(o,s);if(u.lt(new Nf("4295048016")))throw new Error("getNextSqrtPriceFromARoundUp - price less than min sqrt price");if(u.gt(new Nf(lj)))throw new Error("getNextSqrtPriceFromARoundUp - price less than max sqrt price");return u})(e,t,n,r):((e,t,n,r)=>{let i=n.shln(64),o=Mj.divRoundUpIf(i,t,!r);return r?e.add(o):e.sub(o)})(e,t,n,r),kj=(e,t,n,r,i)=>i===r?Nj(e,t,n,r):Tj(e,t,n,r),Lj=(e,t,n,r,i,o,a)=>{let s=kj(r,i,n,o,a),u=e;if(o){u=Mj.mulDiv(e,yj.sub(new Nf(t)),yj,128)}let c=u.gte(s)?i:Ij(r,n,u,o,a),l=c.eq(i),d=((e,t,n,r,i)=>i===r?Tj(e,t,n,!r):Nj(e,t,n,!r))(r,c,n,o,a);l||(s=kj(r,c,n,o,a));let h,p=o?s:d,f=o?d:s;if(!o&&f.gt(e)&&(f=e),o&&!l)h=e.sub(p);else{const e=new Nf(t);h=Mj.mulDivRoundUp(p,e,yj.sub(e),128)}return{amountIn:p,amountOut:f,nextPrice:c,feeAmount:h}},xj=(e,t,n)=>n?t.sub(e):t.add(e),Sj=(e,t,n,r,i)=>{let o=r,a=i,s=e;if(t>0){let e=((e,t)=>e.mul(new wj(t).div(fj)))(s,t);s=s.sub(e),o=o.add(r)}if(n.gt(mj)){const e=s.shln(64).div(n);a=a.add(e)}return{nextProtocolFee:o,nextFeeGrowthGlobalInput:a}},jj=Of([jf("mint"),jf("vault"),jf("authority"),zf("emissionsPerSecondX64"),zf("growthGlobalX64")]),Cj=Of([Bf("anchorDiscriminator"),jf("whirlpoolsConfig"),bf(Rf(),1,"whirlpoolBump"),_f("tickSpacing"),bf(Rf(),2,"tickSpacingSeed"),_f("feeRate"),_f("protocolFeeRate"),zf("liquidity"),zf("sqrtPrice"),Lf("tickCurrentIndex"),Bf("protocolFeeOwedA"),Bf("protocolFeeOwedB"),jf("tokenMintA"),jf("tokenVaultA"),zf("feeGrowthGlobalA"),jf("tokenMintB"),jf("tokenVaultB"),zf("feeGrowthGlobalB"),Bf("rewardLastUpdatedTimestamp"),bf(jj,3,"rewardInfos")]),Dj=Of([If("initialized"),kf("liquidityNet"),zf("liquidityGross"),zf("feeGrowthOutsideA"),zf("feeGrowthOutsideB"),bf(zf(),3,"reward_growths_outside")]),Oj=Of([Bf("anchorDiscriminator"),Lf("startTickIndex"),bf(Dj,88,"ticks"),jf("whirlpool")]),zj=(e,t,n)=>{const r=(Math.floor(e/t/88)+n)*t*88,i=88*t;if(r<-443636-(-443636%i+i))throw`startTickIndex is too small - - ${r}`;if(r>443636)throw`startTickIndex is too large - ${r}`;return r},_j=async({pool:e,freshWhirlpoolData:t,aToB:n})=>{const r=await(async({aToB:e,pool:t,tickSpacing:n,tickCurrentIndex:r})=>{const i=e?0:n;let o=0,a=[];for(let s=0;s<3;s++){let s;try{s=zj(r+i,n,o)}catch(e){return a}const u=(await yc.findProgramAddress([Ef.from("tick_array"),new yc(t.toString()).toBuffer(),Ef.from(s.toString())],new yc("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0];a.push(u),o=e?o-1:o+1}return a})({aToB:n,pool:e,tickSpacing:t.tickSpacing,tickCurrentIndex:t.tickCurrentIndex});return await Promise.all(r.map((async(e,t)=>{let n;try{n=await PI({blockchain:"solana",address:e.toString(),api:Oj,cache:10})}catch(e){}return{address:e,data:n}})))};class Pj{static fromTickIndex(e,t){const n=Math.floor(Math.floor(e/t)/88);let r=Math.floor(e%(88*t)/t);return r<0&&(r=88+r),new Pj(n,r,t)}constructor(e,t,n){if(t>=88)throw new Error("Invalid offsetIndex - value has to be smaller than TICK_ARRAY_SIZE");if(t<0)throw new Error("Invalid offsetIndex - value is smaller than 0");if(n<0)throw new Error("Invalid tickSpacing - value is less than 0");this.arrayIndex=e,this.offsetIndex=t,this.tickSpacing=n}toTickIndex(){return 88*this.arrayIndex*this.tickSpacing+this.offsetIndex*this.tickSpacing}toNextInitializableTickIndex(){return Pj.fromTickIndex(this.toTickIndex()+this.tickSpacing,this.tickSpacing)}toPrevInitializableTickIndex(){return Pj.fromTickIndex(this.toTickIndex()-this.tickSpacing,this.tickSpacing)}}class Bj{constructor(e,t,n){if(!e[0]||!e[0].data)throw new Error("TickArray index 0 must be initialized");this.sequence=[];for(const t of e){if(!t||!t.data)break;this.sequence.push({address:t.address,data:t.data})}this.tickArrays=e,this.tickSpacing=t,this.aToB=n,this.touchedArrays=[...Array(this.sequence.length).fill(!1)],this.startArrayIndex=Pj.fromTickIndex(this.sequence[0].data.startTickIndex,this.tickSpacing).arrayIndex}isValidTickArray0(e){const t=this.aToB?0:this.tickSpacing,n=this.sequence[0].data;return this.checkIfIndexIsInTickArrayRange(n.startTickIndex,e+t)}getNumOfTouchedArrays(){return this.touchedArrays.filter((e=>!!e)).length}getTouchedArrays(e){let t=this.touchedArrays.reduce(((e,t,n)=>(t&&e.push(this.sequence[n].address),e)),[]);if(0===t.length)return[];const n=e-t.length;return n>0&&(t=t.concat(Array(n).fill(t[t.length-1]))),t}getTick(e){const t=Pj.fromTickIndex(e,this.tickSpacing);if(!this.isArrayIndexInBounds(t,this.aToB))throw new Error("Provided tick index is out of bounds for this sequence.");const n=this.getLocalArrayIndex(t.arrayIndex,this.aToB),r=this.sequence[n].data;if(this.touchedArrays[n]=!0,!r)throw new Error(`TickArray at index ${n} is not initialized.`);if(!this.checkIfIndexIsInTickArrayRange(r.startTickIndex,e))throw new Error(`TickArray at index ${n} is unexpected for this sequence.`);return r.ticks[t.offsetIndex]}findNextInitializedTickIndex(e){const t=this.aToB?e:e+this.tickSpacing;let n=Pj.fromTickIndex(t,this.tickSpacing);if(!this.isArrayIndexInBounds(n,this.aToB))throw new Error(`Swap input value traversed too many arrays. Out of bounds at attempt to traverse tick index - ${n.toTickIndex()}.`);for(;this.isArrayIndexInBounds(n,this.aToB);){const e=this.getTick(n.toTickIndex());if(e.initialized)return{nextIndex:n.toTickIndex(),nextTickData:e};n=this.aToB?n.toPrevInitializableTickIndex():n.toNextInitializableTickIndex()}return{nextIndex:Math.max(Math.min(this.aToB?n.toTickIndex()+this.tickSpacing:n.toTickIndex()-1,443636),-443636),nextTickData:null}}getLocalArrayIndex(e,t){return t?this.startArrayIndex-e:e-this.startArrayIndex}isArrayIndexInBounds(e,t){const n=this.getLocalArrayIndex(e.arrayIndex,t),r=this.sequence.length;return n>=0&&n=e&&t{try{const n=await PI({blockchain:"solana",address:e.pubkey.toString(),api:Cj,cache:10}),s=n.tokenMintA.toString()===t,u=await _j({pool:e.pubkey,freshWhirlpoolData:n,aToB:s}),c=new Bj(u,n.tickSpacing,s),l=new Nf(s?"4295048016":lj),d=!(!r&&!i),h=(({tokenAmount:e,aToB:t,freshWhirlpoolData:n,tickSequence:r,sqrtPriceLimit:i,amountSpecifiedIsInput:o})=>{let a=e,s=mj,u=n.sqrtPrice,c=n.liquidity,l=n.tickCurrentIndex,d=mj;const h=n.feeRate,p=n.protocolFeeRate;let f=new wj(0),y=t?n.feeGrowthGlobalA:n.feeGrowthGlobalB;for(;a.gt(mj)&&!i.eq(u);){let{nextIndex:e}=r.findNextInitializedTickIndex(l),{nextTickPrice:n,nextSqrtPriceLimit:m}=Aj(e,i,t);const g=Lj(a,h,c,u,m,o,t);d=d.add(g.feeAmount),o?(a=a.sub(g.amountIn),a=a.sub(g.feeAmount),s=s.add(g.amountOut)):(a=a.sub(g.amountOut),s=s.add(g.amountIn),s=s.add(g.feeAmount));let{nextProtocolFee:v,nextFeeGrowthGlobalInput:b}=Sj(g.feeAmount,p,c,f,y);if(f=v,y=b,g.nextPrice.eq(n)){const n=r.getTick(e);n.initialized&&(c=xj(n.liquidityNet,c,t)),l=t?e-1:e}else l=hj.sqrtPriceX64ToTickIndex(g.nextPrice);u=g.nextPrice}return s})({tokenAmount:new Nf((r||i||o||a).toString()),aToB:s,freshWhirlpoolData:n,tickSequence:c,sqrtPriceLimit:l,amountSpecifiedIsInput:d});return{price:h.toString(),tickArrays:u,aToB:s,sqrtPriceLimit:l}}catch(e){return{price:void 0,tickArrays:void 0,aToB:void 0,sqrtPriceLimit:void 0}}};let Uj=async(e,t)=>await PI("solana://whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc/getProgramAccounts",{params:{filters:[{dataSize:Cj.span},{memcmp:{offset:8,bytes:"2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ"}},{memcmp:{offset:101,bytes:e}},{memcmp:{offset:181,bytes:t}}]},api:Cj,cache:86400,cacheKey:["whirlpool",e.toString(),t.toString()].join("-")}),Wj=async({tokenIn:e,tokenOut:t,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o})=>{try{let a=await Uj(e,t);return 0===a.length&&(a=await Uj(t,e)),a=a.filter((e=>e.data.liquidity.gt(1))),a=(await Promise.all(a.map((async a=>{const{price:s,tickArrays:u,sqrtPriceLimit:c,aToB:l}=await Rj({account:a,tokenIn:e,tokenOut:t,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o});return void 0!==s&&{pubkey:a.pubkey,price:s,tickArrays:u,sqrtPriceLimit:c,aToB:l,data:{tokenVaultA:a.data.tokenVaultA,tokenVaultB:a.data.tokenVaultB}}})))).filter(Boolean),a}catch(e){return[]}},Qj=async({tokenIn:e,tokenOut:t,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o})=>{const a=await Wj({tokenIn:e,tokenOut:t,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o});if(!a||0===a.length)return;let s;return s=n||r?(e=>e.reduce(((e,t)=>zy.from(t.price).gt(zy.from(e.price))?t:e)))(a):(e=>e.reduce(((e,t)=>zy.from(t.price).lt(zy.from(e.price))?t:e)))(a),s};function Yj(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const Fj=he.solana;let Vj=({path:e})=>{if(!e)return;let t=e.map(((t,n)=>t===Fj.currency.address&&e[n+1]!=Fj.wrapped.address&&e[n-1]!=Fj.wrapped.address?Fj.wrapped.address:t));return t[0]==Fj.currency.address&&t[1]==Fj.wrapped.address?t.splice(0,1):t[t.length-1]==Fj.currency.address&&t[t.length-2]==Fj.wrapped.address&&t.splice(t.length-1,1),t},Hj=async({path:e,amountIn:t,amountInMax:n,amountOut:r,amountOutMin:i})=>1!=e.length&&(e=Vj({path:e}),(await Wj({tokenIn:e[0],tokenOut:e[1],amountIn:t,amountInMax:n,amountOut:r,amountOutMin:i})).length>0),Gj=async({path:e,amountIn:t,amountInMax:n})=>{let r=[zy.from(t||n)];if(r.push(zy.from((await Qj({tokenIn:e[0],tokenOut:e[1],amountIn:t,amountInMax:n})).price)),3===e.length&&r.push(zy.from((await Qj({tokenIn:e[1],tokenOut:e[2],amountIn:t?r[1]:void 0,amountInMax:n?r[1]:void 0})).price)),r.length==e.length)return r},qj=async({path:e,amountOut:t,amountOutMin:n})=>{e=e.slice().reverse();let r=[zy.from(t||n)];if(r.push(zy.from((await Qj({tokenIn:e[1],tokenOut:e[0],amountOut:t,amountOutMin:n})).price)),3===e.length&&r.push(zy.from((await Qj({tokenIn:e[2],tokenOut:e[1],amountOut:t?r[1]:void 0,amountOutMin:n?r[1]:void 0})).price)),r.length==e.length)return r.slice().reverse()};const Zj=he.solana,Jj=new Nf("14449647541112719096"),Xj=new Nf("16635068063392030915"),Kj=async({instructions:e,owner:t,token:n,account:r})=>{let i;try{i=!!await PI({blockchain:"solana",address:r.toString()})}catch(e){}i||e.push(await ox.solana.createAssociatedTokenAccountInstruction({token:n,owner:t,payer:t}))},$j=async({account:e,poolOne:t,tickArraysOne:n,tokenAccountOneA:r,tokenVaultOneA:i,tokenAccountOneB:o,tokenVaultOneB:a,poolTwo:s,tickArraysTwo:u,tokenAccountTwoA:c,tokenVaultTwoA:l,tokenAccountTwoB:d,tokenVaultTwoB:h})=>{let p=!1;const f=n.map(((e,t)=>!1!==p?n[p]:e.data?e:(p=t-1,n[t-1])));let y=!1;const m=u.map(((e,t)=>!1!==y?u[y]:e.data?e:(y=t-1,u[t-1])));return[{pubkey:new yc(ox.solana.TOKEN_PROGRAM),isWritable:!1,isSigner:!1},{pubkey:new yc(e),isWritable:!1,isSigner:!0},{pubkey:new yc(t.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(s.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(r.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(i.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(o.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(a.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(c.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(l.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(d.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(h.toString()),isWritable:!0,isSigner:!1},{pubkey:f[0].address,isWritable:!0,isSigner:!1},{pubkey:f[1].address,isWritable:!0,isSigner:!1},{pubkey:f[2].address,isWritable:!0,isSigner:!1},{pubkey:m[0].address,isWritable:!0,isSigner:!1},{pubkey:m[1].address,isWritable:!0,isSigner:!1},{pubkey:m[2].address,isWritable:!0,isSigner:!1},{pubkey:(await yc.findProgramAddress([Ef.from("oracle"),new yc(t.toString()).toBuffer()],new yc("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1},{pubkey:(await yc.findProgramAddress([Ef.from("oracle"),new yc(s.toString()).toBuffer()],new yc("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1}]},eC=({amount:e,otherAmountThreshold:t,amountSpecifiedIsInput:n,aToBOne:r,aToBTwo:i,sqrtPriceLimitOne:o,sqrtPriceLimitTwo:a})=>{let s,u;return s=Of([Bf("anchorDiscriminator"),Bf("amount"),Bf("otherAmountThreshold"),If("amountSpecifiedIsInput"),If("aToBOne"),If("aToBTwo"),zf("sqrtPriceLimitOne"),zf("sqrtPriceLimitTwo")]),u=Ef.alloc(s.span),s.encode({anchorDiscriminator:Xj,amount:new Nf(e.toString()),otherAmountThreshold:new Nf(t.toString()),amountSpecifiedIsInput:n,aToBOne:r,aToBTwo:i,sqrtPriceLimitOne:o,sqrtPriceLimitTwo:a},u),u},tC=async({account:e,pool:t,tokenAccountA:n,tokenVaultA:r,tokenAccountB:i,tokenVaultB:o,tickArrays:a})=>{let s=!1;const u=a.map(((e,t)=>!1!==s?a[s]:e.data?e:(s=t-1,a[t-1])));return[{pubkey:new yc(ox.solana.TOKEN_PROGRAM),isWritable:!1,isSigner:!1},{pubkey:new yc(e),isWritable:!1,isSigner:!0},{pubkey:new yc(t.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(n.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(r.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(i.toString()),isWritable:!0,isSigner:!1},{pubkey:new yc(o.toString()),isWritable:!0,isSigner:!1},{pubkey:u[0].address,isWritable:!0,isSigner:!1},{pubkey:u[1].address,isWritable:!0,isSigner:!1},{pubkey:u[2].address,isWritable:!0,isSigner:!1},{pubkey:(await yc.findProgramAddress([Ef.from("oracle"),new yc(t.toString()).toBuffer()],new yc("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1}]},nC=({amount:e,otherAmountThreshold:t,sqrtPriceLimit:n,amountSpecifiedIsInput:r,aToB:i})=>{let o,a;return o=Of([Bf("anchorDiscriminator"),Bf("amount"),Bf("otherAmountThreshold"),zf("sqrtPriceLimit"),If("amountSpecifiedIsInput"),If("aToB")]),a=Ef.alloc(o.span),o.encode({anchorDiscriminator:Jj,amount:new Nf(e.toString()),otherAmountThreshold:new Nf(t.toString()),sqrtPriceLimit:n,amountSpecifiedIsInput:r,aToB:i},a),a};var rC={findPath:async({tokenIn:e,tokenOut:t,amountIn:n,amountOut:r,amountInMax:i,amountOutMin:o})=>{if([e,t].includes(Fj.currency.address)&&[e,t].includes(Fj.wrapped.address))return{path:void 0,exchangePath:void 0};let a,s,u,c;return await Hj({path:[e,t],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})?a=[e,t]:e!=Fj.wrapped.address&&e!=Fj.currency.address&&await Hj({path:[e,Fj.wrapped.address],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})&&t!=Fj.wrapped.address&&t!=Fj.currency.address&&await Hj({path:[t,Fj.wrapped.address],amountIn:r||o,amountInMax:r||o,amountOut:n||i,amountOutMin:n||i})?a=[e,Fj.wrapped.address,t]:!Fj.stables.usd.includes(e)&&(s=(await Promise.all(Fj.stables.usd.map((async t=>await Hj({path:[e,t],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})?t:void 0)))).filter(Boolean))&&!Fj.stables.usd.includes(t)&&(u=(await Promise.all(Fj.stables.usd.map((async e=>await Hj({path:[t,e],amountIn:r||o,amountInMax:r||o,amountOut:n||i,amountOutMin:n||i})?e:void 0)))).filter(Boolean))&&(c=s.filter((e=>u.includes(e)))[0])&&(a=[e,c,t]),Yj([a,"optionalAccess",e=>e.length])&&a[0]==Fj.currency.address?a.splice(1,0,Fj.wrapped.address):Yj([a,"optionalAccess",e=>e.length])&&a[a.length-1]==Fj.currency.address&&a.splice(a.length-1,0,Fj.wrapped.address),{path:a,exchangePath:Vj({path:a})}},pathExists:Hj,getAmounts:async({path:e,tokenIn:t,tokenOut:n,amountOut:r,amountIn:i,amountInMax:o,amountOutMin:a})=>{let s;if(e=Vj({path:e}),r){if(s=await qj({path:e,amountOut:r,tokenIn:t,tokenOut:n}),null==(i=s?s[0]:void 0)||o&&i.gt(o))return{};void 0===o&&(o=i)}else if(i){if(s=await Gj({path:e,amountIn:i,tokenIn:t,tokenOut:n}),null==(r=s?s[s.length-1]:void 0)||a&&r.lt(a))return{};void 0===a&&(a=r)}else if(a){if(s=await qj({path:e,amountOutMin:a,tokenIn:t,tokenOut:n}),null==(i=s?s[0]:void 0)||o&&i.gt(o))return{};void 0===o&&(o=i)}else if(o){if(s=await Gj({path:e,amountInMax:o,tokenIn:t,tokenOut:n}),null==(r=s?s[s.length-1]:void 0)||a&&r.lt(a))return{};void 0===a&&(a=r)}return{amountOut:r||a,amountIn:i||o,amountInMax:o||i,amountOutMin:a||r,amounts:s}},getTransaction:async({path:e,amountIn:t,amountInMax:n,amountOut:r,amountOutMin:i,amounts:o,amountInInput:a,amountOutInput:s,amountInMaxInput:u,amountOutMinInput:c,account:l})=>{let d={blockchain:"solana"},h=[];const p=Vj({path:e});if(p.length>3)throw"Orca can only handle fixed paths with a max length of 3 (2 pools)!";const f=p[0],y=3==p.length?p[1]:void 0,m=p[p.length-1];let g;2==p.length?g=[await Qj({tokenIn:f,tokenOut:m,amountIn:a||u,amountOut:s||c})]:a||u?(g=[await Qj({tokenIn:f,tokenOut:y,amountIn:a||u})],g.push(await Qj({tokenIn:y,tokenOut:m,amountIn:g[0].price}))):(g=[await Qj({tokenIn:y,tokenOut:m,amountOut:s||c})],g.unshift(await Qj({tokenIn:f,tokenOut:y,amountOut:g[0].price})));let v,b=e[0]===Zj.currency.address&&p[0]===Zj.wrapped.address,w=e[e.length-1]===Zj.currency.address&&p[p.length-1]===Zj.wrapped.address;const M=await SI("solana");if(b||w){const e=await M.getMinimumBalanceForRentExemption(ox.solana.TOKEN_LAYOUT.span),n=ph.generate();v=n.publicKey.toString();const r=b?new Nf(t.toString()).add(new Nf(e)):new Nf(e);let i=sl.createAccount({fromPubkey:new yc(l),newAccountPubkey:new yc(v),programId:new yc(ox.solana.TOKEN_PROGRAM),space:ox.solana.TOKEN_LAYOUT.span,lamports:r});i.signers=[n],h.push(i),h.push(ox.solana.initializeAccountInstruction({account:v,token:Zj.wrapped.address,owner:l}))}if(1===g.length){let e=!(!a&&!c),o=e?t:r,s=e?i:n,u=new yc(b?v:await ox.solana.findProgramAddress({owner:l,token:f})),d=new yc(w?v:await ox.solana.findProgramAddress({owner:l,token:m}));w||await Kj({instructions:h,owner:l,token:m,account:d}),h.push(new zc({programId:new yc("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"),keys:await tC({account:l,pool:g[0].pubkey,tokenAccountA:g[0].aToB?u:d,tokenVaultA:g[0].data.tokenVaultA,tokenAccountB:g[0].aToB?d:u,tokenVaultB:g[0].data.tokenVaultB,tickArrays:g[0].tickArrays}),data:nC({amount:o,otherAmountThreshold:s,sqrtPriceLimit:g[0].sqrtPriceLimit,amountSpecifiedIsInput:e,aToB:g[0].aToB})}))}else if(2===g.length){let e=!(!a&&!c),o=e?t:r,s=e?i:n,u=new yc(b?v:await ox.solana.findProgramAddress({owner:l,token:f})),d=p[1],y=new yc(await ox.solana.findProgramAddress({owner:l,token:d}));await Kj({instructions:h,owner:l,token:d,account:y});let M=new yc(w?v:await ox.solana.findProgramAddress({owner:l,token:m}));w||await Kj({instructions:h,owner:l,token:m,account:M}),h.push(new zc({programId:new yc("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"),keys:await $j({account:l,poolOne:g[0].pubkey,tickArraysOne:g[0].tickArrays,tokenAccountOneA:g[0].aToB?u:y,tokenVaultOneA:g[0].data.tokenVaultA,tokenAccountOneB:g[0].aToB?y:u,tokenVaultOneB:g[0].data.tokenVaultB,poolTwo:g[1].pubkey,tickArraysTwo:g[1].tickArrays,tokenAccountTwoA:g[1].aToB?y:M,tokenVaultTwoA:g[1].data.tokenVaultA,tokenAccountTwoB:g[1].aToB?M:y,tokenVaultTwoB:g[1].data.tokenVaultB}),data:eC({amount:o,otherAmountThreshold:s,amountSpecifiedIsInput:e,aToBOne:g[0].aToB,aToBTwo:g[1].aToB,sqrtPriceLimitOne:g[0].sqrtPriceLimit,sqrtPriceLimitTwo:g[1].sqrtPriceLimit})}))}return(b||w)&&h.push(ox.solana.closeAccountInstruction({account:v,owner:l})),d.instructions=h,d},WHIRLPOOL_LAYOUT:Cj};const iC={name:"orca",label:"Orca",logo:"data:image/svg+xml;base64,PD94bWwgdm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ZmlsbD0iI0ZGRkZGRiIgZD0iTTMxOC4zLDE0Mi41Yy0yLjEtMy02LjQtMTEsNi44LTExYzEzLjIsMCwzMy4zLDE0LjksMzcuNCwyMC40Yy0xLjMsMy40LTkuOCw0LjEtMTQsMy44Yy00LjItMC4zLTExLjUtMS0xNy0zLjgKCUMzMjYsMTQ5LjIsMzIwLjUsMTQ1LjUsMzE4LjMsMTQyLjV6Ii8+Cjwvc3ZnPgo=",protocol:"orca",slippage:!0,blockchains:["solana"],solana:{router:{address:"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",api:rC.WHIRLPOOL_LAYOUT}}};var oC=e=>new ej(Object.assign(iC,{scope:e,findPath:e=>rC.findPath({...e,exchange:iC}),pathExists:e=>rC.pathExists({...e,exchange:iC}),getAmounts:e=>rC.getAmounts({...e,exchange:iC}),getPrep:e=>{},getTransaction:e=>rC.getTransaction({...e,exchange:iC})}));const aC={name:"pancakeswap",label:"PancakeSwap",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTk4IiBoZWlnaHQ9IjE5OSIgdmlld0JveD0iMCAwIDE5OCAxOTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTguNTUyIDE5OC42MDdDNjkuMDYxMyAxOTguNTg1IDQ1LjMwNiAxOTEuNTggMjguNzA3OSAxNzguOTk4QzExLjkxMDggMTY2LjI2NSAzIDE0OC4xOTUgMyAxMjcuNzQ4QzMgMTA4LjA0NyAxMS44OTEzIDkzLjg0MTEgMjEuOTUxNyA4NC4yMzg1QzI5LjgzNTkgNzYuNzEzMiAzOC41MzYzIDcxLjg5MzYgNDQuNTk0NSA2OS4xMjEzQzQzLjIyNDUgNjQuOTU5NCA0MS41MTUzIDU5LjUxMDggMzkuOTg2MSA1My44ODMyQzM3Ljkz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cgMTQyLjI4OCAxMDguMTc4IDE0Mi4yODggMTE3Ljg5NloiIGZpbGw9IiM2MzMwMDEiLz4KPC9zdmc+Cg==",protocol:"uniswap_v2",slippage:!0,blockchains:["bsc"],bsc:{router:{address:"0x10ED43C718714eb63d5aA57B78B54704E256024E",api:sj.ROUTER},factory:{address:"0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73",api:sj.FACTORY},pair:{api:sj.PAIR}}};var sC=e=>new ej(Object.assign(aC,{scope:e,findPath:e=>sj.findPath({...e,exchange:aC}),pathExists:e=>sj.pathExists({...e,exchange:aC}),getAmounts:e=>sj.getAmounts({...e,exchange:aC}),getPrep:e=>sj.getPrep({...e,exchange:aC}),getTransaction:e=>sj.getTransaction({...e,exchange:aC})}));function uC(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const cC=({blockchain:e,exchange:t,path:n})=>{if(!n)return;let r=n.map(((t,r)=>t===he[e].currency.address&&n[r+1]!=he[e].wrapped.address&&n[r-1]!=he[e].wrapped.address?he[e].wrapped.address:t));return r[0]==he[e].currency.address&&r[1]==he[e].wrapped.address?r.splice(0,1):r[r.length-1]==he[e].currency.address&&r[r.length-2]==he[e].wrapped.address&&r.splice(r.length-1,1),r},lC=async({blockchain:e,exchange:t,path:n,amountIn:r,amountOut:i,block:o})=>{if((n=cC({blockchain:e,exchange:t,path:n})).length>2)throw"PancakeSwap V3 can only check paths for up to 2 tokens!";try{let o=(await Promise.all(t.fees.map((r=>PI({blockchain:he[e].name,address:t[e].factory.address,method:"getPool",api:t[e].factory.api,cache:3600,params:[n[0],n[1],r]}).then((t=>({blockchain:e,address:t,path:n,fee:r,token0:[...n].sort()[0],token1:[...n].sort()[1]}))).catch((()=>{})))))).filter(Boolean);return o=o.filter((t=>t.address!=he[e].zero)),o=(await Promise.all(o.map((async e=>{try{let n;return n=r?await(async({exchange:e,pool:t,inputAmount:n})=>(await PI({blockchain:t.blockchain,address:e[t.blockchain].quoter.address,api:e[t.blockchain].quoter.api,method:"quoteExactInput",params:{path:aI(["address","uint24","address"],[t.path[0],t.fee,t.path[1]]),amountIn:n},cache:5})).amountOut)({exchange:t,pool:e,inputAmount:r}):await(async({exchange:e,pool:t,outputAmount:n})=>(await PI({blockchain:t.blockchain,address:e[t.blockchain].quoter.address,api:e[t.blockchain].quoter.api,method:"quoteExactOutput",params:{path:aI(["address","uint24","address"],[t.path[1],t.fee,t.path[0]]),amountOut:n},cache:5})).amountIn)({exchange:t,pool:e,outputAmount:i}),{...e,amountIn:r||n,amountOut:i||n}}catch(e){}})))).filter(Boolean),r?o.sort(((e,t)=>t.amountOut.gt(e.amountOut)?1:-1))[0]:o.sort(((e,t)=>t.amountIn.lt(e.amountIn)?1:-1))[0]}catch(e){return}};let dC=({blockchain:e,exchange:t,path:n,pools:r,amountIn:i})=>r[r.length-1].amountOut,hC=async({blockchain:e,exchange:t,path:n,pools:r,amountOut:i,block:o})=>{if(void 0===o)return r[0].amountIn;{let n;2==r.length?n=aI(["address","uint24","address","uint24","address"],[r[1].path[1],r[1].fee,r[0].path[1],r[0].fee,r[0].path[0]]):1==r.length&&(n=aI(["address","uint24","address"],[r[0].path[1],r[0].fee,r[0].path[0]]));return(await PI({block:o,blockchain:e,address:t[e].quoter.address,api:t[e].quoter.api,method:"quoteExactOutput",params:{path:n,amountOut:i}})).amountIn}};var pC={findPath:async({blockchain:e,exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(he[e].currency.address)&&[n,r].includes(he[e].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await lC({exchange:t,blockchain:e,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==he[e].wrapped.address||r==he[e].wrapped.address||(c=[],o||s?(c.push(await lC({exchange:t,blockchain:e,path:[he[e].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await lC({exchange:t,blockchain:e,path:[n,he[e].wrapped.address],amountOut:c[0].amountIn}))):(c.push(await lC({exchange:t,blockchain:e,path:[n,he[e].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await lC({exchange:t,blockchain:e,path:[he[e].wrapped.address,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length&&(u=[n,he[e].wrapped.address,r])),!u){c=[];let l=await Promise.all(he[e].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await lC({exchange:t,blockchain:e,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await lC({exchange:t,blockchain:e,path:[n,u],amountOut:c[0].amountIn}))):(c.push(await lC({exchange:t,blockchain:e,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await lC({exchange:t,blockchain:e,path:[u,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length)return[u,c]}))),d=l.filter(Boolean)[0];d&&(u=[n,d[0],r],c=d[1])}return uC([u,"optionalAccess",e=>e.length])&&u[0]==he[e].currency.address?u.splice(1,0,he[e].wrapped.address):uC([u,"optionalAccess",e=>e.length])&&u[u.length-1]==he[e].currency.address&&u.splice(u.length-1,0,he[e].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:cC({blockchain:e,exchange:t,path:u})}},pathExists:async({blockchain:e,exchange:t,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>{try{return!!await lC({blockchain:e,exchange:t,path:n,amountIn:r||o,amountOut:i||a})}catch(e){return!1}},getAmounts:async({blockchain:e,exchange:t,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await hC({blockchain:e,exchange:t,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await dC({blockchain:e,exchange:t,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await hC({blockchain:e,exchange:t,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await dC({blockchain:e,exchange:t,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getPrep:async({exchange:e,blockchain:t,tokenIn:n,amountIn:r,account:i,tokenOut:o})=>{if(n===he[t].currency.address)return;let a;a=o===he[t].currency.address?e[t].smartRouter.address:e[t].router.address;if((await PI({blockchain:t,address:n,method:"allowance",api:ox[t][20],params:[i,a]})).lt(r)){return{transaction:{blockchain:t,from:i,to:n,api:ox[t][20],method:"approve",params:[a,he[t].maxInt]}}}},getTransaction:async({blockchain:e,exchange:t,pools:n,path:r,amountIn:i,amountInMax:o,amountOut:a,amountOutMin:s,amountInInput:u,amountOutInput:c,amountInMaxInput:l,amountOutMinInput:d,account:h,inputTokenPushed:p})=>{const f={blockchain:e,from:h},y=Math.floor(Date.now()/1e3)+21600,m=cC({blockchain:e,exchange:t,path:r});if(r[r.length-1]===he[e].currency.address){f.to=t[e].smartRouter.address,f.api=t[e].smartRouter.api,f.method="multicall";const r=new Tv(t[e].smartRouter.api);if(f.params={data:[]},2===m.length)u||d?f.params.data.push(r.encodeFunctionData("exactInputSingle",[{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:t[e].smartRouter.address,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString(),sqrtPriceLimitX96:he[e].zero}])):(c||l)&&f.params.data.push(r.encodeFunctionData("exactOutputSingle",[{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:t[e].smartRouter.address,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString(),sqrtPriceLimitX96:he[e].zero}]));else{const h=aI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]]);u||d?f.params.data.push(r.encodeFunctionData("exactInput",[{path:h,recipient:t[e].smartRouter.address,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString()}])):(c||l)&&f.params.data.push(r.encodeFunctionData("exactOutput",[{path:h,recipient:t[e].smartRouter.address,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString()}]))}f.params.data.push(r.encodeFunctionData("unwrapWETH9",[(s||a).toString(),h]))}else if(f.to=t[e].router.address,f.api=t[e].router.api,r[0]===he[e].currency.address&&(f.value=(i||o).toString()),2===m.length)u||d?(f.method="exactInputSingle",f.params={params:{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:h,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString(),sqrtPriceLimitX96:he[e].zero}}):(c||l)&&(f.method="exactOutputSingle",f.params={params:{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:h,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString(),sqrtPriceLimitX96:he[e].zero}});else{const e=aI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]]);u||d?(f.method="exactInput",f.params={params:{path:e,recipient:h,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString()}}):(c||l)&&(f.method="exactOutput",f.params={params:{path:e,recipient:h,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString()}})}return f},ROUTER:[{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"}],internalType:"struct ISwapRouter.ExactInputParams",name:"params",type:"tuple"}],name:"exactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct ISwapRouter.ExactInputSingleParams",name:"params",type:"tuple"}],name:"exactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"}],internalType:"struct ISwapRouter.ExactOutputParams",name:"params",type:"tuple"}],name:"exactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct ISwapRouter.ExactOutputSingleParams",name:"params",type:"tuple"}],name:"exactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"refundETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowed",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowedIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"unwrapWETH9",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],SMART_ROUTER:[{inputs:[{internalType:"address",name:"_factoryV2",type:"address"},{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factoryV3",type:"address"},{internalType:"address",name:"_positionManager",type:"address"},{internalType:"address",name:"_stableFactory",type:"address"},{internalType:"address",name:"_stableInfo",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"factory",type:"address"},{indexed:!0,internalType:"address",name:"info",type:"address"}],name:"SetStableSwap",type:"event"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveMax",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveMaxMinusOne",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveZeroThenMax",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveZeroThenMaxMinusOne",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"callPositionManager",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"paths",type:"bytes[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint24",name:"maximumTickDivergence",type:"uint24"},{internalType:"uint32",name:"secondsAgo",type:"uint32"}],name:"checkOracleSlippage",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint24",name:"maximumTickDivergence",type:"uint24"},{internalType:"uint32",name:"secondsAgo",type:"uint32"}],name:"checkOracleSlippage",outputs:[],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"}],internalType:"struct IV3SwapRouter.ExactInputParams",name:"params",type:"tuple"}],name:"exactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IV3SwapRouter.ExactInputSingleParams",name:"params",type:"tuple"}],name:"exactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address[]",name:"path",type:"address[]"},{internalType:"uint256[]",name:"flag",type:"uint256[]"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address",name:"to",type:"address"}],name:"exactInputStableSwap",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"}],internalType:"struct IV3SwapRouter.ExactOutputParams",name:"params",type:"tuple"}],name:"exactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IV3SwapRouter.ExactOutputSingleParams",name:"params",type:"tuple"}],name:"exactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address[]",name:"path",type:"address[]"},{internalType:"uint256[]",name:"flag",type:"uint256[]"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address",name:"to",type:"address"}],name:"exactOutputStableSwap",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factoryV2",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"getApprovalType",outputs:[{internalType:"enum IApproveAndCall.ApprovalType",name:"",type:"uint8"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount0Min",type:"uint256"},{internalType:"uint256",name:"amount1Min",type:"uint256"}],internalType:"struct IApproveAndCall.IncreaseLiquidityParams",name:"params",type:"tuple"}],name:"increaseLiquidity",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint256",name:"amount0Min",type:"uint256"},{internalType:"uint256",name:"amount1Min",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],internalType:"struct IApproveAndCall.MintParams",name:"params",type:"tuple"}],name:"mint",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"previousBlockhash",type:"bytes32"},{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"positionManager",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"pull",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"refundETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowed",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowedIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_info",type:"address"}],name:"setStableSwap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"stableSwapFactory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"stableSwapInfo",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"unwrapWETH9",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"}],name:"wrapETH",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"_poolDeployer",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!0,internalType:"int24",name:"tickSpacing",type:"int24"}],name:"FeeAmountEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"bool",name:"whitelistRequested",type:"bool"},{indexed:!1,internalType:"bool",name:"enabled",type:"bool"}],name:"FeeAmountExtraInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"int24",name:"tickSpacing",type:"int24"},{indexed:!1,internalType:"address",name:"pool",type:"address"}],name:"PoolCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"lmPoolDeployer",type:"address"}],name:"SetLmPoolDeployer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"bool",name:"verified",type:"bool"}],name:"WhiteListAdded",type:"event"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"}],name:"createPool",outputs:[{internalType:"address",name:"pool",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],name:"enableFeeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacingExtraInfo",outputs:[{internalType:"bool",name:"whitelistRequested",type:"bool"},{internalType:"bool",name:"enabled",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint24",name:"",type:"uint24"}],name:"getPool",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"lmPoolDeployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"poolDeployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"bool",name:"whitelistRequested",type:"bool"},{internalType:"bool",name:"enabled",type:"bool"}],name:"setFeeAmountExtraInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"uint32",name:"feeProtocol0",type:"uint32"},{internalType:"uint32",name:"feeProtocol1",type:"uint32"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"address",name:"lmPool",type:"address"}],name:"setLmPool",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_lmPoolDeployer",type:"address"}],name:"setLmPoolDeployer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"bool",name:"verified",type:"bool"}],name:"setWhiteListAddress",outputs:[],stateMutability:"nonpayable",type:"function"}],POOL:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"Collect",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"CollectProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid1",type:"uint256"}],name:"Flash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"observationCardinalityNextOld",type:"uint16"},{indexed:!1,internalType:"uint16",name:"observationCardinalityNextNew",type:"uint16"}],name:"IncreaseObservationCardinalityNext",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Initialize",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint32",name:"feeProtocol0Old",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol1Old",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol0New",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol1New",type:"uint32"}],name:"SetFeeProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"addr",type:"address"}],name:"SetLmPoolEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"int256",name:"amount0",type:"int256"},{indexed:!1,internalType:"int256",name:"amount1",type:"int256"},{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"uint128",name:"liquidity",type:"uint128"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"},{indexed:!1,internalType:"uint128",name:"protocolFeesToken0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"protocolFeesToken1",type:"uint128"}],name:"Swap",type:"event"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collect",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal0X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal1X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"}],name:"increaseObservationCardinalityNext",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"liquidity",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"lmPool",outputs:[{internalType:"contract IPancakeV3LmPool",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxLiquidityPerTick",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"observations",outputs:[{internalType:"uint32",name:"blockTimestamp",type:"uint32"},{internalType:"int56",name:"tickCumulative",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityCumulativeX128",type:"uint160"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32[]",name:"secondsAgos",type:"uint32[]"}],name:"observe",outputs:[{internalType:"int56[]",name:"tickCumulatives",type:"int56[]"},{internalType:"uint160[]",name:"secondsPerLiquidityCumulativeX128s",type:"uint160[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"positions",outputs:[{internalType:"uint128",name:"liquidity",type:"uint128"},{internalType:"uint256",name:"feeGrowthInside0LastX128",type:"uint256"},{internalType:"uint256",name:"feeGrowthInside1LastX128",type:"uint256"},{internalType:"uint128",name:"tokensOwed0",type:"uint128"},{internalType:"uint128",name:"tokensOwed1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFees",outputs:[{internalType:"uint128",name:"token0",type:"uint128"},{internalType:"uint128",name:"token1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32",name:"feeProtocol0",type:"uint32"},{internalType:"uint32",name:"feeProtocol1",type:"uint32"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_lmPool",type:"address"}],name:"setLmPool",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slot0",outputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{internalType:"int24",name:"tick",type:"int24"},{internalType:"uint16",name:"observationIndex",type:"uint16"},{internalType:"uint16",name:"observationCardinality",type:"uint16"},{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"},{internalType:"uint32",name:"feeProtocol",type:"uint32"},{internalType:"bool",name:"unlocked",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"}],name:"snapshotCumulativesInside",outputs:[{internalType:"int56",name:"tickCumulativeInside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityInsideX128",type:"uint160"},{internalType:"uint32",name:"secondsInside",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"bool",name:"zeroForOne",type:"bool"},{internalType:"int256",name:"amountSpecified",type:"int256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[{internalType:"int256",name:"amount0",type:"int256"},{internalType:"int256",name:"amount1",type:"int256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int16",name:"",type:"int16"}],name:"tickBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"tickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"",type:"int24"}],name:"ticks",outputs:[{internalType:"uint128",name:"liquidityGross",type:"uint128"},{internalType:"int128",name:"liquidityNet",type:"int128"},{internalType:"uint256",name:"feeGrowthOutside0X128",type:"uint256"},{internalType:"uint256",name:"feeGrowthOutside1X128",type:"uint256"},{internalType:"int56",name:"tickCumulativeOutside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityOutsideX128",type:"uint160"},{internalType:"uint32",name:"secondsOutside",type:"uint32"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"path",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"quoteExactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactInputSingleParams",name:"params",type:"tuple"}],name:"quoteExactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"quoteExactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactOutputSingleParams",name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]};const fC={name:"pancakeswap_v3",label:"PancakeSwap v3",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTk4IiBoZWlnaHQ9IjE5OSIgdmlld0JveD0iMCAwIDE5OCAxOTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTguNTUyIDE5OC42MDdDNjkuMDYxMyAxOTguNTg1IDQ1LjMwNiAxOTEuNTggMjguNzA3OSAxNzguOTk4QzExLjkxMDggMTY2LjI2NSAzIDE0OC4xOTUgMyAxMjcuNzQ4QzMgMTA4LjA0NyAxMS44OTEzIDkzLjg0MTEgMjEuOTUxNyA4NC4yMzg1QzI5LjgzNTkgNzYuNzEzMiAzOC41MzYzIDcxLjg5MzYgNDQuNTk0NSA2OS4xMjEzQzQzLjIyNDUgNjQuOTU5NCA0MS41MTUzIDU5LjUxMDggMzkuOTg2MSA1My44ODMyQzM3LjkzOTkgNDYuMzUyNyAzNS45MzI1IDM3LjUxNzQgMzUuOTMyNSAzMS4wNDI5QzM1LjkzMjUgMjMuMzc5NSAzNy42MjA0IDE1LjY4MzMgNDIuMTcxNCA5LjcwMzA2QzQ2Ljk3OTcgMy4zODQ3NiA1NC4yMTgyIDAgNjIuOTI2NCAwQzY5LjczMjI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},smartRouter:{address:"0x13f4EA83D0bd40E75C8222255bc855a974568Dd4",api:pC.SMART_ROUTER},factory:{address:"0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865",api:pC.FACTORY},pair:{api:pC.POOL},quoter:{address:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997",api:pC.QUOTER}}};var yC=e=>new ej(Object.assign(fC,{scope:e,findPath:e=>pC.findPath({...e,exchange:fC}),pathExists:e=>pC.pathExists({...e,exchange:fC}),getAmounts:e=>pC.getAmounts({...e,exchange:fC}),getPrep:e=>pC.getPrep({...e,exchange:fC}),getTransaction:e=>pC.getTransaction({...e,exchange:fC})}));const mC={name:"quickswap",label:"QuickSwap",logo:"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNzAyLjQ1IDcwMi40NyI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwLXBhdGgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMy43OCAtMjMuNzcpIj48cmVjdCB3aWR0aD0iNzUwIiBoZWlnaHQ9Ijc1MCIgZmlsbD0ibm9uZSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwLXBhdGgpIj48cGF0aCBkPSJNMzU0Ljc0LDI0LjM3YTM1MS4yNywzNTEuMjcsMCwwLDEsMzYzLjc0LDI3NywzNTQsMzU0LDAsMCwxLDEuMjMsMTQxLjI2QTM1MS43NiwzNTEuNzYsMCwwLDEsNTEwLjEyLDY5OS4zYy03My43NywzMS0xNTguMjUsMzUuMzUtMjM0LjkxLDEyLjU0QTM1MiwzNTIsMCwwLDEsNDYuNTEsNDk5LjU2Yy0yOC03My40NS0zMC4xNi0xN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LjA2LDYzOS4xMmExODIuMywxODIuMywwLDAsMCw3MS44MS0xMS4zMSwyMTQsMjE0LDAsMCwwLDYxLjYxLTM0LjY3YzE4LjA5LTE0LjY4LDMzLjY2LTMxLjUzLDQ0LjA2LTUyLjYxYTEwMS4zNiwxMDEuMzYsMCwwLDAsMTAuMjItMzZjMS0xMS4zMS0uODgtMjItMy45NS0zMi42NC4zNC0yLjYxLDIuNzItMy44LDQuMTEtNS42Myw1LjM4LTcuMDcsOS4zNS0xNC42OSwxMS0yMy40NmEyNy40MywyNy40MywwLDAsMSwxLjIxLTMuNDMsMTExLDExMSwwLDAsMSw4LDIxLjE2YzIuNjMsMTAuMzEsNC4xMSwyMC44LDMuMzMsMzEuNGExMjMuMzEsMTIzLjMxLDAsMCwxLTE2LjA2LDUyLjMyYy05LjE2LDE2LjE1LTIxLDMwLTM0LjYsNDIuMzdhMTk5Ljg5LDE5OS44OSwwLDAsMS0zOS4zNywyNy41NCwyMTkuNSwyMTkuNSwwLDAsMS01NC4yNiwyMC43MSwyMDkuMjcsMjA5LjI3LDAsMCwxLTM2LjA1LDUuMmMtNS44NS4zMy0xMS43MS44My0xNy41Mi40Ni00LjUxLS4yOS05LjE0LDAtMTMuNTYtMS4zNyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzLjc4IC0yMy43NykiIGZpbGw9IiMwZTFmNjYiLz48L2c+PC9zdmc+",protocol:"uniswap_v2",slippage:!0,blockchains:["polygon"],polygon:{router:{address:"0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff",api:sj.ROUTER},factory:{address:"0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32",api:sj.FACTORY},pair:{api:sj.PAIR}}};var gC=e=>new ej(Object.assign(mC,{scope:e,findPath:e=>sj.findPath({...e,exchange:mC}),pathExists:e=>sj.pathExists({...e,exchange:mC}),getAmounts:e=>sj.getAmounts({...e,exchange:mC}),getPrep:e=>sj.getPrep({...e,exchange:mC}),getTransaction:e=>sj.getTransaction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y0xMTEuNSwwLTE2NSwxNy0xNjUsMTdzLTYuNSwxMi40LTkuMSwxOC45Yy0yLjYsNy4yLTkuMSwyNS40LTkuMSwyNS40CgkJUzIxOC44LDI4OCwzMjIuNSwyODhjNjIuNiwwLDEyNC42LDUuMiwxODYuNSwxNS43YzAsMC05LjEtMjIuMi0xNS0zMS4zQzQ5MC43LDI2Ny4yLDQ4Ny41LDI2MS4zLDQ4My41LDI1Ni4xTDQ4My41LDI1Ni4xeiIvPgoJPHBhdGggZmlsbD0iI0ZGRTYwMCIgZD0iTTEzMy4zLDEzMS41YzYuNS0wLjcsMTUuNywxOS42LDE1LjcsMTkuNnMyMC45LTUuOSwyNC44LDBjMy4zLDUuOS0xNSwxOS42LTE1LDE5LjZzMTEuMSwxOS42LDcuMiwyMy41CgkJYy0zLjMsMy45LTIyLjgtOC41LTIyLjgtOC41cy0xNSwxNy0xOS42LDE0LjNjLTUuMi0yLjYsMC43LTI0LjgsMC43LTI0LjhzLTIxLjUtOS4xLTE5LjYtMTQuM2MxLjMtNS4yLDIzLjUtNy4yLDIzLjUtNy4yCgkJUzEyNi44LDEzMi44LDEzMy4zLDEzMS41TDEzMy4zLDEzMS41eiIvPgo8L2c+Cjwvc3ZnPgo=",protocol:"uniswap_v2",slippage:!0,blockchains:["fantom"],fantom:{router:{address:"0xF491e7B69E4244ad4002BC14e878a34207E38c29",api:sj.ROUTER},factory:{address:"0x152eE697f2E276fA89E96742e9bB9aB1F2E61bE3",api:sj.FACTORY},pair:{api:sj.PAIR}}};var bC=e=>new ej(Object.assign(vC,{scope:e,findPath:e=>sj.findPath({...e,exchange:vC}),pathExists:e=>sj.pathExists({...e,exchange:vC}),getAmounts:e=>sj.getAmounts({...e,exchange:vC}),getPrep:e=>sj.getPrep({...e,exchange:vC}),getTransaction:e=>sj.getTransaction({...e,exchange:vC})}));function wC(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const MC=({blockchain:e,path:t})=>{if(!t)return;let n=t.map(((n,r)=>n===he[e].currency.address&&t[r+1]!=he[e].wrapped.address&&t[r-1]!=he[e].wrapped.address?he[e].wrapped.address:n));return n[0]==he[e].currency.address&&n[1]==he[e].wrapped.address?n.splice(0,1):n[n.length-1]==he[e].currency.address&&n[n.length-2]==he[e].wrapped.address&&n.splice(n.length-1,1),n},AC=async({exchange:e,blockchain:t,path:n,amountIn:r,amountOut:i,block:o})=>{let a;if(n=MC({blockchain:t,path:n}),a=r?await PI({blockchain:he[t].name,address:e[t].quoter.address,method:"findBestPathFromAmountIn",api:e[t].quoter.api,cache:5,block:o,params:{route:n,amountIn:r}}).catch((()=>{})):await PI({blockchain:he[t].name,address:e[t].quoter.address,method:"findBestPathFromAmountOut",api:e[t].quoter.api,cache:5,block:o,params:{route:n,amountOut:i}}).catch((()=>{})),a&&!a.virtualAmountsWithoutSlippage.some((e=>"0"===e.toString())))return a};let EC=async({exchange:e,blockchain:t,path:n,pools:r,amountIn:i})=>{let o=await PI({blockchain:he[t].name,address:e[t].quoter.address,method:"findBestPathFromAmountIn",api:e[t].quoter.api,cache:5,params:{route:MC({blockchain:t,path:n}),amountIn:i}}).catch((()=>{}));if(o)return o.virtualAmountsWithoutSlippage[o.virtualAmountsWithoutSlippage.length-1]},NC=async({exchange:e,blockchain:t,path:n,pools:r,amountOut:i,block:o})=>{let a=await PI({blockchain:he[t].name,address:e[t].quoter.address,method:"findBestPathFromAmountOut",api:e[t].quoter.api,cache:5,block:o,params:{route:MC({blockchain:t,path:n}),amountOut:i}}).catch((()=>{}));if(a)return a.virtualAmountsWithoutSlippage[0]};var TC={findPath:async({exchange:e,blockchain:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(he[t].currency.address)&&[n,r].includes(he[t].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await AC({exchange:e,blockchain:t,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==he[t].wrapped.address||r==he[t].wrapped.address||(c=[],o||s?(c.push(await AC({exchange:e,blockchain:t,path:[he[t].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await AC({exchange:e,blockchain:t,path:[n,he[t].wrapped.address],amountOut:c[0].virtualAmountsWithoutSlippage[0]}))):(c.push(await AC({exchange:e,blockchain:t,path:[n,he[t].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await AC({exchange:e,blockchain:t,path:[he[t].wrapped.address,r],amountIn:c[0].virtualAmountsWithoutSlippage[1]}))),2===c.filter(Boolean).length&&(u=[n,he[t].wrapped.address,r])),!u){c=[];let l=await Promise.all(he[t].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await AC({exchange:e,blockchain:t,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await AC({exchange:e,blockchain:t,path:[n,u],amountOut:c[0].virtualAmountsWithoutSlippage[0]}))):(c.push(await AC({exchange:e,blockchain:t,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await AC({exchange:e,blockchain:t,path:[u,r],amountIn:c[0].virtualAmountsWithoutSlippage[1]}))),2===c.filter(Boolean).length)return[u,c]}))),d=l.filter(Boolean)[0];d&&(u=[n,d[0],r],c=d[1])}return wC([u,"optionalAccess",e=>e.length])&&u[0]==he[t].currency.address?u.splice(1,0,he[t].wrapped.address):wC([u,"optionalAccess",e=>e.length])&&u[u.length-1]==he[t].currency.address&&u.splice(u.length-1,0,he[t].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:MC({blockchain:t,path:u})}},pathExists:async({exchange:e,blockchain:t,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>!!await AC({exchange:e,blockchain:t,path:n,amountIn:r||o,amountOut:i||a}),getAmounts:async({exchange:e,blockchain:t,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await NC({exchange:e,blockchain:t,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await EC({exchange:e,blockchain:t,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await NC({exchange:e,blockchain:t,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await EC({exchange:e,blockchain:t,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getTransaction:async({exchange:e,blockchain:t,pools:n,path:r,amountIn:i,amountInMax:o,amountOut:a,amountOutMin:s,amountInInput:u,amountOutInput:c,amountInMaxInput:l,amountOutMinInput:d,account:h})=>{const p={blockchain:t,from:h,to:e[t].router.address,api:e[t].router.api},f=Math.round(Date.now()/1e3)+86400,y=[n.map((e=>e.binSteps[0])),n.map((e=>e.versions[0])),MC({blockchain:t,path:r})];return r[0]===he[t].currency.address?l?(p.method="swapNATIVEForExactTokens",p.params={amountOut:a,path:y,to:h,deadline:f},p.value=o):(p.method="swapExactNATIVEForTokens",p.params={amountOutMin:s||a,path:y,to:h,deadline:f},p.value=i):r[r.length-1]===he[t].currency.address?l?(p.method="swapTokensForExactNATIVE",p.params={amountNATIVEOut:a,amountInMax:o,path:y,to:h,deadline:f}):(p.method="swapExactTokensForNATIVE",p.params={amountIn:i,amountOutMinNATIVE:s||a,path:y,to:h,deadline:f}):l?(p.method="swapTokensForExactTokens",p.params={amountOut:a,amountInMax:o,path:y,to:h,deadline:f}):(p.method="swapExactTokensForTokens",p.params={amountIn:i,amountOutMin:s||a,path:y,to:h,deadline:f}),p},getPrep:async({exchange:e,blockchain:t,tokenIn:n,amountIn:r,account:i})=>{if(n===he[t].currency.address)return;const o=await PI({blockchain:t,address:n,method:"allowance",api:ox[t][20],params:[i,e[t].router.address]});if(o.gte(r))return;return{transaction:{blockchain:t,from:i,to:n,api:ox[t][20],method:"approve",params:[e[t].router.address,r.sub(o)]}}},ROUTER:[{inputs:[{internalType:"contract ILBFactory",name:"factory",type:"address"},{internalType:"contract IJoeFactory",name:"factoryV1",type:"address"},{internalType:"contract ILBLegacyFactory",name:"legacyFactory",type:"address"},{internalType:"contract ILBLegacyRouter",name:"legacyRouter",type:"address"},{internalType:"contract IWNATIVE",name:"wnative",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AddressHelper__CallFailed",type:"error"},{inputs:[],name:"AddressHelper__NonContract",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientAmount",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientLiquidity",type:"error"},{inputs:[{internalType:"uint256",name:"amountSlippage",type:"uint256"}],name:"LBRouter__AmountSlippageBPTooBig",type:"error"},{inputs:[{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"}],name:"LBRouter__AmountSlippageCaught",type:"error"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"LBRouter__BinReserveOverflows",type:"error"},{inputs:[],name:"LBRouter__BrokenSwapSafetyCheck",type:"error"},{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"currentTimestamp",type:"uint256"}],name:"LBRouter__DeadlineExceeded",type:"error"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBRouter__FailedToSendNATIVE",type:"error"},{inputs:[{internalType:"uint256",name:"idDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"}],name:"LBRouter__IdDesiredOverflows",type:"error"},{inputs:[{internalType:"int256",name:"id",type:"int256"}],name:"LBRouter__IdOverflows",type:"error"},{inputs:[{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"uint256",name:"activeId",type:"uint256"}],name:"LBRouter__IdSlippageCaught",type:"error"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"LBRouter__InsufficientAmountOut",type:"error"},{inputs:[{internalType:"address",name:"wrongToken",type:"address"}],name:"LBRouter__InvalidTokenPath",type:"error"},{inputs:[{internalType:"uint256",name:"version",type:"uint256"}],name:"LBRouter__InvalidVersion",type:"error"},{inputs:[],name:"LBRouter__LengthsMismatch",type:"error"},{inputs:[{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"LBRouter__MaxAmountInExceeded",type:"error"},{inputs:[],name:"LBRouter__NotFactoryOwner",type:"error"},{inputs:[{internalType:"address",name:"tokenX",type:"address"},{internalType:"address",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBRouter__PairNotCreated",type:"error"},{inputs:[],name:"LBRouter__SenderIsNotWNATIVE",type:"error"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"LBRouter__SwapOverflows",type:"error"},{inputs:[{internalType:"uint256",name:"excess",type:"uint256"}],name:"LBRouter__TooMuchTokensIn",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"reserve",type:"uint256"}],name:"LBRouter__WrongAmounts",type:"error"},{inputs:[{internalType:"address",name:"tokenX",type:"address"},{internalType:"address",name:"tokenY",type:"address"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"msgValue",type:"uint256"}],name:"LBRouter__WrongNativeLiquidityParameters",type:"error"},{inputs:[],name:"LBRouter__WrongTokenOrder",type:"error"},{inputs:[],name:"TokenHelper__TransferFailed",type:"error"},{inputs:[{components:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"int256[]",name:"deltaIds",type:"int256[]"},{internalType:"uint256[]",name:"distributionX",type:"uint256[]"},{internalType:"uint256[]",name:"distributionY",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"refundTo",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ILBRouter.LiquidityParameters",name:"liquidityParameters",type:"tuple"}],name:"addLiquidity",outputs:[{internalType:"uint256",name:"amountXAdded",type:"uint256"},{internalType:"uint256",name:"amountYAdded",type:"uint256"},{internalType:"uint256",name:"amountXLeft",type:"uint256"},{internalType:"uint256",name:"amountYLeft",type:"uint256"},{internalType:"uint256[]",name:"depositIds",type:"uint256[]"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"int256[]",name:"deltaIds",type:"int256[]"},{internalType:"uint256[]",name:"distributionX",type:"uint256[]"},{internalType:"uint256[]",name:"distributionY",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"refundTo",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ILBRouter.LiquidityParameters",name:"liquidityParameters",type:"tuple"}],name:"addLiquidityNATIVE",outputs:[{internalType:"uint256",name:"amountXAdded",type:"uint256"},{internalType:"uint256",name:"amountYAdded",type:"uint256"},{internalType:"uint256",name:"amountXLeft",type:"uint256"},{internalType:"uint256",name:"amountYLeft",type:"uint256"},{internalType:"uint256[]",name:"depositIds",type:"uint256[]"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint24",name:"activeId",type:"uint24"},{internalType:"uint16",name:"binStep",type:"uint16"}],name:"createLBPair",outputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getFactory",outputs:[{internalType:"contract ILBFactory",name:"lbFactory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint256",name:"price",type:"uint256"}],name:"getIdFromPrice",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyFactory",outputs:[{internalType:"contract ILBLegacyFactory",name:"legacyLBfactory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyRouter",outputs:[{internalType:"contract ILBLegacyRouter",name:"legacyRouter",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint24",name:"id",type:"uint24"}],name:"getPriceFromId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapIn",outputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"uint128",name:"amountOutLeft",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapOut",outputs:[{internalType:"uint128",name:"amountInLeft",type:"uint128"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getV1Factory",outputs:[{internalType:"contract IJoeFactory",name:"factoryV1",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getWNATIVE",outputs:[{internalType:"contract IWNATIVE",name:"wnative",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidity",outputs:[{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountNATIVEMin",type:"uint256"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityNATIVE",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountNATIVE",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactNATIVEForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactNATIVEForTokensSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinNATIVE",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForNATIVE",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinNATIVE",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForNATIVESupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokensSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapNATIVEForExactTokens",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountNATIVEOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactNATIVE",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"sweep",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBToken",name:"lbToken",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"sweepLBToken",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"feeRecipient",type:"address"},{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"LBFactory__AddressZero",type:"error"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__BinStepHasNoPreset",type:"error"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__BinStepTooLow",type:"error"},{inputs:[{internalType:"uint256",name:"fees",type:"uint256"},{internalType:"uint256",name:"maxFees",type:"uint256"}],name:"LBFactory__FlashLoanFeeAboveMax",type:"error"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"}],name:"LBFactory__IdenticalAddresses",type:"error"},{inputs:[],name:"LBFactory__ImplementationNotSet",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"_binStep",type:"uint256"}],name:"LBFactory__LBPairAlreadyExists",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__LBPairDoesNotExist",type:"error"},{inputs:[],name:"LBFactory__LBPairIgnoredIsAlreadyInTheSameState",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__LBPairNotCreated",type:"error"},{inputs:[{internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBFactory__LBPairSafetyCheckFailed",type:"error"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__PresetIsLockedForUsers",type:"error"},{inputs:[],name:"LBFactory__PresetOpenStateIsAlreadyInTheSameState",type:"error"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"LBFactory__QuoteAssetAlreadyWhitelisted",type:"error"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"LBFactory__QuoteAssetNotWhitelisted",type:"error"},{inputs:[{internalType:"address",name:"feeRecipient",type:"address"}],name:"LBFactory__SameFeeRecipient",type:"error"},{inputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],name:"LBFactory__SameFlashLoanFee",type:"error"},{inputs:[{internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBFactory__SameImplementation",type:"error"},{inputs:[],name:"PairParametersHelper__InvalidParameter",type:"error"},{inputs:[],name:"PendingOwnable__AddressZero",type:"error"},{inputs:[],name:"PendingOwnable__NoPendingOwner",type:"error"},{inputs:[],name:"PendingOwnable__NotOwner",type:"error"},{inputs:[],name:"PendingOwnable__NotPendingOwner",type:"error"},{inputs:[],name:"PendingOwnable__PendingOwnerAlreadySet",type:"error"},{inputs:[],name:"SafeCast__Exceeds16Bits",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldRecipient",type:"address"},{indexed:!1,internalType:"address",name:"newRecipient",type:"address"}],name:"FeeRecipientSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldFlashLoanFee",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newFlashLoanFee",type:"uint256"}],name:"FlashLoanFeeSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"tokenX",type:"address"},{indexed:!0,internalType:"contract IERC20",name:"tokenY",type:"address"},{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!1,internalType:"contract ILBPair",name:"LBPair",type:"address"},{indexed:!1,internalType:"uint256",name:"pid",type:"uint256"}],name:"LBPairCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract ILBPair",name:"LBPair",type:"address"},{indexed:!1,internalType:"bool",name:"ignored",type:"bool"}],name:"LBPairIgnoredStateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldLBPairImplementation",type:"address"},{indexed:!1,internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBPairImplementationSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"PendingOwnerSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!0,internalType:"bool",name:"isOpen",type:"bool"}],name:"PresetOpenStateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"}],name:"PresetRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!1,internalType:"uint256",name:"baseFactor",type:"uint256"},{indexed:!1,internalType:"uint256",name:"filterPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"decayPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"reductionFactor",type:"uint256"},{indexed:!1,internalType:"uint256",name:"variableFeeControl",type:"uint256"},{indexed:!1,internalType:"uint256",name:"protocolShare",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxVolatilityAccumulator",type:"uint256"}],name:"PresetSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"QuoteAssetAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"QuoteAssetRemoved",type:"event"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"addQuoteAsset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"becomeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint24",name:"activeId",type:"uint24"},{internalType:"uint16",name:"binStep",type:"uint16"}],name:"createLBPair",outputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],name:"forceDecay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getAllBinSteps",outputs:[{internalType:"uint256[]",name:"binStepWithPreset",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"}],name:"getAllLBPairs",outputs:[{components:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"contract ILBPair",name:"LBPair",type:"address"},{internalType:"bool",name:"createdByOwner",type:"bool"},{internalType:"bool",name:"ignoredForRouting",type:"bool"}],internalType:"struct ILBFactory.LBPairInformation[]",name:"lbPairsAvailable",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFeeRecipient",outputs:[{internalType:"address",name:"feeRecipient",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFlashLoanFee",outputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getLBPairAtIndex",outputs:[{internalType:"contract ILBPair",name:"lbPair",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLBPairImplementation",outputs:[{internalType:"address",name:"lbPairImplementation",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenA",type:"address"},{internalType:"contract IERC20",name:"tokenB",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"getLBPairInformation",outputs:[{components:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"contract ILBPair",name:"LBPair",type:"address"},{internalType:"bool",name:"createdByOwner",type:"bool"},{internalType:"bool",name:"ignoredForRouting",type:"bool"}],internalType:"struct ILBFactory.LBPairInformation",name:"lbPairInformation",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMaxFlashLoanFee",outputs:[{internalType:"uint256",name:"maxFee",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getMinBinStep",outputs:[{internalType:"uint256",name:"minBinStep",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getNumberOfLBPairs",outputs:[{internalType:"uint256",name:"lbPairNumber",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNumberOfQuoteAssets",outputs:[{internalType:"uint256",name:"numberOfQuoteAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOpenBinSteps",outputs:[{internalType:"uint256[]",name:"openBinStep",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"getPreset",outputs:[{internalType:"uint256",name:"baseFactor",type:"uint256"},{internalType:"uint256",name:"filterPeriod",type:"uint256"},{internalType:"uint256",name:"decayPeriod",type:"uint256"},{internalType:"uint256",name:"reductionFactor",type:"uint256"},{internalType:"uint256",name:"variableFeeControl",type:"uint256"},{internalType:"uint256",name:"protocolShare",type:"uint256"},{internalType:"uint256",name:"maxVolatilityAccumulator",type:"uint256"},{internalType:"bool",name:"isOpen",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getQuoteAssetAtIndex",outputs:[{internalType:"contract IERC20",name:"asset",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"}],name:"isQuoteAsset",outputs:[{internalType:"bool",name:"isQuote",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"}],name:"removePreset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"removeQuoteAsset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"revokePendingOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"feeRecipient",type:"address"}],name:"setFeeRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"setFeesParametersOnPair",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],name:"setFlashLoanFee",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"bool",name:"ignored",type:"bool"}],name:"setLBPairIgnored",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newLBPairImplementation",type:"address"}],name:"setLBPairImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner_",type:"address"}],name:"setPendingOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"},{internalType:"bool",name:"isOpen",type:"bool"}],name:"setPreset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"bool",name:"isOpen",type:"bool"}],name:"setPresetOpenState",outputs:[],stateMutability:"nonpayable",type:"function"}],PAIR:[{inputs:[{internalType:"contract ILBFactory",name:"factory_",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AddressHelper__CallFailed",type:"error"},{inputs:[],name:"AddressHelper__NonContract",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"BinHelper__CompositionFactorFlawed",type:"error"},{inputs:[],name:"BinHelper__LiquidityOverflow",type:"error"},{inputs:[],name:"FeeHelper__FeeTooLarge",type:"error"},{inputs:[],name:"LBPair__AddressZero",type:"error"},{inputs:[],name:"LBPair__AlreadyInitialized",type:"error"},{inputs:[],name:"LBPair__EmptyMarketConfigs",type:"error"},{inputs:[],name:"LBPair__FlashLoanCallbackFailed",type:"error"},{inputs:[],name:"LBPair__FlashLoanInsufficientAmount",type:"error"},{inputs:[],name:"LBPair__InsufficientAmountIn",type:"error"},{inputs:[],name:"LBPair__InsufficientAmountOut",type:"error"},{inputs:[],name:"LBPair__InvalidInput",type:"error"},{inputs:[],name:"LBPair__InvalidStaticFeeParameters",type:"error"},{inputs:[],name:"LBPair__MaxTotalFeeExceeded",type:"error"},{inputs:[],name:"LBPair__OnlyFactory",type:"error"},{inputs:[],name:"LBPair__OnlyProtocolFeeRecipient",type:"error"},{inputs:[],name:"LBPair__OutOfLiquidity",type:"error"},{inputs:[],name:"LBPair__TokenNotSupported",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroAmount",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroAmountsOut",type:"error"},{inputs:[],name:"LBPair__ZeroBorrowAmount",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroShares",type:"error"},{inputs:[],name:"LBToken__AddressThisOrZero",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBToken__BurnExceedsBalance",type:"error"},{inputs:[],name:"LBToken__InvalidLength",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"LBToken__SelfApproval",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"LBToken__SpenderNotApproved",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBToken__TransferExceedsBalance",type:"error"},{inputs:[],name:"LiquidityConfigurations__InvalidConfig",type:"error"},{inputs:[],name:"OracleHelper__InvalidOracleId",type:"error"},{inputs:[],name:"OracleHelper__LookUpTimestampTooOld",type:"error"},{inputs:[],name:"OracleHelper__NewLengthTooSmall",type:"error"},{inputs:[],name:"PackedUint128Math__AddOverflow",type:"error"},{inputs:[],name:"PackedUint128Math__MultiplierTooLarge",type:"error"},{inputs:[],name:"PackedUint128Math__SubUnderflow",type:"error"},{inputs:[],name:"PairParametersHelper__InvalidParameter",type:"error"},{inputs:[],name:"ReentrancyGuard__ReentrantCall",type:"error"},{inputs:[],name:"SafeCast__Exceeds128Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds24Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds40Bits",type:"error"},{inputs:[],name:"TokenHelper__TransferFailed",type:"error"},{inputs:[],name:"Uint128x128Math__LogUnderflow",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulDivOverflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulShiftOverflow",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"feeRecipient",type:"address"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"CollectedProtocolFees",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint24",name:"id",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"CompositionFees",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],name:"DepositedToBins",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"contract ILBFlashLoanCallback",name:"receiver",type:"address"},{indexed:!1,internalType:"uint24",name:"activeId",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"amounts",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"FlashLoan",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint24",name:"idReference",type:"uint24"},{indexed:!1,internalType:"uint24",name:"volatilityReference",type:"uint24"}],name:"ForcedDecay",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint16",name:"oracleLength",type:"uint16"}],name:"OracleLengthIncreased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint16",name:"baseFactor",type:"uint16"},{indexed:!1,internalType:"uint16",name:"filterPeriod",type:"uint16"},{indexed:!1,internalType:"uint16",name:"decayPeriod",type:"uint16"},{indexed:!1,internalType:"uint16",name:"reductionFactor",type:"uint16"},{indexed:!1,internalType:"uint24",name:"variableFeeControl",type:"uint24"},{indexed:!1,internalType:"uint16",name:"protocolShare",type:"uint16"},{indexed:!1,internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"StaticFeeParametersSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint24",name:"id",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"amountsIn",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"amountsOut",type:"bytes32"},{indexed:!1,internalType:"uint24",name:"volatilityAccumulator",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"Swap",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],name:"WithdrawnFromBins",type:"event"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"approveForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"batchBalances",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"batchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amountsToBurn",type:"uint256[]"}],name:"burn",outputs:[{internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"collectProtocolFees",outputs:[{internalType:"bytes32",name:"collectedProtocolFees",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBFlashLoanCallback",name:"receiver",type:"address"},{internalType:"bytes32",name:"amounts",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flashLoan",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"forceDecay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getActiveId",outputs:[{internalType:"uint24",name:"activeId",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"getBin",outputs:[{internalType:"uint128",name:"binReserveX",type:"uint128"},{internalType:"uint128",name:"binReserveY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBinStep",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getFactory",outputs:[{internalType:"contract ILBFactory",name:"factory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"price",type:"uint256"}],name:"getIdFromPrice",outputs:[{internalType:"uint24",name:"id",type:"uint24"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bool",name:"swapForY",type:"bool"},{internalType:"uint24",name:"id",type:"uint24"}],name:"getNextNonEmptyBin",outputs:[{internalType:"uint24",name:"nextId",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOracleParameters",outputs:[{internalType:"uint8",name:"sampleLifetime",type:"uint8"},{internalType:"uint16",name:"size",type:"uint16"},{internalType:"uint16",name:"activeSize",type:"uint16"},{internalType:"uint40",name:"lastUpdated",type:"uint40"},{internalType:"uint40",name:"firstTimestamp",type:"uint40"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint40",name:"lookupTimestamp",type:"uint40"}],name:"getOracleSampleAt",outputs:[{internalType:"uint64",name:"cumulativeId",type:"uint64"},{internalType:"uint64",name:"cumulativeVolatility",type:"uint64"},{internalType:"uint64",name:"cumulativeBinCrossed",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"getPriceFromId",outputs:[{internalType:"uint256",name:"price",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getProtocolFees",outputs:[{internalType:"uint128",name:"protocolFeeX",type:"uint128"},{internalType:"uint128",name:"protocolFeeY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getReserves",outputs:[{internalType:"uint128",name:"reserveX",type:"uint128"},{internalType:"uint128",name:"reserveY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStaticFeeParameters",outputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapIn",outputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"uint128",name:"amountOutLeft",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapOut",outputs:[{internalType:"uint128",name:"amountInLeft",type:"uint128"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getTokenX",outputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getTokenY",outputs:[{internalType:"contract IERC20",name:"tokenY",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getVariableFeeParameters",outputs:[{internalType:"uint24",name:"volatilityAccumulator",type:"uint24"},{internalType:"uint24",name:"volatilityReference",type:"uint24"},{internalType:"uint24",name:"idReference",type:"uint24"},{internalType:"uint40",name:"timeOfLastUpdate",type:"uint40"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"newLength",type:"uint16"}],name:"increaseOracleLength",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"},{internalType:"uint24",name:"activeId",type:"uint24"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"bytes32[]",name:"liquidityConfigs",type:"bytes32[]"},{internalType:"address",name:"refundTo",type:"address"}],name:"mint",outputs:[{internalType:"bytes32",name:"amountsReceived",type:"bytes32"},{internalType:"bytes32",name:"amountsLeft",type:"bytes32"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"setStaticFeeParameters",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"swapForY",type:"bool"},{internalType:"address",name:"to",type:"address"}],name:"swap",outputs:[{internalType:"bytes32",name:"amountsOut",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"factoryV1",type:"address"},{internalType:"address",name:"legacyFactoryV2",type:"address"},{internalType:"address",name:"factoryV2",type:"address"},{internalType:"address",name:"legacyRouterV2",type:"address"},{internalType:"address",name:"routerV2",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"JoeLibrary__AddressZero",type:"error"},{inputs:[],name:"JoeLibrary__IdenticalAddresses",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientAmount",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientLiquidity",type:"error"},{inputs:[],name:"LBQuoter_InvalidLength",type:"error"},{inputs:[],name:"SafeCast__Exceeds128Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds24Bits",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulDivOverflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulShiftOverflow",type:"error"},{inputs:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"uint128",name:"amountIn",type:"uint128"}],name:"findBestPathFromAmountIn",outputs:[{components:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"address[]",name:"pairs",type:"address[]"},{internalType:"uint256[]",name:"binSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint128[]",name:"virtualAmountsWithoutSlippage",type:"uint128[]"},{internalType:"uint128[]",name:"fees",type:"uint128[]"}],internalType:"struct LBQuoter.Quote",name:"quote",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"uint128",name:"amountOut",type:"uint128"}],name:"findBestPathFromAmountOut",outputs:[{components:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"address[]",name:"pairs",type:"address[]"},{internalType:"uint256[]",name:"binSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint128[]",name:"virtualAmountsWithoutSlippage",type:"uint128[]"},{internalType:"uint128[]",name:"fees",type:"uint128[]"}],internalType:"struct LBQuoter.Quote",name:"quote",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFactoryV1",outputs:[{internalType:"address",name:"factoryV1",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFactoryV2",outputs:[{internalType:"address",name:"factoryV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyFactoryV2",outputs:[{internalType:"address",name:"legacyFactoryV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyRouterV2",outputs:[{internalType:"address",name:"legacyRouterV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRouterV2",outputs:[{internalType:"address",name:"routerV2",type:"address"}],stateMutability:"view",type:"function"}]};const IC={name:"trader_joe_v2_1",label:"Trader Joe v2.1",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABvCAYAAAA0YEQFAAABAGlDQ1BpY2MAABiVY2BgPMEABCwGDAy5eSVFQe5OChGRUQrsDxgYgRAMEpOLCxhwA6Cqb9cgai/r4lGHC3CmpBYnA+kPQKxSBLQcaKQIkC2SDmFrgNhJELYNiF1eUlACZAeA2EUhQc5AdgqQrZGOxE5CYicXFIHU9wDZNrk5pckIdzPwpOaFBgNpDiCWYShmCGJwZ3AC+R+iJH8RA4PFVwYG5gkIsaSZDAzbWxkYJG4hxFQWMDDwtzAwbDuPEEOESUFiUSJYiAWImdLSGBg+LWdg4I1kYBC+wMDAFQ0LCBxuUwC7zZ0hHwjTGXIYUoEingx5DMkMekCWEYMBgyGDGQCm1j8/yRb+6wAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAABPXpUWHRSYXcgcHJvZmlsZSB0eXBlIGljYwAAKJGd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dpIkIvfPvbfZxKbSPGHZbVbQTZAivLiFBkJo+Vw6QdUo4TPfbA9eClU/AyGSjPjYupX3hqa+0nXdf9D0vV19cAvEyLnRj6kUceSS3TQTFs8hqxwRom3iZMNzLzBlZ6kB2voBydUo6rteOSk/LIy+bgpqIHcVE71v1nDz/88AfvvYKdR1fSXgPwKlpUCBDuULGYb6bTA47COiu8iR21WbFew1qvIKX7tdY5N51yUpksa9edViZ8pzcwcEW10C7XXgNwaVvkldq/X50ENHp6Us1qNQMgT46TMlapdCbtmGZ1dOOuXWeW5ILX+o5/TFprnBMfLC2RP/T/B96QkmdPWpSQAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIzLTA3LTA3VDA5OjE5OjA4KzAwOjAwC8IICQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMy0wNy0wN1QwOToxOTowOCswMDowMHqfsLUAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjMtMDctMDdUMDk6MTk6MDgrMDA6MDAtipFqAAAAHnRFWHRpY2M6Y29weXJpZ2h0AEdvb2dsZSBJbmMuIDIwMTasCzM4AAAAFHRFWHRpY2M6ZGVzY3JpcHRpb24Ac1JHQrqQcwcAAAAASUVORK5CYII=",protocol:"trader_joe_v2_1",slippage:!0,blockchains:["avalanche"],avalanche:{router:{address:"0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",api:TC.ROUTER},factory:{address:"0x8e42f2F4101563bF679975178e880FD87d3eFd4e",api:TC.FACTORY},pair:{api:TC.PAIR},quoter:{address:"0x64b57F4249aA99a812212cee7DAEFEDC40B203cD",api:TC.QUOTER}}};var kC=e=>new ej(Object.assign(IC,{scope:e,findPath:e=>TC.findPath({...e,exchange:IC}),pathExists:e=>TC.pathExists({...e,exchange:IC}),getAmounts:e=>TC.getAmounts({...e,exchange:IC}),getPrep:e=>TC.getPrep({...e,exchange:IC}),getTransaction:e=>TC.getTransaction({...e,exchange:IC})}));const LC={name:"uniswap_v2",label:"Uniswap v2",logo:"data:image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YyLjI0NFpNMjY2LjM2NCAyNzYuMTcyQzI2OC43MTQgMjcyLjgzNCAyNjcuNjg2IDI2OS4yMjUgMjYzLjY5IDI2Ni43ODVDMjU2LjA4IDI2Mi4xMzggMjQ0LjU3MSAyNjUuOTgzIDI0NC41NzEgMjczLjE3M0MyNDQuNTcxIDI3Ni43NTIgMjUwLjU3MiAyODAuNjU2IDI1Ni4wNzQgMjgwLjY1NkMyNTkuNzM1IDI4MC42NTYgMjY0Ljc0NiAyNzguNDczIDI2Ni4zNjQgMjc2LjE3MloiIGZpbGw9IiNGRjAwN0EiLz4KPC9zdmc+Cg==",protocol:"uniswap_v2",slippage:!0,blockchains:["ethereum"],ethereum:{router:{address:"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",api:sj.ROUTER},factory:{address:"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",api:sj.FACTORY},pair:{api:sj.PAIR}}};var xC=e=>new ej(Object.assign(LC,{scope:e,findPath:e=>sj.findPath({...e,exchange:LC}),pathExists:e=>sj.pathExists({...e,exchange:LC}),getAmounts:e=>sj.getAmounts({...e,exchange:LC}),getPrep:e=>sj.getPrep({...e,exchange:LC}),getTransaction:e=>sj.getTransaction({...e,exchange:LC})}));function SC(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const jC="0x0000000000000000000000000000000000000001",CC="0x0000000000000000000000000000000000000002",DC=({blockchain:e,exchange:t,path:n})=>{if(!n)return;let r=n.map(((t,r)=>t===he[e].currency.address&&n[r+1]!=he[e].wrapped.address&&n[r-1]!=he[e].wrapped.address?he[e].wrapped.address:t));return r[0]==he[e].currency.address&&r[1]==he[e].wrapped.address?r.splice(0,1):r[r.length-1]==he[e].currency.address&&r[r.length-2]==he[e].wrapped.address&&r.splice(r.length-1,1),r},OC=async({blockchain:e,exchange:t,path:n,amountIn:r,amountOut:i,block:o})=>{if((n=DC({blockchain:e,exchange:t,path:n})).length>2)throw"Uniswap V3 can only check paths for up to 2 tokens!";try{let o=(await Promise.all(t.fees.map((r=>PI({blockchain:he[e].name,address:t[e].factory.address,method:"getPool",api:t[e].factory.api,cache:3600,params:[n[0],n[1],r]}).then((t=>({blockchain:e,address:t,path:n,fee:r,token0:[...n].sort()[0],token1:[...n].sort()[1]}))).catch((()=>{})))))).filter(Boolean);return o=o.filter((t=>t.address!=he[e].zero)),o=(await Promise.all(o.map((async e=>{try{let n;return n=r?await(async({exchange:e,pool:t,inputAmount:n})=>(await PI({blockchain:t.blockchain,address:e[t.blockchain].quoter.address,api:e[t.blockchain].quoter.api,method:"quoteExactInput",params:{path:aI(["address","uint24","address"],[t.path[0],t.fee,t.path[1]]),amountIn:n},cache:5})).amountOut)({exchange:t,pool:e,inputAmount:r}):await(async({exchange:e,pool:t,outputAmount:n})=>(await PI({blockchain:t.blockchain,address:e[t.blockchain].quoter.address,api:e[t.blockchain].quoter.api,method:"quoteExactOutput",params:{path:aI(["address","uint24","address"],[t.path[1],t.fee,t.path[0]]),amountOut:n},cache:5})).amountIn)({exchange:t,pool:e,outputAmount:i}),{...e,amountIn:r||n,amountOut:i||n}}catch(e){}})))).filter(Boolean),r?o.sort(((e,t)=>t.amountOut.gt(e.amountOut)?1:-1))[0]:o.sort(((e,t)=>t.amountIn.lt(e.amountIn)?1:-1))[0]}catch(e){return}};let zC=({blockchain:e,exchange:t,path:n,pools:r,amountIn:i})=>r[r.length-1].amountOut,_C=async({blockchain:e,exchange:t,path:n,pools:r,amountOut:i,block:o})=>{if(void 0===o)return r[0].amountIn;{let n;2==r.length?n=aI(["address","uint24","address","uint24","address"],[r[1].path[1],r[1].fee,r[0].path[1],r[0].fee,r[0].path[0]]):1==r.length&&(n=aI(["address","uint24","address"],[r[0].path[1],r[0].fee,r[0].path[0]]));return(await PI({block:o,blockchain:e,address:t[e].quoter.address,api:t[e].quoter.api,method:"quoteExactOutput",params:{path:n,amountOut:i}})).amountIn}};var PC={findPath:async({blockchain:e,exchange:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(he[e].currency.address)&&[n,r].includes(he[e].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await OC({exchange:t,blockchain:e,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==he[e].wrapped.address||r==he[e].wrapped.address||(c=[],o||s?(c.push(await OC({exchange:t,blockchain:e,path:[he[e].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await OC({exchange:t,blockchain:e,path:[n,he[e].wrapped.address],amountOut:c[0].amountIn}))):(c.push(await OC({exchange:t,blockchain:e,path:[n,he[e].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await OC({exchange:t,blockchain:e,path:[he[e].wrapped.address,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length&&(u=[n,he[e].wrapped.address,r])),!u){c=[];let l=await Promise.all(he[e].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await OC({exchange:t,blockchain:e,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await OC({exchange:t,blockchain:e,path:[n,u],amountOut:c[0].amountIn}))):(c.push(await OC({exchange:t,blockchain:e,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await OC({exchange:t,blockchain:e,path:[u,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length)return[u,c]}))),d=l.filter(Boolean)[0];d&&(u=[n,d[0],r],c=d[1])}return SC([u,"optionalAccess",e=>e.length])&&u[0]==he[e].currency.address?u.splice(1,0,he[e].wrapped.address):SC([u,"optionalAccess",e=>e.length])&&u[u.length-1]==he[e].currency.address&&u.splice(u.length-1,0,he[e].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:DC({blockchain:e,exchange:t,path:u})}},pathExists:async({blockchain:e,exchange:t,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>{try{return!!await OC({blockchain:e,exchange:t,path:n,amountIn:r||o,amountOut:i||a})}catch(e){return!1}},getAmounts:async({blockchain:e,exchange:t,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await _C({blockchain:e,exchange:t,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await zC({blockchain:e,exchange:t,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await _C({blockchain:e,exchange:t,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await zC({blockchain:e,exchange:t,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getPrep:async({exchange:e,blockchain:t,tokenIn:n,amountIn:r,account:i})=>{if(n===he[t].currency.address)return;if((await PI({blockchain:t,address:n,method:"allowance",api:ox[t][20],params:[i,e[t].permit.address]})).lt(r)){return{transaction:{blockchain:t,from:i,to:n,api:ox[t][20],method:"approve",params:[e[t].permit.address,he[t].maxInt]}}}{const o=await PI({blockchain:t,address:e[t].permit.address,method:"allowance",api:e[t].permit.api,params:[i,n,e[t].router.address]});if(o.amount.lt(r)||o.expiration-1800{let y,m=[],g=[],v="0";if(p){const e=by(p.signature).length;let t;65!==e&&64!==e||(t=function(e){return Ny(wy([(e=Sy(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}(Sy(p.signature))),m.push("0a"),g.push(Lg.encode(["((address token,uint160 amount,uint48 expiration,uint48 nonce) details,address spender,uint256 sigDeadline)","bytes"],[p,t]))}r[0]===he[e].currency.address&&(m.push("0b"),g.push(Lg.encode(["address","uint256"],[CC,(i||o).toString()])),v=(i||o).toString()),1===n.length?y=aI(["address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1]]):2===n.length&&(y=aI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]])),d||u?(m.push("00"),g.push(Lg.encode(["address","uint256","uint256","bytes","bool"],[r[r.length-1]===he[e].currency.address?CC:jC,(i||o).toString(),(a||s).toString(),y,r[0]!==he[e].currency.address&&!f]))):(m.push("01"),g.push(Lg.encode(["address","uint256","uint256","bytes","bool"],[r[r.length-1]===he[e].currency.address?CC:jC,(a||s).toString(),(i||o).toString(),y,r[0]!==he[e].currency.address&&!f]))),r[r.length-1]===he[e].currency.address&&(m.push("0c"),g.push(Lg.encode(["address","uint256"],[jC,(a||s).toString()])));return{blockchain:e,from:h,to:t[e].router.address,api:t[e].router.api,method:"execute",params:{commands:`0x${m.join("")}`,inputs:g},value:v}},ROUTER:[{inputs:[{components:[{internalType:"address",name:"permit2",type:"address"},{internalType:"address",name:"weth9",type:"address"},{internalType:"address",name:"seaportV1_5",type:"address"},{internalType:"address",name:"seaportV1_4",type:"address"},{internalType:"address",name:"openseaConduit",type:"address"},{internalType:"address",name:"nftxZap",type:"address"},{internalType:"address",name:"x2y2",type:"address"},{internalType:"address",name:"foundation",type:"address"},{internalType:"address",name:"sudoswap",type:"address"},{internalType:"address",name:"elementMarket",type:"address"},{internalType:"address",name:"nft20Zap",type:"address"},{internalType:"address",name:"cryptopunks",type:"address"},{internalType:"address",name:"looksRareV2",type:"address"},{internalType:"address",name:"routerRewardsDistributor",type:"address"},{internalType:"address",name:"looksRareRewardsDistributor",type:"address"},{internalType:"address",name:"looksRareToken",type:"address"},{internalType:"address",name:"v2Factory",type:"address"},{internalType:"address",name:"v3Factory",type:"address"},{internalType:"bytes32",name:"pairInitCodeHash",type:"bytes32"},{internalType:"bytes32",name:"poolInitCodeHash",type:"bytes32"}],internalType:"struct RouterParameters",name:"params",type:"tuple"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"BalanceTooLow",type:"error"},{inputs:[],name:"BuyPunkFailed",type:"error"},{inputs:[],name:"ContractLocked",type:"error"},{inputs:[],name:"ETHNotAccepted",type:"error"},{inputs:[{internalType:"uint256",name:"commandIndex",type:"uint256"},{internalType:"bytes",name:"message",type:"bytes"}],name:"ExecutionFailed",type:"error"},{inputs:[],name:"FromAddressIsNotOwner",type:"error"},{inputs:[],name:"InsufficientETH",type:"error"},{inputs:[],name:"InsufficientToken",type:"error"},{inputs:[],name:"InvalidBips",type:"error"},{inputs:[{internalType:"uint256",name:"commandType",type:"uint256"}],name:"InvalidCommandType",type:"error"},{inputs:[],name:"InvalidOwnerERC1155",type:"error"},{inputs:[],name:"InvalidOwnerERC721",type:"error"},{inputs:[],name:"InvalidPath",type:"error"},{inputs:[],name:"InvalidReserves",type:"error"},{inputs:[],name:"InvalidSpender",type:"error"},{inputs:[],name:"LengthMismatch",type:"error"},{inputs:[],name:"SliceOutOfBounds",type:"error"},{inputs:[],name:"TransactionDeadlinePassed",type:"error"},{inputs:[],name:"UnableToClaim",type:"error"},{inputs:[],name:"UnsafeCast",type:"error"},{inputs:[],name:"V2InvalidPath",type:"error"},{inputs:[],name:"V2TooLittleReceived",type:"error"},{inputs:[],name:"V2TooMuchRequested",type:"error"},{inputs:[],name:"V3InvalidAmountOut",type:"error"},{inputs:[],name:"V3InvalidCaller",type:"error"},{inputs:[],name:"V3InvalidSwap",type:"error"},{inputs:[],name:"V3TooLittleReceived",type:"error"},{inputs:[],name:"V3TooMuchRequested",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"RewardsSent",type:"event"},{inputs:[{internalType:"bytes",name:"looksRareClaim",type:"bytes"}],name:"collectRewards",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"commands",type:"bytes"},{internalType:"bytes[]",name:"inputs",type:"bytes[]"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"commands",type:"bytes"},{internalType:"bytes[]",name:"inputs",type:"bytes[]"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"uniswapV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!0,internalType:"int24",name:"tickSpacing",type:"int24"}],name:"FeeAmountEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"int24",name:"tickSpacing",type:"int24"},{indexed:!1,internalType:"address",name:"pool",type:"address"}],name:"PoolCreated",type:"event"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"}],name:"createPool",outputs:[{internalType:"address",name:"pool",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],name:"enableFeeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint24",name:"",type:"uint24"}],name:"getPool",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"parameters",outputs:[{internalType:"address",name:"factory",type:"address"},{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"}],POOL:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"Collect",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"CollectProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid1",type:"uint256"}],name:"Flash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"observationCardinalityNextOld",type:"uint16"},{indexed:!1,internalType:"uint16",name:"observationCardinalityNextNew",type:"uint16"}],name:"IncreaseObservationCardinalityNext",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Initialize",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"feeProtocol0Old",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol1Old",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol0New",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol1New",type:"uint8"}],name:"SetFeeProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"int256",name:"amount0",type:"int256"},{indexed:!1,internalType:"int256",name:"amount1",type:"int256"},{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"uint128",name:"liquidity",type:"uint128"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Swap",type:"event"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collect",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal0X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal1X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"}],name:"increaseObservationCardinalityNext",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"liquidity",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxLiquidityPerTick",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"observations",outputs:[{internalType:"uint32",name:"blockTimestamp",type:"uint32"},{internalType:"int56",name:"tickCumulative",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityCumulativeX128",type:"uint160"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32[]",name:"secondsAgos",type:"uint32[]"}],name:"observe",outputs:[{internalType:"int56[]",name:"tickCumulatives",type:"int56[]"},{internalType:"uint160[]",name:"secondsPerLiquidityCumulativeX128s",type:"uint160[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"positions",outputs:[{internalType:"uint128",name:"liquidity",type:"uint128"},{internalType:"uint256",name:"feeGrowthInside0LastX128",type:"uint256"},{internalType:"uint256",name:"feeGrowthInside1LastX128",type:"uint256"},{internalType:"uint128",name:"tokensOwed0",type:"uint128"},{internalType:"uint128",name:"tokensOwed1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFees",outputs:[{internalType:"uint128",name:"token0",type:"uint128"},{internalType:"uint128",name:"token1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint8",name:"feeProtocol0",type:"uint8"},{internalType:"uint8",name:"feeProtocol1",type:"uint8"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slot0",outputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{internalType:"int24",name:"tick",type:"int24"},{internalType:"uint16",name:"observationIndex",type:"uint16"},{internalType:"uint16",name:"observationCardinality",type:"uint16"},{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"},{internalType:"uint8",name:"feeProtocol",type:"uint8"},{internalType:"bool",name:"unlocked",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"}],name:"snapshotCumulativesInside",outputs:[{internalType:"int56",name:"tickCumulativeInside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityInsideX128",type:"uint160"},{internalType:"uint32",name:"secondsInside",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"bool",name:"zeroForOne",type:"bool"},{internalType:"int256",name:"amountSpecified",type:"int256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[{internalType:"int256",name:"amount0",type:"int256"},{internalType:"int256",name:"amount1",type:"int256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int16",name:"",type:"int16"}],name:"tickBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"tickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"",type:"int24"}],name:"ticks",outputs:[{internalType:"uint128",name:"liquidityGross",type:"uint128"},{internalType:"int128",name:"liquidityNet",type:"int128"},{internalType:"uint256",name:"feeGrowthOutside0X128",type:"uint256"},{internalType:"uint256",name:"feeGrowthOutside1X128",type:"uint256"},{internalType:"int56",name:"tickCumulativeOutside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityOutsideX128",type:"uint160"},{internalType:"uint32",name:"secondsOutside",type:"uint32"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"quoteExactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactInputSingleParams",name:"params",type:"tuple"}],name:"quoteExactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"quoteExactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactOutputSingleParams",name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"path",type:"bytes"}],name:"uniswapV3SwapCallback",outputs:[],stateMutability:"view",type:"function"}],PERMIT2:[{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"}],name:"AllowanceExpired",type:"error"},{inputs:[],name:"ExcessiveInvalidation",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"InsufficientAllowance",type:"error"},{inputs:[{internalType:"uint256",name:"maxAmount",type:"uint256"}],name:"InvalidAmount",type:"error"},{inputs:[],name:"InvalidContractSignature",type:"error"},{inputs:[],name:"InvalidNonce",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"InvalidSignatureLength",type:"error"},{inputs:[],name:"InvalidSigner",type:"error"},{inputs:[],name:"LengthMismatch",type:"error"},{inputs:[{internalType:"uint256",name:"signatureDeadline",type:"uint256"}],name:"SignatureExpired",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint160",name:"amount",type:"uint160"},{indexed:!1,internalType:"uint48",name:"expiration",type:"uint48"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"spender",type:"address"}],name:"Lockdown",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint48",name:"newNonce",type:"uint48"},{indexed:!1,internalType:"uint48",name:"oldNonce",type:"uint48"}],name:"NonceInvalidation",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint160",name:"amount",type:"uint160"},{indexed:!1,internalType:"uint48",name:"expiration",type:"uint48"},{indexed:!1,internalType:"uint48",name:"nonce",type:"uint48"}],name:"Permit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"uint256",name:"word",type:"uint256"},{indexed:!1,internalType:"uint256",name:"mask",type:"uint256"}],name:"UnorderedNonceInvalidation",type:"event"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint48",name:"newNonce",type:"uint48"}],name:"invalidateNonces",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"wordPos",type:"uint256"},{internalType:"uint256",name:"mask",type:"uint256"}],name:"invalidateUnorderedNonces",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"}],internalType:"struct IAllowanceTransfer.TokenSpenderPair[]",name:"approvals",type:"tuple[]"}],name:"lockdown",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],name:"nonceBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IAllowanceTransfer.PermitDetails[]",name:"details",type:"tuple[]"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IAllowanceTransfer.PermitBatch",name:"permitBatch",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IAllowanceTransfer.PermitDetails",name:"details",type:"tuple"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IAllowanceTransfer.PermitSingle",name:"permitSingle",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions",name:"permitted",type:"tuple"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails",name:"transferDetails",type:"tuple"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions[]",name:"permitted",type:"tuple[]"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitBatchTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails[]",name:"transferDetails",type:"tuple[]"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions",name:"permitted",type:"tuple"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails",name:"transferDetails",type:"tuple"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes32",name:"witness",type:"bytes32"},{internalType:"string",name:"witnessTypeString",type:"string"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitWitnessTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions[]",name:"permitted",type:"tuple[]"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitBatchTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails[]",name:"transferDetails",type:"tuple[]"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes32",name:"witness",type:"bytes32"},{internalType:"string",name:"witnessTypeString",type:"string"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitWitnessTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"address",name:"token",type:"address"}],internalType:"struct IAllowanceTransfer.AllowanceTransferDetails[]",name:"transferDetails",type:"tuple[]"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"address",name:"token",type:"address"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]};const BC={name:"uniswap_v3",label:"Uniswap v3",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIGRhdGEtdGVzdGlkPSJ1bmlzd2FwLWxvZ28iIGNsYXNzPSJyZ3c2ZXo0NHAgcmd3NmV6NGVqIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMjAuMzUyNiAxOS45MjQyQzIwLjI5MjggMjAuMTU0OSAyMC4xODg1IDIwLjM3MTUgMjAuMDQ1NSAyMC41NjE4QzE5Ljc3OTMgMjAuOTA4OCAxOS40MjcgMjEuMTc5NCAxOS4wMjM5IDIxLjM0NjZDMTguNjYxNCAyMS41MDM1IDE4LjI3NzQgMjEuNjA1IDE3Ljg4NDkgMjEuNjQ3NUMxNy44MDQyIDIxLjY1NzggMTcuNzI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jI3OTcgMzkuNDM3NkMzMC42NTQxIDM5LjM0OTIgMzEuMDE5IDM5LjIyNDEgMzEuMzY5MSAzOS4wNjQyTDMxLjMxODcgMzkuMTA0NlpNMjEuMDgwMSAzNi45NjE5QzIxLjExMjMgMzYuOTk4OSAyMS4xNDQ5IDM3LjAzNTUgMjEuMTc3OSAzNy4wNzE4QzIxLjE2NDQgMzcuMDU2NyAyMS4xNTEgMzcuMDQxNSAyMS4xMzc1IDM3LjAyNjRMMjEuMTM3NSAzNy4wMjY0TDIxLjEzNzUgMzcuMDI2NEwyMS4xMzc1IDM3LjAyNjRDMjEuMTE4NCAzNy4wMDQ5IDIxLjA5OTMgMzYuOTgzNCAyMS4wODAxIDM2Ljk2MTlaIiBmaWxsPSJjdXJyZW50Q29sb3IiPjwvcGF0aD48L3N2Zz4K",protocol:"uniswap_v3",slippage:!0,fees:[100,500,3e3,1e4],blockchains:["ethereum","bsc","polygon","optimism","arbitrum"],ethereum:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:PC.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:PC.FACTORY},pool:{api:PC.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:PC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:PC.PERMIT2}},bsc:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:PC.ROUTER},factory:{address:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",api:PC.FACTORY},pool:{api:PC.POOL},quoter:{address:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",api:PC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:PC.PERMIT2}},polygon:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:PC.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:PC.FACTORY},pool:{api:PC.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:PC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:PC.PERMIT2}},optimism:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:PC.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:PC.FACTORY},pool:{api:PC.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:PC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:PC.PERMIT2}},arbitrum:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:PC.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:PC.FACTORY},pool:{api:PC.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:PC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:PC.PERMIT2}},base:{router:{address:"0x198EF79F1F515F02dFE9e3115eD9fC07183f02fC",api:PC.ROUTER},factory:{address:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",api:PC.FACTORY},pool:{api:PC.POOL},quoter:{address:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",api:PC.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:PC.PERMIT2}}};var RC=e=>new ej(Object.assign(BC,{scope:e,findPath:e=>PC.findPath({...e,exchange:BC}),pathExists:e=>PC.pathExists({...e,exchange:BC}),getAmounts:e=>PC.getAmounts({...e,exchange:BC}),getPrep:e=>PC.getPrep({...e,exchange:BC}),getTransaction:e=>PC.getTransaction({...e,exchange:BC})}));var UC={findPath:async({blockchain:e,tokenIn:t,tokenOut:n})=>{if(![t,n].includes(he[e].currency.address)||![t,n].includes(he[e].wrapped.address))return{path:void 0,exchangePath:void 0};let r=[t,n];return{path:r,exchangePath:r}},pathExists:async({blockchain:e,path:t})=>!(!t||2!==t.length)&&(t.includes(he[e].currency.address)&&t.includes(he[e].wrapped.address)),getAmounts:async({path:e,block:t,tokenIn:n,tokenOut:r,amountOut:i,amountIn:o,amountInMax:a,amountOutMin:s})=>(i?o=a=s=i:o?i=a=s=o:s?o=a=i=s:a&&(i=s=o=a),{amountOut:i,amountIn:o,amountInMax:a,amountOutMin:s}),getTransaction:({exchange:e,blockchain:t,path:n,amountIn:r,amountInMax:i,amountOut:o,amountOutMin:a,amountInInput:s,amountOutInput:u,amountInMaxInput:c,amountOutMinInput:l,account:d})=>{let h={blockchain:t,from:d,to:e[t].router.address,api:e[t].router.api};return n[0]===he[t].currency.address&&n[1]===he[t].wrapped.address?(h.method="deposit",h.value=r.toString(),h):n[0]===he[t].wrapped.address&&n[1]===he[t].currency.address?(h.method="withdraw",h.value=0,h.params={wad:r},h):void 0},WETH:[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"guy",type:"address"},{name:"wad",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"src",type:"address"},{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"wad",type:"uint256"}],name:"withdraw",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"deposit",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"guy",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Withdrawal",type:"event"}]};const WC={name:"wavax",label:"Wrapped Avax",logo:he.avalanche.wrapped.logo,protocol:"weth",slippage:!1,blockchains:["avalanche"],avalanche:{router:{address:he.avalanche.wrapped.address,api:UC.WETH}}};var QC=e=>new ej(Object.assign(WC,{scope:e,findPath:e=>UC.findPath({...e,exchange:WC}),pathExists:e=>UC.pathExists({...e,exchange:WC}),getAmounts:e=>UC.getAmounts({...e,exchange:WC}),getPrep:e=>{},getTransaction:e=>UC.getTransaction({...e,exchange:WC})}));const YC={name:"wbnb",label:"Wrapped BNB",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg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lMOTYsNDcuNUM5Niw0Ny40LDgwLjYsNTYuNCw4MC42LDU2LjRMODAuNiw1Ni40eiBNNDMuMSw2NS40bDE1LjQtOWwtMTUuNC05bC0xNS40LDl2MThsMTUuNCw5TDQzLjEsNjUuNAoJTDQzLjEsNjUuNHogTTQzLjEsOTUuOUwyNy43LDg3djQ4LjVsNDIsMjQuMnYtMThsLTI2LjYtMTUuM1Y5NS45TDQzLjEsOTUuOXoiLz4KPC9zdmc+Cg==",slippage:!1,blockchains:["bsc"],bsc:{router:{address:he.bsc.wrapped.address,api:UC.WETH}}};var FC=e=>new ej(Object.assign(YC,{scope:e,findPath:e=>UC.findPath({...e,exchange:YC}),pathExists:e=>UC.pathExists({...e,exchange:YC}),getAmounts:e=>UC.getAmounts({...e,exchange:YC}),getPrep:e=>{},getTransaction:e=>UC.getTransaction({...e,exchange:YC})}));const VC={name:"weth",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiB0ZXh0LXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIgoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjgzLjUgMjgzLjUiCgkgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjgzLjUgMjgzLjU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojMzQzNDM0O30KCS5zdDF7ZmlsbDojOEM4QzhDO30KCS5zdDJ7ZmlsbDojM0MzQzNCO30KCS5zdDN7ZmlsbDojMTQxNDE0O30KCS5zdDR7ZmlsbDojMzkzOTM5O30KPC9zdHlsZT4KPGc+Cgk8Zz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTQxLjcsMjUuOWwtMS41LDUuMnYxNTMuM2wxLjUsMS41bDcxLjItNDIuMUwxNDEuNywyNS45eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNS45TDcwLjYsMTQzLjhsNzEuMSw0Mi4xdi03NC40VjI1Ljl6Ii8+CgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MS43LDE5OS40bC0wLjgsMS4xdjU0LjZsMC44LDIuNWw3MS4yLTEwMC4zTDE0MS43LDE5OS40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["ethereum"],ethereum:{router:{address:he.ethereum.wrapped.address,api:UC.WETH}}};var HC=e=>new ej(Object.assign(VC,{scope:e,findPath:e=>UC.findPath({...e,exchange:VC}),pathExists:e=>UC.pathExists({...e,exchange:VC}),getAmounts:e=>UC.getAmounts({...e,exchange:VC}),getPrep:e=>{},getTransaction:e=>UC.getTransaction({...e,exchange:VC})}));const GC={name:"weth_arbitrum",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiB0ZXh0LXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIgoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjgzLjUgMjgzLjUiCgkgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjgzLjUgMjgzLjU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojMzQzNDM0O30KCS5zdDF7ZmlsbDojOEM4QzhDO30KCS5zdDJ7ZmlsbDojM0MzQzNCO30KCS5zdDN7ZmlsbDojMTQxNDE0O30KCS5zdDR7ZmlsbDojMzkzOTM5O30KPC9zdHlsZT4KPGc+Cgk8Zz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTQxLjcsMjUuOWwtMS41LDUuMnYxNTMuM2wxLjUsMS41bDcxLjItNDIuMUwxNDEuNywyNS45eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNS45TDcwLjYsMTQzLjhsNzEuMSw0Mi4xdi03NC40VjI1Ljl6Ii8+CgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MS43LDE5OS40bC0wLjgsMS4xdjU0LjZsMC44LDIuNWw3MS4yLTEwMC4zTDE0MS43LDE5OS40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["arbitrum"],arbitrum:{router:{address:he.arbitrum.wrapped.address,api:UC.WETH}}};var qC=e=>new ej(Object.assign(GC,{scope:e,findPath:e=>UC.findPath({...e,exchange:GC}),pathExists:e=>UC.pathExists({...e,exchange:GC}),getAmounts:e=>UC.getAmounts({...e,exchange:GC}),getPrep:e=>{},getTransaction:e=>UC.getTransaction({...e,exchange:GC})}));const ZC={name:"weth_optimism",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlc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zcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["optimism"],optimism:{router:{address:he.optimism.wrapped.address,api:UC.WETH}}};var JC=e=>new ej(Object.assign(ZC,{scope:e,findPath:e=>UC.findPath({...e,exchange:ZC}),pathExists:e=>UC.pathExists({...e,exchange:ZC}),getAmounts:e=>UC.getAmounts({...e,exchange:ZC}),getPrep:e=>{},getTransaction:e=>UC.getTransaction({...e,exchange:ZC})}));const XC={name:"weth_base",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiB0ZXh0LXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIgoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjgzLjUgMjgzLjUiCgkgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjgzLjUgMjgzLjU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojMzQzNDM0O30KCS5zdDF7ZmlsbDojOEM4QzhDO30KCS5zdDJ7ZmlsbDojM0MzQzNCO30KCS5zdDN7ZmlsbDojMTQxNDE0O30KCS5zdDR7ZmlsbDojMzkzOTM5O30KPC9zdHlsZT4KPGc+Cgk8Zz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTQxLjcsMjUuOWwtMS41LDUuMnYxNTMuM2wxLjUsMS41bDcxLjItNDIuMUwxNDEuNywyNS45eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNS45TDcwLjYsMTQzLjhsNzEuMSw0Mi4xdi03NC40VjI1Ljl6Ii8+CgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MS43LDE5OS40bC0wLjgsMS4xdjU0LjZsMC44LDIuNWw3MS4yLTEwMC4zTDE0MS43LDE5OS40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["base"],base:{router:{address:he.base.wrapped.address,api:UC.WETH}}};var KC=e=>new ej(Object.assign(XC,{scope:e,findPath:e=>UC.findPath({...e,exchange:XC}),pathExists:e=>UC.pathExists({...e,exchange:XC}),getAmounts:e=>UC.getAmounts({...e,exchange:XC}),getPrep:e=>{},getTransaction:e=>UC.getTransaction({...e,exchange:XC})}));const $C={name:"wftm",label:"Wrapped Fantom",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgi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MS4xLTEuMy0xLjktMi44LTIuOWwtMC4xLTAuMWMtMC4zLTAuMi0wLjctMC40LTEuMS0wLjdsLTAuNS0wLjNsLTEuNi0wLjlMMTMwLjcsNDYuNXoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["fantom"],fantom:{router:{address:he.fantom.wrapped.address,api:UC.WETH}}};var eD=e=>new ej(Object.assign($C,{scope:e,findPath:e=>UC.findPath({...e,exchange:$C}),pathExists:e=>UC.pathExists({...e,exchange:$C}),getAmounts:e=>UC.getAmounts({...e,exchange:$C}),getPrep:e=>{},getTransaction:e=>UC.getTransaction({...e,exchange:$C})}));const tD={name:"wmatic",label:"Wrapped MATIC",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0NS40IDQ1LjQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ1LjQgNDUuNDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM4MjQ3RTU7fQo8L3N0eWxlPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMzEuOSwxNi42Yy0wLjctMC40LTEuNi0wLjQtMi4yLDBsLTUuMywzLjFsLTMuNSwybC01LjEsMy4xYy0wLjcsMC40LTEuNiwwLjQtMi4yLDBsLTQtMi40CgljLTAuNi0wLjQtMS4xLTEuMS0xLjEtMnYtNC42YzAtMC45LDAuNS0xLjYsMS4xLTJsNC0yLjNjMC43LTAuNCwxLjUtMC40LDIuMiwwbDQsMi40YzAuNywwLjQsMS4xLDEuMSwxLjEsMnYzLjFsMy41LTIuMXYtMy4yCgljMC0wLjktMC40LTEuNi0xLjEtMmwtNy41LTQuNGMtMC43LTAuNC0xLjUtMC40LTIuMiwwTDYsMTEuN2MtMC43LDAuNC0xLjEsMS4xLTEuMSwxLjh2OC43YzAsMC45LDAuNCwxLjYsMS4xLDJsNy42LDQuNAoJYzAuNywwLjQsMS41LDAuNCwyLjIsMGw1LjEtMi45bDMuNS0yLjFsNS4xLTIuOWMwLjctMC40LDEuNi0wLjQsMi4yLDBsNCwyLjNjMC43LDAuNCwxLjEsMS4xLDEuMSwydjQuNmMwLDAuOS0wLjQsMS42LTEuMSwyCglsLTMuOSwyLjNjLTAuNywwLjQtMS41LDAuNC0yLjIsMGwtNC0yLjNjLTAuNy0wLjQtMS4xLTEuMS0xLjEtMnYtMi45TDIxLDI4Ljd2My4xYzAsMC45LDAuNCwxLjYsMS4xLDJsNy41LDQuNAoJYzAuNywwLjQsMS41LDAuNCwyLjIsMGw3LjUtNC40YzAuNy0wLjQsMS4xLTEuMSwxLjEtMlYyM2MwLTAuOS0wLjQtMS42LTEuMS0yQzM5LjIsMjEsMzEuOSwxNi42LDMxLjksMTYuNnoiLz4KPC9zdmc+Cg==",protocol:"weth",slippage:!1,blockchains:["polygon"],polygon:{router:{address:he.polygon.wrapped.address,api:UC.WETH}}};var nD=e=>new ej(Object.assign(tD,{scope:e,findPath:e=>UC.findPath({...e,exchange:tD}),pathExists:e=>UC.pathExists({...e,exchange:tD}),getAmounts:e=>UC.getAmounts({...e,exchange:tD}),getPrep:e=>{},getTransaction:e=>UC.getTransaction({...e,exchange:tD})}));const rD={name:"wxdai",label:"Wrapped XDAI",logo:he.gnosis.wrapped.logo,protocol:"weth",slippage:!1,blockchains:["gnosis"],gnosis:{router:{address:he.gnosis.wrapped.address,api:UC.WETH}}};var iD=e=>new ej(Object.assign(rD,{scope:e,findPath:e=>UC.findPath({...e,exchange:rD}),pathExists:e=>UC.pathExists({...e,exchange:rD}),getAmounts:e=>UC.getAmounts({...e,exchange:rD}),getPrep:e=>{},getTransaction:e=>UC.getTransaction({...e,exchange:rD})}));const oD=[oC(),RC(),yC(),xC(),sC(),kC(),gC(),bC(),cj(),HC(),JC(),KC(),qC(),FC(),nD(),eD(),QC(),iD()];oD.forEach((e=>{oD[e.name]=e})),oD.ethereum=[RC("ethereum"),xC("ethereum"),HC("ethereum")],oD.ethereum.forEach((e=>{oD.ethereum[e.name]=e})),oD.bsc=[yC("bsc"),RC("bsc"),sC("bsc"),FC("bsc")],oD.bsc.forEach((e=>{oD.bsc[e.name]=e})),oD.polygon=[RC("polygon"),gC("polygon"),nD("polygon")],oD.polygon.forEach((e=>{oD.polygon[e.name]=e})),oD.solana=[oC("solana")],oD.solana.forEach((e=>{oD.solana[e.name]=e})),oD.optimism=[RC("optimism"),JC("optimism")],oD.optimism.forEach((e=>{oD.optimism[e.name]=e})),oD.base=[RC("base"),KC("base")],oD.base.forEach((e=>{oD.base[e.name]=e})),oD.arbitrum=[RC("arbitrum"),qC("arbitrum")],oD.arbitrum.forEach((e=>{oD.arbitrum[e.name]=e})),oD.fantom=[bC("fantom"),eD("fantom")],oD.fantom.forEach((e=>{oD.fantom[e.name]=e})),oD.avalanche=[kC("avalanche"),QC("avalanche")],oD.avalanche.forEach((e=>{oD.avalanche[e.name]=e})),oD.gnosis=[cj("gnosis"),iD("gnosis")],oD.gnosis.forEach((e=>{oD.gnosis[e.name]=e}));oD.route=({blockchain:e,tokenIn:t,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>Promise.all(oD[e].map((e=>e.route({tokenIn:t,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})))).then((e=>e.filter(Boolean).sort(((e,t)=>(r||o?BigInt(e.amountOut)BigInt(t.amountIn))?1:(r||o?BigInt(e.amountOut)>BigInt(t.amountOut):BigInt(e.amountIn)sD||(sD="object"==typeof fe?fe:window,sD);const cD=()=>(void 0===uD()._Web3ClientConfiguration&&(uD()._Web3ClientConfiguration={}),uD()._Web3ClientConfiguration);function lD(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class dD extends JT{constructor(e,t,n,r){super(e),this._network=t,this._endpoint=e,this._endpoints=n,this._failover=r,this._pendingBatch=[]}detectNetwork(){return Promise.resolve(he.findByName(this._network).id)}requestChunk(e,t){try{const n=e.map((e=>e.request));return eT(t,JSON.stringify(n)).then((t=>{e.forEach(((e,n)=>{const r=t[n];if(lD([r,"optionalAccess",e=>e.error])){const t=new Error(r.error.message);t.code=r.error.code,t.data=r.error.data,e.reject(t)}else lD([r,"optionalAccess",e=>e.result])?e.resolve(r.result):e.reject()}))})).catch((t=>{if(t&&"SERVER_ERROR"==t.code){const t=this._endpoints.indexOf(this._endpoint)+1;this._failover(),this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this.requestChunk(e,this._endpoint)}else e.forEach((e=>{e.reject(t)}))}))}catch(t){e.forEach((e=>{e.reject()}))}}send(e,t){const n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((e,t)=>{r.resolve=e,r.reject=t}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const t=[];for(let n=0;n(e.map((e=>e.request)),this.requestChunk(e,this._endpoint))))}),cD().batchInterval||10)),i}}const hD=()=>(null==uD()._Web3ClientProviders&&(uD()._Web3ClientProviders={}),uD()._Web3ClientProviders),pD=(e,t)=>{void 0===hD()[e]&&(hD()[e]=[]);const n=hD()[e].indexOf(t);n>-1&&hD()[e].splice(n,1),hD()[e].unshift(t)},fD=async(e,t,n=!0)=>{let r;hD()[e]=t.map(((r,i)=>new dD(r,e,t,(()=>{1===hD()[e].length?fD(e,t,n):hD()[e].splice(i,1)}))));let i=uD();if(null==i.fetch||void 0!==Be&&Be.env&&"test"==Be.env.NODE_ENV||void 0!==i.cy||!1===n)r=hD()[e][0];else{let n=await Promise.all(t.map((e=>new Promise((async t=>{let n=(new Date).getTime();setTimeout((()=>t(900)),900);if(!(await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({method:"net_version",id:1,jsonrpc:"2.0"})})).ok)return t(999);let r=(new Date).getTime();t(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=hD()[e][o]}pD(e,r)};var yD=async e=>{let t=hD();if(t&&t[e])return t[e][0];let n=uD();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[e]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[e]=new Promise((async t=>{await fD(e,he[e].endpoints),t(uD()._Web3ClientProviders[e][0])}))),await n._Web3ClientGetProviderPromise[e]},mD=async e=>{let t=hD();if(t&&t[e])return t[e];let n=uD();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[e]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[e]=new Promise((async t=>{await fD(e,he[e].endpoints),t(uD()._Web3ClientProviders[e])}))),await n._Web3ClientGetProvidersPromise[e]};class gD extends hh{constructor(e,t,n,r){super(e),this._provider=new hh(e),this._network=t,this._endpoint=e,this._endpoints=n,this._failover=r,this._pendingBatch=[],this._rpcRequest=this._rpcRequestReplacement.bind(this)}requestChunk(e){const t=e.map((e=>e.request)),n=t=>{if(t&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((e=>t.toString().match(e)))){const t=this._endpoints.indexOf(this._endpoint)+1;this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this._provider=new hh(this._endpoint),this.requestChunk(e)}else e.forEach((e=>{e.reject(t)}))};try{return this._provider._rpcBatchRequest(t).then((t=>{e.forEach(((e,n)=>{const r=t[n];if(function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([r,"optionalAccess",e=>e.error])){const t=new Error(r.error.message);t.code=r.error.code,t.data=r.error.data,e.reject(t)}else r?e.resolve(r):e.reject()}))})).catch(n)}catch(e){return n(e)}}_rpcRequestReplacement(e,t){const n={methodName:e,args:t};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((e,t)=>{r.resolve=e,r.reject=t}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const t=[];for(let n=0;n(e.map((e=>e.request)),this.requestChunk(e))))}),cD().batchInterval||10)),i}}const vD=()=>(null==uD()._Web3ClientProviders&&(uD()._Web3ClientProviders={}),uD()._Web3ClientProviders),bD=(e,t)=>{void 0===vD()[e]&&(vD()[e]=[]);const n=vD()[e].indexOf(t);n>-1&&vD()[e].splice(n,1),vD()[e].unshift(t)},wD=async(e,t,n=!0)=>{let r;vD()[e]=t.map(((r,i)=>new gD(r,e,t,(()=>{1===vD()[e].length?wD(e,t,n):vD()[e].splice(i,1)}))));let i=uD();if(null==i.fetch||void 0!==Be&&Be.env&&"test"==Be.env.NODE_ENV||void 0!==i.cy||!1===n)r=vD()[e][0];else{let n=await Promise.all(t.map((e=>new Promise((async t=>{let n=(new Date).getTime();setTimeout((()=>t(900)),900);if(!(await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({method:"getIdentity",id:1,jsonrpc:"2.0"})})).ok)return t(999);let r=(new Date).getTime();t(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=vD()[e][o]}bD(e,r)};var MD=async e=>{let t=vD();if(t&&t[e])return t[e][0];let n=uD();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[e]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[e]=new Promise((async t=>{await wD(e,he[e].endpoints),t(uD()._Web3ClientProviders[e][0])}))),await n._Web3ClientGetProviderPromise[e]},AD=async e=>{let t=vD();if(t&&t[e])return t[e];let n=uD();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[e]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[e]=new Promise((async t=>{await wD(e,he[e].endpoints),t(uD()._Web3ClientProviders[e])}))),await n._Web3ClientGetProvidersPromise[e]};let ED=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];ED.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],ED.solana=["solana"];let ND=()=>(null==uD()._Web3ClientCacheStore&&(uD()._Web3ClientCacheStore={}),uD()._Web3ClientCacheStore),TD=()=>(null==uD()._Web3ClientPromiseStore&&(uD()._Web3ClientPromiseStore={}),uD()._Web3ClientPromiseStore),ID=function({key:e}){TD()[e]=void 0},kD=function({call:e,key:t,expires:n=0}){return new Promise(((r,i)=>{let o,a=function({key:e}){return TD()[e]}({key:t=JSON.stringify(t)});if(a)return a.then(r).catch(i);(function({key:e,promise:t}){return TD()[e]=t,t})({key:t,promise:new Promise(((a,s)=>0===n?e().then((e=>{r(e),a(e)})).catch((e=>{i(e),s(e)})):(o=function({key:e,expires:t}){let n=ND()[e];if(function(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}([n,"optionalAccess",e=>e.expiresAt])>Date.now())return n.value}({key:t,expires:n}),o?(r(o),a(o),o):void e().then((e=>{e&&function({key:e,value:t,expires:n}){ND()[e]={expiresAt:Date.now()+n,value:t}}({key:t,value:e,expires:n}),r(e),a(e)})).catch((e=>{i(e),s(e)})))))}).then((()=>{ID({key:t})})).catch((()=>{ID({key:t})}))}))};const LD=async e=>{if(ED.evm.includes(e))return await yD(e);if(ED.solana.includes(e))return await MD(e);throw"Unknown blockchain: "+e};const xD=({address:e,api:t,method:n,params:r,provider:i,block:o})=>{const a=new PN(e,t,i),s=(({contract:e,method:t,params:n})=>e.interface.fragments.find((e=>e.name==t)).inputs.map(((e,t)=>Array.isArray(n)?n[t]:n[e.name])))({contract:a,method:n,params:r}),u=a.interface.fragments.find((e=>e.name===n));return void 0===a[n]&&(n=`${n}(${u.inputs.map((e=>e.type)).join(",")})`),u&&"nonpayable"===u.stateMutability?a.callStatic[n](...s,{blockTag:o}):a[n](...s,{blockTag:o})},SD=({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a})=>n?xD({address:t,api:n,method:r,params:i,provider:a,block:o}):"latestBlockNumber"===r?a.getBlockNumber():"balance"===r?(({address:e,provider:t})=>t.getBalance(e))({address:t,provider:a}):"transactionCount"===r?(({address:e,provider:t})=>t.getTransactionCount(e))({address:t,provider:a}):void 0;const jD=async({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a,providers:s})=>{try{if(null==r||"getAccountInfo"===r)return null==n&&(n=Tf),await(async({address:e,api:t,method:n,params:r,provider:i,block:o})=>{const a=await i.getAccountInfo(new yc(e));if(a&&a.data)return t.decode(a.data)})({address:t,api:n,method:r,params:i,provider:a,block:o});if("getProgramAccounts"===r)return await a.getProgramAccounts(new yc(t),i).then((e=>n?e.map((e=>(e.data=n.decode(e.account.data),e))):e));if("getTokenAccountBalance"===r)return await a.getTokenAccountBalance(new yc(t));if("latestBlockNumber"===r)return await a.getSlot(i||void 0);if("balance"===r)return await(({address:e,provider:t})=>t.getBalance(new yc(e)))({address:t,provider:a})}catch(u){if(s&&u&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((e=>u.toString().match(e)))){let u=s[s.indexOf(a)+1]||s[0];return jD({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:u,providers:s})}throw u}};const CD=async function(e,t){const{blockchain:n,address:r,method:i}=(e=>{if("object"==typeof e)return e;let t=e.match(/(?\w+):\/\/(?[\w\d]+)(\/(?[\w\d]+)*)?/);return null==t.groups.part2?t.groups.part1.match(/\d/)?{blockchain:t.groups.blockchain,address:t.groups.part1}:{blockchain:t.groups.blockchain,method:t.groups.part1}:{blockchain:t.groups.blockchain,address:t.groups.part1,method:t.groups.part2}})(e),{api:o,params:a,cache:s,block:u,timeout:c,strategy:l,cacheKey:d}=("object"==typeof e?e:t)||{};return await kD({expires:s||0,key:d||[n,r,i,a,u],call:async()=>{if(ED.evm.includes(n))return await(async({blockchain:e,address:t,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{if(s=s||cD().strategy||"failover",a=a||cD().timeout||void 0,"fastest"===s){const s=await mD(e);let u=[];const c=s.map((a=>new Promise((s=>{u.push(SD({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a}).then(s))})))),l=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a||1e4)));return u=Promise.all(u.map((e=>new Promise((t=>{e.catch(t)}))))).then((()=>{})),Promise.race([...c,l,u])}{const s=await yD(e),u=SD({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:s});return a?(a=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a))),Promise.race([u,a])):u}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});if(ED.solana.includes(n))return await(async({blockchain:e,address:t,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{s=s||cD().strategy||"failover",a=a||cD().timeout||void 0;const u=await AD(e);if("fastest"===s){let s=[];const c=u.map((a=>new Promise((u=>{s.push(jD({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:a}).then(u))})))),l=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a||1e4)));return s=Promise.all(s.map((e=>new Promise((t=>{e.catch(t)}))))).then((()=>{})),Promise.race([...c,l,s])}{const s=await MD(e),c=jD({blockchain:e,address:t,api:n,method:r,params:i,block:o,provider:s,providers:u});return a?(a=new Promise(((e,t)=>setTimeout((()=>{t(new Error("Web3ClientTimeout"))}),a))),Promise.race([c,a])):c}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});throw"Unknown blockchain: "+n}})},DD=async({wSolSenderAccountKeypair:e,paymentRoute:t})=>{if(!e)return;const n=t.fromToken.address===he.solana.currency.address?new Nf(t.fromAmount):new Nf("0"),r=await LD("solana"),i=new Nf(await r.getMinimumBalanceForRentExemption(ox.solana.TOKEN_LAYOUT.span)),o=t.fromAddress,a=n.add(i);return[sl.createAccount({fromPubkey:new yc(o),newAccountPubkey:e.publicKey,programId:new yc(ox.solana.TOKEN_PROGRAM),space:ox.solana.TOKEN_LAYOUT.span,lamports:a}),ox.solana.initializeAccountInstruction({account:e.publicKey.toString(),token:he.solana.wrapped.address,owner:o})]},OD=async({wSolEscrowAccountKeypair:e,paymentRoute:t})=>{if(!e)return;const n=await LD("solana"),r=new Nf(await n.getMinimumBalanceForRentExemption(ox.solana.TOKEN_LAYOUT.span)),i=await GD();return[sl.createAccount({fromPubkey:new yc(t.fromAddress),newAccountPubkey:e.publicKey,programId:new yc(ox.solana.TOKEN_PROGRAM),space:ox.solana.TOKEN_LAYOUT.span,lamports:r}),ox.solana.initializeAccountInstruction({account:e.publicKey.toString(),token:he.solana.wrapped.address,owner:i.toString()})]},zD=({paymentRoute:e})=>{let t=[...e.exchangeRoutes[0].path];return t.indexOf(he.solana.currency.address)>-1&&t.splice(t.indexOf(he.solana.currency.address),1),t.indexOf(e.fromToken.address)>-1&&t.splice(t.indexOf(e.fromToken.address),1),t.indexOf(e.toToken.address)>-1&&t.splice(t.indexOf(e.toToken.address),1),2===t.length&&t[0]===he.solana.wrapped.address?t[1]:t[0]},_D=async({paymentRoute:e})=>await ox.solana.findProgramAddress({token:zD({paymentRoute:e}),owner:e.fromAddress}),PD=async({paymentRoute:e})=>{if(0===e.exchangeRoutes.length||XD(e.exchangeRoutes[0].path).length<=2)return;const t=await(async({paymentRoute:e})=>await CD({blockchain:"solana",address:await _D({paymentRoute:e}),api:ox.solana.TOKEN_LAYOUT,cache:1e3}))({paymentRoute:e});return t?void 0:ox.solana.createAssociatedTokenAccountInstruction({token:zD({paymentRoute:e}),owner:e.fromAddress,payer:e.fromAddress})},BD=async({wSolSenderAccountKeypair:e,paymentRoute:t})=>{if(e)return ox.solana.closeAccountInstruction({account:e.publicKey.toString(),owner:t.fromAddress})},RD=async({from:e})=>{let t=[Ef.from("payments"),new yc(e).toBuffer()],[n]=await yc.findProgramAddress(t,new yc(aD.solana.address));return n},UD=async({from:e})=>{let t=(await RD({from:e})).toString();return await CD({blockchain:"solana",address:t,api:Of([Bf("anchorDiscriminator"),Bf("nonce")]),cache:1e3})},WD=async({from:e})=>{if(await UD({from:e}))return;const t=[{pubkey:sl.programId,isSigner:!1,isWritable:!1},{pubkey:new yc(e),isSigner:!0,isWritable:!0},{pubkey:await RD({from:e}),isSigner:!1,isWritable:!0}],n=Ef.alloc(aD.solana.api.createPaymentsAccount.layout.span);return aD.solana.api.createPaymentsAccount.layout.encode({anchorDiscriminator:aD.solana.api.createPaymentsAccount.anchorDiscriminator},n),new zc({keys:t,programId:new yc(aD.solana.address),data:n})},QD=async({paymentRoute:e})=>await ox.solana.findProgramAddress({token:e.fromToken.address,owner:e.fromAddress}),YD=async({paymentRoute:e})=>await ox.solana.findProgramAddress({token:e.toToken.address,owner:e.toAddress}),FD=async({paymentRoute:e})=>{if(e.toToken.address===he.solana.currency.address){const t=await CD({blockchain:"solana",method:"balance",address:e.toAddress}),n=await LD("solana"),r=new Nf(await n.getMinimumBalanceForRentExemption(0)),i=new Nf(e.toAmount);if(new Nf(t).add(i).gt(r))return;return sl.transfer({fromPubkey:new yc(e.fromAddress),toPubkey:new yc(e.toAddress),lamports:r.sub(i)})}{const t=e.toToken.address,n=await(async({paymentRoute:e})=>await ox.solana.findAccount({token:e.toToken.address,owner:e.toAddress}))({paymentRoute:e});if(n)return;return ox.solana.createAssociatedTokenAccountInstruction({token:t,owner:e.toAddress,payer:e.fromAddress})}},VD=async({paymentRoute:e})=>await ox.solana.findProgramAddress({token:e.toToken.address,owner:e.fee.receiver}),HD=async({paymentRoute:e})=>{if(e.fee){if(e.toToken.address===he.solana.currency.address){const t=await CD({blockchain:"solana",method:"balance",address:e.fee.receiver}),n=await LD("solana"),r=new Nf(await n.getMinimumBalanceForRentExemption(0)),i=new Nf(e.feeAmount);if(new Nf(t).add(i).gt(r))return;return sl.transfer({fromPubkey:new yc(e.fromAddress),toPubkey:new yc(e.fee.receiver),lamports:r.sub(i)})}{const t=e.toToken.address,n=await(async({paymentRoute:e})=>await ox.solana.findAccount({token:e.toToken.address,owner:e.fee.receiver}))({paymentRoute:e});if(n)return;return ox.solana.createAssociatedTokenAccountInstruction({token:t,owner:e.fee.receiver,payer:e.fromAddress})}}},GD=async()=>{let e=[Ef.from("escrow_sol")],[t,n]=await yc.findProgramAddress(e,new yc(aD.solana.address));return t},qD=async({paymentRoute:e})=>{let t=[Ef.from("escrow"),new yc(e.toToken.address===he.solana.currency.address?he.solana.wrapped.address:e.toToken.address).toBuffer()],[n,r]=await yc.findProgramAddress(t,new yc(aD.solana.address));return n},ZD=async({paymentRoute:e})=>{if(0===e.exchangeRoutes.length||e.toToken.address===he.solana.currency.address)return;const t=await(async({paymentRoute:e})=>await CD({blockchain:"solana",address:(await qD({paymentRoute:e})).toString(),api:ox.solana.TOKEN_LAYOUT,cache:1e3}))({paymentRoute:e});if(t)return;const n=[{pubkey:sl.programId,isSigner:!1,isWritable:!1},{pubkey:new yc(ox.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new yc(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:new yc(e.toToken.address===he.solana.currency.address?he.solana.wrapped.address:e.toToken.address),isSigner:!1,isWritable:!0},{pubkey:await qD({paymentRoute:e}),isSigner:!1,isWritable:!0}],r=Ef.alloc(aD.solana.api.createEscrowTokenAccount.layout.span);return aD.solana.api.createEscrowTokenAccount.layout.encode({anchorDiscriminator:aD.solana.api.createEscrowTokenAccount.anchorDiscriminator},r),new zc({keys:n,programId:new yc(aD.solana.address),data:r})},JD=async({paymentRoute:e})=>{if(0===e.exchangeRoutes.length||e.toToken.address!=he.solana.currency.address)return;if(await(async({paymentRoute:e})=>await CD({blockchain:"solana",address:(await GD()).toString(),api:Of([Bf("amount"),jf("owner")]),cache:1e3}))({paymentRoute:e}))return;const t=[{pubkey:sl.programId,isSigner:!1,isWritable:!1},{pubkey:new yc(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await GD(),isSigner:!1,isWritable:!0}],n=Ef.alloc(aD.solana.api.createEscrowSolAccount.layout.span);return aD.solana.api.createEscrowSolAccount.layout.encode({anchorDiscriminator:aD.solana.api.createEscrowSolAccount.anchorDiscriminator},n),new zc({keys:t,programId:new yc(aD.solana.address),data:n})},XD=e=>e.filter((e=>e!==he.solana.currency.address)),KD=async({paymentRoute:e,wSolSenderAccountKeypair:t,wSolEscrowAccountKeypair:n,nonce:r,deadline:i})=>{const o=(({paymentRoute:e})=>{if(e.fromToken.address===he.solana.currency.address&&e.toToken.address===he.solana.currency.address)return"routeSol";if(e.fromToken.address!==he.solana.currency.address&&e.toToken.address!==he.solana.currency.address&&0===e.exchangeRoutes.length)return"routeToken";if(e.exchangeRoutes.length>0&&2===XD(e.exchangeRoutes[0].path).length)return e.toToken.address===he.solana.currency.address?"routeOrcaSwapSolOut":"routeOrcaSwap";if(e.exchangeRoutes.length>0&&XD(e.exchangeRoutes[0].path).length>2)return e.toToken.address===he.solana.currency.address?"routeOrcaTwoHopSwapSolOut":"routeOrcaTwoHopSwap";throw"Payment method does not exist!"})({paymentRoute:e});switch(o){case"routeSol":return await(async({paymentRoute:e,nonce:t,deadline:n})=>{const r=new yc(e.toAddress),i=e.fee?new yc(e.fee.receiver):r,o=[{pubkey:sl.programId,isSigner:!1,isWritable:!1},{pubkey:new yc(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await RD({from:e.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0}],a=Ef.alloc(aD.solana.api.routeSol.layout.span);return aD.solana.api.routeSol.layout.encode({anchorDiscriminator:aD.solana.api.routeSol.anchorDiscriminator,nonce:t,paymentAmount:new Nf(e.toAmount.toString()),feeAmount:new Nf((e.feeAmount||"0").toString()),deadline:new Nf(n)},a),new zc({keys:o,programId:new yc(aD.solana.address),data:a})})({paymentRoute:e,nonce:r,deadline:i});case"routeToken":return await(async({paymentRoute:e,nonce:t,deadline:n})=>{const r=await QD({paymentRoute:e}),i=await YD({paymentRoute:e}),o=e.fee?await VD({paymentRoute:e}):i,a=[{pubkey:new yc(ox.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new yc(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await RD({from:e.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new yc(r),isSigner:!1,isWritable:!0},{pubkey:new yc(i),isSigner:!1,isWritable:!0},{pubkey:new yc(o),isSigner:!1,isWritable:!0}],s=Ef.alloc(aD.solana.api.routeToken.layout.span);return aD.solana.api.routeToken.layout.encode({anchorDiscriminator:aD.solana.api.routeToken.anchorDiscriminator,nonce:t,paymentAmount:new Nf(e.toAmount.toString()),feeAmount:new Nf((e.feeAmount||"0").toString()),deadline:new Nf(n)},s),new zc({keys:a,programId:new yc(aD.solana.address),data:s})})({paymentRoute:e,nonce:r,deadline:i});case"routeOrcaSwap":return await(async({paymentRoute:e,nonce:t,wSolSenderAccountKeypair:n,deadline:r})=>{const i=n?n.publicKey:await QD({paymentRoute:e}),o=await YD({paymentRoute:e}),a=e.fee?await VD({paymentRoute:e}):o,s=await qD({paymentRoute:e}),u=(await e.exchangeRoutes[0].getTransaction({account:e.fromAddress})).instructions.find((e=>e.programId.toString()===aD.solana.ammProgram)),c=Of([Bf("anchorDiscriminator"),Bf("amount"),Bf("otherAmountThreshold"),zf("sqrtPriceLimit"),If("amountSpecifiedIsInput"),If("aToB")]).decode(u.data),l=[{pubkey:new yc(ox.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new yc(aD.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new yc(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await RD({from:e.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new yc(i),isSigner:!1,isWritable:!0},u.keys[2],u.keys[4],u.keys[6],u.keys[7],u.keys[8],u.keys[9],u.keys[10],{pubkey:s,isSigner:!1,isWritable:!0},{pubkey:new yc(o),isSigner:!1,isWritable:!0},{pubkey:new yc(a),isSigner:!1,isWritable:!0}],d=Ef.alloc(aD.solana.api.routeOrcaSwap.layout.span);return aD.solana.api.routeOrcaSwap.layout.encode({anchorDiscriminator:aD.solana.api.routeOrcaSwap.anchorDiscriminator,nonce:t,amountIn:c.amount,sqrtPriceLimit:c.sqrtPriceLimit,amountSpecifiedIsInput:c.amountSpecifiedIsInput,aToB:c.aToB,paymentAmount:new Nf(e.toAmount.toString()),feeAmount:new Nf((e.feeAmount||"0").toString()),deadline:new Nf(r)},d),new zc({keys:l,programId:new yc(aD.solana.address),data:d})})({paymentRoute:e,nonce:r,wSolSenderAccountKeypair:t,deadline:i});case"routeOrcaSwapSolOut":return await(async({paymentRoute:e,nonce:t,wSolEscrowAccountKeypair:n,deadline:r})=>{const i=await QD({paymentRoute:e}),o=n.publicKey,a=(await e.exchangeRoutes[0].getTransaction({account:e.fromAddress})).instructions.find((e=>e.programId.toString()===aD.solana.ammProgram)),s=Of([Bf("anchorDiscriminator"),Bf("amount"),Bf("otherAmountThreshold"),zf("sqrtPriceLimit"),If("amountSpecifiedIsInput"),If("aToB")]).decode(a.data),u=[{pubkey:sl.programId,isSigner:!1,isWritable:!1},{pubkey:new yc(ox.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new yc(aD.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new yc(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await RD({from:e.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new yc(i),isSigner:!1,isWritable:!0},a.keys[2],a.keys[4],a.keys[6],a.keys[7],a.keys[8],a.keys[9],a.keys[10],{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:await GD(),isSigner:!1,isWritable:!0},{pubkey:new yc(e.toAddress),isSigner:!1,isWritable:!0},{pubkey:new yc(e.fee?e.fee.receiver:e.toAddress),isSigner:!1,isWritable:!0}],c=Ef.alloc(aD.solana.api.routeOrcaSwapSolOut.layout.span);return aD.solana.api.routeOrcaSwapSolOut.layout.encode({anchorDiscriminator:aD.solana.api.routeOrcaSwapSolOut.anchorDiscriminator,nonce:t,amountIn:s.amount,sqrtPriceLimit:s.sqrtPriceLimit,amountSpecifiedIsInput:s.amountSpecifiedIsInput,aToB:s.aToB,paymentAmount:new Nf(e.toAmount.toString()),feeAmount:new Nf((e.feeAmount||"0").toString()),deadline:new Nf(r)},c),new zc({keys:u,programId:new yc(aD.solana.address),data:c})})({paymentRoute:e,nonce:r,wSolEscrowAccountKeypair:n,deadline:i});case"routeOrcaTwoHopSwap":return await(async({paymentRoute:e,nonce:t,wSolSenderAccountKeypair:n,deadline:r})=>{const i=new yc(await YD({paymentRoute:e})),o=e.fee?new yc(await VD({paymentRoute:e})):i,a=await qD({paymentRoute:e}),s=new yc(await _D({paymentRoute:e})),u=(await e.exchangeRoutes[0].getTransaction({account:e.fromAddress})).instructions.find((e=>e.programId.toString()===aD.solana.ammProgram)),c=n?n.publicKey:new yc(await QD({paymentRoute:e})),l=Of([Bf("anchorDiscriminator"),Bf("amount"),Bf("otherAmountThreshold"),If("amountSpecifiedIsInput"),If("aToBOne"),If("aToBTwo"),zf("sqrtPriceLimitOne"),zf("sqrtPriceLimitTwo")]).decode(u.data),d=[{pubkey:new yc(ox.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new yc(aD.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new yc(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await RD({from:e.fromAddress}),isSigner:!1,isWritable:!0},u.keys[2],u.keys[3],{pubkey:c,isSigner:!1,isWritable:!0},u.keys[5],u.keys[7],{pubkey:s,isSigner:!1,isWritable:!0},u.keys[9],u.keys[11],u.keys[12],u.keys[13],u.keys[14],u.keys[15],u.keys[16],u.keys[17],u.keys[18],u.keys[19],{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0}],h=Ef.alloc(aD.solana.api.routeOrcaTwoHopSwap.layout.span);return aD.solana.api.routeOrcaTwoHopSwap.layout.encode({anchorDiscriminator:aD.solana.api.routeOrcaTwoHopSwap.anchorDiscriminator,nonce:t,amountIn:l.amount,amountSpecifiedIsInput:l.amountSpecifiedIsInput,aToBOne:l.aToBOne,aToBTwo:l.aToBTwo,sqrtPriceLimitOne:l.sqrtPriceLimitOne,sqrtPriceLimitTwo:l.sqrtPriceLimitTwo,paymentAmount:new Nf(e.toAmount.toString()),feeAmount:new Nf((e.feeAmount||"0").toString()),deadline:new Nf(r)},h),new zc({keys:d,programId:new yc(aD.solana.address),data:h})})({paymentRoute:e,nonce:r,wSolSenderAccountKeypair:t,deadline:i});case"routeOrcaTwoHopSwapSolOut":return await(async({paymentRoute:e,nonce:t,wSolEscrowAccountKeypair:n,deadline:r})=>{const i=new yc(await _D({paymentRoute:e})),o=(await e.exchangeRoutes[0].getTransaction({account:e.fromAddress})).instructions.find((e=>e.programId.toString()===aD.solana.ammProgram)),a=new yc(await QD({paymentRoute:e})),s=Of([Bf("anchorDiscriminator"),Bf("amount"),Bf("otherAmountThreshold"),If("amountSpecifiedIsInput"),If("aToBOne"),If("aToBTwo"),zf("sqrtPriceLimitOne"),zf("sqrtPriceLimitTwo")]).decode(o.data),u=[{pubkey:sl.programId,isSigner:!1,isWritable:!1},{pubkey:new yc(ox.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new yc(aD.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new yc(e.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await RD({from:e.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},o.keys[2],o.keys[3],o.keys[5],o.keys[7],{pubkey:i,isSigner:!1,isWritable:!0},o.keys[9],o.keys[11],o.keys[12],o.keys[13],o.keys[14],o.keys[15],o.keys[16],o.keys[17],o.keys[18],o.keys[19],{pubkey:n.publicKey,isSigner:!1,isWritable:!0},{pubkey:await GD(),isSigner:!1,isWritable:!0},{pubkey:new yc(e.toAddress),isSigner:!1,isWritable:!0},{pubkey:new yc(e.fee?e.fee.receiver:e.toAddress),isSigner:!1,isWritable:!0}],c=Ef.alloc(aD.solana.api.routeOrcaTwoHopSwapSolOut.layout.span);return aD.solana.api.routeOrcaTwoHopSwapSolOut.layout.encode({anchorDiscriminator:aD.solana.api.routeOrcaTwoHopSwapSolOut.anchorDiscriminator,nonce:t,amountIn:s.amount,amountSpecifiedIsInput:s.amountSpecifiedIsInput,aToBOne:s.aToBOne,aToBTwo:s.aToBTwo,sqrtPriceLimitOne:s.sqrtPriceLimitOne,sqrtPriceLimitTwo:s.sqrtPriceLimitTwo,paymentAmount:new Nf(e.toAmount.toString()),feeAmount:new Nf((e.feeAmount||"0").toString()),deadline:new Nf(r)},c),new zc({keys:u,programId:new yc(aD.solana.address),data:c})})({paymentRoute:e,nonce:r,wSolEscrowAccountKeypair:n,deadline:i})}},$D=async({paymentRoute:e})=>{const t=await UD({from:e.fromAddress}),n=Math.ceil((new Date).getTime()/1e3)+1800,r=(e=>e?e.nonce:new Nf("0"))(t),i=await(async({paymentRoute:e})=>{if(e.fromToken.address===he.solana.currency.address&&e.toToken.address!==he.solana.currency.address)return ph.generate()})({paymentRoute:e}),o=await(async({paymentRoute:e})=>{if(e.fromToken.address!==he.solana.currency.address&&e.toToken.address===he.solana.currency.address)return ph.generate()})({paymentRoute:e});let a=(await Promise.all([WD({from:e.fromAddress}),DD({paymentRoute:e,wSolSenderAccountKeypair:i}),PD({paymentRoute:e}),FD({paymentRoute:e}),HD({paymentRoute:e}),JD({paymentRoute:e}),OD({paymentRoute:e,wSolEscrowAccountKeypair:o}),ZD({paymentRoute:e}),KD({paymentRoute:e,wSolSenderAccountKeypair:i,wSolEscrowAccountKeypair:o,nonce:r,deadline:n}),BD({paymentRoute:e,wSolSenderAccountKeypair:i})])).filter(Boolean).flat();const s={blockchain:e.blockchain,instructions:a,signers:[i,o].filter(Boolean),alts:[aD.solana.alt]};return s.deadline=n,s.nonce=r.toString(),s},eO=[{inputs:[{internalType:"address",name:"_PERMIT2",type:"address"},{internalType:"address",name:"_FORWARDER",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ExchangeCallFailed",type:"error"},{inputs:[],name:"ExchangeCallMissing",type:"error"},{inputs:[],name:"ExchangeNotApproved",type:"error"},{inputs:[],name:"ForwardingPaymentFailed",type:"error"},{inputs:[],name:"InsufficientBalanceInAfterPayment",type:"error"},{inputs:[],name:"InsufficientBalanceOutAfterPayment",type:"error"},{inputs:[],name:"NativeFeePaymentFailed",type:"error"},{inputs:[],name:"NativePaymentFailed",type:"error"},{inputs:[],name:"PaymentDeadlineReached",type:"error"},{inputs:[],name:"PaymentToZeroAddressNotAllowed",type:"error"},{inputs:[],name:"WrongAmountPaidIn",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"exchange",type:"address"}],name:"Disabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"exchange",type:"address"}],name:"Enabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"InternalTransfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferStarted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"FORWARDER",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT2",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"exchange",type:"address"},{internalType:"bool",name:"enabled",type:"bool"}],name:"enable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"exchanges",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"bool",name:"permit2",type:"bool"},{internalType:"uint256",name:"paymentAmount",type:"uint256"},{internalType:"uint256",name:"feeAmount",type:"uint256"},{internalType:"address",name:"tokenInAddress",type:"address"},{internalType:"address",name:"exchangeAddress",type:"address"},{internalType:"address",name:"tokenOutAddress",type:"address"},{internalType:"address",name:"paymentReceiverAddress",type:"address"},{internalType:"address",name:"feeReceiverAddress",type:"address"},{internalType:"uint8",name:"exchangeType",type:"uint8"},{internalType:"uint8",name:"receiverType",type:"uint8"},{internalType:"bytes",name:"exchangeCallData",type:"bytes"},{internalType:"bytes",name:"receiverCallData",type:"bytes"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct IDePayRouterV2.Payment",name:"payment",type:"tuple"}],name:"pay",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"bool",name:"permit2",type:"bool"},{internalType:"uint256",name:"paymentAmount",type:"uint256"},{internalType:"uint256",name:"feeAmount",type:"uint256"},{internalType:"address",name:"tokenInAddress",type:"address"},{internalType:"address",name:"exchangeAddress",type:"address"},{internalType:"address",name:"tokenOutAddress",type:"address"},{internalType:"address",name:"paymentReceiverAddress",type:"address"},{internalType:"address",name:"feeReceiverAddress",type:"address"},{internalType:"uint8",name:"exchangeType",type:"uint8"},{internalType:"uint8",name:"receiverType",type:"uint8"},{internalType:"bytes",name:"exchangeCallData",type:"bytes"},{internalType:"bytes",name:"receiverCallData",type:"bytes"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct IDePayRouterV2.Payment",name:"payment",type:"tuple"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IPermit2.PermitDetails",name:"details",type:"tuple"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IPermit2.PermitSingle",name:"permitSingle",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"pay",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdraw",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];var tO={ethereum:{address:"0x6466F27B169C908Ba8174d80aEfa7173CbC3D0c7",api:eO},bsc:{address:"0x7ea09401db4692a8AEF4111b75bD32AE758f552A",api:eO},polygon:{address:"0x50CFAB577623B1359602E11514a9482B061A941e",api:eO},fantom:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:eO},avalanche:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:eO},gnosis:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:eO},arbitrum:{address:"0xA1cfbeeF344A52e18f748fd6a126f9426A40fbc7",api:eO},optimism:{address:"0x8698E529E9867eEbcC68b4792daC627cd8870736",api:eO},base:{address:"0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11",api:eO}},nO={...tO,...aD},rO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==fe?fe:"undefined"!=typeof self?self:{},iO="object"==typeof rO&&rO&&rO.Object===Object&&rO,oO="object"==typeof self&&self&&self.Object===Object&&self,aO=(iO||oO||Function("return this")()).Symbol;aO&&aO.toStringTag,aO&&aO.toStringTag;const sO=e=>{switch(e){case"solana":return 125e-6;case"gnosis":return.009;case"polygon":return.01;case"fantom":return.05;case"avalanche":return.1;case"bsc":return.2;case"base":return.25;case"arbitrum":return.3;case"optimism":return.4;case"ethereum":return 10;default:return 100}},uO={arbitrum:{[he.arbitrum.wrapped.address]:"0x7E655088214d0657251A51aDccE9109CFd23B5B5"},avalanche:{[he.avalanche.wrapped.address]:"0x2d0a6275eaDa0d03226919ce6D93661E589B2d59"},base:{[he.base.wrapped.address]:"0xD1711710843B125a6a01FfDF9b95fDc3064BeF7A"},bsc:{[he.bsc.wrapped.address]:"0xeEb80d14abfB058AA78DE38813fe705c3e3b243E"},ethereum:{[he.ethereum.wrapped.address]:"0x298f4980525594b3b982779cf74ba76819708D43"},fantom:{[he.fantom.wrapped.address]:"0x2d0a6275eaDa0d03226919ce6D93661E589B2d59"},gnosis:{[he.gnosis.wrapped.address]:"0x2d0a6275eaDa0d03226919ce6D93661E589B2d59"},optimism:{[he.optimism.wrapped.address]:"0x69594057e2C0224deb1180c7a5Df9ec9d5B611B5"},polygon:{[he.polygon.wrapped.address]:"0xaE59C9d3E055BdFAa583E169aA5Ebe395689476a"},solana:{}},cO=({paymentRoute:e})=>e.directTransfer&&!e.fee?e.toToken.address==he[e.blockchain].currency.address?e.toAddress:e.toToken.address:tO[e.blockchain].address,lO=({paymentRoute:e})=>e.directTransfer&&!e.fee?e.toToken.address==he[e.blockchain].currency.address?void 0:ox[e.blockchain].DEFAULT:tO[e.blockchain].api,dO=({paymentRoute:e})=>e.directTransfer&&!e.fee?e.toToken.address==he[e.blockchain].currency.address?void 0:"transfer":"pay",hO=async({paymentRoute:e})=>{if(e.directTransfer&&!e.fee)return e.toToken.address==he[e.blockchain].currency.address?void 0:[e.toAddress,e.toAmount];{const t=Math.ceil(new Date/1e3)+86400,n=e.exchangeRoutes[0],r=(({exchangeRoute:e,blockchain:t})=>void 0===e?0:"uniswap_v3"===e.exchange.name||e.exchange[t].router.address===he[t].wrapped.address?2:1)({exchangeRoute:n,blockchain:e.blockchain}),i=n?await n.getTransaction({account:tO[e.blockchain].address,inputTokenPushed:2===r}):void 0,o=i?(({exchangeTransaction:e})=>{const t=new PN(e.to,e.api),n=e.method,r=e.params;let i,o,a;return o=t.interface.fragments.find((e=>!(e.name!=n||e.inputs&&r&&"object"==typeof r&&e.inputs.length!=Object.keys(r).length))),1===o.inputs.length&&"tuple"===o.inputs[0].type?(i=n,a=[r[o.inputs[0].name]]):(i=`${n}(${o.inputs.map((e=>e.type)).join(",")})`,a=o.inputs.map((e=>{if("tuple"===e.type){let t={};return e.components.forEach(((n,i)=>{t[n.name]=r[e.name][i]})),i=n,t}return r[e.name]}))),t.interface.encodeFunctionData(i,a)})({exchangeTransaction:i}):he[e.blockchain].zero;let a=he[e.blockchain].zero;return n&&(a="bsc"===e.blockchain&&"pancakeswap_v3"===n.exchange.name&&e.toToken.address===he[e.blockchain].currency.address?n.exchange[e.blockchain].smartRouter.address:uO[i.blockchain][n.exchange[e.blockchain].router.address]||n.exchange[e.blockchain].router.address),{payment:{amountIn:e.fromAmount,paymentAmount:e.toAmount,feeAmount:e.feeAmount||0,tokenInAddress:e.fromToken.address,exchangeAddress:a,tokenOutAddress:e.toToken.address,paymentReceiverAddress:e.toAddress,feeReceiverAddress:e.fee?e.fee.receiver:he[e.blockchain].zero,exchangeType:r,receiverType:0,exchangeCallData:o,receiverCallData:he[e.blockchain].zero,deadline:t}}}},pO=({paymentRoute:e})=>e.fromToken.address==he[e.blockchain].currency.address?e.directTransfer?e.toAmount.toString():e.fromAmount.toString():zy.from("0").toString();let fO=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];fO.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],fO.solana=["solana"];const yO=({paymentRoute:e,fee:t})=>{if(fO.evm.includes(e.blockchain))return(async({paymentRoute:e})=>({blockchain:e.blockchain,to:cO({paymentRoute:e}),api:lO({paymentRoute:e}),method:dO({paymentRoute:e}),params:await hO({paymentRoute:e}),value:pO({paymentRoute:e})}))({paymentRoute:e,fee:t});if(fO.solana.includes(e.blockchain))return $D({paymentRoute:e,fee:t});throw"Blockchain not supported!"};function mO(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class gO{constructor({blockchain:e,fromAddress:t,fromToken:n,fromAmount:r,fromDecimals:i,fromBalance:o,toToken:a,toAmount:s,toDecimals:u,toAddress:c,fee:l,feeAmount:d,exchangeRoutes:h,approvalRequired:p,approvalTransaction:f,directTransfer:y}){this.blockchain=e,this.fromAddress=t,this.fromToken=n,this.fromAmount=mO([r||s,"optionalAccess",e=>e.toString,"call",e=>e()]),this.fromDecimals=i,this.fromBalance=o,this.toToken=a,this.toAmount=mO([s,"optionalAccess",e=>e.toString,"call",e=>e()]),this.toDecimals=u,this.toAddress=c,this.fee=l,this.feeAmount=d,this.exchangeRoutes=h||[],this.approvalRequired=p,this.approvalTransaction=f,this.directTransfer=y,this.getTransaction=async()=>await yO({paymentRoute:this})}}function vO({assets:e,blacklist:t,accept:n,from:r}){return Promise.resolve(wO({assets:e,blacklist:t})).then((e=>function({assets:e,accept:t,from:n}){return Promise.all(e.map((async e=>{let r=t.filter((t=>t.blockchain==e.blockchain)),i=new ox(e);return Promise.all(r.map((async t=>{if(t.token&&t.amount){let r=t.blockchain,o=e.decimals,a=new ox({blockchain:r,address:t.token}),s=await a.decimals(),u=(await a.BigNumber(t.amount)).toString();return new gO({blockchain:r,fromToken:i,fromDecimals:o,toToken:a,toAmount:u,toDecimals:s,fromBalance:e.balance,fromAddress:n[t.blockchain],toAddress:t.toAddress,fee:t.fee})}if(t.fromToken&&t.fromAmount&&i.address.toLowerCase()==t.fromToken.toLowerCase()){let r=t.blockchain,o=(await i.BigNumber(t.fromAmount)).toString(),a=e.decimals,s=new ox({blockchain:r,address:t.toToken}),u=await s.decimals();return new gO({blockchain:r,fromToken:i,fromDecimals:a,fromAmount:o,toToken:s,toDecimals:u,fromBalance:e.balance,fromAddress:n[t.blockchain],toAddress:t.toAddress,fee:t.fee})}})))}))).then((e=>e.flat().filter((e=>e))))}({assets:e,accept:n,from:r}))).then((e=>TO({routes:e}))).then(MO).then(AO).then(EO).then((e=>xO({routes:e}))).then(NO).then(jO).then(SO).then((e=>e.map((e=>new gO(e)))))}function bO({accept:e,from:t,whitelist:n,blacklist:r,drip:i}){if(e.some((e=>e&&e.fee&&"string"==typeof e.fee.amount&&e.fee.amount.match(/\.\d\d+\%/))))throw"Only up to 1 decimal is supported for fee amounts!";return new Promise((async(o,a)=>{let s=[],u=[];if(n)for(const e in n)(n[e]||[]).forEach((t=>{u.push(e),s.push({blockchain:e,address:t})}));else e.forEach((e=>{u.push(e.blockchain),s.push({blockchain:e.blockchain,address:e.token||e.toToken})}));[...new Set(u)].forEach((e=>{s.find((t=>t.blockchain===e&&t.address===he[e].currency.address))||s.push({blockchain:e,address:he[e].currency.address})})),s.sort(((e,t)=>sO(e.blockchain)[e.blockchain,e.address.toLowerCase()].join(""))),p=()=>Math.ceil(new Date),f=p();setTimeout((()=>{l.forEach((e=>y(bO,!1)))}),3e3);const y=(e,t=!0)=>{try{const n={blockchain:e.blockchain,address:e.fromToken.address},r=[n.blockchain,n.address.toLowerCase()].join(""),o=p()-f>3e3;if(d.indexOf(r)>-1)return;if(h.indexOf(r)===c){if(d.push(r),i(e),c+=1,!t)return;l.forEach((t=>y(e,!1)))}else c>=h.length||o?(-1===h.indexOf(r)||c>=h.length||o)&&(d.push(r),i(e)):l.find((e=>e.blockchain===n.blockchain&&e.address.toLowerCase()===n.address.toLowerCase()))||(l.push(n),l.sort(((e,t)=>((e,t,n)=>{if(!e||0===e.length)return 0;let r=e.indexOf([t.blockchain,t.address.toLowerCase()].join("")),i=e.indexOf([n.blockchain,n.address.toLowerCase()].join(""));return-1!==r&&-1===i?-1:-1!==i&&-1===r?1:r{vO({assets:[n],blacklist:r,accept:e,from:t}).then((e=>{mO([e,"optionalAccess",e=>e.length])&&y(e[0])}))}:void 0});let g=await vO({assets:m,blacklist:r,accept:e,from:t})||[];g.assets=m,o(g)}))}let wO=({assets:e,blacklist:t})=>null==t?e:e.filter((e=>null==t[e.blockchain]||!t[e.blockchain].find((t=>t.toLowerCase()==e.address.toLowerCase())))),MO=async e=>await Promise.all(e.map((e=>e.directTransfer?[]:e.toToken&&e.toAmount?oD.route({blockchain:e.blockchain,tokenIn:e.fromToken.address,tokenOut:e.toToken.address,amountOutMin:e.toAmount,fromAddress:e.fromAddress,toAddress:e.toAddress}):e.fromToken&&e.fromAmount?oD.route({blockchain:e.blockchain,tokenIn:e.fromToken.address,tokenOut:e.toToken.address,amountIn:e.fromAmount,fromAddress:e.fromAddress,toAddress:e.toAddress}):void 0))).then((t=>e.map(((e,n)=>(e.exchangeRoutes=t[n],e))))),AO=e=>e.filter((e=>0!=e.exchangeRoutes.length||e.fromToken.address.toLowerCase()==e.toToken.address.toLowerCase())),EO=async e=>e.filter((e=>e.fromToken.address.toLowerCase()==e.toToken.address.toLowerCase()?zy.from(e.fromBalance).gte(zy.from(e.toAmount)):e.fromAmount&&e.toAmount?zy.from(e.fromBalance).gte(zy.from(e.exchangeRoutes[0].amountInMax)):e.exchangeRoutes[0]&&e.exchangeRoutes[0].amountIn?zy.from(e.fromBalance).gte(zy.from(e.exchangeRoutes[0].amountIn)):void 0)),NO=e=>Promise.all(e.map((e=>"solana"===e.blockchain?Promise.resolve(he.solana.maxInt):e.fromToken.allowance(e.fromAddress,nO[e.blockchain].address).catch((()=>{}))))).then((t=>(e.map(((n,r)=>{void 0===t[r]||n.directTransfer||n.fromToken.address.toLowerCase()==he[n.blockchain].currency.address.toLowerCase()||"solana"===n.blockchain?e[r].approvalRequired=!1:(e[r].approvalRequired=zy.from(n.fromAmount).gte(zy.from(t[r])),e[r].approvalRequired&&(e[r].approvalTransaction={blockchain:n.blockchain,to:n.fromToken.address,api:ox[n.blockchain].DEFAULT,method:"approve",params:[nO[n.blockchain].address,he[n.blockchain].maxInt]}))})),e))),TO=({routes:e})=>e.map((e=>(fO.evm.includes(e.blockchain)?e.directTransfer=e.fromToken.address.toLowerCase()==e.toToken.address.toLowerCase()&&null==e.fee:"solana"===e.blockchain&&(e.directTransfer=e.fromToken.address.toLowerCase()==e.toToken.address.toLowerCase()),e))),IO=({paymentRoute:e,exchangeRoute:t})=>{let n,r,i;return t?(t&&t.exchange.wrapper,n=t.amountIn.toString(),r=kO({amount:t.amountOutMin.toString(),paymentRoute:e})):(n=e.fromAmount,r=kO({amount:e.fromAmount,paymentRoute:e})),e.fee&&(i=LO({paymentRoute:e})),{fromAmount:n,toAmount:r,feeAmount:i}},kO=({amount:e,paymentRoute:t})=>{if(t.fee){let n=LO({paymentRoute:t});return zy.from(e).sub(n).toString()}return e},LO=({paymentRoute:e})=>{if("string"==typeof e.fee.amount&&e.fee.amount.match("%"))return zy.from(e.toAmount).mul(10*parseFloat(e.fee.amount)).div(1e3).toString();if("string"==typeof e.fee.amount)return e.fee.amount;if("number"==typeof e.fee.amount)return lI(e.fee.amount.toString(),e.toDecimals).toString();throw"Unknown fee amount type!"},xO=({routes:e})=>e.map((e=>{if(fO.evm.includes(e.blockchain))if(e.directTransfer&&!e.fee)e.fromAmount=e.toAmount;else{let{fromAmount:t,toAmount:n,feeAmount:r}=IO({paymentRoute:e,exchangeRoute:e.exchangeRoutes[0]});e.fromAmount=t,e.toAmount=n,e.fee&&(e.feeAmount=r)}else if(fO.solana.includes(e.blockchain)){let{fromAmount:t,toAmount:n,feeAmount:r}=IO({paymentRoute:e,exchangeRoute:e.exchangeRoutes[0]});e.fromAmount=t,e.toAmount=n,e.fee&&(e.feeAmount=r)}return e})),SO=e=>e.filter(((t,n)=>null==e.find(((e,r)=>t.fromToken.address==e.fromToken.address&&(t.fromToken.blockchain==e.fromToken.blockchain&&(!(!e.directTransfer||t.directTransfer)||(!(!zy.from(e.fromAmount).lt(zy.from(t.fromAmount))||t.directTransfer)||(e.fromAmount==t.fromAmount&&r{let t=-1;return e.sort(((e,n)=>sO(e.fromToken.blockchain)>1,l=-7,d=n?i-1:0,h= * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var EO=o((function(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(!(0>>1;ro(u,n))co(l,u)?(e[r]=l,e[c]=n,r=c):(e[r]=u,e[s]=n,r=s);else{if(!(co(l,n)))break e;e[r]=l,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],l=[],d=1,h=null,p=3,f=!1,y=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(l);null!==t;){if(null===t.callback)i(l);else{if(!(t.startTime<=e))break;i(l),t.sortIndex=t.expirationTime,n(c,t)}t=r(l)}}function M(e){if(m=!1,w(e),!y)if(null!==r(c))y=!0,D(A);else{var t=r(l);null!==t&&O(M,t.startTime-e)}}function A(e,n){y=!1,m&&(m=!1,v(I),I=-1),f=!0;var o=p;try{for(w(n),h=r(c);null!==h&&(!(h.expirationTime>n)||e&&!x());){var a=h.callback;if("function"==typeof a){h.callback=null,p=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?h.callback=s:h===r(c)&&i(c),w(n)}else i(c);h=r(c)}if(null!==h)var u=!0;else{var d=r(l);null!==d&&O(M,d.startTime-n),u=!1}return u}finally{h=null,p=o,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,T=!1,N=null,I=-1,k=5,L=-1;function x(){return!(t.unstable_now()-Le||125a?(e.sortIndex=o,n(l,e),null===r(c)&&e===r(l)&&(m?(v(I),I=-1):m=!0,O(M,o-a))):(e.sortIndex=s,n(c,e),y||f||(y=!0,D(A))),e},t.unstable_shouldYield=x,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}})),TO=(o((function(e,t){})),o((function(e){e.exports=EO}))); +var CO=o((function(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(!(0>>1;ro(u,n))co(l,u)?(e[r]=l,e[c]=n,r=c):(e[r]=u,e[s]=n,r=s);else{if(!(co(l,n)))break e;e[r]=l,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],l=[],d=1,h=null,p=3,f=!1,y=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(l);null!==t;){if(null===t.callback)i(l);else{if(!(t.startTime<=e))break;i(l),t.sortIndex=t.expirationTime,n(c,t)}t=r(l)}}function M(e){if(m=!1,w(e),!y)if(null!==r(c))y=!0,D(A);else{var t=r(l);null!==t&&O(M,t.startTime-e)}}function A(e,n){y=!1,m&&(m=!1,v(I),I=-1),f=!0;var o=p;try{for(w(n),h=r(c);null!==h&&(!(h.expirationTime>n)||e&&!x());){var a=h.callback;if("function"==typeof a){h.callback=null,p=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?h.callback=s:h===r(c)&&i(c),w(n)}else i(c);h=r(c)}if(null!==h)var u=!0;else{var d=r(l);null!==d&&O(M,d.startTime-n),u=!1}return u}finally{h=null,p=o,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,N=!1,T=null,I=-1,k=5,L=-1;function x(){return!(t.unstable_now()-Le||125a?(e.sortIndex=o,n(l,e),null===r(c)&&e===r(l)&&(m?(v(I),I=-1):m=!0,O(M,o-a))):(e.sortIndex=s,n(c,e),y||f||(y=!0,D(A))),e},t.unstable_shouldYield=x,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}})),DO=(o((function(e,t){})),o((function(e){e.exports=CO}))); /** * @license React * scheduler.development.js @@ -125,7 +126,7 @@ var EO=o((function(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0