From 7db7e7cb62b917814f006f4432a3f2703ed3fa28 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Wed, 6 Nov 2024 11:43:34 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20api3dao/?= =?UTF-8?q?logos@7e4ffc577a32a2028fd780606112e330c28461be=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asset-manifest.json | 6 +++--- index.html | 2 +- static/js/main.2d514678.js | 3 --- static/js/main.ec758c8c.js | 3 +++ ...2d514678.js.LICENSE.txt => main.ec758c8c.js.LICENSE.txt} | 0 static/js/{main.2d514678.js.map => main.ec758c8c.js.map} | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 static/js/main.2d514678.js create mode 100644 static/js/main.ec758c8c.js rename static/js/{main.2d514678.js.LICENSE.txt => main.ec758c8c.js.LICENSE.txt} (100%) rename static/js/{main.2d514678.js.map => main.ec758c8c.js.map} (64%) diff --git a/asset-manifest.json b/asset-manifest.json index 19c72d3c..39424a43 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/logos/static/css/main.d0bd4ad3.css", - "main.js": "/logos/static/js/main.2d514678.js", + "main.js": "/logos/static/js/main.ec758c8c.js", "static/js/35.75e36e13.chunk.js": "/logos/static/js/35.75e36e13.chunk.js", "static/media/Brett.svg": "/logos/static/media/Brett.ffb8996b9d5ad66d9cf49ad4d3eba084.svg", "static/media/Aero.svg": "/logos/static/media/Aero.b25fd925a93bf0ef017c7a22f966621a.svg", @@ -325,11 +325,11 @@ "static/media/Celo.svg": "/logos/static/media/Celo.f5086b90b66ad4b68b0ec200e9a6043d.svg", "static/media/Kava.svg": "/logos/static/media/Kava.41cc463950149ec606fcc47de61125fb.svg", "main.d0bd4ad3.css.map": "/logos/static/css/main.d0bd4ad3.css.map", - "main.2d514678.js.map": "/logos/static/js/main.2d514678.js.map", + "main.ec758c8c.js.map": "/logos/static/js/main.ec758c8c.js.map", "35.75e36e13.chunk.js.map": "/logos/static/js/35.75e36e13.chunk.js.map" }, "entrypoints": [ "static/css/main.d0bd4ad3.css", - "static/js/main.2d514678.js" + "static/js/main.ec758c8c.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 0ba448fa..829444a6 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -API3 Logos Viewer
\ No newline at end of file +API3 Logos Viewer
\ No newline at end of file diff --git a/static/js/main.2d514678.js b/static/js/main.2d514678.js deleted file mode 100644 index 9367635a..00000000 --- a/static/js/main.2d514678.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see main.2d514678.js.LICENSE.txt */ -(()=>{var e={49074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TYPE_TRANSFORMATIONS=t.PARAMETER_SHORT_TYPES=void 0,t.PARAMETER_SHORT_TYPES={B:"bytes",b:"bytes32",S:"string",s:"string32",a:"address",i:"int256",u:"uint256",f:"bool"},t.TYPE_TRANSFORMATIONS={string32:"bytes32"}},68258:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decode=void 0;const a=r(44024),i=n(r(78994)),o=r(49074),s={string32:a.ethers.utils.parseBytes32String,int256:e=>e.toString(),uint256:e=>e.toString()};t.decode=function(e){if("0x"===e)return{};const t=a.ethers.utils.hexlify(a.ethers.utils.arrayify(e).slice(0,32)),r=a.ethers.utils.parseBytes32String(t),n=r.substring(0,1);if("1"!==n)throw new Error(`Unknown ABI schema version: ${n}`);const c=r.substring(1),l=Array.from(c).map((e=>o.PARAMETER_SHORT_TYPES[e])),u=l.reduce(((e,t)=>[...e,"bytes32",o.TYPE_TRANSFORMATIONS[t]??t]),["bytes32"]),d=a.ethers.utils.defaultAbiCoder.decode(u,e);if(a.ethers.utils.defaultAbiCoder.encode(u,d)!==e)throw new Error("Re-encoding mismatch");const[p,...f]=d;return function(e,t){return t.reduce(((t,r,n)=>{const[i,o]=r,c=a.ethers.utils.parseBytes32String(i),l=e[n],u=s[l];if(!u)return{...t,[c]:o};const d=u(o);return{...t,[c]:d}}),{})}(l,(0,i.default)(f,2))}},67306:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encode=void 0;const a=r(44024),i=n(r(45179)),o=r(49074),s={string32:a.ethers.utils.formatBytes32String};t.encode=function(e){const t=e.map((e=>e.type)),r=["bytes32",...(0,i.default)(t,(e=>["bytes32",o.TYPE_TRANSFORMATIONS[e]??e]))],n=function(e){const t=Object.keys(o.PARAMETER_SHORT_TYPES);return`1${e.reduce(((e,r)=>[...e,t.find((e=>o.PARAMETER_SHORT_TYPES[e]===r))]),[]).join("")}`}(t),c=a.ethers.utils.formatBytes32String(n),l=function(e){return(0,i.default)(e,(e=>{const{name:t,value:r,type:n}=e,i=s[n],o=a.ethers.utils.formatBytes32String(t);return i?[o,i(r)]:[o,r]}))}(e),u=[c,...l];return(new a.ethers.utils.AbiCoder).encode(r,u)}},99119:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.PARAMETER_SHORT_TYPES=t.decode=t.encode=void 0;var i=r(67306);Object.defineProperty(t,"encode",{enumerable:!0,get:function(){return i.encode}});var o=r(68258);Object.defineProperty(t,"decode",{enumerable:!0,get:function(){return o.decode}});var s=r(49074);Object.defineProperty(t,"PARAMETER_SHORT_TYPES",{enumerable:!0,get:function(){return s.PARAMETER_SHORT_TYPES}}),a(r(40326),t)},40326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},67756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.airnodeAddressMap=t.apisData=void 0,t.apisData={"twelvedata-mock":{alias:"twelvedata-mock",name:"Twelve Data-Mock",providerType:"rest",airnode:"0x3dE057f4F0C6b9fc75321C3e8b477277DD615d42",xpub:"",supportedFeedsInBatches:{TwelveData:[["AAVE/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAT/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOGE/USD"],["DYDX/USD"],["ETH/USD"],["FIL/USD"],["FLOW/USD"],["FXS/USD"],["FTM/USD"],["GLMR/USD"],["GNO/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["JOE/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MKR/USD"],["METIS/USD"],["MOVR/USD"],["NEAR/USD"],["OKB/USD"],["OP/USD"],["PAXG/USD"],["ROSE/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["USDT/USD"],["USDC/USD"],["USDP/USD"],["WBTC/USD"],["XLM/USD"],["XRP/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["MASK/USD"],["BAND/USD"],["UMA/USD"],["APT/USD"],["BLUR/USD"],["DOT/USD"],["ENS/USD"],["GMX/USD"],["IMX/USD"],["RPL/USD"],["stETH/USD"],["STG/USD"],["UNI/USD"],["OSMO/USD"],["SUI/USD"],["GNS/USD"],["FRAX/USD"],["LUSD/USD"],["MNT/USD"],["KAVA/USD"],["RIF/USD"],["RDNT/USD"],["GHO/USD"],["crvUSD/USD"],["EURe/USD"],["WOO/USD"],["PYTH/USD"],["ASTR/USD"],["TIA/USD"],["DYM/USD"],["SEI/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ONDO/USD"],["MANTA/USD"],["RON/USD"],["XVS/USD"],["TWT/USD"],["AERO/USD"],["JUICE/USD"],["ERN/USD"],["TAO/USD"],["INJ/USD"],["NEON/USD"],["RARI/USD"],["MODE/USD"],["ENA/USD"],["FDUSD/USD"],["WLD/USD"],["BLAST/USD"],["ZRO/USD"],["ZK/USD"],["CFX/USD"],["CORE/USD"],["ETHFI/USD"],["MERL/USD"],["ORDI/USD"],["POL/USD"],["QUICK/USD"],["RENDER/USD"],["TAIKO/USD"],["DEGEN/USD"],["SAFE/USD"],["PENDLE/USD"],["USDe/USD"],["SATS/USD"],["AUSD/USD"],["EURC/USD"],["FBTC/USD"],["USDB/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},twelvedata:{alias:"twelvedata",name:"Twelve Data",providerType:"rest",airnode:"0x31C7db0e12e002E071ca0FF243ec4788a8AD189F",xpub:"xpub6Cr7xJmbfHSLJqEqU9ycin3kSxbn5t29p743yq2M9FPbQQ65cU5rf2vt97WF3moA9GVCaojKQxrNNkwVBMur9p9buAquXJKLDw8gr53znYJ",supportedFeedsInBatches:{TwelveData:[["AAVE/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAT/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOGE/USD"],["DYDX/USD"],["ETH/USD"],["FIL/USD"],["FLOW/USD"],["FXS/USD"],["FTM/USD"],["GLMR/USD"],["GNO/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["JOE/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MKR/USD"],["MATIC/USD"],["METIS/USD"],["MOVR/USD"],["NEAR/USD"],["OKB/USD"],["OP/USD"],["PAXG/USD"],["ROSE/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["USDT/USD"],["USDC/USD"],["USDP/USD"],["WBTC/USD"],["XLM/USD"],["XRP/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["RNDR/USD"],["MASK/USD"],["BAND/USD"],["UMA/USD"],["APT/USD"],["BLUR/USD"],["DOT/USD"],["ENS/USD"],["GMX/USD"],["IMX/USD"],["RPL/USD"],["stETH/USD"],["STG/USD"],["UNI/USD"],["OSMO/USD"],["SUI/USD"],["GNS/USD"],["FRAX/USD"],["LUSD/USD"],["MNT/USD"],["KAVA/USD"],["RIF/USD"],["RDNT/USD"],["GHO/USD"],["crvUSD/USD"],["EURe/USD"],["WOO/USD"],["PYTH/USD"],["ASTR/USD"],["TIA/USD"],["DYM/USD"],["SEI/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ONDO/USD"],["MANTA/USD"],["RON/USD"],["XVS/USD"],["TWT/USD"],["AERO/USD"],["JUICE/USD"],["ERN/USD"],["TAO/USD"],["INJ/USD"],["NEON/USD"],["RARI/USD"],["MODE/USD"],["ENA/USD"],["FDUSD/USD"],["WLD/USD"],["BLAST/USD"],["ZRO/USD"],["ZK/USD"],["CFX/USD"],["CORE/USD"],["ETHFI/USD"],["HT/USD"],["MERL/USD"],["ORDI/USD"],["POL/USD"],["QUICK/USD"],["RENDER/USD"],["TAIKO/USD"],["XMR/USD"],["DEGEN/USD"],["SAFE/USD"],["PENDLE/USD"],["USDe/USD"],["SATS/USD"],["AUSD/USD"],["EURC/USD"],["FBTC/USD"],["USDB/USD"]]},deploymentLocations:["aws"],homepageUrl:"https://twelvedata.com",verifiedBaseUrl:"https://twelvedata.com",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"shiftmarkets-mock":{alias:"shiftmarkets-mock",name:"ShiftMarkets-Mock",providerType:"rest",airnode:"0x4C283936141b6AD8253C599091f86DAdE9dd8fDc",xpub:"",supportedFeedsInBatches:{ShiftMarkets:[["AERO/USD","BLAST/USD","HNT/USD","ETH/USD","ADA/USD","BTC/USD","USDT/USD","CRO/USD","ONDO/USD","PYUSD/USD","JUICE/USD","MERL/USD","MODE/USD","CORE/USD","MNT/USD","OKB/USD","BNB/USD","USDC/USD","ATOM/USD","FTM/USD","DOGE/USD","SOL/USD","BAL/USD","CRV/USD","DOT/USD","RSR/USD","RUNE/USD","NEAR/USD","FIL/USD","AXS/USD","GRT/USD","SHIB/USD","GLMR/USD","APE/USD","LDO/USD","OP/USD","GMX/USD","APT/USD","ARB/USD","SUI/USD","WLD/USD","FDUSD/USD","SEI/USD","TIA/USD","ORDI/USD","DYM/USD","ETHFI/USD","STX/USD","KAVA/USD","MKR/USD","AVAX/USD","AAVE/USD","ROSE/USD","RIF/USD","GNO/USD","ENS/USD","CVX/USD","IMX/USD","ASTR/USD","RDNT/USD","WBTC/USD","RON/USD","TAO/USD","LTC/USD","XRP/USD","LINK/USD","SUSHI/USD","CAKE/USD","FLOW/USD","DYDX/USD","KDA/USD","PENDLE/USD","BLUR/USD","AXL/USD","ALGO/USD","BAND/USD","MASK/USD","COMP/USD","UMA/USD","UNI/USD","ICP/USD","W/USD","GHO/USD","LUSD/USD","FRAX/USD","USDB/USD","MANA/USD","PAXG/USD","XVS/USD","AR/USD","PYTH/USD","LQTY/USD","MANTA/USD","ZIL/USD","ZRX/USD","BAT/USD","ANKR/USD","SAND/USD","KSM/USD","TWT/USD","JOE/USD","XLM/USD","HBAR/USD","RPL/USD","ENA/USD","CHZ/USD","ERN/USD","MOVR/USD","SNX/USD","CELO/USD","API3/USD","FXS/USD","WOO/USD","METIS/USD","GNS/USD","STRK/USD","STG/USD","TUSD/USD","TAIKO/USD","SATS/USD","DEGEN/USD","SAFE/USD","XTZ/USD","YFI/USD","OSMO/USD","USDP/USD","stETH/USD","EURe/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},shiftmarkets:{alias:"shiftmarkets",name:"ShiftMarkets",providerType:"rest",airnode:"0x1538e800Ae1B34C264E3F44B6Cd82bE033f38E20",xpub:"xpub6DVqYi4DvEX3BmXHyggZi9GhuYhrnQ8nv9RDCrB8HK92onGHZxqg2Hh5ujNZFuSisPmuF22usL1MrE7uB3pULzUU6vNXwcijayK8Te9YmQo",supportedFeedsInBatches:{ShiftMarkets:[["AERO/USD","BLAST/USD","HNT/USD","ETH/USD","ADA/USD","BTC/USD","USDT/USD","CRO/USD","ONDO/USD","PYUSD/USD","JUICE/USD","MERL/USD","MODE/USD","CORE/USD","MNT/USD","OKB/USD","BNB/USD","USDC/USD","ATOM/USD","FTM/USD","DOGE/USD","SOL/USD","BAL/USD","CRV/USD","DOT/USD","RSR/USD","RUNE/USD","NEAR/USD","FIL/USD","AXS/USD","GRT/USD","SHIB/USD","GLMR/USD","APE/USD","LDO/USD","OP/USD","GMX/USD","APT/USD","ARB/USD","SUI/USD","WLD/USD","FDUSD/USD","SEI/USD","TIA/USD","ORDI/USD","DYM/USD","ETHFI/USD","STX/USD","KAVA/USD","MKR/USD","AVAX/USD","AAVE/USD","ROSE/USD","RIF/USD","GNO/USD","ENS/USD","CVX/USD","IMX/USD","ASTR/USD","RDNT/USD","WBTC/USD","RON/USD","TAO/USD","LTC/USD","XRP/USD","LINK/USD","SUSHI/USD","CAKE/USD","FLOW/USD","DYDX/USD","KDA/USD","PENDLE/USD","BLUR/USD","AXL/USD","ALGO/USD","BAND/USD","MASK/USD","COMP/USD","UMA/USD","UNI/USD","ICP/USD","W/USD","GHO/USD","LUSD/USD","FRAX/USD","USDB/USD","MANA/USD","PAXG/USD","XVS/USD","AR/USD","PYTH/USD","LQTY/USD","MANTA/USD","ZIL/USD","ZRX/USD","BAT/USD","ANKR/USD","SAND/USD","KSM/USD","TWT/USD","JOE/USD","XLM/USD","HBAR/USD","RPL/USD","ENA/USD","CHZ/USD","ERN/USD","MOVR/USD","SNX/USD","CELO/USD","API3/USD","FXS/USD","WOO/USD","METIS/USD","GNS/USD","STRK/USD","STG/USD","TUSD/USD","TAIKO/USD","SATS/USD","DEGEN/USD","SAFE/USD","XTZ/USD","YFI/USD","OSMO/USD","USDP/USD","stETH/USD","EURe/USD"]]},deploymentLocations:["aws"],homepageUrl:"https://www.shiftmarkets.com",verifiedBaseUrl:"https://shiftmarkets.com",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"quicknode-mock":{alias:"quicknode-mock",name:"QuickNode-Mock",providerType:"rpc",airnode:"0x0DD43F13faFCF0349Caf3F14f9941B4E031c7370",xpub:"",supportedFeedsInBatches:{QuickNode:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["mpETH/ETH Exchange Rate"],["stTAO/TAO Exchange Rate"],["sFRAX/FRAX Exchange Rate"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["weETHs/ETH Exchange Rate"],["spETH/ETH Exchange Rate"],["inETH/ETH Exchange Rate"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["instETH/stETH Exchange Rate"],["eBTC/WBTC Exchange Rate"],["cmETH/mETH Exchange Rate"],["LsETH/ETH Exchange Rate"],["insfrxETH/sfrxETH Exchange Rate"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},"nodary-mock":{alias:"nodary-mock",name:"Nodary-Mock",providerType:"rest",airnode:"0x241364bbd08701330bdc810bAaA10cF8DF1710E5",xpub:"",supportedFeedsInBatches:{Nodary:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["instETH/stETH Exchange Rate"],["AAVE/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAT/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOGE/USD"],["DOT/USD"],["DYDX/USD"],["ETH/USD"],["FIL/USD"],["FLOW/USD"],["FXS/USD"],["FTM/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["JOE/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MKR/USD"],["METIS/USD"],["MOVR/USD"],["NEAR/USD"],["OKB/USD"],["OP/USD"],["PAXG/USD"],["QUICK/USD"],["ROSE/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["stETH/USD"],["STG/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["UNI/USD"],["USDT/USD"],["USDC/USD"],["USDP/USD"],["WBTC/USD"],["XLM/USD"],["XRP/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["MASK/USD"],["ENS/USD"],["BLUR/USD"],["BAND/USD"],["UMA/USD"],["APT/USD"],["OSMO/USD"],["SUI/USD"],["GNS/USD"],["MNT/USD"],["KAVA/USD"],["RDNT/USD"],["RIF/USD"],["GHO/USD"],["crvUSD/USD"],["EURe/USD"],["FRAX/USD"],["LUSD/USD"],["WOO/USD"],["PYTH/USD"],["USDe/USD"],["ASTR/USD"],["TIA/USD"],["DYM/USD"],["SEI/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ONDO/USD"],["MANTA/USD"],["RON/USD"],["XVS/USD"],["PENDLE/USD"],["mpETH/ETH Exchange Rate"],["TWT/USD"],["USDB/USD"],["AERO/USD"],["JUICE/USD"],["ERN/USD"],["TAO/USD"],["stTAO/TAO Exchange Rate"],["PYUSD/USD"],["MERL/USD"],["ORDI/USD"],["SATS/USD"],["sFRAX/FRAX Exchange Rate"],["INJ/USD"],["MODE/USD"],["NEON/USD"],["RARI/USD"],["spETH/ETH Exchange Rate"],["CORE/USD"],["DEGEN/USD"],["ENA/USD"],["FDUSD/USD"],["WLD/USD"],["EURC/USD"],["ZRO/USD"],["ZK/USD"],["ETHFI/USD"],["SAFE/USD"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["TAIKO/USD"],["W/USD"],["weETHs/ETH Exchange Rate"],["BLAST/USD"],["inETH/ETH Exchange Rate"],["CFX/USD"],["RENDER/USD"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["POL/USD"],["eBTC/WBTC Exchange Rate"],["AUSD/USD"],["FBTC/USD"],["LUMIA/USD"],["cmETH/mETH Exchange Rate"],["LsETH/ETH Exchange Rate"],["insfrxETH/sfrxETH Exchange Rate"],["egETH/ETH Exchange Rate"],["mstETH/ETH Exchange Rate"],["SCR/USD"],["COOK/USD"],["cbBTC/USD"],["BRETT/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},nodary:{alias:"nodary",name:"Nodary",providerType:"rest",airnode:"0xc52EeA00154B4fF1EbbF8Ba39FDe37F1AC3B9Fd4",xpub:"xpub6Cd14fbNsTqhi7Urd3cyXHD1nfpDyFf2b5jLcNcwtcEiGzJpQ9UNDwNinYCEmoXgCEZyMZYmAPCaGCFBuCqMD8Pkz8zXWt4rgre8kQLFUMA",supportedFeedsInBatches:{Nodary:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["instETH/stETH Exchange Rate"],["AAVE/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAT/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOGE/USD"],["DOT/USD"],["DYDX/USD"],["ETH/USD"],["FIL/USD"],["FLOW/USD"],["FXS/USD"],["FTM/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["JOE/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MKR/USD"],["METIS/USD"],["MOVR/USD"],["NEAR/USD"],["OKB/USD"],["OP/USD"],["PAXG/USD"],["QUICK/USD"],["ROSE/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["stETH/USD"],["STG/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["UNI/USD"],["USDT/USD"],["USDC/USD"],["USDP/USD"],["WBTC/USD"],["XLM/USD"],["XRP/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["MASK/USD"],["ENS/USD"],["BLUR/USD"],["BAND/USD"],["UMA/USD"],["APT/USD"],["OSMO/USD"],["SUI/USD"],["GNS/USD"],["MNT/USD"],["KAVA/USD"],["RDNT/USD"],["RIF/USD"],["GHO/USD"],["crvUSD/USD"],["EURe/USD"],["FRAX/USD"],["LUSD/USD"],["WOO/USD"],["PYTH/USD"],["USDe/USD"],["ASTR/USD"],["TIA/USD"],["DYM/USD"],["SEI/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ONDO/USD"],["MANTA/USD"],["RON/USD"],["XVS/USD"],["PENDLE/USD"],["mpETH/ETH Exchange Rate"],["TWT/USD"],["USDB/USD"],["AERO/USD"],["JUICE/USD"],["ERN/USD"],["TAO/USD"],["stTAO/TAO Exchange Rate"],["PYUSD/USD"],["MERL/USD"],["ORDI/USD"],["SATS/USD"],["sFRAX/FRAX Exchange Rate"],["INJ/USD"],["MODE/USD"],["NEON/USD"],["RARI/USD"],["spETH/ETH Exchange Rate"],["CORE/USD"],["DEGEN/USD"],["ENA/USD"],["FDUSD/USD"],["WLD/USD"],["EURC/USD"],["ZRO/USD"],["ZK/USD"],["ETHFI/USD"],["SAFE/USD"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["TAIKO/USD"],["W/USD"],["weETHs/ETH Exchange Rate"],["BLAST/USD"],["inETH/ETH Exchange Rate"],["CFX/USD"],["RENDER/USD"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["POL/USD"],["eBTC/WBTC Exchange Rate"],["AUSD/USD"],["FBTC/USD"],["LUMIA/USD"],["cmETH/mETH Exchange Rate"],["LsETH/ETH Exchange Rate"],["insfrxETH/sfrxETH Exchange Rate"],["egETH/ETH Exchange Rate"],["mstETH/ETH Exchange Rate"],["SCR/USD"],["COOK/USD"],["cbBTC/USD"],["BRETT/USD"]]},deploymentLocations:["aws"],homepageUrl:"https://nodary.io",verifiedBaseUrl:"https://nodary.io",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"netdania-mock":{alias:"netdania-mock",name:"NetDania-Mock",providerType:"rest",airnode:"0xc95Bad10efc430c8EcC02d7800e635cea6e058F3",xpub:"",supportedFeedsInBatches:{NetDania:[["AAVE/USD","ADA/USD","AERO/USD","ALGO/USD","ANKR/USD","APE/USD","API3/USD","APT/USD","AR/USD","ARB/USD","ATOM/USD","AVAX/USD","AXL/USD","AXS/USD","BAL/USD","BAND/USD","BAT/USD","BLUR/USD","BNB/USD","BTC/USD","CAKE/USD","CELO/USD","CFX/USD","CHZ/USD","COMP/USD","CORE/USD","CRO/USD","CRV/USD","CVX/USD","DAI/USD","DEGEN/USD","DOGE/USD","DOT/USD","DYDX/USD","DYM/USD","ENS/USD","ERN/USD","ETH/USD","ETHFI/USD","FDUSD/USD","FIL/USD","FLOW/USD","FTM/USD","FXS/USD","GLMR/USD","GMX/USD","GNO/USD","GRT/USD","HBAR/USD","HNT/USD","ICP/USD","IMX/USD","INJ/USD","JOE/USD","JUICE/USD","KAVA/USD","KDA/USD","KSM/USD","LDO/USD","LINK/USD","LQTY/USD","LTC/USD","MANA/USD","MANTA/USD","MASK/USD","MERL/USD","METIS/USD","MKR/USD","MODE/USD","MOVR/USD","NEAR/USD","NEON/USD","OKB/USD","ONDO/USD","OP/USD","ORDI/USD","OSMO/USD","PAXG/USD","PENDLE/USD","PYTH/USD","PYUSD/USD","QUICK/USD","RARI/USD","RDNT/USD","RENDER/USD","RIF/USD","ROSE/USD","RPL/USD","RSR/USD","RUNE/USD","SAFE/USD","SAND/USD","SATS/USD","SEI/USD","SHIB/USD","SNX/USD","SOL/USD","STG/USD","STRK/USD","STX/USD","SUI/USD","SUSHI/USD","TAIKO/USD","TAO/USD","TIA/USD","TUSD/USD","TWT/USD","UMA/USD","UNI/USD","USDC/USD","USDP/USD","USDT/USD","W/USD","WBTC/USD","WLD/USD","WOO/USD","XLM/USD","XRP/USD","XTZ/USD","XVS/USD","YFI/USD","ZIL/USD","ZRX/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},"ncfx-mock":{alias:"ncfx-mock",name:"NCFX-Mock",providerType:"rest",airnode:"0x220Ad4917B349F69288E892e50E929A693B71920",xpub:"",supportedFeedsInBatches:{"NewChangeFX-Crypto":[["AAVE/USD","ADA/USD","ALGO/USD","ANKR/USD","APE/USD","API3/USD","ARB/USD","ATOM/USD","AVAX/USD","AXS/USD","BAL/USD","BAT/USD","BNB/USD","BTC/USD","CAKE/USD","CELO/USD","CHZ/USD","COMP/USD","CRO/USD","CRV/USD","CVX/USD","DAI/USD","DOGE/USD","DOT/USD","DYDX/USD","ETH/USD","FIL/USD","FLOW/USD","FXS/USD","FTM/USD","GLMR/USD","GMX/USD","GNO/USD","GRT/USD","HBAR/USD","HNT/USD","ICP/USD","IMX/USD","JOE/USD","KDA/USD","KSM/USD","LDO/USD","LINK/USD","LQTY/USD","LTC/USD","MANA/USD","MKR/USD","METIS/USD","MOVR/USD","NEAR/USD","OKB/USD","OP/USD","PAXG/USD","ROSE/USD","RPL/USD","RSR/USD","RUNE/USD","SAND/USD","SHIB/USD","SNX/USD","SOL/USD","stETH/USD","STG/USD","STX/USD","SUSHI/USD","TUSD/USD","UNI/USD","USDT/USD","USDC/USD","USDP/USD","WBTC/USD","XLM/USD","XRP/USD","XTZ/USD","YFI/USD","ZIL/USD","ZRX/USD","MASK/USD","ENS/USD","BLUR/USD","BAND/USD","UMA/USD","APT/USD","OSMO/USD","SUI/USD","KAVA/USD","MNT/USD","RDNT/USD","RIF/USD","WOO/USD","PYTH/USD","ASTR/USD","TIA/USD","DYM/USD","SEI/USD","AR/USD","STRK/USD","AXL/USD","ONDO/USD","MANTA/USD","RON/USD","XVS/USD","PENDLE/USD","TWT/USD","AERO/USD","ERN/USD","JUICE/USD","TAO/USD","PYUSD/USD","ORDI/USD","INJ/USD","MODE/USD","RARI/USD","DEGEN/USD","CORE/USD","FDUSD/USD","WLD/USD","SAFE/USD","QUICK/USD","BLAST/USD","ZRO/USD","ZK/USD","CFX/USD","RENDER/USD","EURC/USD","MERL/USD","NEON/USD","TAIKO/USD","USDe/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},ncfx:{alias:"ncfx",name:"NCFX",providerType:"rest",airnode:"0xbC6471E88d8aFe936A45bEB8bd20a210EBEF6822",xpub:"xpub6D1KuAee1Ubp3LcU76tUvrtjdoKFcU87CCBVKxYZCz3ejDRuRyYN9znp6TGv9rnTSujP7LfSirz5enf4EsUi58KbKBngsiwb8SDwZZ6pukB",supportedFeedsInBatches:{"NewChangeFX-Crypto":[["AAVE/USD","ADA/USD","ALGO/USD","ANKR/USD","APE/USD","API3/USD","ARB/USD","ATOM/USD","AVAX/USD","AXS/USD","BAL/USD","BAT/USD","BNB/USD","BTC/USD","CAKE/USD","CELO/USD","CHZ/USD","COMP/USD","CRO/USD","CRV/USD","CVX/USD","DAI/USD","DOGE/USD","DOT/USD","DYDX/USD","ETH/USD","FIL/USD","FLOW/USD","FXS/USD","FTM/USD","GLMR/USD","GMX/USD","GNO/USD","GRT/USD","HBAR/USD","HNT/USD","ICP/USD","IMX/USD","JOE/USD","KDA/USD","KSM/USD","LDO/USD","LINK/USD","LQTY/USD","LTC/USD","MANA/USD","MKR/USD","MATIC/USD","METIS/USD","MOVR/USD","NEAR/USD","OKB/USD","OP/USD","PAXG/USD","ROSE/USD","RPL/USD","RSR/USD","RUNE/USD","SAND/USD","SHIB/USD","SNX/USD","SOL/USD","stETH/USD","STG/USD","STX/USD","SUSHI/USD","TUSD/USD","UNI/USD","USDT/USD","USDC/USD","USDP/USD","WBTC/USD","XLM/USD","XRP/USD","XTZ/USD","YFI/USD","ZIL/USD","ZRX/USD","RNDR/USD","MASK/USD","ENS/USD","BLUR/USD","BAND/USD","UMA/USD","APT/USD","OSMO/USD","SUI/USD","KAVA/USD","MNT/USD","RDNT/USD","RIF/USD","WOO/USD","PYTH/USD","ASTR/USD","TIA/USD","DYM/USD","SEI/USD","AR/USD","STRK/USD","AXL/USD","ONDO/USD","MANTA/USD","RON/USD","XVS/USD","PENDLE/USD","TWT/USD","AERO/USD","ERN/USD","JUICE/USD","TAO/USD","PYUSD/USD","ORDI/USD","INJ/USD","MODE/USD","RARI/USD","DEGEN/USD","CORE/USD","FDUSD/USD","WLD/USD","SAFE/USD","QUICK/USD","BLAST/USD","ZRO/USD","ZK/USD","CFX/USD","RENDER/USD","EURC/USD","HT/USD","MERL/USD","NEON/USD","TAIKO/USD","XMR/USD","USDe/USD"]]},deploymentLocations:["aws"],homepageUrl:"https://www.newchangefx.com",verifiedBaseUrl:"https://newchangefx.com",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"kaiko-mock":{alias:"kaiko-mock",name:"Kaiko-Mock",providerType:"rest",airnode:"0x14E5203C158766ECD51E7FB46d9449434a48D9FE",xpub:"",supportedFeedsInBatches:{Kaiko:[["AAVE/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAT/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOGE/USD"],["DOT/USD"],["ETH/USD"],["FIL/USD"],["FLOW/USD"],["FXS/USD"],["FTM/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["JOE/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MKR/USD"],["MOVR/USD"],["NEAR/USD"],["OKB/USD"],["OP/USD"],["PAXG/USD"],["ROSE/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["stETH/USD"],["STG/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["UNI/USD"],["USDT/USD"],["USDC/USD"],["USDP/USD"],["XLM/USD"],["XRP/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["MASK/USD"],["ENS/USD"],["BLUR/USD"],["BAND/USD"],["UMA/USD"],["APT/USD"],["OSMO/USD"],["SUI/USD"],["GNS/USD"],["MNT/USD"],["KAVA/USD"],["RIF/USD"],["RDNT/USD"],["WOO/USD"],["PYTH/USD"],["ASTR/USD"],["DYM/USD"],["TIA/USD"],["USDe/USD"],["SEI/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ONDO/USD"],["MANTA/USD"],["RON/USD"],["PENDLE/USD"],["TWT/USD"],["AERO/USD"],["ERN/USD"],["TAO/USD"],["ORDI/USD"],["SATS/USD"],["INJ/USD"],["CORE/USD"],["DEGEN/USD"],["ENA/USD"],["FDUSD/USD"],["WLD/USD"],["ETHFI/USD"],["W/USD"],["BLAST/USD"],["ZRO/USD"],["ZK/USD"],["CFX/USD"],["RENDER/USD"],["POL/USD"],["EURC/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},kaiko:{alias:"kaiko",name:"Kaiko",providerType:"rest",airnode:"0x5791Fb78D4e37A9D0f0003199D1AE1A8C04C8d89",xpub:"xpub6Cd14fbNsTqhi7Urd3cyXHD1nfpDyFf2b5jLcNcwtcEiGzJpQ9UNDwNinYCEmoXgCEZyMZYmAPCaGCFBuCqMD8Pkz8zXWt4rgre8kQLFUMA",supportedFeedsInBatches:{Kaiko:[["AAVE/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAT/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOGE/USD"],["DOT/USD"],["ETH/USD"],["FIL/USD"],["FLOW/USD"],["FXS/USD"],["FTM/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["JOE/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MKR/USD"],["MATIC/USD"],["MOVR/USD"],["NEAR/USD"],["OKB/USD"],["OP/USD"],["PAXG/USD"],["ROSE/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["stETH/USD"],["STG/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["UNI/USD"],["USDT/USD"],["USDC/USD"],["USDP/USD"],["XLM/USD"],["XRP/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["RNDR/USD"],["MASK/USD"],["ENS/USD"],["BLUR/USD"],["BAND/USD"],["UMA/USD"],["APT/USD"],["OSMO/USD"],["SUI/USD"],["GNS/USD"],["MNT/USD"],["KAVA/USD"],["RIF/USD"],["RDNT/USD"],["WOO/USD"],["PYTH/USD"],["ASTR/USD"],["DYM/USD"],["TIA/USD"],["USDe/USD"],["SEI/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ONDO/USD"],["MANTA/USD"],["RON/USD"],["PENDLE/USD"],["TWT/USD"],["AERO/USD"],["ERN/USD"],["TAO/USD"],["ORDI/USD"],["SATS/USD"],["CORE/USD"],["DEGEN/USD"],["ENA/USD"],["ETHFI/USD"],["FDUSD/USD"],["INJ/USD"],["W/USD"],["WLD/USD"],["BLAST/USD"],["ZRO/USD"],["ZK/USD"],["CFX/USD"],["RENDER/USD"],["POL/USD"]]},deploymentLocations:["aws"],homepageUrl:"https://www.kaiko.com",verifiedBaseUrl:"https://kaiko.io",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"infura-mock":{alias:"infura-mock",name:"Infura-Mock",providerType:"rpc",airnode:"0x4D81964F58409651eF5C191166a9Ff6e6b40986f",xpub:"",supportedFeedsInBatches:{Infura:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["mpETH/ETH Exchange Rate"],["stTAO/TAO Exchange Rate"],["sFRAX/FRAX Exchange Rate"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["weETHs/ETH Exchange Rate"],["spETH/ETH Exchange Rate"],["inETH/ETH Exchange Rate"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["instETH/stETH Exchange Rate"],["eBTC/WBTC Exchange Rate"],["cmETH/mETH Exchange Rate"],["LsETH/ETH Exchange Rate"],["insfrxETH/sfrxETH Exchange Rate"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},"finage-mock":{alias:"finage-mock",name:"Finage-Mock",providerType:"rest",airnode:"0xD7AD63b84F03FF923a690bAE32C988097C70C673",xpub:"",supportedFeedsInBatches:{Finage:[["AAVE/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAT/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOGE/USD"],["DOT/USD"],["DYDX/USD"],["ETH/USD"],["FIL/USD"],["FLOW/USD"],["FXS/USD"],["FTM/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["JOE/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MKR/USD"],["METIS/USD"],["MOVR/USD"],["NEAR/USD"],["OKB/USD"],["OP/USD"],["PAXG/USD"],["QUICK/USD"],["ROSE/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["STG/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["UNI/USD"],["USDT/USD"],["USDC/USD"],["USDP/USD"],["WBTC/USD"],["XLM/USD"],["XRP/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["MASK/USD"],["ENS/USD"],["BLUR/USD"],["BAND/USD"],["UMA/USD"],["APT/USD"],["stETH/USD"],["OSMO/USD"],["SUI/USD"],["GNS/USD"],["FRAX/USD"],["LUSD/USD"],["MNT/USD"],["KAVA/USD"],["RIF/USD"],["RDNT/USD"],["GHO/USD"],["crvUSD/USD"],["EURe/USD"],["WOO/USD"],["PYTH/USD"],["USDe/USD"],["ASTR/USD"],["DYM/USD"],["TIA/USD"],["SEI/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ONDO/USD"],["MANTA/USD"],["RON/USD"],["XVS/USD"],["PENDLE/USD"],["TWT/USD"],["AERO/USD"],["JUICE/USD"],["ERN/USD"],["TAO/USD"],["PYUSD/USD"],["MERL/USD"],["ORDI/USD"],["SATS/USD"],["NEON/USD"],["INJ/USD"],["RARI/USD"],["CORE/USD"],["DEGEN/USD"],["ENA/USD"],["FDUSD/USD"],["WLD/USD"],["ETHFI/USD"],["SAFE/USD"],["TAIKO/USD"],["W/USD"],["BLAST/USD"],["ZRO/USD"],["ZK/USD"],["CFX/USD"],["RENDER/USD"],["POL/USD"],["LUMIA/USD"],["FBTC/USD"],["AUSD/USD"],["EURC/USD"],["USDB/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},finage:{alias:"finage",name:"Finage",providerType:"rest",airnode:"0xa924847354c551C79BAE7E75529364bA0449e51A",xpub:"xpub6CFWer6kWqCwTQLLfMTVviYeHKmDvXM4Leq8AwUBE9XNqmQYAmgtGZnxKo6rxypmGRpeZjSZy8gHUNJioeZVrHnb6RyjsZs3MkeMoaL1JbV",supportedFeedsInBatches:{Finage:[["AAVE/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAT/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOGE/USD"],["DOT/USD"],["DYDX/USD"],["ETH/USD"],["FIL/USD"],["FLOW/USD"],["FXS/USD"],["FTM/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["JOE/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MKR/USD"],["METIS/USD"],["MOVR/USD"],["NEAR/USD"],["OKB/USD"],["OP/USD"],["PAXG/USD"],["QUICK/USD"],["ROSE/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["STG/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["UNI/USD"],["USDT/USD"],["USDC/USD"],["USDP/USD"],["WBTC/USD"],["XLM/USD"],["XRP/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["MASK/USD"],["ENS/USD"],["BLUR/USD"],["BAND/USD"],["UMA/USD"],["APT/USD"],["stETH/USD"],["OSMO/USD"],["SUI/USD"],["GNS/USD"],["FRAX/USD"],["LUSD/USD"],["MNT/USD"],["KAVA/USD"],["RIF/USD"],["RDNT/USD"],["GHO/USD"],["crvUSD/USD"],["EURe/USD"],["WOO/USD"],["PYTH/USD"],["USDe/USD"],["ASTR/USD"],["DYM/USD"],["TIA/USD"],["SEI/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ONDO/USD"],["MANTA/USD"],["RON/USD"],["XVS/USD"],["PENDLE/USD"],["TWT/USD"],["AERO/USD"],["JUICE/USD"],["ERN/USD"],["TAO/USD"],["PYUSD/USD"],["MERL/USD"],["ORDI/USD"],["SATS/USD"],["NEON/USD"],["INJ/USD"],["RARI/USD"],["CORE/USD"],["DEGEN/USD"],["ENA/USD"],["FDUSD/USD"],["WLD/USD"],["ETHFI/USD"],["SAFE/USD"],["TAIKO/USD"],["W/USD"],["BLAST/USD"],["ZRO/USD"],["ZK/USD"],["CFX/USD"],["RENDER/USD"],["POL/USD"],["LUMIA/USD"],["FBTC/USD"],["AUSD/USD"],["EURC/USD"],["USDB/USD"]]},deploymentLocations:["aws"],homepageUrl:"https://finage.co.uk",verifiedBaseUrl:"https://finage.co.uk",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"dxfeed-mock":{alias:"dxfeed-mock",name:"dxFeed-Mock",providerType:"rest",airnode:"0xC479695045E1730bDE7697c6eD9442cB4A6Da6a0",xpub:"",supportedFeedsInBatches:{dxFeed:[["AAVE/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["APT/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAND/USD"],["BAT/USD"],["BLUR/USD"],["BNB/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOT/USD"],["DYDX/USD"],["ENS/USD"],["FIL/USD"],["FLOW/USD"],["FTM/USD"],["FXS/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GRT/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["JOE/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LTC/USD"],["MANA/USD"],["MASK/USD"],["MKR/USD"],["MOVR/USD"],["NEAR/USD"],["PAXG/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["STG/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["UMA/USD"],["UNI/USD"],["USDP/USD"],["USDT/USD"],["XLM/USD"],["XTZ/USD"],["YFI/USD"],["ADA/USD"],["BTC/USD"],["ETH/USD"],["XRP/USD"],["DOGE/USD"],["USDC/USD"],["ASTR/USD"],["ZRX/USD"],["SUI/USD"],["WOO/USD"],["KDA/USD"],["ORDI/USD"],["PYTH/USD"],["WLD/USD"],["XVS/USD"],["SEI/USD"],["MANTA/USD"],["OSMO/USD"],["CFX/USD"],["OP/USD"],["TIA/USD"],["DYM/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ENA/USD"],["ROSE/USD"],["GNS/USD"],["HBAR/USD"],["RDNT/USD"],["INJ/USD"],["PENDLE/USD"],["RIF/USD"],["KAVA/USD"],["WBTC/USD"],["RENDER/USD"],["ETHFI/USD"],["ERN/USD"],["METIS/USD"],["QUICK/USD"],["LQTY/USD"],["ZIL/USD"],["TAO/USD"],["TWT/USD"],["FDUSD/USD"],["MNT/USD"],["MODE/USD"],["OKB/USD"],["ONDO/USD"],["NEON/USD"],["BLAST/USD"],["SATS/USD"],["CORE/USD"],["PYUSD/USD"],["DEGEN/USD"],["FRAX/USD"],["MERL/USD"],["RARI/USD"],["SAFE/USD"],["JUICE/USD"],["AERO/USD"],["TAIKO/USD"],["EURC/USD"],["LUMIA/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},dxfeed:{alias:"dxfeed",name:"dxFeed",providerType:"rest",airnode:"0x11030d4f8eB06F958E763C6f8b165D7CDd98DB6C",xpub:"xpub6DSE1Hr6hCmAXb9tapwx14DFth2qUQb8XKr5gAX7G9PcSUoszk3Wnx7zoxedVzun4vVt4ZzYZk27FcPz19bWuLA3kXYBBK3vjgYADFUCQDa",supportedFeedsInBatches:{dxFeed:[["AAVE/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["APT/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAND/USD"],["BAT/USD"],["BLUR/USD"],["BNB/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOT/USD"],["DYDX/USD"],["ENS/USD"],["FIL/USD"],["FLOW/USD"],["FTM/USD"],["FXS/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GRT/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["JOE/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LTC/USD"],["MANA/USD"],["MASK/USD"],["MKR/USD"],["MOVR/USD"],["NEAR/USD"],["PAXG/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["STG/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["UMA/USD"],["UNI/USD"],["USDP/USD"],["USDT/USD"],["XLM/USD"],["XTZ/USD"],["YFI/USD"],["ADA/USD"],["BTC/USD"],["ETH/USD"],["XRP/USD"],["DOGE/USD"],["USDC/USD"],["ASTR/USD"],["ZRX/USD"],["SUI/USD"],["WOO/USD"],["KDA/USD"],["ORDI/USD"],["PYTH/USD"],["WLD/USD"],["XVS/USD"],["SEI/USD"],["MANTA/USD"],["OSMO/USD"],["CFX/USD"],["OP/USD"],["TIA/USD"],["DYM/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ENA/USD"],["ROSE/USD"],["GNS/USD"],["HBAR/USD"],["RDNT/USD"],["INJ/USD"],["PENDLE/USD"],["RIF/USD"],["KAVA/USD"],["WBTC/USD"],["RENDER/USD"],["ETHFI/USD"],["ERN/USD"],["METIS/USD"],["QUICK/USD"],["LQTY/USD"],["ZIL/USD"],["TAO/USD"],["TWT/USD"],["FDUSD/USD"],["MNT/USD"],["MODE/USD"],["OKB/USD"],["ONDO/USD"],["NEON/USD"],["BLAST/USD"],["SATS/USD"],["CORE/USD"],["PYUSD/USD"],["DEGEN/USD"],["FRAX/USD"],["MERL/USD"],["RARI/USD"],["SAFE/USD"],["JUICE/USD"],["AERO/USD"],["TAIKO/USD"],["EURC/USD"],["LUMIA/USD"]]},deploymentLocations:["aws"],homepageUrl:"https://dxfeed.com",verifiedBaseUrl:"https://dxfeed.com",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"drpc-mock":{alias:"drpc-mock",name:"dRPC-Mock",providerType:"rpc",airnode:"0xDFCC177437f9Be5e5A0828A620664A4C1321e780",xpub:"",supportedFeedsInBatches:{dRPC:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["mpETH/ETH Exchange Rate"],["stTAO/TAO Exchange Rate"],["sFRAX/FRAX Exchange Rate"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["weETHs/ETH Exchange Rate"],["spETH/ETH Exchange Rate"],["inETH/ETH Exchange Rate"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["instETH/stETH Exchange Rate"],["eBTC/WBTC Exchange Rate"],["cmETH/mETH Exchange Rate"],["LsETH/ETH Exchange Rate"],["insfrxETH/sfrxETH Exchange Rate"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},drpc:{alias:"drpc",name:"dRPC",providerType:"rpc",airnode:"0x14F4bC1EC875f4A8d260721B0A7b07262A71a220",xpub:"xpub6CHmnmsEDrQ6M7v94J6tu4beX6jnFueyg9rUCn83X8ZnrqxuDQwFWB4npDWiWoUb6cMJrAsuL5EC2D5gq7BDnsyFzWnNx91qev5Wb6aQuyS",supportedFeedsInBatches:{dRPC:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["mpETH/ETH Exchange Rate"],["stTAO/TAO Exchange Rate"],["sFRAX/FRAX Exchange Rate"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["weETHs/ETH Exchange Rate"],["spETH/ETH Exchange Rate"],["inETH/ETH Exchange Rate"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["instETH/stETH Exchange Rate"],["eBTC/WBTC Exchange Rate"]]},deploymentLocations:["aws"],homepageUrl:"https://drpc.org",verifiedBaseUrl:"https://drpc.org",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"coinpaprika-mock":{alias:"coinpaprika-mock",name:"CoinPaprika-Mock",providerType:"rest",airnode:"0x59493508C6CdE2179100CE2994919Dae38D893b2",xpub:"",supportedFeedsInBatches:{Coinpaprika:[["AAVE/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAT/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOGE/USD"],["DOT/USD"],["DYDX/USD"],["ETH/USD"],["FIL/USD"],["FLOW/USD"],["FXS/USD"],["FTM/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["JOE/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MKR/USD"],["METIS/USD"],["MOVR/USD"],["NEAR/USD"],["OKB/USD"],["OP/USD"],["PAXG/USD"],["QUICK/USD"],["ROSE/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["stETH/USD"],["STG/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["UNI/USD"],["USDT/USD"],["USDC/USD"],["USDP/USD"],["WBTC/USD"],["XLM/USD"],["XRP/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["MASK/USD"],["ENS/USD"],["BLUR/USD"],["BAND/USD"],["UMA/USD"],["APT/USD"],["OSMO/USD"],["SUI/USD"],["GNS/USD"],["FRAX/USD"],["crvUSD/USD"],["LUSD/USD"],["GHO/USD"],["MNT/USD"],["KAVA/USD"],["RIF/USD"],["RDNT/USD"],["EURe/USD"],["WOO/USD"],["PYTH/USD"],["USDe/USD"],["ASTR/USD"],["TIA/USD"],["DYM/USD"],["SEI/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ONDO/USD"],["MANTA/USD"],["RON/USD"],["XVS/USD"],["PENDLE/USD"],["TWT/USD"],["AERO/USD"],["JUICE/USD"],["ERN/USD"],["TAO/USD"],["USDB/USD"],["PYUSD/USD"],["MERL/USD"],["ORDI/USD"],["SATS/USD"],["NEON/USD"],["INJ/USD"],["RARI/USD"],["MODE/USD"],["CORE/USD"],["DEGEN/USD"],["ENA/USD"],["FDUSD/USD"],["WLD/USD"],["ETHFI/USD"],["SAFE/USD"],["TAIKO/USD"],["W/USD"],["BLAST/USD"],["ZRO/USD"],["ZK/USD"],["CFX/USD"],["RENDER/USD"],["EURC/USD"],["POL/USD"],["AUSD/USD"],["FBTC/USD"],["LUMIA/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},coinpaprika:{alias:"coinpaprika",name:"CoinPaprika",providerType:"rest",airnode:"0xC9B494D3c6eA3fD42779Df9A136Db10374c98D80",xpub:"xpub6D5v1hEMboS7g4TPs6PUNvChbPof3yvmuTQtPgaVtdz6PorVwy8DfUvdowKWYbMRvvoq4Qt3L2WBGJQDwKevuyrHJVUJAGapo2FkatVG9Ch",supportedFeedsInBatches:{Coinpaprika:[["AAVE/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["ARB/USD"],["ATOM/USD"],["AVAX/USD"],["AXS/USD"],["BAL/USD"],["BAT/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DAI/USD"],["DOGE/USD"],["DOT/USD"],["DYDX/USD"],["ETH/USD"],["FIL/USD"],["FLOW/USD"],["FXS/USD"],["FTM/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["JOE/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MKR/USD"],["MATIC/USD"],["METIS/USD"],["MOVR/USD"],["NEAR/USD"],["OKB/USD"],["OP/USD"],["PAXG/USD"],["QUICK/USD"],["ROSE/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["stETH/USD"],["STG/USD"],["STX/USD"],["SUSHI/USD"],["TUSD/USD"],["UNI/USD"],["USDT/USD"],["USDC/USD"],["USDP/USD"],["WBTC/USD"],["XLM/USD"],["XRP/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["RNDR/USD"],["MASK/USD"],["ENS/USD"],["BLUR/USD"],["BAND/USD"],["UMA/USD"],["APT/USD"],["OSMO/USD"],["SUI/USD"],["GNS/USD"],["FRAX/USD"],["crvUSD/USD"],["LUSD/USD"],["GHO/USD"],["MNT/USD"],["KAVA/USD"],["RIF/USD"],["RDNT/USD"],["EURe/USD"],["WOO/USD"],["PYTH/USD"],["USDe/USD"],["ASTR/USD"],["TIA/USD"],["DYM/USD"],["SEI/USD"],["AR/USD"],["STRK/USD"],["AXL/USD"],["ONDO/USD"],["MANTA/USD"],["RON/USD"],["XVS/USD"],["PENDLE/USD"],["TWT/USD"],["AERO/USD"],["JUICE/USD"],["ERN/USD"],["TAO/USD"],["USDB/USD"],["PYUSD/USD"],["MERL/USD"],["ORDI/USD"],["SATS/USD"],["NEON/USD"],["INJ/USD"],["RARI/USD"],["MODE/USD"],["CORE/USD"],["DEGEN/USD"],["ENA/USD"],["FDUSD/USD"],["WLD/USD"],["ETHFI/USD"],["SAFE/USD"],["TAIKO/USD"],["W/USD"],["BLAST/USD"],["ZRO/USD"],["ZK/USD"],["CFX/USD"],["RENDER/USD"],["EURC/USD"],["POL/USD"],["AUSD/USD"],["FBTC/USD"]]},deploymentLocations:["aws"],homepageUrl:"https://coinpaprika.com",verifiedBaseUrl:"https://coinpaprika.com",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"coinmetrics-mock":{alias:"coinmetrics-mock",name:"Coin Metrics-Mock",providerType:"rest",airnode:"0x0f84485f0c86D9c70144C4621Cb9b9a4d791F7f7",xpub:"",supportedFeedsInBatches:{CoinMetrics:[["AAVE/USD","ADA/USD","AERO/USD","ALGO/USD","ANKR/USD","APE/USD","API3/USD","APT/USD","AR/USD","ARB/USD","ASTR/USD","ATOM/USD","AVAX/USD","AXL/USD","AXS/USD","BAL/USD","BAND/USD","BAT/USD","BLUR/USD","BNB/USD","BTC/USD","CAKE/USD","CELO/USD","CHZ/USD","COMP/USD","CORE/USD","CRO/USD","CRV/USD","CVX/USD","DOGE/USD","DOT/USD","DYDX/USD","DYM/USD","ENA/USD","ENS/USD","ERN/USD","ETH/USD","FIL/USD","FLOW/USD","FTM/USD","FXS/USD","GLMR/USD","GMX/USD","GNO/USD","GNS/USD","GRT/USD","HBAR/USD","HNT/USD","ICP/USD","IMX/USD","INJ/USD","JOE/USD","KAVA/USD","KDA/USD","KSM/USD","LDO/USD","LINK/USD","LQTY/USD","LTC/USD","MANA/USD","MANTA/USD","MASK/USD","METIS/USD","MKR/USD","MNT/USD","MOVR/USD","NEAR/USD","NEON/USD","OKB/USD","ONDO/USD","OP/USD","ORDI/USD","OSMO/USD","PAXG/USD","PENDLE/USD","PYTH/USD","QUICK/USD","RARI/USD","RDNT/USD","RIF/USD","RON/USD","ROSE/USD","RPL/USD","RSR/USD","RUNE/USD","SAND/USD","SATS/USD","SEI/USD","SHIB/USD","SNX/USD","SOL/USD","stETH/USD","STG/USD","STRK/USD","STX/USD","SUI/USD","SUSHI/USD","TIA/USD","TWT/USD","UMA/USD","UNI/USD","WBTC/USD","WLD/USD","WOO/USD","XLM/USD","XRP/USD","XTZ/USD","XVS/USD","YFI/USD","ZIL/USD","ZRX/USD","DAI/USD","FDUSD/USD","FRAX/USD","LUSD/USD","PYUSD/USD","TUSD/USD","USDC/USD","USDP/USD","USDT/USD","POL/USD","EURC/USD","BLAST/USD","ETHFI/USD","MERL/USD","RENDER/USD","TAIKO/USD","TAO/USD","DEGEN/USD","GHO/USD","crvUSD/USD","CFX/USD","SAFE/USD","USDe/USD","AUSD/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},coinmetrics:{alias:"coinmetrics",name:"Coin Metrics",providerType:"rest",airnode:"0x43bc9d75Ca62bb0c1616c780CF3d4aE666b82478",xpub:"xpub6BgzeSUm7rmdWmiKrSfjUimVod2iFe473ewvDzqWsZfs5zvr6P27zpF4T9AiPLRajtN4PkWT8ti7UXq4DGeompug2V8s8KutCQfMDwPJGcE",supportedFeedsInBatches:{CoinMetrics:[["AAVE/USD","ADA/USD","AERO/USD","ALGO/USD","ANKR/USD","APE/USD","API3/USD","APT/USD","AR/USD","ARB/USD","ASTR/USD","ATOM/USD","AVAX/USD","AXL/USD","AXS/USD","BAL/USD","BAND/USD","BAT/USD","BLUR/USD","BNB/USD","BTC/USD","CAKE/USD","CELO/USD","CHZ/USD","COMP/USD","CORE/USD","CRO/USD","CRV/USD","CVX/USD","DOGE/USD","DOT/USD","DYDX/USD","DYM/USD","ENA/USD","ENS/USD","ERN/USD","ETH/USD","FIL/USD","FLOW/USD","FTM/USD","FXS/USD","GLMR/USD","GMX/USD","GNO/USD","GNS/USD","GRT/USD","HBAR/USD","HNT/USD","HT/USD","ICP/USD","IMX/USD","INJ/USD","JOE/USD","KAVA/USD","KDA/USD","KSM/USD","LDO/USD","LINK/USD","LQTY/USD","LTC/USD","MANA/USD","MANTA/USD","MASK/USD","MATIC/USD","METIS/USD","MKR/USD","MNT/USD","MOVR/USD","NEAR/USD","NEON/USD","OKB/USD","ONDO/USD","OP/USD","ORDI/USD","OSMO/USD","PAXG/USD","PENDLE/USD","PYTH/USD","QUICK/USD","RARI/USD","RDNT/USD","RIF/USD","RNDR/USD","RON/USD","ROSE/USD","RPL/USD","RSR/USD","RUNE/USD","SAND/USD","SATS/USD","SEI/USD","SHIB/USD","SNX/USD","SOL/USD","stETH/USD","STG/USD","STRK/USD","STX/USD","SUI/USD","SUSHI/USD","TIA/USD","TWT/USD","UMA/USD","UNI/USD","WBTC/USD","WLD/USD","WOO/USD","XLM/USD","XMR/USD","XRP/USD","XTZ/USD","XVS/USD","YFI/USD","ZIL/USD","ZRX/USD","DAI/USD","FDUSD/USD","FRAX/USD","LUSD/USD","PYUSD/USD","TUSD/USD","USDC/USD","USDP/USD","USDT/USD","POL/USD","EURC/USD","BLAST/USD","ETHFI/USD","MERL/USD","RENDER/USD","TAIKO/USD","TAO/USD","DEGEN/USD","GHO/USD","crvUSD/USD","CFX/USD","SAFE/USD","USDe/USD","AUSD/USD"]]},deploymentLocations:["aws"],homepageUrl:"https://coinmetrics.io",verifiedBaseUrl:"https://coinmetrics.io",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"coingecko-mock":{alias:"coingecko-mock",name:"CoinGecko-Mock",providerType:"rest",airnode:"0x887cA5E7D4d6CcE427949561CD149983F39c9F02",xpub:"",supportedFeedsInBatches:{CoinGecko:[["AAVE/USD","ADA/USD","ALGO/USD","ANKR/USD","APE/USD","API3/USD","ARB/USD","ATOM/USD","AVAX/USD","AXS/USD","BAL/USD","BAT/USD","BNB/USD","BTC/USD","CAKE/USD","CELO/USD","CHZ/USD","COMP/USD","CRO/USD","CRV/USD","CVX/USD","DAI/USD","DOGE/USD","DOT/USD","DYDX/USD","ETH/USD","FIL/USD","FLOW/USD","FXS/USD","FTM/USD","GLMR/USD","GMX/USD","GNO/USD","GRT/USD","HBAR/USD","HNT/USD","ICP/USD","IMX/USD","JOE/USD","KDA/USD","KSM/USD","LDO/USD","LINK/USD","LQTY/USD","LTC/USD","MANA/USD","MKR/USD","METIS/USD","MOVR/USD","NEAR/USD","OKB/USD","OP/USD","PAXG/USD","QUICK/USD","ROSE/USD","RPL/USD","RSR/USD","RUNE/USD","SAND/USD","SHIB/USD","SNX/USD","SOL/USD","stETH/USD","STG/USD","STX/USD","SUSHI/USD","TUSD/USD","UNI/USD","USDT/USD","USDC/USD","USDP/USD","WBTC/USD","XLM/USD","XRP/USD","XTZ/USD","YFI/USD","ZIL/USD","ZRX/USD","MASK/USD","ENS/USD","BLUR/USD","BAND/USD","UMA/USD","APT/USD","OSMO/USD","SUI/USD","GNS/USD","FRAX/USD","crvUSD/USD","LUSD/USD","GHO/USD","MNT/USD","ASTR/USD","KAVA/USD","PYTH/USD","RDNT/USD","RIF/USD","WOO/USD","TIA/USD","DYM/USD","USDe/USD","EURe/USD","SEI/USD","AR/USD","STRK/USD","AXL/USD","ONDO/USD","MANTA/USD","RON/USD","XVS/USD","PENDLE/USD","TWT/USD","USDB/USD","AERO/USD","JUICE/USD","ERN/USD","TAO/USD","PYUSD/USD","MERL/USD","ORDI/USD","SATS/USD","NEON/USD","INJ/USD","RARI/USD","MODE/USD","CORE/USD","DEGEN/USD","ENA/USD","FDUSD/USD","WLD/USD","ETHFI/USD","SAFE/USD","TAIKO/USD","W/USD","BLAST/USD","ZRO/USD","ZK/USD","CFX/USD","RENDER/USD","POL/USD","EURC/USD","FBTC/USD","AUSD/USD","LUMIA/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},coingecko:{alias:"coingecko",name:"CoinGecko",providerType:"rest",airnode:"0x6b56E47DccFbC82D63Df3da417d26e8B1B877f0f",xpub:"xpub6Bp9GNsZu8Um4du9r6usXvs9eB2Fp8ftCbri114gSJKroJNnZjBFCCvo73XxnBS8WPcEufH2K7w3JsPahjzB1yUPi9P4JoSyyBGC1FLFTZy",supportedFeedsInBatches:{CoinGecko:[["AAVE/USD","ADA/USD","ALGO/USD","ANKR/USD","APE/USD","API3/USD","ARB/USD","ATOM/USD","AVAX/USD","AXS/USD","BAL/USD","BAT/USD","BNB/USD","BTC/USD","CAKE/USD","CELO/USD","CHZ/USD","COMP/USD","CRO/USD","CRV/USD","CVX/USD","DAI/USD","DOGE/USD","DOT/USD","DYDX/USD","ETH/USD","FIL/USD","FLOW/USD","FXS/USD","FTM/USD","GLMR/USD","GMX/USD","GNO/USD","GRT/USD","HBAR/USD","HNT/USD","ICP/USD","IMX/USD","JOE/USD","KDA/USD","KSM/USD","LDO/USD","LINK/USD","LQTY/USD","LTC/USD","MANA/USD","MKR/USD","MATIC/USD","METIS/USD","MOVR/USD","NEAR/USD","OKB/USD","OP/USD","PAXG/USD","QUICK/USD","ROSE/USD","RPL/USD","RSR/USD","RUNE/USD","SAND/USD","SHIB/USD","SNX/USD","SOL/USD","stETH/USD","STG/USD","STX/USD","SUSHI/USD","TUSD/USD","UNI/USD","USDT/USD","USDC/USD","USDP/USD","WBTC/USD","XLM/USD","XRP/USD","XTZ/USD","YFI/USD","ZIL/USD","ZRX/USD","RNDR/USD","MASK/USD","ENS/USD","BLUR/USD","BAND/USD","UMA/USD","APT/USD","OSMO/USD","SUI/USD","GNS/USD","FRAX/USD","crvUSD/USD","LUSD/USD","GHO/USD","MNT/USD","ASTR/USD","KAVA/USD","PYTH/USD","RDNT/USD","RIF/USD","WOO/USD","TIA/USD","DYM/USD","USDe/USD","EURe/USD","SEI/USD","AR/USD","STRK/USD","AXL/USD","ONDO/USD","MANTA/USD","RON/USD","XVS/USD","PENDLE/USD","TWT/USD","USDB/USD","AERO/USD","JUICE/USD","ERN/USD","TAO/USD","PYUSD/USD","MERL/USD","ORDI/USD","SATS/USD","NEON/USD","INJ/USD","RARI/USD","MODE/USD","CORE/USD","DEGEN/USD","ENA/USD","FDUSD/USD","WLD/USD","ETHFI/USD","SAFE/USD","TAIKO/USD","W/USD","BLAST/USD","ZRO/USD","ZK/USD","CFX/USD","RENDER/USD","POL/USD","EURC/USD","FBTC/USD","AUSD/USD"]]},deploymentLocations:["aws"],homepageUrl:"https://www.coingecko.com",verifiedBaseUrl:"https://www.coingecko.com",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"blocksize-mock":{alias:"blocksize-mock",name:"BLOCKSIZE-Mock",providerType:"rest",airnode:"0x3E377AcDc90AD2912E92B5031aAE4BBFb3670b95",xpub:"",supportedFeedsInBatches:{Blocksize:[["AAVE/USD"],["AERO/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["APT/USD"],["AR/USD"],["ARB/USD"],["ASTR/USD"],["ATOM/USD"],["AVAX/USD"],["AXL/USD"],["AXS/USD"],["BAL/USD"],["BAND/USD"],["BAT/USD"],["BLAST/USD"],["BLUR/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["CORE/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DOGE/USD"],["DOT/USD"],["DYDX/USD"],["ENA/USD"],["ENS/USD"],["ETH/USD"],["ETHFI/USD"],["FIL/USD"],["FLOW/USD"],["FTM/USD"],["FXS/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GNS/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["INJ/USD"],["JUICE/USD"],["JOE/USD"],["KAVA/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MANTA/USD"],["MASK/USD"],["MERL/USD"],["METIS/USD"],["MKR/USD"],["MNT/USD"],["MODE/USD"],["MOVR/USD"],["NEAR/USD"],["NEON/USD"],["OKB/USD"],["ORDI/USD"],["OP/USD"],["OSMO/USD"],["PAXG/USD"],["QUICK/USD"],["RARI/USD"],["RDNT/USD"],["RIF/USD"],["RON/USD"],["ROSE/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SATS/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["stETH/USD"],["STRK/USD"],["STG/USD"],["STX/USD"],["SUI/USD"],["SUSHI/USD"],["TAIKO/USD"],["TAO/USD"],["TWT/USD"],["UMA/USD"],["UNI/USD"],["W/USD"],["WBTC/USD"],["WOO/USD"],["XLM/USD"],["XRP/USD"],["XVS/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["TIA/USD"],["DEGEN/USD"],["DYM/USD"],["ERN/USD"],["SAFE/USD"],["WLD/USD"],["PYTH/USD"],["PENDLE/USD"],["SEI/USD"],["ONDO/USD"],["DAI/USD"],["POL/USD"],["RENDER/USD"],["TUSD/USD"],["USDB/USD"],["USDC/USD"],["USDP/USD"],["USDT/USD"],["GHO/USD"],["crvUSD/USD"],["CFX/USD"],["LUSD/USD"],["FRAX/USD"],["AUSD/USD"],["EURC/USD"],["USDe/USD"],["FBTC/USD"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},blocksize:{alias:"blocksize",name:"BLOCKSIZE",providerType:"rest",airnode:"0x1Fb13E33B505d359b734F02A95E392284A205895",xpub:"xpub6ChioaZW8CYs1Bc6Gx3QLEMCZf5sqZ9oNzcLuKMJj3uUm1PDAQhtQBY2odUaeJMndbZmDao59tG8rzNXoDV7UHxPTz4JtLXfbyq6vDtYitp",supportedFeedsInBatches:{Blocksize:[["AAVE/USD"],["AERO/USD"],["ADA/USD"],["ALGO/USD"],["ANKR/USD"],["APE/USD"],["API3/USD"],["APT/USD"],["AR/USD"],["ARB/USD"],["ASTR/USD"],["ATOM/USD"],["AVAX/USD"],["AXL/USD"],["AXS/USD"],["BAL/USD"],["BAND/USD"],["BAT/USD"],["BLAST/USD"],["BLUR/USD"],["BNB/USD"],["BTC/USD"],["CAKE/USD"],["CELO/USD"],["CHZ/USD"],["CORE/USD"],["COMP/USD"],["CRO/USD"],["CRV/USD"],["CVX/USD"],["DOGE/USD"],["DOT/USD"],["DYDX/USD"],["ENA/USD"],["ENS/USD"],["ETH/USD"],["ETHFI/USD"],["FIL/USD"],["FLOW/USD"],["FTM/USD"],["FXS/USD"],["GLMR/USD"],["GMX/USD"],["GNO/USD"],["GNS/USD"],["GRT/USD"],["HBAR/USD"],["HNT/USD"],["ICP/USD"],["IMX/USD"],["INJ/USD"],["JUICE/USD"],["JOE/USD"],["KAVA/USD"],["KDA/USD"],["KSM/USD"],["LDO/USD"],["LINK/USD"],["LQTY/USD"],["LTC/USD"],["MANA/USD"],["MANTA/USD"],["MASK/USD"],["MERL/USD"],["METIS/USD"],["MKR/USD"],["MNT/USD"],["MODE/USD"],["MOVR/USD"],["NEAR/USD"],["NEON/USD"],["OKB/USD"],["ORDI/USD"],["OP/USD"],["OSMO/USD"],["PAXG/USD"],["QUICK/USD"],["RARI/USD"],["RDNT/USD"],["RIF/USD"],["RON/USD"],["ROSE/USD"],["RPL/USD"],["RSR/USD"],["RUNE/USD"],["SAND/USD"],["SATS/USD"],["SHIB/USD"],["SNX/USD"],["SOL/USD"],["stETH/USD"],["STRK/USD"],["STG/USD"],["STX/USD"],["SUI/USD"],["SUSHI/USD"],["TAIKO/USD"],["TAO/USD"],["TWT/USD"],["UMA/USD"],["UNI/USD"],["W/USD"],["WBTC/USD"],["WOO/USD"],["XLM/USD"],["XRP/USD"],["XVS/USD"],["XTZ/USD"],["YFI/USD"],["ZIL/USD"],["ZRX/USD"],["TIA/USD"],["DEGEN/USD"],["DYM/USD"],["ERN/USD"],["SAFE/USD"],["WLD/USD"],["PYTH/USD"],["PENDLE/USD"],["SEI/USD"],["ONDO/USD"],["DAI/USD"],["POL/USD"],["RENDER/USD"],["TUSD/USD"],["USDB/USD"],["USDC/USD"],["USDP/USD"],["USDT/USD"],["GHO/USD"],["crvUSD/USD"],["CFX/USD"],["LUSD/USD"],["FRAX/USD"],["AUSD/USD"],["EURC/USD"],["USDe/USD"],["FBTC/USD"]]},deploymentLocations:["aws"],homepageUrl:"https://www.blocksize.info",verifiedBaseUrl:"https://blocksize.info",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"blastapi-mock":{alias:"blastapi-mock",name:"Blast API-Mock",providerType:"rpc",airnode:"0x3FBEd714e50206Fe6704C3BFc71552AdC92E81d0",xpub:"",supportedFeedsInBatches:{BlastAPI:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["mpETH/ETH Exchange Rate"],["stTAO/TAO Exchange Rate"],["sFRAX/FRAX Exchange Rate"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["weETHs/ETH Exchange Rate"],["spETH/ETH Exchange Rate"],["inETH/ETH Exchange Rate"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["instETH/stETH Exchange Rate"],["eBTC/WBTC Exchange Rate"],["cmETH/mETH Exchange Rate"],["LsETH/ETH Exchange Rate"],["insfrxETH/sfrxETH Exchange Rate"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},blastapi:{alias:"blastapi",name:"Blast API",providerType:"rpc",airnode:"0xeA42eAC629b517Ab560d26962cdD4d86dAf2cc8e",xpub:"xpub6CQ18KjH9Yb2132WbQakNyGWCsX98gMBDqo4V6ZRpZNryAQYBcmbkuWbA4JCkHufnJ9ak84FdkEkhzbduzLBc9ovvfHYcrd6Vv8WbEByb3A",supportedFeedsInBatches:{BlastAPI:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["mpETH/ETH Exchange Rate"],["stTAO/TAO Exchange Rate"],["sFRAX/FRAX Exchange Rate"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["weETHs/ETH Exchange Rate"],["spETH/ETH Exchange Rate"],["inETH/ETH Exchange Rate"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["instETH/stETH Exchange Rate"],["eBTC/WBTC Exchange Rate"]]},deploymentLocations:["aws"],homepageUrl:"https://blastapi.io",verifiedBaseUrl:"https://blastapi.io",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"ankr-mock":{alias:"ankr-mock",name:"Ankr-Mock",providerType:"rpc",airnode:"0x2eBAe534e166b3D940a53511aD479C3e1de2A1af",xpub:"",supportedFeedsInBatches:{Ankr:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["mpETH/ETH Exchange Rate"],["stTAO/TAO Exchange Rate"],["sFRAX/FRAX Exchange Rate"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["weETHs/ETH Exchange Rate"],["spETH/ETH Exchange Rate"],["inETH/ETH Exchange Rate"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["instETH/stETH Exchange Rate"],["eBTC/WBTC Exchange Rate"],["cmETH/mETH Exchange Rate"],["LsETH/ETH Exchange Rate"],["insfrxETH/sfrxETH Exchange Rate"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},ankr:{alias:"ankr",name:"Ankr",providerType:"rpc",airnode:"0xAaA5fdF8189C6344bA17De6C1a877beb416990AC",xpub:"xpub6CXN3cVGEXfshsprcmzbmSYt2zrcsjuZEEGABTaPuV9b47Emxpo4bgyGrLpiKw6hrArTXgPqV6xjZvLTEP8z6VU9UNsLBjNsfEaZ9U6aDjy",supportedFeedsInBatches:{Ankr:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["mpETH/ETH Exchange Rate"],["stTAO/TAO Exchange Rate"],["sFRAX/FRAX Exchange Rate"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["weETHs/ETH Exchange Rate"],["spETH/ETH Exchange Rate"],["inETH/ETH Exchange Rate"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["instETH/stETH Exchange Rate"],["eBTC/WBTC Exchange Rate"]]},deploymentLocations:["aws"],homepageUrl:"https://www.ankr.com",verifiedBaseUrl:"ankr.com",signedApiUrl:"",productionSignedApiUrls:[{url:"https://signed-api.nodary.io",name:"Nodary"},{url:"https://signed-api.api3.org",name:"API3"}],stagingSignedApiUrl:{url:"https://signed-api.stage.nodary.io",name:"Staging"}},"allnodes-mock":{alias:"allnodes-mock",name:"AllNodes-Mock",providerType:"rpc",airnode:"0xFed2B36Bd81A48AF990a4A334538f9e56a693596",xpub:"",supportedFeedsInBatches:{AllNodes:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["mpETH/ETH Exchange Rate"],["stTAO/TAO Exchange Rate"],["sFRAX/FRAX Exchange Rate"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["weETHs/ETH Exchange Rate"],["spETH/ETH Exchange Rate"],["inETH/ETH Exchange Rate"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["instETH/stETH Exchange Rate"],["eBTC/WBTC Exchange Rate"],["cmETH/mETH Exchange Rate"],["LsETH/ETH Exchange Rate"],["insfrxETH/sfrxETH Exchange Rate"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}},"alchemy-mock":{alias:"alchemy-mock",name:"Alchemy-Mock",providerType:"rpc",airnode:"0x5B2a49765b8E5820E3642c2C21a997A7D02BbcAC",xpub:"",supportedFeedsInBatches:{Alchemy:[["cbETH/ETH Exchange Rate"],["rETH/ETH Exchange Rate"],["sfrxETH/frxETH Exchange Rate"],["swETH/ETH Exchange Rate"],["wstETH/stETH Exchange Rate"],["mETH/ETH Exchange Rate"],["stMATIC/MATIC Exchange Rate"],["MATICx/MATIC Exchange Rate"],["ETHx/ETH Exchange Rate"],["uniETH/ETH Exchange Rate"],["osETH/ETH Exchange Rate"],["weETH/ETH Exchange Rate"],["STONE/ETH Exchange Rate"],["USDY/USD Exchange Rate"],["rsETH/ETH Exchange Rate"],["rswETH/ETH Exchange Rate"],["apxETH/pxETH Exchange Rate"],["ezETH/ETH Exchange Rate"],["sAVAX/AVAX Exchange Rate"],["wUSDM/USDM Exchange Rate"],["sDAI/DAI Exchange Rate"],["sUSDe/USDe Exchange Rate"],["pufETH/stETH Exchange Rate"],["mpETH/ETH Exchange Rate"],["stTAO/TAO Exchange Rate"],["sFRAX/FRAX Exchange Rate"],["wBETH/ETH Exchange Rate"],["BNBx/BNB Exchange Rate"],["slisBNB/BNB Exchange Rate"],["weETHs/ETH Exchange Rate"],["spETH/ETH Exchange Rate"],["inETH/ETH Exchange Rate"],["ankrETH/ETH Exchange Rate"],["ultraETHs/wstETH Exchange Rate"],["agETH/rsETH Exchange Rate"],["instETH/stETH Exchange Rate"],["eBTC/WBTC Exchange Rate"],["cmETH/mETH Exchange Rate"],["LsETH/ETH Exchange Rate"],["insfrxETH/sfrxETH Exchange Rate"]]},deploymentLocations:["local"],homepageUrl:"",verifiedBaseUrl:"",signedApiUrl:"",productionSignedApiUrls:[],stagingSignedApiUrl:{url:"https://signed-api.nodary.io",name:"Nodary"}}},t.airnodeAddressMap={"twelvedata-mock":"0x3dE057f4F0C6b9fc75321C3e8b477277DD615d42",twelvedata:"0x31C7db0e12e002E071ca0FF243ec4788a8AD189F","shiftmarkets-mock":"0x4C283936141b6AD8253C599091f86DAdE9dd8fDc",shiftmarkets:"0x1538e800Ae1B34C264E3F44B6Cd82bE033f38E20","quicknode-mock":"0x0DD43F13faFCF0349Caf3F14f9941B4E031c7370","nodary-mock":"0x241364bbd08701330bdc810bAaA10cF8DF1710E5",nodary:"0xc52EeA00154B4fF1EbbF8Ba39FDe37F1AC3B9Fd4","netdania-mock":"0xc95Bad10efc430c8EcC02d7800e635cea6e058F3","ncfx-mock":"0x220Ad4917B349F69288E892e50E929A693B71920",ncfx:"0xbC6471E88d8aFe936A45bEB8bd20a210EBEF6822","kaiko-mock":"0x14E5203C158766ECD51E7FB46d9449434a48D9FE",kaiko:"0x5791Fb78D4e37A9D0f0003199D1AE1A8C04C8d89","infura-mock":"0x4D81964F58409651eF5C191166a9Ff6e6b40986f","finage-mock":"0xD7AD63b84F03FF923a690bAE32C988097C70C673",finage:"0xa924847354c551C79BAE7E75529364bA0449e51A","dxfeed-mock":"0xC479695045E1730bDE7697c6eD9442cB4A6Da6a0",dxfeed:"0x11030d4f8eB06F958E763C6f8b165D7CDd98DB6C","drpc-mock":"0xDFCC177437f9Be5e5A0828A620664A4C1321e780",drpc:"0x14F4bC1EC875f4A8d260721B0A7b07262A71a220","coinpaprika-mock":"0x59493508C6CdE2179100CE2994919Dae38D893b2",coinpaprika:"0xC9B494D3c6eA3fD42779Df9A136Db10374c98D80","coinmetrics-mock":"0x0f84485f0c86D9c70144C4621Cb9b9a4d791F7f7",coinmetrics:"0x43bc9d75Ca62bb0c1616c780CF3d4aE666b82478","coingecko-mock":"0x887cA5E7D4d6CcE427949561CD149983F39c9F02",coingecko:"0x6b56E47DccFbC82D63Df3da417d26e8B1B877f0f","blocksize-mock":"0x3E377AcDc90AD2912E92B5031aAE4BBFb3670b95",blocksize:"0x1Fb13E33B505d359b734F02A95E392284A205895","blastapi-mock":"0x3FBEd714e50206Fe6704C3BFc71552AdC92E81d0",blastapi:"0xeA42eAC629b517Ab560d26962cdD4d86dAf2cc8e","ankr-mock":"0x2eBAe534e166b3D940a53511aD479C3e1de2A1af",ankr:"0xAaA5fdF8189C6344bA17De6C1a877beb416990AC","allnodes-mock":"0xFed2B36Bd81A48AF990a4A334538f9e56a693596","alchemy-mock":"0x5B2a49765b8E5820E3642c2C21a997A7D02BbcAC"}},69611:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.apisData=t.rpcFeedsCatalog=void 0,t.getDecodedParameters=function(e){return[{name:"name",type:"string32",value:e}]},t.getAirnodeAddressByAlias=function(e){return s.apisData[e].airnode},t.getApiProviderAliases=function(){return Object.values(s.apisData).map((e=>e.alias))},t.getOisTitlesWithAirnodeAddress=p,t.getOisTitleByFeedNameAndAirnodeAddress=f,t.deriveDataFeedId=function(e,t){const r=h({oisTitle:f(e,t),feedName:e});return a.ethers.utils.solidityKeccak256(["address","bytes32"],[t,r])},t.deriveTemplateId=h,t.deriveEndpointId=g,t.getSupportedProvidersForDataFeed=function(e){return Object.values(s.apisData).filter((t=>!!Object.values(t.supportedFeedsInBatches).map((e=>e)).flat(d).includes(e))).map((e=>e.alias))},t.getAllDataFeeds=function(){const e=Object.values(s.apisData).map((e=>Object.values(e.supportedFeedsInBatches).map((e=>e)).flat(d))).flat(d);return o.default.uniq(e)},t.getApiUrls=function(e){const t=Object.values(s.apisData).find((t=>t.airnode===e));if(!t)throw`Couldn't find the Airnode address ${e}!`;return{name:t.name,alias:t.alias,homepageUrl:t.homepageUrl,verifiedBaseUrl:t.verifiedBaseUrl}};const a=r(44024),i=r(99119),o=n(r(4607)),s=r(67756),c=n(r(44514));var l=r(75352);Object.defineProperty(t,"rpcFeedsCatalog",{enumerable:!0,get:function(){return l.rpcFeedsCatalog}});var u=r(67756);Object.defineProperty(t,"apisData",{enumerable:!0,get:function(){return u.apisData}});const d=10;function p(e){return c.default[e]}function f(e,t){const r=Object.values(s.apisData).find((e=>e.airnode===t));if(!r)throw Error(`Couldn't find any API with Airnode address ${t}`);const n=Object.keys(r.supportedFeedsInBatches).find((t=>r.supportedFeedsInBatches[t].flat().includes(e)));if(!n)throw Error(`Data feed ${e} does not exists in ${r.alias}.`);return n}function h(e){const{feedName:t,oisTitle:r,airnodeAddress:n}=e;if(r){const e=g({oisTitle:r}),n=(0,i.encode)([{name:"name",type:"string32",value:t}]);return a.ethers.utils.solidityKeccak256(["bytes32","bytes"],[e,n])}const o=f(t,n),s=(0,i.encode)([{name:"name",type:"string32",value:t}]),c=g({oisTitle:o});return a.ethers.utils.solidityKeccak256(["bytes32","bytes"],[c,s])}function g(e){const t="feed",{oisTitle:r,airnodeAddress:n}=e;if(r){if(Object.values(c.default).flat().includes(r))return a.ethers.utils.keccak256(a.ethers.utils.defaultAbiCoder.encode(["string","string"],[r,t]));throw Error(`Can't derive endpoint ID. The OIS title ${r} is not existing in the current OISes!`)}if(n){if(Object.keys(c.default).includes(n)){return p(n).map((e=>a.ethers.utils.keccak256(a.ethers.utils.defaultAbiCoder.encode(["string","string"],[e,t]))))}throw Error(`Can't derive endpoint ID. The Airnode Address ${n} is not existing in the current Airnode addresses!`)}throw Error("Must set an 'airnodeAddress' or 'oisTitle'!")}},75352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpcFeedsCatalog=void 0,t.rpcFeedsCatalog=[{name:"sAVAX/AVAX Exchange Rate",decimals:18,chainAlias:"avalanche",returnType:"type-0",contractAddress:"0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE",implementationAddress:"0x0CE7F620Eb645a4FbF688a1C1937bC6CB0CbDd29",contractMethods:["getPooledAvaxByShares"],contractMethodsParameters:[["1000000000000000000"]]},{name:"BNBx/BNB Exchange Rate",decimals:18,chainAlias:"bsc",returnType:"type-0",contractAddress:"0x3b961e83400D51e6E1AF5c450d3C7d7b80588d28",implementationAddress:"0x8de709A6A1A4FD41516C4C92e6B011e69331fDD3",contractMethods:["convertBnbXToBnb"],contractMethodsParameters:[["1000000000000000000"]]},{name:"slisBNB/BNB Exchange Rate",decimals:18,chainAlias:"bsc",returnType:"type-0",contractAddress:"0x1adB950d8bB3dA4bE104211D5AB038628e477fE6",implementationAddress:"0x4D9eD586A8490d227dAfDBe520306fbae7a33430",contractMethods:["convertSnBnbToBnb"],contractMethodsParameters:[["1000000000000000000"]]},{name:"wBETH/ETH Exchange Rate",decimals:18,chainAlias:"bsc",returnType:"type-0",contractAddress:"0xa2E3356610840701BDf5611a53974510Ae27E2e1",implementationAddress:"0xfe928a7d8be9c8cece7e97f0ed5704f4fa2cb42a",contractMethods:["exchangeRate"],contractMethodsParameters:[[]]},{name:"rETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xae78736cd615f374d3085123a210448e74fc6393",contractMethods:["getExchangeRate"],contractMethodsParameters:[[]]},{name:"wstETH/stETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",contractMethods:["stEthPerToken"],contractMethodsParameters:[[]]},{name:"cbETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xbe9895146f7af43049ca1c1ae358b0541ea49704",implementationAddress:"0x31724ca0c982a31fbb5c57f4217ab585271fc9a5",contractMethods:["exchangeRate"],contractMethodsParameters:[[]]},{name:"swETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xf951E335afb289353dc249e82926178EaC7DEd78",implementationAddress:"0xdda46bf18eeb3e06e2f12975a3a184e40581a72f",contractMethods:["getRate"],contractMethodsParameters:[[]]},{name:"sfrxETH/frxETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xac3e018457b222d93114458476f3e3416abbe38f",contractMethods:["pricePerShare"],contractMethodsParameters:[[]]},{name:"mETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xe3cBd06D7dadB3F4e6557bAb7EdD924CD1489E8f",implementationAddress:"0xdecacc56fc347274d3df2b709602632845611d39",contractMethods:["mETHToETH"],contractMethodsParameters:[["1000000000000000000"]]},{name:"uniETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x4beFa2aA9c305238AA3E0b5D17eB20C045269E9d",implementationAddress:"0x413c36f939eef24e9aca2f3e708b93ebba4d1247",contractMethods:["exchangeRatio"],contractMethodsParameters:[[]]},{name:"osETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x2a261e60fb14586b474c208b1b7ac6d0f5000306",contractMethods:["convertToAssets"],contractMethodsParameters:[["1000000000000000000"]]},{name:"weETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",implementationAddress:"0xe629ee84c1bd9ea9c677d2d5391919fcf5e7d5d9",contractMethods:["getRate"],contractMethodsParameters:[[]]},{name:"STONE/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x7122985656e38BDC0302Db86685bb972b145bD3C",contractMethods:["tokenPrice"],contractMethodsParameters:[[]]},{name:"rsETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x349A73444b1a310BAe67ef67973022020d70020d",implementationAddress:"0xa88845af0d087ce8cf2f6d7d7a674154b21f73a5",contractMethods:["rsETHPrice"],contractMethodsParameters:[[]]},{name:"rswETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0",implementationAddress:"0xcd284a617b4ed7697c2e455d95049c7fc538785c",contractMethods:["rswETHToETHRate"],contractMethodsParameters:[[]]},{name:"apxETH/pxETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x9Ba021B0a9b958B5E75cE9f6dff97C7eE52cb3E6",contractMethods:["assetsPerShare"],contractMethodsParameters:[[]]},{name:"ezETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x387dBc0fB00b26fb085aa658527D5BE98302c84C",implementationAddress:"0x9284ceff248315377e782df0666ee9832e119508",contractMethods:["getRate"],contractMethodsParameters:[[]]},{name:"wUSDM/USDM Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812",implementationAddress:"0x616b7f7d7faaf87beaa35c5759425cccf4c9db0c",contractMethods:["convertToAssets"],contractMethodsParameters:[["1000000000000000000"]]},{name:"sDAI/DAI Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x83F20F44975D03b1b09e64809B757c47f942BEeA",contractMethods:["convertToAssets"],contractMethodsParameters:[["1000000000000000000"]]},{name:"sUSDe/USDe Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",contractMethods:["convertToAssets"],contractMethodsParameters:[["1000000000000000000"]]},{name:"pufETH/stETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xD9A442856C234a39a81a089C06451EBAa4306a72",implementationAddress:"0x39ca0a6438b6050ea2ac909ba65920c7451305c1",contractMethods:["convertToAssets"],contractMethodsParameters:[["1000000000000000000"]]},{name:"mpETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x48AFbBd342F64EF8a9Ab1C143719b63C2AD81710",implementationAddress:"0x3747484567119592ff6841df399cf679955a111a",contractMethods:["convertToAssets"],contractMethodsParameters:[["1000000000000000000"]]},{name:"stTAO/TAO Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xB60acD2057067DC9ed8c083f5aa227a244044fD6",implementationAddress:"0x52a139dDe6c5dF3B79A40FB051B954B3A52fBaA0",contractMethods:["getWTAOByWstTAOAfterFee"],contractMethodsParameters:[["1000000000000000000"]]},{name:"sFRAX/FRAX Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xa663b02cf0a4b149d2ad41910cb81e23e1c41c32",contractMethods:["pricePerShare"],contractMethodsParameters:[[]]},{name:"weETHs/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xbe16605B22a7faCEf247363312121670DFe5afBE",contractMethods:["getRate"],contractMethodsParameters:[[]]},{name:"stMATIC/MATIC Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-1",contractAddress:"0x9ee91F9f426fA633d227f7a9b000E28b9dfd8599",implementationAddress:"0x6c25aebd494a9984a3d7c8cf395c8713e0c74d98",contractMethods:["convertStMaticToMatic"],contractMethodsParameters:[["1000000000000000000"]]},{name:"MATICx/MATIC Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-1",contractAddress:"0xf03a7eb46d01d9ecaa104558c732cf82f6b6b645",implementationAddress:"0x5a78f4bd60c92fcbbf1c941bc1136491d2896b35",contractMethods:["convertMaticXToMatic"],contractMethodsParameters:[["1000000000000000000"]]},{name:"ETHx/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-2",contractAddress:"0xF64bAe65f6f2a5277571143A24FaaFDFC0C2a737",implementationAddress:"0x36a5d40ac8acb7cec9c0e61c4d1fd338ebf6e414",contractMethods:["exchangeRate"],contractMethodsParameters:[[]]},{name:"USDY/USD Exchange Rate",decimals:18,chainAlias:"mantle",returnType:"type-0",contractAddress:"0xA96abbe61AfEdEB0D14a20440Ae7100D9aB4882f",contractMethods:["getPrice"],contractMethodsParameters:[[]]},{name:"spETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-3",contractAddress:"0x88b6bBb148748C18B377A57c9d4E6c714AF28078",implementationAddress:"0x89792dDc14209A3156d90F5e4A34F4c532bB4EC6",contractMethods:["evalSpectrum","getCoreInfo"],contractMethodsParameters:[["1000000000000000000"],[]]},{name:"inETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xf073bAC22DAb7FaF4a3Dd6c6189a70D54110525C",implementationAddress:"0x0e1b44f0c5968c499f62fbd711ce0247db6a47b0",contractMethods:["convertToAmount"],contractMethodsParameters:[["1000000000000000000"]]},{name:"ankrETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x00F8e64a8651E3479A0B20F46b1D462Fe29D6aBc",contractMethods:["getRate"],contractMethodsParameters:[[]]},{name:"ultraETHs/wstETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xF0a949B935e367A94cDFe0F2A54892C2BC7b2131",implementationAddress:"0xcee23c4724d70ad9f327cc86947f690494c15d48",contractMethods:["getRate"],contractMethodsParameters:[[]]},{name:"agETH/rsETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0xe1b4d34e8754600962cd944b535180bd758e6c2e",implementationAddress:"0x01630191978b6ade4e959054dcd4863a503ecce9",contractMethods:["convertToAssets"],contractMethodsParameters:[["1000000000000000000"]]},{name:"instETH/stETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x343281Bb5029C4b698fE736D800115ac64D5De39",contractMethods:["getRate"],contractMethodsParameters:[[]]},{name:"eBTC/WBTC Exchange Rate",decimals:8,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x1b293DC39F94157fA0D1D36d7e0090C8B8B8c13F",contractMethods:["getRate"],contractMethodsParameters:[[]]},{name:"cmETH/mETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x6049Bd892F14669a4466e46981ecEd75D610a2eC",contractMethods:["getRate"],contractMethodsParameters:[[]]},{name:"LsETH/ETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x8c1bed5b9a0928467c9b1341da1d7bd5e10b6549",implementationAddress:"0x48d93d8c45fb25125f13cdd40529bbeaa97a6565",contractMethods:["underlyingBalanceFromShares"],contractMethodsParameters:[["1000000000000000000"]]},{name:"insfrxETH/sfrxETH Exchange Rate",decimals:18,chainAlias:"ethereum",returnType:"type-0",contractAddress:"0x07f86901057F392fd3A508b8AbcbaafB08c13B1e",contractMethods:["getRate"],contractMethodsParameters:[[]]}]},80755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAINS=void 0,t.CHAINS=[{alias:"apechain-arbitrum-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://curtis.explorer.caldera.xyz/api"},browserUrl:"https://curtis.explorer.caldera.xyz/"},id:"33111",name:"ApeChain testnet",providers:[{alias:"default",rpcUrl:"https://curtis.rpc.caldera.xyz/http"}],symbol:"APE",testnet:!0},{alias:"arbitrum-nova",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-nova.arbiscan.io/api"},browserUrl:"https://nova.arbiscan.io/"},id:"42170",name:"Arbitrum Nova",providers:[{alias:"default",rpcUrl:"https://nova.arbitrum.io/rpc"}],symbol:"ETH",testnet:!1},{alias:"arbitrum-sepolia-testnet",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"arbitrumSepolia",required:!0},url:"https://api-sepolia.arbiscan.io/api"},browserUrl:"https://sepolia.arbiscan.io/"},id:"421614",name:"Arbitrum testnet",providers:[{alias:"default",rpcUrl:"https://sepolia-rollup.arbitrum.io/rpc"},{alias:"publicnode",rpcUrl:"https://arbitrum-sepolia-rpc.publicnode.com"}],symbol:"ETH",testnet:!0},{alias:"arbitrum",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"arbitrumOne",required:!0},url:"https://api.arbiscan.io/api"},browserUrl:"https://arbiscan.io/"},id:"42161",name:"Arbitrum One",providers:[{alias:"default",rpcUrl:"https://arb1.arbitrum.io/rpc"},{alias:"publicnode",rpcUrl:"https://arbitrum-one-rpc.publicnode.com/"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"}],symbol:"ETH",testnet:!1},{alias:"astar-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://zkyoto.explorer.startale.com/api"},browserUrl:"https://zkyoto.explorer.startale.com/"},id:"6038361",name:"Astar zkEVM testnet",providers:[{alias:"default",rpcUrl:"https://rpc.startale.com/zkyoto"}],symbol:"ETH",testnet:!0},{alias:"astar",decimals:18,explorer:{api:{key:{required:!1},url:"https://astar-zkevm.explorer.startale.com/api"},browserUrl:"https://astar-zkevm.explorer.startale.com/"},id:"3776",name:"Astar zkEVM",providers:[{alias:"default",rpcUrl:"https://rpc.startale.com/astar-zkevm"},{alias:"dwellir",homepageUrl:"https://dwellir.com/"}],symbol:"ETH",testnet:!1},{alias:"aurora-testnet",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"auroraTestnet",required:!1},url:"https://explorer.testnet.aurora.dev/api"},browserUrl:"https://explorer.testnet.aurora.dev/"},id:"1313161555",name:"Aurora testnet",providers:[{alias:"default",rpcUrl:"https://testnet.aurora.dev/"}],symbol:"ETH",testnet:!0},{alias:"aurora",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"aurora",required:!1},url:"https://explorer.mainnet.aurora.dev/api"},browserUrl:"https://explorer.aurora.dev/"},id:"1313161554",name:"Aurora",providers:[{alias:"default",rpcUrl:"https://mainnet.aurora.dev/"}],symbol:"ETH",testnet:!1},{alias:"avalanche-testnet",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"avalancheFujiTestnet",required:!0},url:"https://api.routescan.io/v2/network/testnet/evm/43113/etherscan/api"},browserUrl:"https://testnet.snowtrace.io/"},id:"43113",name:"Avalanche testnet",providers:[{alias:"default",rpcUrl:"https://api.avax-test.network/ext/bc/C/rpc"},{alias:"publicnode",rpcUrl:"https://avalanche-fuji-c-chain-rpc.publicnode.com"}],symbol:"AVAX",testnet:!0},{alias:"avalanche",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"avalanche",required:!0},url:"https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan/api"},browserUrl:"https://snowtrace.io/"},id:"43114",name:"Avalanche",providers:[{alias:"default",rpcUrl:"https://api.avax.network/ext/bc/C/rpc"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"},{alias:"reblok",homepageUrl:"https://reblok.io"}],symbol:"AVAX",testnet:!1},{alias:"base-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-sepolia.basescan.org/api"},browserUrl:"https://sepolia.basescan.org/"},id:"84532",name:"Base testnet",providers:[{alias:"default",rpcUrl:"https://sepolia.base.org"},{alias:"publicnode",rpcUrl:"https://base-sepolia-rpc.publicnode.com"}],symbol:"ETH",testnet:!0},{alias:"base",decimals:18,explorer:{api:{key:{required:!0},url:"https://api.basescan.org/api"},browserUrl:"https://basescan.org/"},id:"8453",name:"Base",providers:[{alias:"default",rpcUrl:"https://mainnet.base.org"},{alias:"publicnode",rpcUrl:"https://base-rpc.publicnode.com/"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"}],symbol:"ETH",testnet:!1},{alias:"berachain-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://api.routescan.io/v2/network/testnet/evm/80084/etherscan/api"},browserUrl:"https://bartio.beratrail.io/"},id:"80084",name:"Berachain testnet",providers:[{alias:"default",rpcUrl:"https://bartio.rpc.berachain.com/"},{alias:"publicnode",rpcUrl:"https://berachain-testnet-evm-rpc.publicnode.com"}],symbol:"BERA",testnet:!0},{alias:"bitlayer-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://api-testnet.btrscan.com/scan/api"},browserUrl:"https://testnet.btrscan.com/"},id:"200810",name:"Bitlayer testnet",providers:[{alias:"default",rpcUrl:"https://testnet-rpc.bitlayer.org"},{alias:"public",rpcUrl:"https://testnet-rpc.bitlayer-rpc.com"}],symbol:"BTC",testnet:!0},{alias:"bitlayer",decimals:18,explorer:{api:{key:{required:!1},url:"https://api.btrscan.com/scan/api"},browserUrl:"https://www.btrscan.com/"},id:"200901",name:"Bitlayer",providers:[{alias:"default",rpcUrl:"https://rpc.bitlayer.org"},{alias:"public",rpcUrl:"https://rpc.bitlayer-rpc.com"},{alias:"ankr",homepageUrl:"https://ankr.com"},{alias:"rockx",homepageUrl:"https://rockx.com/"}],symbol:"BTC",testnet:!1},{alias:"blast-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-sepolia.blastscan.io/api"},browserUrl:"https://sepolia.blastscan.io/"},id:"168587773",name:"Blast testnet",providers:[{alias:"default",rpcUrl:"https://sepolia.blast.io"}],symbol:"ETH",testnet:!0},{alias:"blast",decimals:18,explorer:{api:{key:{required:!0},url:"https://api.blastscan.io/api"},browserUrl:"https://blastscan.io/"},id:"81457",name:"Blast",providers:[{alias:"default",rpcUrl:"https://rpc.blast.io"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"},{alias:"reblok",homepageUrl:"https://reblok.io"}],symbol:"ETH",testnet:!1},{alias:"bob-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://bob-sepolia.explorer.gobob.xyz/api"},browserUrl:"https://bob-sepolia.explorer.gobob.xyz/"},id:"808813",name:"BOB testnet",providers:[{alias:"default",rpcUrl:"https://bob-sepolia.rpc.gobob.xyz/"}],symbol:"ETH",testnet:!0},{alias:"bob",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.gobob.xyz/api"},browserUrl:"https://explorer.gobob.xyz/"},id:"60808",name:"BOB",providers:[{alias:"default",rpcUrl:"https://rpc.gobob.xyz/"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"tenderly",homepageUrl:"https://tenderly.co/"}],symbol:"ETH",testnet:!1},{alias:"boba-bnb",decimals:18,explorer:{api:{key:{required:!1},url:"https://blockexplorer.bnb.boba.network/api"},browserUrl:"https://blockexplorer.bnb.boba.network/"},id:"56288",name:"Boba/BNB",providers:[{alias:"default",rpcUrl:"https://replica.bnb.boba.network/"}],symbol:"BOBA",testnet:!1},{alias:"boba-ethereum",decimals:18,explorer:{api:{key:{required:!0},url:"https://api.bobascan.com/api"},browserUrl:"https://bobascan.com/"},id:"288",name:"Boba/Ethereum",providers:[{alias:"default",rpcUrl:"https://lightning-replica.boba.network/"}],symbol:"BOBA",testnet:!1},{alias:"bsc-testnet",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"bscTestnet",required:!0},url:"https://api-testnet.bscscan.com/api"},browserUrl:"https://testnet.bscscan.com/"},id:"97",name:"BNB Smart Chain testnet",providers:[{alias:"default",rpcUrl:"https://data-seed-prebsc-1-s3.binance.org:8545/"},{alias:"publicnode",rpcUrl:"https://bsc-testnet-rpc.publicnode.com"}],symbol:"BNB",testnet:!0},{alias:"bsc",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"bsc",required:!0},url:"https://api.bscscan.com/api"},browserUrl:"https://bscscan.com/"},id:"56",name:"BNB Smart Chain",providers:[{alias:"default",rpcUrl:"https://bsc-dataseed1.binance.org/"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"},{alias:"reblok",homepageUrl:"https://reblok.io"}],symbol:"BNB",testnet:!1},{alias:"bsquared-testnet",decimals:18,explorer:{browserUrl:"https://bsquared-testnet.l2scan.co/"},id:"1123",name:"BSquared Network testnet",providers:[{alias:"default",rpcUrl:"https://b2-testnet.alt.technology"}],symbol:"BTC",testnet:!0},{alias:"bsquared",decimals:18,explorer:{api:{key:{required:!1},url:"https://bsquared.l2scan.co/api"},browserUrl:"https://bsquared.l2scan.co/"},id:"223",name:"BSquared Network",providers:[{alias:"default",rpcUrl:"https://rpc.bsquared.network"},{alias:"public",rpcUrl:"https://b2-mainnet.alt.technology"}],symbol:"BTC",testnet:!1},{alias:"camp-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://camp-network-testnet.blockscout.com/api"},browserUrl:"https://camp-network-testnet.blockscout.com/"},id:"325000",name:"Camp Network testnet",providers:[{alias:"default",rpcUrl:"https://rpc.camp-network-testnet.gelato.digital/"}],symbol:"ETH",testnet:!0},{alias:"canto-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://testnet.tuber.build/api"},browserUrl:"https://testnet.tuber.build/"},id:"7701",name:"Canto testnet",providers:[{alias:"default",rpcUrl:"https://canto-testnet.plexnode.wtf/"}],symbol:"CANTO",testnet:!0},{alias:"canto",decimals:18,explorer:{api:{key:{required:!1},url:"https://www.oklink.com/api/explorer/v1/contract/verify/async/api/canto"},browserUrl:"https://www.oklink.com/canto/"},id:"7700",name:"Canto",providers:[{alias:"default",rpcUrl:"https://mainnode.plexnode.org:8545"},{alias:"ansybl",rpcUrl:"https://canto-rpc.ansybl.io/"},{alias:"gravitychain",rpcUrl:"https://canto.gravitychain.io/"}],symbol:"CANTO",testnet:!1},{alias:"conflux-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://evmapi-testnet.confluxscan.io/api/"},browserUrl:"https://evmtestnet.confluxscan.io/"},id:"71",name:"Conflux eSpace testnet",providers:[{alias:"default",rpcUrl:"https://evmtestnet.confluxrpc.com/"},{alias:"public",rpcUrl:"https://evmtest.confluxrpc.com/"},{alias:"backup",rpcUrl:"https://evmtestnet.confluxrpc.org/"}],symbol:"CFX",testnet:!0},{alias:"conflux",decimals:18,explorer:{api:{key:{required:!1},url:"https://evmapi.confluxscan.io/api/"},browserUrl:"https://evm.confluxscan.io/"},id:"1030",name:"Conflux eSpace",providers:[{alias:"default",rpcUrl:"https://evm.confluxrpc.com/"},{alias:"public",rpcUrl:"https://evmmain-global.confluxrpc.com/"},{alias:"backup",rpcUrl:"https://evm.confluxrpc.org/"},{alias:"blockpi",homepageUrl:"https://blockpi.io"}],symbol:"CFX",testnet:!1},{alias:"core-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://api.test.btcs.network/api"},browserUrl:"https://scan.test.btcs.network/"},id:"1115",name:"Core testnet",providers:[{alias:"default",rpcUrl:"https://rpc.test.btcs.network/"}],symbol:"CORE",testnet:!0},{alias:"core",decimals:18,explorer:{api:{key:{required:!0},url:"https://openapi.coredao.org/api"},browserUrl:"https://scan.coredao.org/"},id:"1116",name:"Core",providers:[{alias:"default",rpcUrl:"https://rpc.coredao.org/"},{alias:"icecreamswap",rpcUrl:"https://rpc-core.icecreamswap.com/"},{alias:"ankr",homepageUrl:"https://ankr.com"},{alias:"infstones",homepageUrl:"https://infstones.com"}],symbol:"CORE",testnet:!1},{alias:"cronos-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://cronos.org/explorer/testnet3/api"},browserUrl:"https://cronos.org/explorer/testnet3/"},id:"338",name:"Cronos testnet",providers:[{alias:"default",rpcUrl:"https://evm-t3.cronos.org"}],symbol:"CRO",testnet:!0},{alias:"ethereum-holesky-testnet",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"holesky",required:!0},url:"https://api-holesky.etherscan.io/api"},browserUrl:"https://holesky.etherscan.io/"},id:"17000",name:"Ethereum Holesky testnet",providers:[{alias:"default",rpcUrl:"https://ethereum-holesky-rpc.publicnode.com"}],symbol:"ETH",testnet:!0},{alias:"ethereum-sepolia-testnet",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"sepolia",required:!0},url:"https://api-sepolia.etherscan.io/api"},browserUrl:"https://sepolia.etherscan.io/"},id:"11155111",name:"Ethereum Sepolia testnet",providers:[{alias:"default",rpcUrl:"https://rpc2.sepolia.org"},{alias:"publicnode",rpcUrl:"https://ethereum-sepolia-rpc.publicnode.com"}],symbol:"ETH",testnet:!0},{alias:"ethereum",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"mainnet",required:!0},url:"https://api.etherscan.io/api"},browserUrl:"https://etherscan.io/"},id:"1",name:"Ethereum",providers:[{alias:"default",rpcUrl:"https://ethereum-rpc.publicnode.com"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"},{alias:"reblok",homepageUrl:"https://reblok.io"}],symbol:"ETH",testnet:!1},{alias:"fantom-testnet",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"ftmTestnet",required:!0},url:"https://api-testnet.ftmscan.com/api"},browserUrl:"https://testnet.ftmscan.com/"},id:"4002",name:"Fantom testnet",providers:[{alias:"default",rpcUrl:"https://rpc.testnet.fantom.network"},{alias:"publicnode",rpcUrl:"https://fantom-testnet-rpc.publicnode.com"}],symbol:"FTM",testnet:!0},{alias:"fantom",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"opera",required:!0},url:"https://api.ftmscan.com/api"},browserUrl:"https://ftmscan.com/"},id:"250",name:"Fantom",providers:[{alias:"default",rpcUrl:"https://rpc3.fantom.network/"},{alias:"publicnode",rpcUrl:"https://fantom-rpc.publicnode.com/"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"}],symbol:"FTM",testnet:!1},{alias:"fraxtal-holesky-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://api-holesky.fraxscan.com/api/"},browserUrl:"https://holesky.fraxscan.com/"},id:"2522",name:"Fraxtal testnet",providers:[{alias:"default",rpcUrl:"https://rpc.testnet.frax.com"}],symbol:"ETH",testnet:!0},{alias:"fraxtal",decimals:18,explorer:{api:{key:{required:!0},url:"https://api.fraxscan.com/api/"},browserUrl:"https://fraxscan.com/"},id:"252",name:"Fraxtal",providers:[{alias:"default",rpcUrl:"https://rpc.frax.com"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"grove",homepageUrl:"https://grove.city/"},{alias:"tenderly",homepageUrl:"https://tenderly.co/"}],symbol:"ETH",testnet:!1},{alias:"gnosis-testnet",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"chiado",required:!1},url:"https://gnosis-chiado.blockscout.com/api"},browserUrl:"https://gnosis-chiado.blockscout.com/"},id:"10200",name:"Gnosis Chain testnet",providers:[{alias:"default",rpcUrl:"https://rpc.chiadochain.net"},{alias:"publicnode",rpcUrl:"https://gnosis-chiado-rpc.publicnode.com"}],symbol:"xDAI",testnet:!0},{alias:"gnosis",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"gnosis",required:!0},url:"https://api.gnosisscan.io/api"},browserUrl:"https://gnosisscan.io/"},id:"100",name:"Gnosis Chain",providers:[{alias:"default",rpcUrl:"https://rpc.gnosischain.com"},{alias:"publicnode",rpcUrl:"https://gnosis-rpc.publicnode.com/"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"}],symbol:"xDAI",testnet:!1},{alias:"godwoken-testnet",decimals:18,explorer:{browserUrl:"https://v1.testnet.gwscan.com/"},id:"71401",name:"Godwoken testnet",providers:[{alias:"default",rpcUrl:"https://v1.testnet.godwoken.io/rpc"}],symbol:"pCKB",testnet:!0},{alias:"godwoken",decimals:18,explorer:{browserUrl:"https://v1.gwscan.com/"},id:"71402",name:"Godwoken",providers:[{alias:"default",rpcUrl:"https://v1.mainnet.godwoken.io/rpc"}],symbol:"pCKB",testnet:!1},{alias:"immutable-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.testnet.immutable.com/api"},browserUrl:"https://explorer.testnet.immutable.com/"},id:"13473",name:"Immutable zkEVM testnet",providers:[{alias:"default",rpcUrl:"https://rpc.testnet.immutable.com"}],symbol:"IMX",testnet:!0},{alias:"inevm-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://testnet.explorer.inevm.com/api"},browserUrl:"https://testnet.explorer.inevm.com/"},id:"2424",name:"inEVM testnet",providers:[{alias:"default",rpcUrl:"https://testnet.rpc.inevm.com/http"}],symbol:"INJ",testnet:!0},{alias:"inevm",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.inevm.com/api"},browserUrl:"https://explorer.inevm.com/"},id:"2525",name:"inEVM",providers:[{alias:"default",rpcUrl:"https://mainnet.rpc.inevm.com/http"}],symbol:"INJ",testnet:!1},{alias:"kava-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://testnet.kavascan.com/api"},browserUrl:"https://testnet.kavascan.com/"},id:"2221",name:"Kava testnet",providers:[{alias:"default",rpcUrl:"https://evm.testnet.kava.io/"}],symbol:"KAVA",testnet:!0},{alias:"kava",decimals:18,explorer:{api:{key:{required:!1},url:"https://kavascan.com/api"},browserUrl:"https://kavascan.com/"},id:"2222",name:"Kava",providers:[{alias:"default",rpcUrl:"https://evm.kava.io/"},{alias:"publicnode",rpcUrl:"https://kava-evm-rpc.publicnode.com/"},{alias:"ankr",homepageUrl:"https://ankr.com"},{alias:"drpc",homepageUrl:"https://drpc.org/"}],symbol:"KAVA",testnet:!1},{alias:"kroma-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-sepolia.kromascan.com/api"},browserUrl:"https://sepolia.kromascan.com/"},id:"2358",name:"Kroma testnet",providers:[{alias:"default",rpcUrl:"https://api.sepolia.kroma.network/"}],symbol:"ETH",testnet:!0},{alias:"kroma",decimals:18,explorer:{api:{key:{required:!0},url:"https://api.kromascan.com/api"},browserUrl:"https://kromascan.com/"},id:"255",name:"Kroma",providers:[{alias:"default",rpcUrl:"https://api.kroma.network/"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"rockx",homepageUrl:"https://rockx.com/"}],symbol:"ETH",testnet:!1},{alias:"lightlink-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://pegasus.lightlink.io/api"},browserUrl:"https://pegasus.lightlink.io/"},id:"1891",name:"LightLink testnet",providers:[{alias:"default",rpcUrl:"https://replicator.pegasus.lightlink.io/rpc/v1"}],symbol:"ETH",testnet:!0},{alias:"lightlink",decimals:18,explorer:{api:{key:{required:!1},url:"https://phoenix.lightlink.io/api"},browserUrl:"https://phoenix.lightlink.io/"},id:"1890",name:"LightLink",providers:[{alias:"default",rpcUrl:"https://replicator.phoenix.lightlink.io/rpc/v1"}],symbol:"ETH",testnet:!1},{alias:"linea-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-sepolia.lineascan.build/api/"},browserUrl:"https://sepolia.lineascan.build/"},id:"59141",name:"Linea testnet",providers:[{alias:"default",rpcUrl:"https://rpc.sepolia.linea.build"},{alias:"publicnode",rpcUrl:"https://linea-sepolia-rpc.publicnode.com"}],symbol:"ETH",testnet:!0},{alias:"linea",decimals:18,explorer:{api:{key:{required:!0},url:"https://api.lineascan.build/api"},browserUrl:"https://lineascan.build/"},id:"59144",name:"Linea",providers:[{alias:"default",rpcUrl:"https://rpc.linea.build"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org/"},{alias:"quicknode",homepageUrl:"https://quicknode.com"},{alias:"reblok",homepageUrl:"https://reblok.io"}],symbol:"ETH",testnet:!1},{alias:"lukso-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.execution.testnet.lukso.network/api/"},browserUrl:"https://explorer.execution.testnet.lukso.network/"},id:"4201",name:"Lukso testnet",providers:[{alias:"default",rpcUrl:"https://rpc.testnet.lukso.network"}],symbol:"LYX",testnet:!0},{alias:"lukso",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.execution.mainnet.lukso.network/api/"},browserUrl:"https://explorer.execution.mainnet.lukso.network/"},id:"42",name:"Lukso",providers:[{alias:"default",rpcUrl:"https://rpc.mainnet.lukso.network"},{alias:"sigmacore",rpcUrl:"https://rpc.lukso.sigmacore.io/"}],symbol:"LYX",testnet:!1},{alias:"lumia-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://testnet-explorer.lumia.org/api/"},browserUrl:"https://testnet-explorer.lumia.org/"},id:"1952959480",name:"Lumia testnet",providers:[{alias:"default",rpcUrl:"https://testnet-rpc.lumia.org"}],symbol:"LUMIA",testnet:!0},{alias:"lumia",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.lumia.org/api/"},browserUrl:"https://explorer.lumia.org/"},id:"994873017",name:"Lumia",providers:[{alias:"default",rpcUrl:"https://mainnet-rpc.lumia.org"}],symbol:"LUMIA",testnet:!1},{alias:"manta-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://pacific-explorer.sepolia-testnet.manta.network/api/"},browserUrl:"https://pacific-explorer.sepolia-testnet.manta.network/"},id:"3441006",name:"Manta testnet",providers:[{alias:"default",rpcUrl:"https://pacific-rpc.sepolia-testnet.manta.network/http"}],symbol:"ETH",testnet:!0},{alias:"manta",decimals:18,explorer:{api:{key:{required:!1},url:"https://pacific-explorer.manta.network/api/"},browserUrl:"https://pacific-explorer.manta.network/"},id:"169",name:"Manta",providers:[{alias:"default",rpcUrl:"https://pacific-rpc.manta.network/http"},{alias:"public",rpcUrl:"https://r1.pacific.manta.systems/http"},{alias:"nirvanalabs",rpcUrl:"https://manta.nirvanalabs.xyz/mantapublic"},{alias:"drpc",homepageUrl:"https://drpc.org"}],symbol:"ETH",testnet:!1},{alias:"mantle-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.sepolia.mantle.xyz/api"},browserUrl:"https://explorer.sepolia.mantle.xyz/"},id:"5003",name:"Mantle testnet",providers:[{alias:"default",rpcUrl:"https://rpc.sepolia.mantle.xyz"},{alias:"drpc-freemium",rpcUrl:"https://lb.drpc.org/ogrpc?network=mantle-sepolia&dkey=AiPHJac9aUX2s7ELd131NuwSeHqkUW8R7oQiFnomaLKw"}],symbol:"MNT",testnet:!0},{alias:"mantle",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.mantle.xyz/api"},browserUrl:"https://explorer.mantle.xyz/"},id:"5000",name:"Mantle",providers:[{alias:"default",rpcUrl:"https://rpc.mantle.xyz"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org/"},{alias:"quicknode",homepageUrl:"https://quicknode.com"},{alias:"reblok",homepageUrl:"https://reblok.io"}],symbol:"MNT",testnet:!1},{alias:"meld-testnet",decimals:18,explorer:{browserUrl:"https://testnet.meldscan.io/"},id:"222000222",name:"Meld testnet",providers:[{alias:"default",rpcUrl:"https://testnet-rpc.meld.com/"}],symbol:"MELD",testnet:!0},{alias:"meld",decimals:18,explorer:{browserUrl:"https://meldscan.io/"},id:"333000333",name:"Meld",providers:[{alias:"default",rpcUrl:"https://rpc-1.meld.com/"}],symbol:"MELD",testnet:!1},{alias:"merlin-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://testnet-scan.merlinchain.io/api"},browserUrl:"https://testnet-scan.merlinchain.io/"},id:"686868",name:"Merlin testnet",providers:[{alias:"default",rpcUrl:"https://testnet-rpc.merlinchain.io"}],symbol:"BTC",testnet:!0},{alias:"merlin",decimals:18,explorer:{api:{key:{required:!1},url:"https://scan.merlinchain.io/api"},browserUrl:"https://scan.merlinchain.io/"},id:"4200",name:"Merlin",providers:[{alias:"default",rpcUrl:"https://rpc.merlinchain.io"},{alias:"blockpi",homepageUrl:"https://blockpi.io"}],symbol:"BTC",testnet:!1},{alias:"metal",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.metall2.com/api"},browserUrl:"https://explorer.metall2.com/"},id:"1750",name:"Metal L2",providers:[{alias:"default",rpcUrl:"https://rpc.metall2.com/"},{alias:"drpc",homepageUrl:"https://drpc.org"}],symbol:"ETH",testnet:!1},{alias:"meter-testnet",decimals:18,explorer:{browserUrl:"https://scan-warringstakes.meter.io/"},id:"83",name:"Meter testnet",providers:[{alias:"default",rpcUrl:"https://rpctest.meter.io/"}],symbol:"MTR",testnet:!0},{alias:"meter",decimals:18,explorer:{browserUrl:"https://scan.meter.io/"},id:"82",name:"Meter",providers:[{alias:"default",rpcUrl:"https://rpc.meter.io/"},{alias:"blockpi",homepageUrl:"https://blockpi.io"}],symbol:"MTR",testnet:!1},{alias:"metis-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://sepolia-explorer-api.metisdevops.link/api"},browserUrl:"https://sepolia-explorer.metisdevops.link/"},id:"59902",name:"Metis testnet",providers:[{alias:"default",rpcUrl:"https://sepolia.metisdevops.link"}],symbol:"METIS",testnet:!0},{alias:"metis",decimals:18,explorer:{api:{key:{required:!1},url:"https://andromeda-explorer.metis.io/api"},browserUrl:"https://andromeda-explorer.metis.io/"},id:"1088",name:"Metis",providers:[{alias:"default",rpcUrl:"https://andromeda.metis.io/?owner=1088"},{alias:"ankr",homepageUrl:"https://ankr.com"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"grove",homepageUrl:"https://grove.city/"}],symbol:"METIS",testnet:!1},{alias:"milkomeda-c1-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com/api"},browserUrl:"https://explorer-devnet-cardano-evm.c1.milkomeda.com/"},id:"200101",name:"Milkomeda C1 testnet",providers:[{alias:"default",rpcUrl:"https://rpc-devnet-cardano-evm.c1.milkomeda.com"}],symbol:"ADA",testnet:!0},{alias:"milkomeda-c1",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com/api"},browserUrl:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com/"},id:"2001",name:"Milkomeda C1",providers:[{alias:"default",rpcUrl:"https://rpc-mainnet-cardano-evm.c1.milkomeda.com"}],symbol:"ADA",testnet:!1},{alias:"mode-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://sepolia.explorer.mode.network/api/"},browserUrl:"https://sepolia.explorer.mode.network/"},id:"919",name:"Mode testnet",providers:[{alias:"default",rpcUrl:"https://sepolia.mode.network"}],symbol:"ETH",testnet:!0},{alias:"mode",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.mode.network/api/"},browserUrl:"https://explorer.mode.network/"},id:"34443",name:"Mode",providers:[{alias:"default",rpcUrl:"https://mainnet.mode.network"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org/"}],symbol:"ETH",testnet:!1},{alias:"moonbeam-testnet",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"moonbaseAlpha",required:!0},url:"https://api-moonbase.moonscan.io/api"},browserUrl:"https://moonbase.moonscan.io/"},id:"1287",name:"Moonbeam testnet",providers:[{alias:"default",rpcUrl:"https://rpc.api.moonbase.moonbeam.network"},{alias:"drpc-freemium",rpcUrl:"https://lb.drpc.org/ogrpc?network=moonbase-alpha&dkey=AiPHJac9aUX2s7ELd131NuwSeHqkUW8R7oQiFnomaLKw"}],symbol:"GLMR",testnet:!0},{alias:"moonbeam",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"moonbeam",required:!0},url:"https://api-moonbeam.moonscan.io/api"},browserUrl:"https://moonscan.io/"},id:"1284",name:"Moonbeam",providers:[{alias:"default",rpcUrl:"https://rpc.api.moonbeam.network"},{alias:"ankr",homepageUrl:"https://ankr.com"},{alias:"publicnode",rpcUrl:"https://moonbeam-rpc.publicnode.com"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org/"}],symbol:"GLMR",testnet:!1},{alias:"moonriver",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"moonriver",required:!0},url:"https://api-moonriver.moonscan.io/api"},browserUrl:"https://moonriver.moonscan.io/"},id:"1285",name:"Moonriver",providers:[{alias:"default",rpcUrl:"https://rpc.api.moonriver.moonbeam.network"},{alias:"publicnode",rpcUrl:"https://moonriver-rpc.publicnode.com"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org/"}],symbol:"MOVR",testnet:!1},{alias:"neon-evm-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://devnet-api.neonscan.org/hardhat/verify"},browserUrl:"https://devnet.neonscan.org/"},id:"245022926",name:"Neon EVM testnet",providers:[{alias:"default",rpcUrl:"https://devnet.neonevm.org"}],symbol:"NEON",testnet:!0},{alias:"neon-evm",decimals:18,explorer:{api:{key:{required:!1},url:"https://api.neonscan.org/hardhat/verify"},browserUrl:"https://neonscan.org/"},id:"245022934",name:"Neon EVM",providers:[{alias:"default",rpcUrl:"https://neon-proxy-mainnet.solana.p2p.org"},{alias:"everstake",rpcUrl:"https://neon-mainnet.everstake.one"}],symbol:"NEON",testnet:!1},{alias:"odyssey-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://odyssey-explorer.ithaca.xyz/api"},browserUrl:"https://odyssey-explorer.ithaca.xyz/"},id:"911867",name:"Odyssey testnet",providers:[{alias:"default",rpcUrl:"https://odyssey.ithaca.xyz"}],symbol:"ETH",testnet:!0},{alias:"oev-network",decimals:18,explorer:{api:{key:{required:!1},url:"https://oev.explorer.api3.org/api/"},browserUrl:"https://oev.explorer.api3.org/"},id:"4913",name:"OEV Network",providers:[{alias:"default",rpcUrl:"https://oev.rpc.api3.org/http"}],symbol:"ETH",testnet:!1},{alias:"opbnb-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-opbnb-testnet.bscscan.com/api"},browserUrl:"https://opbnb-testnet.bscscan.com/"},id:"5611",name:"opBNB testnet",providers:[{alias:"default",rpcUrl:"https://opbnb-testnet-rpc.bnbchain.org/"},{alias:"publicnode",rpcUrl:"https://opbnb-testnet-rpc.publicnode.com"}],symbol:"BNB",testnet:!0},{alias:"opbnb",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-opbnb.bscscan.com/api"},browserUrl:"https://opbnb.bscscan.com/"},id:"204",name:"opBNB",providers:[{alias:"default",rpcUrl:"https://opbnb-mainnet-rpc.bnbchain.org"},{alias:"publicnode",rpcUrl:"https://opbnb-rpc.publicnode.com"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org/"}],symbol:"BNB",testnet:!1},{alias:"optimism-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-sepolia-optimism.etherscan.io/api"},browserUrl:"https://sepolia-optimism.etherscan.io/"},id:"11155420",name:"Optimism testnet",providers:[{alias:"default",rpcUrl:"https://sepolia.optimism.io"},{alias:"publicnode",rpcUrl:"https://optimism-sepolia-rpc.publicnode.com"}],symbol:"ETH",testnet:!0},{alias:"optimism",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"optimisticEthereum",required:!0},url:"https://api-optimistic.etherscan.io/api"},browserUrl:"https://optimistic.etherscan.io/"},id:"10",name:"Optimism",providers:[{alias:"default",rpcUrl:"https://mainnet.optimism.io"},{alias:"publicnode",rpcUrl:"https://optimism-rpc.publicnode.com/"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"}],symbol:"ETH",testnet:!1},{alias:"polygon-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-amoy.polygonscan.com/api"},browserUrl:"https://amoy.polygonscan.com/"},id:"80002",name:"Polygon testnet",providers:[{alias:"default",rpcUrl:"https://rpc-amoy.polygon.technology"},{alias:"publicnode",rpcUrl:"https://polygon-amoy-bor-rpc.publicnode.com"}],symbol:"POL",testnet:!0},{alias:"polygon-zkevm-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-cardona-zkevm.polygonscan.com/api"},browserUrl:"https://cardona-zkevm.polygonscan.com/"},id:"2442",name:"Polygon zkEVM testnet",providers:[{alias:"default",rpcUrl:"https://rpc.cardona.zkevm-rpc.com"}],symbol:"ETH",testnet:!0},{alias:"polygon-zkevm",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-zkevm.polygonscan.com/api"},browserUrl:"https://zkevm.polygonscan.com/"},id:"1101",name:"Polygon zkEVM",providers:[{alias:"default",rpcUrl:"https://zkevm-rpc.com"},{alias:"ankr",homepageUrl:"https://ankr.com"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"}],symbol:"ETH",testnet:!1},{alias:"polygon",decimals:18,explorer:{api:{key:{hardhatEtherscanAlias:"polygon",required:!0},url:"https://api.polygonscan.com/api"},browserUrl:"https://polygonscan.com/"},id:"137",name:"Polygon",providers:[{alias:"default",rpcUrl:"https://polygon-bor-rpc.publicnode.com"},{alias:"ankr",homepageUrl:"https://ankr.com"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"}],symbol:"POL",testnet:!1},{alias:"rari-arbitrum-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://testnet.explorer.rarichain.org/api"},browserUrl:"https://testnet.explorer.rarichain.org/"},id:"1918988905",name:"RARI Chain testnet",providers:[{alias:"default",rpcUrl:"https://testnet.rpc.rarichain.org/http/"}],symbol:"ETH",testnet:!0},{alias:"rari",decimals:18,explorer:{api:{key:{required:!1},url:"https://mainnet.explorer.rarichain.org/api"},browserUrl:"https://mainnet.explorer.rarichain.org/"},id:"1380012617",name:"RARI Chain",providers:[{alias:"default",rpcUrl:"https://mainnet.rpc.rarichain.org/http/"}],symbol:"ETH",testnet:!1},{alias:"rsk-testnet",decimals:18,explorer:{browserUrl:"https://explorer.testnet.rsk.co/"},id:"31",name:"Rootstock testnet",providers:[{alias:"default",rpcUrl:"https://public-node.testnet.rsk.co"}],symbol:"RBTC",testnet:!0},{alias:"rsk",decimals:18,explorer:{browserUrl:"https://explorer.rsk.co/"},id:"30",name:"Rootstock",providers:[{alias:"default",rpcUrl:"https://public-node.rsk.co"}],symbol:"RBTC",testnet:!1},{alias:"scroll-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-sepolia.scrollscan.com/api"},browserUrl:"https://sepolia.scrollscan.com/"},id:"534351",name:"Scroll testnet",providers:[{alias:"default",rpcUrl:"https://sepolia-rpc.scroll.io"},{alias:"publicnode",rpcUrl:"https://scroll-sepolia-rpc.publicnode.com"}],symbol:"ETH",testnet:!0},{alias:"scroll",decimals:18,explorer:{api:{key:{required:!0},url:"https://api.scrollscan.com/api"},browserUrl:"https://scrollscan.com/"},id:"534352",name:"Scroll",providers:[{alias:"default",rpcUrl:"https://rpc.scroll.io"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"blockpi",homepageUrl:"https://blockpi.io"},{alias:"blastapi",homepageUrl:"https://blastapi.io"},{alias:"quicknode",homepageUrl:"https://quicknode.com"}],symbol:"ETH",testnet:!1},{alias:"sei-testnet",decimals:18,explorer:{browserUrl:"https://testnet.seistream.app/"},id:"1328",name:"Sei testnet",providers:[{alias:"default",rpcUrl:"https://evm-rpc-testnet.sei-apis.com"}],symbol:"SEI",testnet:!0},{alias:"sei",decimals:18,explorer:{browserUrl:"https://seitrace.com/"},id:"1329",name:"Sei",providers:[{alias:"default",rpcUrl:"https://evm-rpc.sei-apis.com/"},{alias:"drpc",homepageUrl:"https://drpc.org"},{alias:"quicknode",homepageUrl:"https://quicknode.com"}],symbol:"SEI",testnet:!1},{alias:"soneium-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer-testnet.soneium.org/api"},browserUrl:"https://explorer-testnet.soneium.org/"},id:"1946",name:"Soneium testnet",providers:[{alias:"default",rpcUrl:"https://rpc.minato.soneium.org/"}],symbol:"ETH",testnet:!0},{alias:"sonic-testnet",decimals:18,explorer:{browserUrl:"https://testnet.soniclabs.com/"},id:"64165",name:"Sonic testnet",providers:[{alias:"default",rpcUrl:"https://rpc.testnet.soniclabs.com"}],symbol:"S",testnet:!0},{alias:"sx-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.toronto.sx.technology/api"},browserUrl:"https://explorer.toronto.sx.technology/"},id:"647",name:"SX Network testnet",providers:[{alias:"default",rpcUrl:"https://rpc.toronto.sx.technology"}],symbol:"SX",testnet:!0},{alias:"sx",decimals:18,explorer:{api:{key:{required:!1},url:"https://explorer.sx.technology/api"},browserUrl:"https://explorer.sx.technology/"},id:"416",name:"SX Network",providers:[{alias:"default",rpcUrl:"https://rpc.sx.technology"}],symbol:"SX",testnet:!1},{alias:"taiko-holesky-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://blockscoutapi.hekla.taiko.xyz/api"},browserUrl:"https://blockscoutapi.hekla.taiko.xyz/"},id:"167009",name:"Taiko testnet",providers:[{alias:"default",rpcUrl:"https://rpc.hekla.taiko.xyz"},{alias:"publicnode",rpcUrl:"https://taiko-hekla-rpc.publicnode.com"}],symbol:"ETH",testnet:!0},{alias:"taiko",decimals:18,explorer:{api:{key:{required:!0},url:"https://api.taikoscan.io/api"},browserUrl:"https://taikoscan.io/"},id:"167000",name:"Taiko",providers:[{alias:"default",rpcUrl:"https://rpc.taiko.tools"},{alias:"public",rpcUrl:"https://rpc.mainnet.taiko.xyz"},{alias:"publicnode",rpcUrl:"https://taiko-rpc.publicnode.com"},{alias:"ankr",homepageUrl:"https://ankr.com"},{alias:"drpc",homepageUrl:"https://drpc.org"}],symbol:"ETH",testnet:!1},{alias:"unichain-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://api-sepolia.uniscan.xyz/api"},browserUrl:"https://sepolia.uniscan.xyz/"},id:"1301",name:"Unichain testnet",providers:[{alias:"default",rpcUrl:"https://sepolia.unichain.org"}],symbol:"ETH",testnet:!0},{alias:"world-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!1},url:"https://worldchain-sepolia.explorer.alchemy.com/api"},browserUrl:"https://worldchain-sepolia.explorer.alchemy.com/"},id:"4801",name:"World Chain testnet",providers:[{alias:"default",rpcUrl:"https://worldchain-sepolia.g.alchemy.com/public"}],symbol:"ETH",testnet:!0},{alias:"world",decimals:18,explorer:{api:{key:{required:!0},url:"https://api.worldscan.org/api"},browserUrl:"https://worldscan.org/"},id:"480",name:"World Chain",providers:[{alias:"default",rpcUrl:"https://worldchain-mainnet.g.alchemy.com/public"},{alias:"tenderly",homepageUrl:"https://tenderly.co/"}],symbol:"ETH",testnet:!1},{alias:"x-layer-sepolia-testnet",decimals:18,explorer:{browserUrl:"https://www.okx.com/explorer/xlayer-test/"},id:"195",name:"X Layer testnet",providers:[{alias:"default",rpcUrl:"https://testrpc.xlayer.tech/"},{alias:"okx",rpcUrl:"https://xlayertestrpc.okx.com/"}],symbol:"OKB",testnet:!0},{alias:"x-layer",decimals:18,explorer:{browserUrl:"https://www.okx.com/explorer/xlayer/"},id:"196",name:"X Layer",providers:[{alias:"default",rpcUrl:"https://rpc.xlayer.tech/"},{alias:"ankr",homepageUrl:"https://ankr.com"},{alias:"okx",rpcUrl:"https://xlayerrpc.okx.com/"}],symbol:"OKB",testnet:!1},{alias:"zircuit-sepolia-testnet",decimals:18,explorer:{api:{key:{required:!0},url:"https://explorer.testnet.zircuit.com/api/contractVerifyHardhat"},browserUrl:"https://explorer.testnet.zircuit.com/"},id:"48899",name:"Zircuit testnet",providers:[{alias:"default",rpcUrl:"https://zircuit1-testnet.p2pify.com/"},{alias:"public",rpcUrl:"https://zircuit1-testnet.liquify.com"}],symbol:"ETH",testnet:!0},{alias:"zircuit",decimals:18,explorer:{api:{key:{required:!0},url:"https://explorer.zircuit.com/api/contractVerifyHardhat"},browserUrl:"https://explorer.zircuit.com/"},id:"48900",name:"Zircuit",providers:[{alias:"default",rpcUrl:"https://zircuit1-mainnet.p2pify.com/"},{alias:"public",rpcUrl:"https://zircuit1-mainnet.liquify.com"},{alias:"drpc",homepageUrl:"https://drpc.org"}],symbol:"ETH",testnet:!1},{alias:"zksync",decimals:18,explorer:{browserUrl:"https://explorer.zksync.io/"},hardhatConfigOverrides:{networks:{ethNetwork:"ethereum",verifyURL:"https://zksync2-mainnet-explorer.zksync.io/contract_verification",zksync:!0}},id:"324",name:"zkSync",providers:[{alias:"default",rpcUrl:"https://mainnet.era.zksync.io"}],symbol:"ETH",testnet:!1}]},5220:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chainSchema=t.hardhatConfigOverrides=t.chainProvidersSchema=t.chainProviderSchema=t.chainExplorerSchema=t.chainExplorerAPISchema=t.chainExplorerAPIKeySchema=void 0;var n=r(24239),a=r(8531);t.chainExplorerAPIKeySchema=n.z.object({required:n.z.boolean(),hardhatEtherscanAlias:n.z.string().optional()}),t.chainExplorerAPISchema=n.z.object({key:t.chainExplorerAPIKeySchema,url:n.z.string().url()}),t.chainExplorerSchema=n.z.object({api:t.chainExplorerAPISchema.optional(),browserUrl:n.z.string().url()}),t.chainProviderSchema=n.z.object({alias:n.z.string(),homepageUrl:n.z.string().url().optional(),rpcUrl:n.z.string().url().optional()}).refine((function(e){var t;return null!==(t=e.rpcUrl)&&void 0!==t?t:e.homepageUrl}),{message:"rpcUrl or homepageUrl is required"}),t.chainProvidersSchema=n.z.array(t.chainProviderSchema).superRefine((function(e,t){e.some((function(e){return"default"===e.alias}))||t.addIssue({code:n.z.ZodIssueCode.custom,path:["providers","alias"],message:"a provider with alias 'default' is required"}),(0,a.hasUniqueEntries)(e,"alias")||t.addIssue({code:n.z.ZodIssueCode.custom,path:["providers","alias"],message:"cannot contain duplicate 'alias' values"}),e.forEach((function(e){"default"!==e.alias&&"public"!==e.alias||e.rpcUrl||t.addIssue({code:n.z.ZodIssueCode.custom,path:["providers","rpcUrl"],message:"providers with alias 'default' or 'public' must also have an 'rpcUrl'"})}))})),t.hardhatConfigOverrides=n.z.object({networks:n.z.record(n.z.string(),n.z.any()).optional()}),t.chainSchema=n.z.object({alias:n.z.string(),decimals:n.z.number().positive(),explorer:t.chainExplorerSchema,hardhatConfigOverrides:t.hardhatConfigOverrides.optional(),id:n.z.string().regex(/^\d+$/),name:n.z.string(),providers:t.chainProvidersSchema,skipProviderCheck:n.z.boolean().optional(),symbol:n.z.string().min(1).max(6),testnet:n.z.boolean()})},8531:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasUniqueEntries=function(e,t){var r=new Set;return 0===e.filter((function(e){if(!e[t])throw new Error("unknown field:".concat(t," on array item"));return!!r.has(e[t])||(r.add(e[t]),!1)})).length}},74875:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUpperSnakeCase=function(e){return e.replace(/[^\d\sA-Za-z]+/g," ").replace(/\s+/g," ").trim().split(" ").join("_").toUpperCase()}},98859:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyAirnodeXpub=t.deriveHdNodeFromXpub=t.deriveBeaconSetId=t.deriveBeaconId=t.deriveSponsorWallet=t.fromBytes32String=t.toBytes32String=t.deriveAirnodeXpub=t.deriveEndpointId=t.deriveTemplateIdV1=t.deriveTemplateIdV0=t.PROTOCOL_IDS=void 0,t.deriveWalletPathFromSponsorAddress=a,t.deriveSponsorWalletAddress=function(e,r,n,i){const o=i?(0,t.verifyAirnodeXpub)(e,i):(0,t.deriveHdNodeFromXpub)(e),s=a(r,n);return o.derivePath(s).address};const n=r(44024);t.PROTOCOL_IDS={RRP:"1",PSP:"2",RELAYED_RRP:"3",RELAYED_PSP:"4",AIRSEEKER:"5"};t.deriveTemplateIdV0=(e,t,r)=>n.ethers.utils.solidityKeccak256(["address","bytes32","bytes"],[e,t,r]);t.deriveTemplateIdV1=(e,t)=>n.ethers.utils.solidityKeccak256(["bytes32","bytes"],[e,t]);t.deriveEndpointId=(e,t)=>n.ethers.utils.keccak256(n.ethers.utils.defaultAbiCoder.encode(["string","string"],[e,t]));function a(e,t){const r=n.ethers.BigNumber.from(e),a=[];for(let n=0;n<6;n++){const e=r.shr(31*n);a.push(e.mask(31).toString())}return`${t}/${a.join("/")}`}t.deriveAirnodeXpub=e=>n.ethers.utils.HDNode.fromMnemonic(e).derivePath("m/44'/60'/0'").neuter().extendedKey;t.toBytes32String=e=>n.ethers.utils.formatBytes32String(e);t.fromBytes32String=e=>n.ethers.utils.parseBytes32String(e);t.deriveSponsorWallet=(e,t,r)=>{const i=n.ethers.utils.getAddress(t.slice(0,42));return n.ethers.Wallet.fromMnemonic(e,`m/44'/60'/0'/${a(i,r)}`)};t.deriveBeaconId=(e,t)=>n.ethers.utils.solidityKeccak256(["address","bytes32"],[e,t]);t.deriveBeaconSetId=e=>n.ethers.utils.keccak256(n.ethers.utils.defaultAbiCoder.encode(["bytes32[]"],[e]));t.deriveHdNodeFromXpub=e=>n.ethers.utils.HDNode.fromExtendedKey(e);t.verifyAirnodeXpub=(e,r)=>{const n=(0,t.deriveHdNodeFromXpub)(e);if(r!==n.derivePath("0/0").address)throw new Error(`xpub does not belong to Airnode: ${r}`);return n}},2405:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(2472),t),a(r(8466),t)},8466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicSchema=t.ethUnitsSchema=t.chainIdSchema=t.keccak256HashSchema=t.addressSchema=t.hexSchema=void 0;const n=r(24557),a=r(44024),i=r(24239);t.hexSchema=i.z.string().regex(/^0x[\dA-Fa-f]+$/,"Must be a valid hex string"),t.addressSchema=i.z.string().transform(((e,t)=>{const r=(0,n.goSync)((()=>a.ethers.utils.getAddress(e)));return r.success?r.data:(t.addIssue({code:i.z.ZodIssueCode.custom,message:"Invalid EVM address"}),i.z.NEVER)})),t.keccak256HashSchema=i.z.string().regex(/^0x[\dA-Fa-f]{64}$/,"Must be a valid EVM keccak256 hash").transform((e=>e)),t.chainIdSchema=i.z.string().regex(/^\d+$/,"Must be a valid chain ID").refine((e=>Number(e)>0),"Chain ID must be greater than 0"),t.ethUnitsSchema=i.z.union([i.z.literal("wei"),i.z.literal("kwei"),i.z.literal("mwei"),i.z.literal("gwei"),i.z.literal("szabo"),i.z.literal("finney"),i.z.literal("ether")]),t.mnemonicSchema=i.z.string().refine((e=>a.ethers.utils.isValidMnemonic(e)),"Invalid mnemonic")},15038:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extractAxiosErrorData=void 0,t.executeRequest=async function(e,r){const{url:n,method:s,body:c,headers:l={},queryParams:u={},timeout:d=o}=e,p=await(0,a.go)((async()=>(0,i.default)({url:n,method:s,headers:l,data:c,params:u,timeout:d})),r);if(!p.success)return{success:!1,errorData:(0,t.extractAxiosErrorData)(p.error),data:void 0,statusCode:p.error.status};const f=p.data;return{success:!0,errorData:void 0,data:f.data,statusCode:f.status}};const a=r(24557),i=n(r(52064)),o=1e4;t.extractAxiosErrorData=e=>({response:e.response?.data,message:e.message,code:e.code})},62522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runInLoop=void 0;const n=r(24557),a=r(31579);t.runInLoop=async(e,t)=>{const{logger:r,logLabel:i,frequencyMs:o=0,minWaitTimeMs:s=0,maxWaitTimeMs:c,softTimeoutMs:l,hardTimeoutMs:u,enabled:d=!0,initialDelayMs:p}=t;if(l&&u&&u{const a=await(0,n.go)(e,u?{totalTimeoutMs:u}:{});a.success||r.error("Unexpected runInLoop error",a.error);const i=performance.now()-t;return i>=l?r.warn("Execution took longer than the interval",{executionTimeMs:i}):r.info("Execution finished",{executionTimeMs:i}),!1!==a.data?.shouldContinueRunning})))break}else r.info("Loop execution is disabled.");const f=Math.max(o-(performance.now()-t),0),h=Math.max(s,f),g=c?Math.min(h,c):h;g>0&&await(0,a.sleep)(g)}}},75997:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(2405),t),a(r(15038),t),a(r(62522),t),a(r(31579),t)},31579:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomBytes32=t.sleep=void 0;const n=r(44024);t.sleep=async e=>new Promise((t=>setTimeout(t,e)));t.generateRandomBytes32=()=>n.ethers.utils.hexlify(n.ethers.utils.randomBytes(32))},87392:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.dapis=t.dapiManagementMerkleTreeData=t.api3Chains=t.api3ApiIntegrations=void 0,t.deriveSponsorWalletAddress=function(e){const t=u.ethers.keccak256(e),r=u.ethers.getAddress(t.slice(0,42));return(0,l.deriveHdNodeFromXpub)(d.airseekerXPub).derivePath((0,l.deriveWalletPathFromSponsorAddress)(r,l.PROTOCOL_IDS.AIRSEEKER)).address},t.findChainByAlias=m,t.getChains=function(){return p.default.map((e=>{const{id:t}=m(e.alias);return{...e,id:t}}))};const s=i(r(69611));t.api3ApiIntegrations=s;const c=i(r(85163));t.api3Chains=c;const l=r(75997),u=r(50039),d=r(71430),p=o(r(87501)),f=o(r(17989));t.dapiManagementMerkleTreeData=f.default;const h=o(r(11492)),g=r(76261).DApiElementArraySchema.parse(h.default);function m(e){const t=c.CHAINS.find((t=>t.alias.toLowerCase()===e.toLowerCase()));if(!t)throw new Error(`Chain with alias ${e} not found in chains exported by @api3/chains package`);return t}t.dapis=g},76261:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.DApiElementArraySchema=t.DApiElementSchema=void 0;const o=i(r(24239));t.DApiElementSchema=o.object({name:o.string(),metadata:o.object({prefix:o.enum(["$"," ",""]),category:o.enum(["Commodities","Cryptocurrency","Equities","Forex","LST & LRT Exchange Rates","Stablecoin"]),description:o.string().optional()}).strict(),providers:o.array(o.enum(["ankr-mock","ankr","blastapi-mock","blastapi","blocksize","coingecko-mock","coingecko","coinmetrics-mock","coinmetrics","coinpaprika-mock","coinpaprika","drpc-mock","drpc","dxfeed-mock","dxfeed","finage-mock","finage","kaiko-mock","kaiko","ncfx-mock","ncfx","nodary-mock","nodary","twelvedata-mock","twelvedata","shiftmarkets"])),stage:o.enum(["active","deprecated","surveying","retired"])}).strict().superRefine(((e,t)=>{let{name:r,metadata:n}=e;"LST & LRT Exchange Rates"===n.category&&void 0===n.description&&t.addIssue({code:o.ZodIssueCode.custom,message:`Description is required for dAPIs with category 'LST & LRT Exchange Rates', but it is missing for dAPI '${r}'`,path:["metadata","description"]})})),t.DApiElementArraySchema=o.array(t.DApiElementSchema)},24557:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GoWrappedError:()=>a,assertGoError:()=>o,assertGoSuccess:()=>i,fail:()=>c,go:()=>f,goSync:()=>u,success:()=>s});var n=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};class a extends Error{constructor(e){super(""+e),this.reason=e}}function i(e){if(!e.success)throw e.error}function o(e){if(e.success)throw new Error("Assertion failed. Expected error, but no error was thrown")}const s=e=>({success:!0,data:e,error:void 0}),c=e=>({success:!1,data:void 0,error:e}),l=e=>e instanceof Error?c(e):c(new a(e)),u=e=>{try{return s(e())}catch(t){return l(t)}},d=e=>{let t,r;return{promise:new Promise((n=>{t=n,r=setTimeout(n,e)})),cancel:()=>{clearTimeout(r),t()}}},p=(e,t)=>n(void 0,void 0,void 0,(function*(){let r=null;try{if(void 0===t)return s(yield e());{r=(e=>{let t,r;return{promise:new Promise(((n,a)=>{t=a,r=setTimeout((()=>a("Operation timed out")),e)})),cancel:()=>{clearTimeout(r),t()}}})(t);const n=yield Promise.race([e(),r.promise]);return r.cancel(),s(n)}}catch(n){return(null===r||void 0===r?void 0:r.cancel)&&r.cancel(),l(n)}})),f=(e,t)=>n(void 0,void 0,void 0,(function*(){if(!t)return p(e);const{retries:r,attemptTimeoutMs:a,delay:i,totalTimeoutMs:o,onAttemptError:s}=t;let l,f=!1,h=null,g=new Promise((e=>{}));void 0!==o&&(h=d(o),g=h.promise.then((()=>(f=!0,c(new Error("Full timeout exceeded"))))));const m=yield Promise.race([n(void 0,void 0,void 0,(function*(){const t=r?r+1:1;let n=null;for(let r=0;rs(g))),g.success)return g;if(n=g,i&&r!==t-1)switch(i.type){case"random":{const{minDelayMs:e,maxDelayMs:t}=i;l=d((o=e,c=t,Math.random()*(c-o)+o)),yield l.promise;break}case"static":{const{delayMs:e}=i;l=d(e),yield l.promise;break}}}var o,c;return n})),g]);return(null===h||void 0===h?void 0:h.cancel)&&h.cancel(),(null===l||void 0===l?void 0:l.cancel)&&l.cancel(),m}))},81648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;const n=r(12808),a=r(17838),i=r(54267);function o(e){return{hash:e,hmac:function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o(0,i.weierstrass)({...e,...o(t)});return Object.freeze({...r(t),create:r})}},46956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;const n=r(91953),a=r(37914),i=BigInt(0),o=BigInt(1);t.wNAF=function(e,t){const r=(e,t)=>{const r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,a=t;for(;r>i;)r&o&&(n=n.add(a)),a=a.double(),r>>=o;return n},precomputeWindow(e,t){const{windows:r,windowSize:a}=n(t),i=[];let o=e,s=o;for(let n=0;n>=f,n>c&&(n-=p,i+=o);const s=t,h=t+Math.abs(n)-1,g=e%2!==0,m=n<0;0===n?u=u.add(r(g,a[s])):l=l.add(r(m,a[h]))}return{p:l,f:u}},wNAFCached(e,t,r,n){const a=e._WINDOW_SIZE||1;let i=t.get(e);return i||(i=this.precomputeWindow(e,a),1!==a&&t.set(e,n(i))),this.wNAF(a,i,r)}}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,a.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},55951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;const n=r(91953),a=r(37914);const i=a.bytesToNumberBE;function o(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e,t){const r=new Uint8Array(e.length);for(let n=0;n255&&(t=n((0,a.concatBytes)((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:i,blockLen:u}=n,d=Math.ceil(r/i);if(d>255)throw new Error("Invalid xmd length");const p=(0,a.concatBytes)(t,o(t.length,1)),f=o(0,u),h=o(r,2),g=new Array(d),m=n((0,a.concatBytes)(f,e,h,o(0,1),p));g[0]=n((0,a.concatBytes)(m,o(1,1),p));for(let c=1;c<=d;c++){const e=[s(m,g[c-1]),o(c+1,1),p];g[c]=n((0,a.concatBytes)(...e))}return(0,a.concatBytes)(...g).slice(0,r)}function d(e,t,r,n,i){if(c(e),c(t),l(r),t.length>255){const e=Math.ceil(2*n/8);t=i.create({dkLen:e}).update((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:r}).update(e).update(o(r,2)).update(t).update(o(t.length,1)).digest()}function p(e,t,r){(0,a.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:s,m:p,hash:f,expand:h,DST:g}=r;c(e),l(t);const m=function(e){if(e instanceof Uint8Array)return e;if("string"===typeof e)return(0,a.utf8ToBytes)(e);throw new Error("DST must be Uint8Array or string")}(g),b=o.toString(2).length,y=Math.ceil((b+s)/8),v=t*p*y;let E;if("xmd"===h)E=u(e,m,v,f);else if("xof"===h)E=d(e,m,v,s,f);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');E=e}const S=new Array(t);for(let a=0;aArray.from(e).reverse()));return(t,n)=>{const[a,i,o,s]=r.map((r=>r.reduce(((r,n)=>e.add(e.mul(r,t),n)))));return t=e.div(a,i),n=e.mul(n,e.div(o,s)),{x:t,y:n}}},t.createHasher=function(e,t,r){if("function"!==typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(n,a){const i=p(n,2,{...r,DST:r.DST,...a}),o=e.fromAffine(t(i[0])),s=e.fromAffine(t(i[1])),c=o.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,a){const i=p(n,1,{...r,DST:r.encodeDST,...a}),o=e.fromAffine(t(i[0])).clearCofactor();return o.assertValidity(),o}}}},91953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapHashToField=t.getMinHashLength=t.getFieldBytesLength=t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;const n=r(37914),a=BigInt(0),i=BigInt(1),o=BigInt(2),s=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);BigInt(9),BigInt(16);function d(e,t){const r=e%t;return r>=a?r:t+r}function p(e,t,r){if(r<=a||t 0");if(r===i)return a;let n=i;for(;t>a;)t&i&&(n=n*e%r),e=e*e%r,t>>=i;return n}function f(e,t){if(e===a||t<=a)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),n=t,o=a,s=i,c=i,l=a;for(;r!==a;){const e=n/r,t=n%r,a=o-c*e,i=s-l*e;n=r,r=t,o=c,s=l,c=a,l=i}if(n!==i)throw new Error("invert: does not exist");return d(o,t)}function h(e){const t=(e-i)/o;let r,n,s;for(r=e-i,n=0;r%o===a;r/=o,n++);for(s=o;sa;)n*=n,n%=r;return n},t.invert=f,t.tonelliShanks=h,t.FpSqrt=g;t.isNegativeLE=(e,t)=>(d(e,t)&i)===i;const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(e,t,r){if(r 0");if(r===a)return e.ONE;if(r===i)return t;let n=e.ONE,o=t;for(;r>a;)r&i&&(n=e.mul(n,o)),o=e.sqr(o),r>>=i;return n}function y(e,t){const r=new Array(t.length),n=t.reduce(((t,n,a)=>e.is0(n)?t:(r[a]=t,e.mul(t,n))),e.ONE),a=e.inv(n);return t.reduceRight(((t,n,a)=>e.is0(n)?t:(r[a]=e.mul(t,r[a]),e.mul(t,n))),a),r}function v(e,t){const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function E(e){if("bigint"!==typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function S(e){const t=E(e);return t+Math.ceil(t/2)}t.validateField=function(e){const t=m.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},t.FpPow=b,t.FpInvertBatch=y,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"===typeof r?f(r,e.ORDER):e.inv(r))},t.FpIsSquare=function(e){const t=(e.ORDER-i)/o;return r=>{const n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},t.nLength=v,t.Field=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=a)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:c}=v(e,t);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=g(e),u=Object.freeze({ORDER:e,BITS:s,BYTES:c,MASK:(0,n.bitMask)(s),ZERO:a,ONE:i,create:t=>d(t,e),isValid:t=>{if("bigint"!==typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return a<=t&&te===a,isOdd:e=>(e&i)===i,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>b(u,e,t),div:(t,r)=>d(t*f(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>f(t,e),sqrt:o.sqrt||(e=>l(u,e)),invertBatch:e=>y(u,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(u)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=(e=(0,n.ensureBytes)("privateHash",e)).length,o=v(t).nByteLength+8;if(o<24||a1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${a}`);return d(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=E,t.getMinHashLength=S,t.mapHashToField=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=e.length,o=E(t),s=S(t);if(a<16||a1024)throw new Error(`expected ${s}-1024 bytes of input, got ${a}`);const c=d(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-i)+i;return r?(0,n.numberToBytesLE)(c,o):(0,n.numberToBytesBE)(c,o)}},37914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;const r=BigInt(0),n=BigInt(1),a=BigInt(2),i=e=>e instanceof Uint8Array,o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e){if(!i(e))throw new Error("Uint8Array expected");let t="";for(let r=0;re+t.length),0));let a=0;return t.forEach((e=>{if(!i(e))throw new Error("Uint8Array expected");n.set(e,a),a+=e.length})),n}t.bytesToHex=s,t.numberToHexUnpadded=c,t.hexToNumber=l,t.hexToBytes=u,t.bytesToNumberBE=function(e){return l(s(e))},t.bytesToNumberLE=function(e){if(!i(e))throw new Error("Uint8Array expected");return l(s(Uint8Array.from(e).reverse()))},t.numberToBytesBE=d,t.numberToBytesLE=function(e,t){return d(e,t).reverse()},t.numberToVarBytesBE=function(e){return u(c(e))},t.ensureBytes=function(e,t,r){let n;if("string"===typeof t)try{n=u(t)}catch(o){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${o}`)}else{if(!i(t))throw new Error(`${e} must be hex string or Uint8Array`);n=Uint8Array.from(t)}const a=n.length;if("number"===typeof r&&a!==r)throw new Error(`${e} expected ${r} bytes, got ${a}`);return n},t.concatBytes=p,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;rr;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n};t.bitSet=(e,t,a)=>e|(a?n:r)<(a<new Uint8Array(e),h=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,r){if("number"!==typeof e||e<2)throw new Error("hashLen must be a number");if("number"!==typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!==typeof r)throw new Error("hmacFn must be a function");let n=f(e),a=f(e),i=0;const o=()=>{n.fill(1),a.fill(0),i=0},s=function(){for(var e=arguments.length,t=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:f();a=s(h([0]),e),n=s(),0!==e.length&&(a=s(h([1]),e),n=s())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e{let r;for(o(),c(e);!(r=t(l()));)c();return o(),r}};const g={bigint:e=>"bigint"===typeof e,function:e=>"function"===typeof e,boolean:e=>"boolean"===typeof e,string:e=>"string"===typeof e,stringOrUint8Array:e=>"string"===typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"===typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=(t,r,n)=>{const a=g[r];if("function"!==typeof a)throw new Error(`Invalid validator "${r}", expected function`);const i=e[t];if((!n||void 0!==i)&&!a(i,e))throw new Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(const[a,i]of Object.entries(t))n(a,i,!1);for(const[a,i]of Object.entries(r))n(a,i,!0);return e}},54267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;const n=r(91953),a=r(37914),i=r(37914),o=r(46956);const{bytesToNumberBE:s,hexToBytes:c}=a;t.DER={Err:class extends Error{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}},_parseInt(e){const{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");const n=e[1],a=e.subarray(2,n+2);if(!n||a.length!==n)throw new r("Invalid signature integer: wrong length");if(128&a[0])throw new r("Invalid signature integer: negative");if(0===a[0]&&!(128&a[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:s(a),l:e.subarray(n+2)}},toSig(e){const{Err:r}=t.DER,n="string"===typeof e?c(e):e;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let a=n.length;if(a<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==a-2)throw new r("Invalid signature: incorrect length");const{d:i,l:o}=t.DER._parseInt(n.subarray(2)),{d:s,l:l}=t.DER._parseInt(o);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:i,s:s}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),a=t(r(e.r)),i=n.length/2,o=a.length/2,s=r(i),c=r(o);return`30${r(o+i+4)}02${c}${a}02${s}${n}`}};const l=BigInt(0),u=BigInt(1),d=BigInt(2),p=BigInt(3),f=BigInt(4);function h(e){const t=function(e){const t=(0,o.validateBasic)(e);a.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!==typeof r||"bigint"!==typeof r.beta||"function"!==typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,s=t.toBytes||((e,t,n)=>{const i=t.toAffine();return a.concatBytes(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),c=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){const{a:n,b:a}=t,i=r.sqr(e),o=r.mul(i,e);return r.add(r.add(o,r.mul(e,n)),a)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw new Error("bad generator point: equation left != right");function f(e){return"bigint"===typeof e&&lr.eql(e,r.ZERO);return a(t)&&a(n)?y.ZERO:new y(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(y.fromAffine)}static fromHex(e){const t=y.fromAffine(c((0,i.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(g(e))}_setWindowSize(e){this._WINDOW_SIZE=e,m.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw new Error("bad point: x or y not FE");const a=r.sqr(n),i=d(e);if(!r.eql(a,i))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){b(e);const{px:t,py:n,pz:a}=this,{px:i,py:o,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(i,a)),l=r.eql(r.mul(n,s),r.mul(o,a));return c&&l}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:n}=t,a=r.mul(n,p),{px:i,py:o,pz:s}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(i,i),f=r.mul(o,o),h=r.mul(s,s),g=r.mul(i,o);return g=r.add(g,g),u=r.mul(i,s),u=r.add(u,u),c=r.mul(e,u),l=r.mul(a,h),l=r.add(c,l),c=r.sub(f,l),l=r.add(f,l),l=r.mul(c,l),c=r.mul(g,c),u=r.mul(a,u),h=r.mul(e,h),g=r.sub(d,h),g=r.mul(e,g),g=r.add(g,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,h),d=r.mul(d,g),l=r.add(l,d),h=r.mul(o,s),h=r.add(h,h),d=r.mul(h,g),c=r.sub(c,d),u=r.mul(h,f),u=r.add(u,u),u=r.add(u,u),new y(c,l,u)}add(e){b(e);const{px:n,py:a,pz:i}=this,{px:o,py:s,pz:c}=e;let l=r.ZERO,u=r.ZERO,d=r.ZERO;const f=t.a,h=r.mul(t.b,p);let g=r.mul(n,o),m=r.mul(a,s),v=r.mul(i,c),E=r.add(n,a),S=r.add(o,s);E=r.mul(E,S),S=r.add(g,m),E=r.sub(E,S),S=r.add(n,i);let w=r.add(o,c);return S=r.mul(S,w),w=r.add(g,v),S=r.sub(S,w),w=r.add(a,i),l=r.add(s,c),w=r.mul(w,l),l=r.add(m,v),w=r.sub(w,l),d=r.mul(f,S),l=r.mul(h,v),d=r.add(l,d),l=r.sub(m,d),d=r.add(m,d),u=r.mul(l,d),m=r.add(g,g),m=r.add(m,g),v=r.mul(f,v),S=r.mul(h,S),m=r.add(m,v),v=r.sub(g,v),v=r.mul(f,v),S=r.add(S,v),g=r.mul(m,S),u=r.add(u,g),g=r.mul(w,S),l=r.mul(E,l),l=r.sub(l,g),g=r.mul(E,m),d=r.mul(w,d),d=r.add(d,g),new y(l,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return E.wNAFCached(this,m,e,(e=>{const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(y.fromAffine)}))}multiplyUnsafe(e){const n=y.ZERO;if(e===l)return n;if(h(e),e===u)return this;const{endo:a}=t;if(!a)return E.unsafeLadder(this,e);let{k1neg:i,k1:o,k2neg:s,k2:c}=a.splitScalar(e),d=n,p=n,f=this;for(;o>l||c>l;)o&u&&(d=d.add(f)),c&u&&(p=p.add(f)),f=f.double(),o>>=u,c>>=u;return i&&(d=d.negate()),s&&(p=p.negate()),p=new y(r.mul(p.px,a.beta),p.py,p.pz),d.add(p)}multiply(e){h(e);let n,a,i=e;const{endo:o}=t;if(o){const{k1neg:e,k1:t,k2neg:s,k2:c}=o.splitScalar(i);let{p:l,f:u}=this.wNAF(t),{p:d,f:p}=this.wNAF(c);l=E.constTimeNegate(e,l),d=E.constTimeNegate(s,d),d=new y(r.mul(d.px,o.beta),d.py,d.pz),n=l.add(d),a=u.add(p)}else{const{p:e,f:t}=this.wNAF(i);n=e,a=t}return y.normalizeZ([n,a])[0]}multiplyAndAddUnsafe(e,t,r){const n=y.BASE,a=(e,t)=>t!==l&&t!==u&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),i=a(this,t).add(a(e,r));return i.is0()?void 0:i}toAffine(e){const{px:t,py:n,pz:a}=this,i=this.is0();null==e&&(e=i?r.ONE:r.inv(a));const o=r.mul(t,e),s=r.mul(n,e),c=r.mul(a,e);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:o,y:s}}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===u)return!0;if(r)return r(y,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===u?this:r?r(y,this):this.multiplyUnsafe(t.h)}toRawBytes(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertValidity(),s(y,this,e)}toHex(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return a.bytesToHex(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);const v=t.nBitLength,E=(0,o.wNAF)(y,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:g,weierstrassEquation:d,isWithinCurveOrder:f}}function g(e,t){const r=e.ORDER;let n=l;for(let p=r-u;p%d===l;p/=d)n+=u;const a=n,i=d<{let n=m,i=e.pow(r,h),o=e.sqr(i);o=e.mul(o,r);let s=e.mul(t,o);s=e.pow(s,c),s=e.mul(s,i),i=e.mul(s,r),o=e.mul(s,t);let l=e.mul(o,i);s=e.pow(l,g);let p=e.eql(s,e.ONE);i=e.mul(o,b),s=e.mul(l,n),o=e.cmov(i,o,p),l=e.cmov(s,l,p);for(let c=a;c>u;c--){let t=c-d;t=d<{let i=e.sqr(a);const o=e.mul(t,a);i=e.mul(i,o);let s=e.pow(i,r);s=e.mul(s,o);const c=e.mul(s,n),l=e.mul(e.sqr(s),a),u=e.eql(l,t);return{isValid:u,value:e.cmov(c,s,u)}}}return y}t.weierstrassPoints=h,t.weierstrass=function(e){const r=function(e){const t=(0,o.validateBasic)(e);return a.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:c}=r,d=s.BYTES+1,p=2*s.BYTES+1;function f(e){return n.mod(e,c)}function g(e){return n.invert(e,c)}const{ProjectivePoint:m,normPrivateKeyToScalar:b,weierstrassEquation:y,isWithinCurveOrder:v}=h({...r,toBytes(e,t,r){const n=t.toAffine(),i=s.toBytes(n.x),o=a.concatBytes;return r?o(Uint8Array.from([t.hasEvenY()?2:3]),i):o(Uint8Array.from([4]),i,s.toBytes(n.y))},fromBytes(e){const t=e.length,r=e[0],n=e.subarray(1);if(t!==d||2!==r&&3!==r){if(t===p&&4===r){return{x:s.fromBytes(n.subarray(0,s.BYTES)),y:s.fromBytes(n.subarray(s.BYTES,2*s.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${d} compressed bytes or ${p} uncompressed bytes`)}{const e=a.bytesToNumberBE(n);if(!(l<(i=e)&&ia.bytesToHex(a.numberToBytesBE(e,r.nByteLength));function S(e){return e>c>>u}const w=(e,t,r)=>a.bytesToNumberBE(e.slice(t,r));class x{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){const t=r.nByteLength;return e=(0,i.ensureBytes)("compactSignature",e,2*t),new x(w(e,0,t),w(e,t,2*t))}static fromDER(e){const{r:r,s:n}=t.DER.toSig((0,i.ensureBytes)("DER",e));return new x(r,n)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new x(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:n,recovery:a}=this,o=D((0,i.ensureBytes)("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw new Error("recovery id invalid");const c=2===a||3===a?t+r.n:t;if(c>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=0===(1&a)?"02":"03",u=m.fromHex(l+E(c)),d=g(c),p=f(-o*d),h=f(n*d),b=m.BASE.multiplyAndAddUnsafe(u,p,h);if(!b)throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return S(this.s)}normalizeS(){return this.hasHighS()?new x(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return a.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return a.hexToBytes(this.toCompactHex())}toCompactHex(){return E(this.r)+E(this.s)}}const A={isValidPrivateKey(e){try{return b(e),!0}catch(t){return!1}},normPrivateKeyToScalar:b,randomPrivateKey:()=>{const e=n.getMinHashLength(r.n);return n.mapHashToField(r.randomBytes(e),r.n)},precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}};function T(e){const t=e instanceof Uint8Array,r="string"===typeof e,n=(t||r)&&e.length;return t?n===d||n===p:r?n===2*d||n===2*p:e instanceof m}const k=r.bits2int||function(e){const t=a.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},D=r.bits2int_modN||function(e){return f(k(e))},_=a.bitMask(r.nBitLength);function I(e){if("bigint"!==typeof e)throw new Error("bigint expected");if(!(l<=e&&e<_))throw new Error(`bigint expected < 2^${r.nBitLength}`);return a.numberToBytesBE(e,r.nByteLength)}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P;if(["recovered","canonical"].some((e=>e in n)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=r;let{lowS:d,prehash:p,extraEntropy:h}=n;null==d&&(d=!0),e=(0,i.ensureBytes)("msgHash",e),p&&(e=(0,i.ensureBytes)("prehashed msgHash",o(e)));const y=D(e),E=b(t),w=[I(E),I(y)];if(null!=h){const e=!0===h?c(s.BYTES):h;w.push((0,i.ensureBytes)("extraEntropy",e))}const A=a.concatBytes(...w),T=y;return{seed:A,k2sig:function(e){const t=k(e);if(!v(t))return;const r=g(t),n=m.BASE.multiply(t).toAffine(),a=f(n.x);if(a===l)return;const i=f(r*f(T+a*E));if(i===l)return;let o=(n.x===a?0:2)|Number(n.y&u),s=i;return d&&S(i)&&(s=function(e){return S(e)?f(-e):e}(i),o^=1),new x(a,s,o)}}}const P={lowS:r.lowS,prehash:!1},C={lowS:r.lowS,prehash:!1};return m.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return m.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(T(e))throw new Error("first arg must be private key");if(!T(t))throw new Error("second arg must be public key");return m.fromHex(t).multiply(b(e)).toRawBytes(r)},sign:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P;const{seed:i,k2sig:o}=R(e,t,n),s=r;return a.createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(i,o)},verify:function(e,n,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C;const s=e;if(n=(0,i.ensureBytes)("msgHash",n),a=(0,i.ensureBytes)("publicKey",a),"strict"in o)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:l}=o;let u,d;try{if("string"===typeof s||s instanceof Uint8Array)try{u=x.fromDER(s)}catch(w){if(!(w instanceof t.DER.Err))throw w;u=x.fromCompact(s)}else{if("object"!==typeof s||"bigint"!==typeof s.r||"bigint"!==typeof s.s)throw new Error("PARSE");{const{r:e,s:t}=s;u=new x(e,t)}}d=m.fromHex(a)}catch(A){if("PARSE"===A.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;l&&(n=r.hash(n));const{r:p,s:h}=u,b=D(n),y=g(h),v=f(b*y),E=f(p*y),S=m.BASE.multiplyAndAddUnsafe(d,v,E)?.toAffine();return!!S&&f(S.x)===p},ProjectivePoint:m,Signature:x,utils:A}},t.SWUFpSqrtRatio=g,t.mapToCurveSimpleSWU=function(e,t){if(n.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=g(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let a,i,o,s,c,l,u,d;a=e.sqr(n),a=e.mul(a,t.Z),i=e.sqr(a),i=e.add(i,a),o=e.add(i,e.ONE),o=e.mul(o,t.B),s=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),s=e.mul(s,t.A),i=e.sqr(o),l=e.sqr(s),c=e.mul(l,t.A),i=e.add(i,c),i=e.mul(i,o),l=e.mul(l,s),c=e.mul(l,t.B),i=e.add(i,c),u=e.mul(a,o);const{isValid:p,value:f}=r(i,l);d=e.mul(a,n),d=e.mul(d,f),u=e.cmov(u,o,p),d=e.cmov(d,f,p);const h=e.isOdd(n)===e.isOdd(d);return d=e.cmov(e.neg(d),d,h),u=e.div(u,s),{x:u,y:d}}}},50236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const n=r(30884),a=r(17838),i=r(91953),o=r(54267),s=r(37914),c=r(55951),l=r(81648),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),p=BigInt(1),f=BigInt(2),h=(e,t)=>(e+t/f)/t;function g(e){const t=u,r=BigInt(3),n=BigInt(6),a=BigInt(11),o=BigInt(22),s=BigInt(23),c=BigInt(44),l=BigInt(88),d=e*e*e%t,p=d*d*e%t,h=(0,i.pow2)(p,r,t)*p%t,g=(0,i.pow2)(h,r,t)*p%t,b=(0,i.pow2)(g,f,t)*d%t,y=(0,i.pow2)(b,a,t)*b%t,v=(0,i.pow2)(y,o,t)*y%t,E=(0,i.pow2)(v,c,t)*v%t,S=(0,i.pow2)(E,l,t)*E%t,w=(0,i.pow2)(S,c,t)*v%t,x=(0,i.pow2)(w,r,t)*p%t,A=(0,i.pow2)(x,s,t)*y%t,T=(0,i.pow2)(A,n,t)*d%t,k=(0,i.pow2)(T,f,t);if(!m.eql(m.sqr(k),e))throw new Error("Cannot find square root");return k}const m=(0,i.Field)(u,void 0,void 0,{sqrt:g});t.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=d,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-p*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,s=BigInt("0x100000000000000000000000000000000"),c=h(o*e,t),l=h(-n*e,t);let u=(0,i.mod)(e-c*r-l*a,t),f=(0,i.mod)(-c*n-l*o,t);const g=u>s,m=f>s;if(g&&(u=t-u),m&&(f=t-f),u>s||f>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:u,k2neg:m,k2:f}}}},n.sha256);const b=BigInt(0),y=e=>"bigint"===typeof e&&be.charCodeAt(0))));t=(0,s.concatBytes)(r,r),v[e]=t}for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;ie.toRawBytes(!0).slice(1),w=e=>(0,s.numberToBytesBE)(e,32),x=e=>(0,i.mod)(e,u),A=e=>(0,i.mod)(e,d),T=t.secp256k1.ProjectivePoint;function k(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=T.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:A(-r),bytes:S(n)}}function D(e){if(!y(e))throw new Error("bad x: need 0 < x < p");const t=x(e*e);let r=g(x(t*e+BigInt(7)));r%f!==b&&(r=x(-r));const n=new T(e,r,p);return n.assertValidity(),n}function _(){for(var e=arguments.length,t=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:(0,a.randomBytes)(32);const n=(0,s.ensureBytes)("message",e),{bytes:i,scalar:o}=k(t),c=(0,s.ensureBytes)("auxRand",r,32),l=w(o^(0,s.bytesToNumberBE)(E("BIP0340/aux",c))),u=E("BIP0340/nonce",l,i,n),d=A((0,s.bytesToNumberBE)(u));if(d===b)throw new Error("sign failed: k is zero");const{bytes:p,scalar:f}=k(d),h=_(p,i,n),g=new Uint8Array(64);if(g.set(p,0),g.set(w(A(f+h*o)),32),!P(g,n,i))throw new Error("sign: Invalid signature produced");return g}function P(e,t,r){const n=(0,s.ensureBytes)("signature",e,64),a=(0,s.ensureBytes)("message",t),i=(0,s.ensureBytes)("publicKey",r,32);try{const e=D((0,s.bytesToNumberBE)(i)),t=(0,s.bytesToNumberBE)(n.subarray(0,32));if(!y(t))return!1;const r=(0,s.bytesToNumberBE)(n.subarray(32,64));if(!("bigint"===typeof(u=r)&&b(0,c.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),O=(()=>(0,o.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))(),U=(()=>(0,c.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:r}=O(m.create(e[0]));return C(t,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}))();t.hashToCurve=U.hashToCurve,t.encodeToCurve=U.encodeToCurve},35292:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=o,t.createCurve=function(e,t){const r=t=>(0,i.weierstrass)({...e,...o(t)});return Object.freeze({...r(t),create:r})};const n=r(54156),a=r(92330),i=r(22391);function o(e){return{hash:e,hmac:function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){const r=(e,t)=>{const r=t.negate();return e?r:t},n=e=>{if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error(`Wrong window size=${e}, should be [1..${t}]`)},a=e=>{n(e);return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1)}};return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,a=t;for(;r>i;)r&o&&(n=n.add(a)),a=a.double(),r>>=o;return n},precomputeWindow(e,t){const{windows:r,windowSize:n}=a(t),i=[];let o=e,s=o;for(let a=0;a>=f,a>c&&(a-=p,i+=o);const s=t,h=t+Math.abs(a)-1,g=e%2!==0,m=a<0;0===a?u=u.add(r(g,n[s])):l=l.add(r(m,n[h]))}return{p:l,f:u}},wNAFCached(e,t,r){const n=c.get(e)||1;let a=s.get(e);return a||(a=this.precomputeWindow(e,n),1!==n&&s.set(e,r(a))),this.wNAF(n,a,t)},setWindowSize(e,t){n(t),c.set(e,t),s.delete(e)}}},t.pippenger=function(e,t,r,n){if(!Array.isArray(r)||!Array.isArray(n)||n.length!==r.length)throw new Error("arrays of points and scalars must have equal length");n.forEach(((e,r)=>{if(!t.isValid(e))throw new Error(`wrong scalar at index ${r}`)})),r.forEach(((t,r)=>{if(!(t instanceof e))throw new Error(`wrong point at index ${r}`)}));const i=(0,a.bitLen)(BigInt(r.length)),o=i>12?i-3:i>4?i-2:i?2:1,s=(1<=0;a-=o){c.fill(e.ZERO);for(let e=0;e>BigInt(a)&BigInt(s));c[i]=c[i].add(r[e])}let t=e.ZERO;for(let r=c.length-1,n=e.ZERO;r>0;r--)n=n.add(c[r]),t=t.add(n);if(u=u.add(t),0!==a)for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=l,t.expand_message_xof=u,t.hash_to_field=d,t.isogenyMap=function(e,t){const r=t.map((e=>Array.from(e).reverse()));return(t,n)=>{const[a,i,o,s]=r.map((r=>r.reduce(((r,n)=>e.add(e.mul(r,t),n)))));return t=e.div(a,i),n=e.mul(n,e.div(o,s)),{x:t,y:n}}},t.createHasher=function(e,t,r){if("function"!==typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(n,a){const i=d(n,2,{...r,DST:r.DST,...a}),o=e.fromAffine(t(i[0])),s=e.fromAffine(t(i[1])),c=o.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,a){const i=d(n,1,{...r,DST:r.encodeDST,...a}),o=e.fromAffine(t(i[0])).clearCofactor();return o.assertValidity(),o},mapToCurve(r){if(!Array.isArray(r))throw new Error("mapToCurve: expected array of bigints");for(const e of r)if("bigint"!==typeof e)throw new Error(`mapToCurve: expected array of bigints, got ${e} in array`);const n=e.fromAffine(t(r)).clearCofactor();return n.assertValidity(),n}}};const n=r(33829),a=r(42638),i=a.bytesToNumberBE;function o(e,t){if(c(e),c(t),e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e,t){const r=new Uint8Array(e.length);for(let n=0;n255&&(t=n((0,a.concatBytes)((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:i,blockLen:l}=n,u=Math.ceil(r/i);if(r>65535||u>255)throw new Error("expand_message_xmd: invalid lenInBytes");const d=(0,a.concatBytes)(t,o(t.length,1)),p=o(0,l),f=o(r,2),h=new Array(u),g=n((0,a.concatBytes)(p,e,f,o(0,1),d));h[0]=n((0,a.concatBytes)(g,o(1,1),d));for(let c=1;c<=u;c++){const e=[s(g,h[c-1]),o(c+1,1),d];h[c]=n((0,a.concatBytes)(...e))}return(0,a.concatBytes)(...h).slice(0,r)}function u(e,t,r,n,i){if((0,a.abytes)(e),(0,a.abytes)(t),c(r),t.length>255){const e=Math.ceil(2*n/8);t=i.create({dkLen:e}).update((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:r}).update(e).update(o(r,2)).update(t).update(o(t.length,1)).digest()}function d(e,t,r){(0,a.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:s,m:d,hash:p,expand:f,DST:h}=r;(0,a.abytes)(e),c(t);const g="string"===typeof h?(0,a.utf8ToBytes)(h):h,m=o.toString(2).length,b=Math.ceil((m+s)/8),y=t*d*b;let v;if("xmd"===f)v=l(e,g,y,p);else if("xof"===f)v=u(e,g,y,s,p);else{if("_internal_pass"!==f)throw new Error('expand must be "xmd" or "xof"');v=e}const E=new Array(t);for(let a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=d,t.pow=p,t.pow2=function(e,t,r){let n=e;for(;t-- >a;)n*=n,n%=r;return n},t.invert=f,t.tonelliShanks=h,t.FpSqrt=g,t.validateField=function(e){const t=m.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},t.FpPow=b,t.FpInvertBatch=y,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"===typeof r?f(r,e.ORDER):e.inv(r))},t.FpLegendre=v,t.FpIsSquare=function(e){const t=v(e.ORDER);return r=>{const n=t(e,r);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},t.nLength=E,t.Field=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=a)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:c}=E(e,t);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=g(e),u=Object.freeze({ORDER:e,BITS:s,BYTES:c,MASK:(0,n.bitMask)(s),ZERO:a,ONE:i,create:t=>d(t,e),isValid:t=>{if("bigint"!==typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return a<=t&&te===a,isOdd:e=>(e&i)===i,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>b(u,e,t),div:(t,r)=>d(t*f(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>f(t,e),sqrt:o.sqrt||(e=>l(u,e)),invertBatch:e=>y(u,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(u)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=(e=(0,n.ensureBytes)("privateHash",e)).length,o=E(t).nByteLength+8;if(o<24||a1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${a}`);return d(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=S,t.getMinHashLength=w,t.mapHashToField=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=e.length,o=S(t),s=w(t);if(a<16||a1024)throw new Error(`expected ${s}-1024 bytes of input, got ${a}`);const c=d(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-i)+i;return r?(0,n.numberToBytesLE)(c,o):(0,n.numberToBytesBE)(c,o)};const n=r(42638),a=BigInt(0),i=BigInt(1),o=BigInt(2),s=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);BigInt(9),BigInt(16);function d(e,t){const r=e%t;return r>=a?r:t+r}function p(e,t,r){if(r<=a||t 0");if(r===i)return a;let n=i;for(;t>a;)t&i&&(n=n*e%r),e=e*e%r,t>>=i;return n}function f(e,t){if(e===a||t<=a)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),n=t,o=a,s=i,c=i,l=a;for(;r!==a;){const e=n/r,t=n%r,a=o-c*e,i=s-l*e;n=r,r=t,o=c,s=l,c=a,l=i}if(n!==i)throw new Error("invert: does not exist");return d(o,t)}function h(e){const t=(e-i)/o;let r,n,s;for(r=e-i,n=0;r%o===a;r/=o,n++);for(s=o;s(d(e,t)&i)===i;const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(e,t,r){if(r 0");if(r===a)return e.ONE;if(r===i)return t;let n=e.ONE,o=t;for(;r>a;)r&i&&(n=e.mul(n,o)),o=e.sqr(o),r>>=i;return n}function y(e,t){const r=new Array(t.length),n=t.reduce(((t,n,a)=>e.is0(n)?t:(r[a]=t,e.mul(t,n))),e.ONE),a=e.inv(n);return t.reduceRight(((t,n,a)=>e.is0(n)?t:(r[a]=e.mul(t,r[a]),e.mul(t,n))),a),r}function v(e){const t=(e-i)/o;return(e,r)=>e.pow(r,t)}function E(e,t){const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function S(e){if("bigint"!==typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function w(e){const t=S(e);return t+Math.ceil(t/2)}},42638:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=void 0,t.isBytes=i,t.abytes=o,t.abool=function(e,t){if("boolean"!==typeof t)throw new Error(`${e} must be valid boolean, got "${t}".`)},t.bytesToHex=c,t.numberToHexUnpadded=l,t.hexToNumber=u,t.hexToBytes=f,t.bytesToNumberBE=function(e){return u(c(e))},t.bytesToNumberLE=function(e){return o(e),u(c(Uint8Array.from(e).reverse()))},t.numberToBytesBE=h,t.numberToBytesLE=function(e,t){return h(e,t).reverse()},t.numberToVarBytesBE=function(e){return f(l(e))},t.ensureBytes=function(e,t,r){let n;if("string"===typeof t)try{n=f(t)}catch(o){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${o}`)}else{if(!i(t))throw new Error(`${e} must be hex string or Uint8Array`);n=Uint8Array.from(t)}const a=n.length;if("number"===typeof r&&a!==r)throw new Error(`${e} expected ${r} bytes, got ${a}`);return n},t.concatBytes=g,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;nr;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n},t.bitSet=function(e,t,a){return e|(a?n:r)<{n.fill(1),a.fill(0),i=0},s=function(){for(var e=arguments.length,t=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:y();a=s(v([0]),e),n=s(),0!==e.length&&(a=s(v([1]),e),n=s())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e{let r;for(o(),c(e);!(r=t(l()));)c();return o(),r}},t.validateObject=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=(t,r,n)=>{const a=E[r];if("function"!==typeof a)throw new Error(`Invalid validator "${r}", expected function`);const i=e[t];if((!n||void 0!==i)&&!a(i,e))throw new Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(const[a,i]of Object.entries(t))n(a,i,!1);for(const[a,i]of Object.entries(r))n(a,i,!0);return e},t.memoized=function(e){const t=new WeakMap;return function(r){const n=t.get(r);if(void 0!==n)return n;for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;ot.toString(16).padStart(2,"0")));function c(e){o(e);let t="";for(let r=0;r=d._0&&e<=d._9?e-d._0:e>=d._A&&e<=d._F?e-(d._A-10):e>=d._a&&e<=d._f?e-(d._a-10):void 0}function f(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let a=0,i=0;a"bigint"===typeof e&&r<=e;function b(e,t,r){return m(e)&&m(t)&&m(r)&&t<=e&&e(a<new Uint8Array(e),v=e=>Uint8Array.from(e);const E={bigint:e=>"bigint"===typeof e,function:e=>"function"===typeof e,boolean:e=>"boolean"===typeof e,string:e=>"string"===typeof e,stringOrUint8Array:e=>"string"===typeof e||i(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"===typeof e&&Number.isSafeInteger(e.outputLen)};t.notImplemented=()=>{throw new Error("not implemented")}},22391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DER=void 0,t.weierstrassPoints=g,t.weierstrass=function(e){const r=function(e){const t=(0,n.validateBasic)(e);return i.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:c,n:l}=r,p=c.BYTES+1,f=2*c.BYTES+1;function h(e){return a.mod(e,l)}function m(e){return a.invert(e,l)}const{ProjectivePoint:b,normPrivateKeyToScalar:y,weierstrassEquation:v,isWithinCurveOrder:E}=g({...r,toBytes(e,t,r){const n=t.toAffine(),a=c.toBytes(n.x),s=i.concatBytes;return(0,o.abool)("isCompressed",r),r?s(Uint8Array.from([t.hasEvenY()?2:3]),a):s(Uint8Array.from([4]),a,c.toBytes(n.y))},fromBytes(e){const t=e.length,r=e[0],n=e.subarray(1);if(t!==p||2!==r&&3!==r){if(t===f&&4===r){return{x:c.fromBytes(n.subarray(0,c.BYTES)),y:c.fromBytes(n.subarray(c.BYTES,2*c.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${p} compressed bytes or ${f} uncompressed bytes`)}{const e=i.bytesToNumberBE(n);if(!i.inRange(e,d,c.ORDER))throw new Error("Point is not on curve");const t=v(e);let o;try{o=c.sqrt(t)}catch(a){const e=a instanceof Error?": "+a.message:"";throw new Error("Point is not on curve"+e)}return 1===(1&r)!==((o&d)===d)&&(o=c.neg(o)),{x:e,y:o}}}}),S=e=>i.bytesToHex(i.numberToBytesBE(e,r.nByteLength));function w(e){return e>l>>d}const x=(e,t,r)=>i.bytesToNumberBE(e.slice(t,r));class A{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){const t=r.nByteLength;return e=(0,o.ensureBytes)("compactSignature",e,2*t),new A(x(e,0,t),x(e,t,2*t))}static fromDER(e){const{r:r,s:n}=t.DER.toSig((0,o.ensureBytes)("DER",e));return new A(r,n)}assertValidity(){i.aInRange("r",this.r,d,l),i.aInRange("s",this.s,d,l)}addRecoveryBit(e){return new A(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:n,recovery:a}=this,i=_((0,o.ensureBytes)("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw new Error("recovery id invalid");const s=2===a||3===a?t+r.n:t;if(s>=c.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=0===(1&a)?"02":"03",u=b.fromHex(l+S(s)),d=m(s),p=h(-i*d),f=h(n*d),g=b.BASE.multiplyAndAddUnsafe(u,p,f);if(!g)throw new Error("point at infinify");return g.assertValidity(),g}hasHighS(){return w(this.s)}normalizeS(){return this.hasHighS()?new A(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return S(this.r)+S(this.s)}}const T={isValidPrivateKey(e){try{return y(e),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const e=a.getMinHashLength(r.n);return a.mapHashToField(r.randomBytes(e),r.n)},precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}};function k(e){const t=i.isBytes(e),r="string"===typeof e,n=(t||r)&&e.length;return t?n===p||n===f:r?n===2*p||n===2*f:e instanceof b}const D=r.bits2int||function(e){const t=i.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},_=r.bits2int_modN||function(e){return h(D(e))},I=i.bitMask(r.nBitLength);function R(e){return i.aInRange(`num < 2^${r.nBitLength}`,e,u,I),i.numberToBytesBE(e,r.nByteLength)}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;if(["recovered","canonical"].some((e=>e in n)))throw new Error("sign() legacy options not supported");const{hash:a,randomBytes:l}=r;let{lowS:p,prehash:f,extraEntropy:g}=n;null==p&&(p=!0),e=(0,o.ensureBytes)("msgHash",e),s(n),f&&(e=(0,o.ensureBytes)("prehashed msgHash",a(e)));const v=_(e),S=y(t),x=[R(S),R(v)];if(null!=g&&!1!==g){const e=!0===g?l(c.BYTES):g;x.push((0,o.ensureBytes)("extraEntropy",e))}const T=i.concatBytes(...x),k=v;return{seed:T,k2sig:function(e){const t=D(e);if(!E(t))return;const r=m(t),n=b.BASE.multiply(t).toAffine(),a=h(n.x);if(a===u)return;const i=h(r*h(k+a*S));if(i===u)return;let o=(n.x===a?0:2)|Number(n.y&d),s=i;return p&&w(i)&&(s=function(e){return w(e)?h(-e):e}(i),o^=1),new A(a,s,o)}}}const C={lowS:r.lowS,prehash:!1},O={lowS:r.lowS,prehash:!1};return b.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return b.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(k(e))throw new Error("first arg must be private key");if(!k(t))throw new Error("second arg must be public key");return b.fromHex(t).multiply(y(e)).toRawBytes(r)},sign:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;const{seed:a,k2sig:o}=P(e,t,n),s=r;return i.createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(a,o)},verify:function(e,n,a){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O;const l=e;if(n=(0,o.ensureBytes)("msgHash",n),a=(0,o.ensureBytes)("publicKey",a),"strict"in c)throw new Error("options.strict was renamed to lowS");s(c);const{lowS:u,prehash:d}=c;let p,f;try{if("string"===typeof l||i.isBytes(l))try{p=A.fromDER(l)}catch(T){if(!(T instanceof t.DER.Err))throw T;p=A.fromCompact(l)}else{if("object"!==typeof l||"bigint"!==typeof l.r||"bigint"!==typeof l.s)throw new Error("PARSE");{const{r:e,s:t}=l;p=new A(e,t)}}f=b.fromHex(a)}catch(k){if("PARSE"===k.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(u&&p.hasHighS())return!1;d&&(n=r.hash(n));const{r:g,s:y}=p,v=_(n),E=m(y),S=h(v*E),w=h(g*E),x=b.BASE.multiplyAndAddUnsafe(f,S,w)?.toAffine();if(!x)return!1;return h(x.x)===g},ProjectivePoint:b,Signature:A,utils:T}},t.SWUFpSqrtRatio=m,t.mapToCurveSimpleSWU=function(e,t){if(a.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=m(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let a,i,o,s,c,l,u,d;a=e.sqr(n),a=e.mul(a,t.Z),i=e.sqr(a),i=e.add(i,a),o=e.add(i,e.ONE),o=e.mul(o,t.B),s=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),s=e.mul(s,t.A),i=e.sqr(o),l=e.sqr(s),c=e.mul(l,t.A),i=e.add(i,c),i=e.mul(i,o),l=e.mul(l,s),c=e.mul(l,t.B),i=e.add(i,c),u=e.mul(a,o);const{isValid:p,value:f}=r(i,l);d=e.mul(a,n),d=e.mul(d,f),u=e.cmov(u,o,p),d=e.cmov(d,f,p);const h=e.isOdd(n)===e.isOdd(d);return d=e.cmov(e.neg(d),d,h),u=e.div(u,s),{x:u,y:d}}};const n=r(57664),a=r(33829),i=r(42638),o=r(42638);function s(e){void 0!==e.lowS&&(0,o.abool)("lowS",e.lowS),void 0!==e.prehash&&(0,o.abool)("prehash",e.prehash)}const{bytesToNumberBE:c,hexToBytes:l}=i;t.DER={Err:class extends Error{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}},_tlv:{encode:(e,r)=>{const{Err:n}=t.DER;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&r.length)throw new n("tlv.encode: unpadded data");const a=r.length/2,o=i.numberToHexUnpadded(a);if(o.length/2&128)throw new n("tlv.encode: long form length too big");const s=a>127?i.numberToHexUnpadded(o.length/2|128):"";return`${i.numberToHexUnpadded(e)}${s}${o}${r}`},decode(e,r){const{Err:n}=t.DER;let a=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(r.length<2||r[a++]!==e)throw new n("tlv.decode: wrong tlv");const i=r[a++];let o=0;if(!!(128&i)){const e=127&i;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const t=r.subarray(a,a+e);if(t.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===t[0])throw new n("tlv.decode(long): zero leftmost byte");for(const r of t)o=o<<8|r;if(a+=e,o<128)throw new n("tlv.decode(long): not minimal encoding")}else o=i;const s=r.subarray(a,a+o);if(s.length!==o)throw new n("tlv.decode: wrong value length");return{v:s,l:r.subarray(a+o)}}},_int:{encode(e){const{Err:r}=t.DER;if(e{const a=t.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(a.x),r.toBytes(a.y))}),l=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function p(e){const{a:n,b:a}=t,i=r.sqr(e),o=r.mul(i,e);return r.add(r.add(o,r.mul(e,n)),a)}if(!r.eql(r.sqr(t.Gy),p(t.Gx)))throw new Error("bad generator point: equation left != right");function h(e){const{allowedPrivateKeyLengths:r,nByteLength:n,wrapPrivateKey:s,n:c}=t;if(r&&"bigint"!==typeof e){if(i.isBytes(e)&&(e=i.bytesToHex(e)),"string"!==typeof e||!r.includes(e.length))throw new Error("Invalid key");e=e.padStart(2*n,"0")}let l;try{l="bigint"===typeof e?e:i.bytesToNumberBE((0,o.ensureBytes)("private key",e,n))}catch(u){throw new Error(`private key must be ${n} bytes, hex or bigint, not ${typeof e}`)}return s&&(l=a.mod(l,c)),i.aInRange("private key",l,d,c),l}function g(e){if(!(e instanceof y))throw new Error("ProjectivePoint expected")}const m=(0,o.memoized)(((e,t)=>{const{px:n,py:a,pz:i}=e;if(r.eql(i,r.ONE))return{x:n,y:a};const o=e.is0();null==t&&(t=o?r.ONE:r.inv(i));const s=r.mul(n,t),c=r.mul(a,t),l=r.mul(i,t);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw new Error("invZ was invalid");return{x:s,y:c}})),b=(0,o.memoized)((e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:n,y:a}=e.toAffine();if(!r.isValid(n)||!r.isValid(a))throw new Error("bad point: x or y not FE");const i=r.sqr(a),o=p(n);if(!r.eql(i,o))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0}));class y{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw new Error("x required");if(null==t||!r.isValid(t))throw new Error("y required");if(null==n||!r.isValid(n))throw new Error("z required");Object.freeze(this)}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof y)throw new Error("projective point not allowed");const a=e=>r.eql(e,r.ZERO);return a(t)&&a(n)?y.ZERO:new y(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(y.fromAffine)}static fromHex(e){const t=y.fromAffine(l((0,o.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(h(e))}static msm(e,t){return(0,n.pippenger)(y,s,e,t)}_setWindowSize(e){E.setWindowSize(this,e)}assertValidity(){b(this)}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){g(e);const{px:t,py:n,pz:a}=this,{px:i,py:o,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(i,a)),l=r.eql(r.mul(n,s),r.mul(o,a));return c&&l}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:n}=t,a=r.mul(n,f),{px:i,py:o,pz:s}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(i,i),p=r.mul(o,o),h=r.mul(s,s),g=r.mul(i,o);return g=r.add(g,g),u=r.mul(i,s),u=r.add(u,u),c=r.mul(e,u),l=r.mul(a,h),l=r.add(c,l),c=r.sub(p,l),l=r.add(p,l),l=r.mul(c,l),c=r.mul(g,c),u=r.mul(a,u),h=r.mul(e,h),g=r.sub(d,h),g=r.mul(e,g),g=r.add(g,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,h),d=r.mul(d,g),l=r.add(l,d),h=r.mul(o,s),h=r.add(h,h),d=r.mul(h,g),c=r.sub(c,d),u=r.mul(h,p),u=r.add(u,u),u=r.add(u,u),new y(c,l,u)}add(e){g(e);const{px:n,py:a,pz:i}=this,{px:o,py:s,pz:c}=e;let l=r.ZERO,u=r.ZERO,d=r.ZERO;const p=t.a,h=r.mul(t.b,f);let m=r.mul(n,o),b=r.mul(a,s),v=r.mul(i,c),E=r.add(n,a),S=r.add(o,s);E=r.mul(E,S),S=r.add(m,b),E=r.sub(E,S),S=r.add(n,i);let w=r.add(o,c);return S=r.mul(S,w),w=r.add(m,v),S=r.sub(S,w),w=r.add(a,i),l=r.add(s,c),w=r.mul(w,l),l=r.add(b,v),w=r.sub(w,l),d=r.mul(p,S),l=r.mul(h,v),d=r.add(l,d),l=r.sub(b,d),d=r.add(b,d),u=r.mul(l,d),b=r.add(m,m),b=r.add(b,m),v=r.mul(p,v),S=r.mul(h,S),b=r.add(b,v),v=r.sub(m,v),v=r.mul(p,v),S=r.add(S,v),m=r.mul(b,S),u=r.add(u,m),m=r.mul(w,S),l=r.mul(E,l),l=r.sub(l,m),m=r.mul(E,b),d=r.mul(w,d),d=r.add(d,m),new y(l,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return E.wNAFCached(this,e,y.normalizeZ)}multiplyUnsafe(e){i.aInRange("scalar",e,u,t.n);const n=y.ZERO;if(e===u)return n;if(e===d)return this;const{endo:a}=t;if(!a)return E.unsafeLadder(this,e);let{k1neg:o,k1:s,k2neg:c,k2:l}=a.splitScalar(e),p=n,f=n,h=this;for(;s>u||l>u;)s&d&&(p=p.add(h)),l&d&&(f=f.add(h)),h=h.double(),s>>=d,l>>=d;return o&&(p=p.negate()),c&&(f=f.negate()),f=new y(r.mul(f.px,a.beta),f.py,f.pz),p.add(f)}multiply(e){const{endo:n,n:a}=t;let o,s;if(i.aInRange("scalar",e,d,a),n){const{k1neg:t,k1:a,k2neg:i,k2:c}=n.splitScalar(e);let{p:l,f:u}=this.wNAF(a),{p:d,f:p}=this.wNAF(c);l=E.constTimeNegate(t,l),d=E.constTimeNegate(i,d),d=new y(r.mul(d.px,n.beta),d.py,d.pz),o=l.add(d),s=u.add(p)}else{const{p:t,f:r}=this.wNAF(e);o=t,s=r}return y.normalizeZ([o,s])[0]}multiplyAndAddUnsafe(e,t,r){const n=y.BASE,a=(e,t)=>t!==u&&t!==d&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),i=a(this,t).add(a(e,r));return i.is0()?void 0:i}toAffine(e){return m(this,e)}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===d)return!0;if(r)return r(y,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===d?this:r?r(y,this):this.multiplyUnsafe(t.h)}toRawBytes(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(0,o.abool)("isCompressed",e),this.assertValidity(),c(y,this,e)}toHex(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(0,o.abool)("isCompressed",e),i.bytesToHex(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);const v=t.nBitLength,E=(0,n.wNAF)(y,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:h,weierstrassEquation:p,isWithinCurveOrder:function(e){return i.inRange(e,d,t.n)}}}function m(e,t){const r=e.ORDER;let n=u;for(let f=r-d;f%p===u;f/=p)n+=d;const a=n,i=p<{let n=m,i=e.pow(r,l),o=e.sqr(i);o=e.mul(o,r);let s=e.mul(t,o);s=e.pow(s,c),s=e.mul(s,i),i=e.mul(s,r),o=e.mul(s,t);let u=e.mul(o,i);s=e.pow(u,g);let f=e.eql(s,e.ONE);i=e.mul(o,b),s=e.mul(u,n),o=e.cmov(i,o,f),u=e.cmov(s,u,f);for(let c=a;c>d;c--){let t=c-p;t=p<{let i=e.sqr(a);const o=e.mul(t,a);i=e.mul(i,o);let s=e.pow(i,r);s=e.mul(s,o);const c=e.mul(s,n),l=e.mul(e.sqr(s),a),u=e.eql(l,t);return{isValid:u,value:e.cmov(c,s,u)}}}return y}},65152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const n=r(29824),a=r(92330),i=r(35292),o=r(89459),s=r(33829),c=r(42638),l=r(22391),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),p=BigInt(1),f=BigInt(2),h=(e,t)=>(e+t/f)/t;function g(e){const t=u,r=BigInt(3),n=BigInt(6),a=BigInt(11),i=BigInt(22),o=BigInt(23),c=BigInt(44),l=BigInt(88),d=e*e*e%t,p=d*d*e%t,h=(0,s.pow2)(p,r,t)*p%t,g=(0,s.pow2)(h,r,t)*p%t,b=(0,s.pow2)(g,f,t)*d%t,y=(0,s.pow2)(b,a,t)*b%t,v=(0,s.pow2)(y,i,t)*y%t,E=(0,s.pow2)(v,c,t)*v%t,S=(0,s.pow2)(E,l,t)*E%t,w=(0,s.pow2)(S,c,t)*v%t,x=(0,s.pow2)(w,r,t)*p%t,A=(0,s.pow2)(x,o,t)*y%t,T=(0,s.pow2)(A,n,t)*d%t,k=(0,s.pow2)(T,f,t);if(!m.eql(m.sqr(k),e))throw new Error("Cannot find square root");return k}const m=(0,s.Field)(u,void 0,void 0,{sqrt:g});t.secp256k1=(0,i.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=d,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-p*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,o=BigInt("0x100000000000000000000000000000000"),c=h(i*e,t),l=h(-n*e,t);let u=(0,s.mod)(e-c*r-l*a,t),f=(0,s.mod)(-c*n-l*i,t);const g=u>o,m=f>o;if(g&&(u=t-u),m&&(f=t-f),u>o||f>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:u,k2neg:m,k2:f}}}},n.sha256);const b=BigInt(0),y={};function v(e){let t=y[e];if(void 0===t){const r=(0,n.sha256)(Uint8Array.from(e,(e=>e.charCodeAt(0))));t=(0,c.concatBytes)(r,r),y[e]=t}for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;ie.toRawBytes(!0).slice(1),S=e=>(0,c.numberToBytesBE)(e,32),w=e=>(0,s.mod)(e,u),x=e=>(0,s.mod)(e,d),A=t.secp256k1.ProjectivePoint;function T(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=A.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:x(-r),bytes:E(n)}}function k(e){(0,c.aInRange)("x",e,p,u);const t=w(e*e);let r=g(w(t*e+BigInt(7)));r%f!==b&&(r=w(-r));const n=new A(e,r,p);return n.assertValidity(),n}const D=c.bytesToNumberBE;function _(){for(var e=arguments.length,t=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:(0,a.randomBytes)(32);const n=(0,c.ensureBytes)("message",e),{bytes:i,scalar:o}=T(t),s=(0,c.ensureBytes)("auxRand",r,32),l=S(o^D(v("BIP0340/aux",s))),u=v("BIP0340/nonce",l,i,n),d=x(D(u));if(d===b)throw new Error("sign failed: k is zero");const{bytes:p,scalar:f}=T(d),h=_(p,i,n),g=new Uint8Array(64);if(g.set(p,0),g.set(S(x(f+h*o)),32),!P(g,n,i))throw new Error("sign: Invalid signature produced");return g}function P(e,t,r){const n=(0,c.ensureBytes)("signature",e,64),a=(0,c.ensureBytes)("message",t),i=(0,c.ensureBytes)("publicKey",r,32);try{const e=k(D(i)),t=D(n.subarray(0,32));if(!(0,c.inRange)(t,p,u))return!1;const r=D(n.subarray(32,64));if(!(0,c.inRange)(r,p,d))return!1;const f=_(S(t),E(e),a),h=(o=e,s=r,l=x(-f),A.BASE.multiplyAndAddUnsafe(o,s,l));return!(!h||!h.hasEvenY()||h.toAffine().x!==t)}catch(f){return!1}var o,s,l}t.schnorr={getPublicKey:I,sign:R,verify:P,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:k,pointToBytes:E,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:v,mod:s.mod}};const C=(()=>(0,o.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),O=(()=>(0,l.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))(),U=(()=>(0,o.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:r}=O(m.create(e[0]));return C(t,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}))();t.hashToCurve=U.hashToCurve,t.encodeToCurve=U.encodeToCurve},68216:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!==typeof e)throw new Error(`Expected boolean, not ${e}`)}function a(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&!r.includes(e.length))throw new Error(`Expected Uint8Array of length ${r}, not of length=${e.length}`)}function i(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function o(e){let 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 s(e,t){a(e);const r=t.outputLen;if(e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const n=r(68216),a=r(17838);class i extends a.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,a.createView)(this.buffer)}update(e){(0,n.exists)(this);const{view:t,buffer:r,blockLen:i}=this,o=(e=(0,a.toBytes)(e)).length;for(let n=0;ni-s&&(this.process(r,0),s=0);for(let n=s;n>a&i),s=Number(r&i),c=n?4:0,l=n?0:4;e.setUint32(t+c,o,n),e.setUint32(t+l,s,n)}(r,i-8,BigInt(8*this.length),o),this.process(r,0);const c=(0,a.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function a(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);t.toBig=o;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const l=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=l;const u=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=u;const d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;const p=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=p;const f=(e,t)=>t;t.rotr32H=f;const h=(e,t)=>e;t.rotr32L=h;const g=(e,t,r)=>e<>>32-r;t.rotlSH=g;const m=(e,t,r)=>t<>>32-r;t.rotlSL=m;const b=(e,t,r)=>t<>>64-r;t.rotlBH=b;const y=(e,t,r)=>e<>>64-r;function v(e,t,r,n){const a=(t>>>0)+(n>>>0);return{h:e+r+(a/2**32|0)|0,l:0|a}}t.rotlBL=y,t.add=v;const E=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=E;const S=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;t.add3H=S;const w=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=w;const x=(e,t,r,n,a)=>t+r+n+a+(e/2**32|0)|0;t.add4H=x;const A=(e,t,r,n,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(a>>>0);t.add5L=A;const T=(e,t,r,n,a,i)=>t+r+n+a+i+(e/2**32|0)|0;t.add5H=T;const k={fromBig:a,split:i,toBig:o,shrSH:s,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:d,rotrBL:p,rotr32H:f,rotr32L:h,rotlSH:g,rotlSL:m,rotlBH:b,rotlBL:y,add:v,add3L:E,add3H:S,add4L:w,add4H:x,add5H:T,add5L:A};t.default=k},98842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},12808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const n=r(68216),a=r(17838);class i extends a.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(e);const r=(0,a.toBytes)(t);if(this.iHash=e.create(),"function"!==typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(r.length>i?e.create().update(r).digest():r);for(let n=0;nnew i(e,t).update(r).digest(),t.hmac.create=(e,t)=>new i(e,t)},15518:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const n=r(68216),a=r(12808),i=r(17838);function o(e,t,r,o){(0,n.hash)(e);const s=(0,i.checkOpts)({dkLen:32,asyncTick:10},o),{c:c,dkLen:l,asyncTick:u}=s;if((0,n.number)(c),(0,n.number)(l),(0,n.number)(u),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const d=(0,i.toBytes)(t),p=(0,i.toBytes)(r),f=new Uint8Array(l),h=a.hmac.create(e,d),g=h._cloneInto().update(p);return{c:c,dkLen:l,asyncTick:u,DK:f,PRF:h,PRFSalt:g}}function s(e,t,r,n,a){return e.destroy(),t.destroy(),n&&n.destroy(),a.fill(0),r}t.pbkdf2=function(e,t,r,n){const{c:a,dkLen:c,DK:l,PRF:u,PRFSalt:d}=o(e,t,r,n);let p;const f=new Uint8Array(4),h=(0,i.createView)(f),g=new Uint8Array(u.outputLen);for(let i=1,o=0;o{d._cloneInto(f).update(m).digestInto(m);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const n=r(73462),a=r(17838),i=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),o=Uint8Array.from({length:16},((e,t)=>t));let s=[o],c=[o.map((e=>(9*e+5)%16))];for(let y=0;y<4;y++)for(let e of[s,c])e.push(e[y].map((e=>i[e])));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),u=s.map(((e,t)=>e.map((e=>l[t][e])))),d=c.map(((e,t)=>e.map((e=>l[t][e])))),p=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),f=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),h=(e,t)=>e<>>32-t;function g(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}const m=new Uint32Array(16);class b extends n.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:r,h3:n,h4:a}=this;return[e,t,r,n,a]}set(e,t,r,n,a){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|a}process(e,t){for(let s=0;s<16;s++,t+=4)m[s]=e.getUint32(t,!0);let r=0|this.h0,n=r,a=0|this.h1,i=a,o=0|this.h2,l=o,b=0|this.h3,y=b,v=0|this.h4,E=v;for(let S=0;S<5;S++){const e=4-S,t=p[S],w=f[S],x=s[S],A=c[S],T=u[S],k=d[S];for(let n=0;n<16;n++){const e=h(r+g(S,a,o,b)+m[x[n]]+t,T[n])+v|0;r=v,v=b,b=0|h(o,10),o=a,a=e}for(let r=0;r<16;r++){const t=h(n+g(e,i,l,y)+m[A[r]]+w,k[r])+E|0;n=E,E=y,y=0|h(l,10),l=i,i=t}}this.set(this.h1+o+y|0,this.h2+b+E|0,this.h3+v+n|0,this.h4+r+i|0,this.h0+a+l|0)}roundClean(){m.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=b,t.ripemd160=(0,a.wrapConstructor)((()=>new b))},8192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const n=r(68216),a=r(30884),i=r(15518),o=r(17838),s=(e,t)=>e<>>32-t;function c(e,t,r,n,a,i){let o=e[t++]^r[n++],c=e[t++]^r[n++],l=e[t++]^r[n++],u=e[t++]^r[n++],d=e[t++]^r[n++],p=e[t++]^r[n++],f=e[t++]^r[n++],h=e[t++]^r[n++],g=e[t++]^r[n++],m=e[t++]^r[n++],b=e[t++]^r[n++],y=e[t++]^r[n++],v=e[t++]^r[n++],E=e[t++]^r[n++],S=e[t++]^r[n++],w=e[t++]^r[n++],x=o,A=c,T=l,k=u,D=d,_=p,I=f,R=h,P=g,C=m,O=b,U=y,N=v,B=E,L=S,M=w;for(let F=0;F<8;F+=2)D^=s(x+N|0,7),P^=s(D+x|0,9),N^=s(P+D|0,13),x^=s(N+P|0,18),C^=s(_+A|0,7),B^=s(C+_|0,9),A^=s(B+C|0,13),_^=s(A+B|0,18),L^=s(O+I|0,7),T^=s(L+O|0,9),I^=s(T+L|0,13),O^=s(I+T|0,18),k^=s(M+U|0,7),R^=s(k+M|0,9),U^=s(R+k|0,13),M^=s(U+R|0,18),A^=s(x+k|0,7),T^=s(A+x|0,9),k^=s(T+A|0,13),x^=s(k+T|0,18),I^=s(_+D|0,7),R^=s(I+_|0,9),D^=s(R+I|0,13),_^=s(D+R|0,18),U^=s(O+C|0,7),P^=s(U+O|0,9),C^=s(P+U|0,13),O^=s(C+P|0,18),N^=s(M+L|0,7),B^=s(N+M|0,9),L^=s(B+N|0,13),M^=s(L+B|0,18);a[i++]=o+x|0,a[i++]=c+A|0,a[i++]=l+T|0,a[i++]=u+k|0,a[i++]=d+D|0,a[i++]=p+_|0,a[i++]=f+I|0,a[i++]=h+R|0,a[i++]=g+P|0,a[i++]=m+C|0,a[i++]=b+O|0,a[i++]=y+U|0,a[i++]=v+N|0,a[i++]=E+B|0,a[i++]=S+L|0,a[i++]=w+M|0}function l(e,t,r,n,a){let i=n+0,o=n+16*a;for(let s=0;s<16;s++)r[o+s]=e[t+16*(2*a-1)+s];for(let s=0;s0&&(o+=16),c(r,i,e,t+=16,r,o)}function u(e,t,r){const s=(0,o.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:c,r:l,p:u,dkLen:d,asyncTick:p,maxmem:f,onProgress:h}=s;if((0,n.number)(c),(0,n.number)(l),(0,n.number)(u),(0,n.number)(d),(0,n.number)(p),(0,n.number)(f),void 0!==h&&"function"!==typeof h)throw new Error("progressCb should be function");const g=128*l,m=g/4;if(c<=1||0!==(c&c-1)||c>=2**(g/8)||c>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(u<0||u>137438953440/g)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(d<0||d>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const b=g*(c+u);if(b>f)throw new Error(`Scrypt: parameters too large, ${b} (128 * r * (N + p)) > ${f} (maxmem)`);const y=(0,i.pbkdf2)(a.sha256,e,t,{c:1,dkLen:g*u}),v=(0,o.u32)(y),E=(0,o.u32)(new Uint8Array(g*c)),S=(0,o.u32)(new Uint8Array(g));let w=()=>{};if(h){const e=2*c*u,t=Math.max(Math.floor(e/1e4),1);let r=0;w=()=>{r++,!h||r%t&&r!==e||h(r/e)}}return{N:c,r:l,p:u,dkLen:d,blockSize32:m,V:E,B32:v,B:y,tmp:S,blockMixCb:w,asyncTick:p}}function d(e,t,r,n,o){const s=(0,i.pbkdf2)(a.sha256,e,r,{c:1,dkLen:t});return r.fill(0),n.fill(0),o.fill(0),s}t.scrypt=function(e,t,r){const{N:n,r:a,p:i,dkLen:o,blockSize32:s,V:c,B32:p,B:f,tmp:h,blockMixCb:g}=u(e,t,r);for(let u=0;u{l(p,t,p,t+=c,a),m()})),l(p,(n-1)*c,f,e,a),m(),await(0,o.asyncLoop)(n,b,(()=>{const t=f[e+c-16]%n;for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const n=r(73462),a=r(17838),i=(e,t,r)=>e&t^e&r^t&r,o=new Uint32Array([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 Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:r,D:n,E:a,F:i,G:o,H:s}=this;return[e,t,r,n,a,i,o,s]}set(e,t,r,n,a,i,o,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|a,this.F=0|i,this.G=0|o,this.H=0|s}process(e,t){for(let a=0;a<16;a++,t+=4)c[a]=e.getUint32(t,!1);for(let i=16;i<64;i++){const e=c[i-15],t=c[i-2],r=(0,a.rotr)(e,7)^(0,a.rotr)(e,18)^e>>>3,n=(0,a.rotr)(t,17)^(0,a.rotr)(t,19)^t>>>10;c[i]=n+c[i-7]+r+c[i-16]|0}let{A:r,B:n,C:s,D:l,E:u,F:d,G:p,H:f}=this;for(let g=0;g<64;g++){const e=f+((0,a.rotr)(u,6)^(0,a.rotr)(u,11)^(0,a.rotr)(u,25))+((h=u)&d^~h&p)+o[g]+c[g]|0,t=((0,a.rotr)(r,2)^(0,a.rotr)(r,13)^(0,a.rotr)(r,22))+i(r,n,s)|0;f=p,p=d,d=u,u=l+e|0,l=s,s=n,n=r,r=e+t|0}var h;r=r+this.A|0,n=n+this.B|0,s=s+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,p=p+this.G|0,f=f+this.H|0,this.set(r,n,s,l,u,d,p,f)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,a.wrapConstructor)((()=>new l)),t.sha224=(0,a.wrapConstructor)((()=>new u))},49628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const n=r(68216),a=r(25661),i=r(17838),[o,s,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),d=BigInt(2),p=BigInt(7),f=BigInt(256),h=BigInt(113);for(let x=0,A=u,T=1,k=0;x<24;x++){[T,k]=[k,(2*T+3*k)%5],o.push(2*(5*k+T)),s.push((x+1)*(x+2)/2%64);let e=l;for(let t=0;t<7;t++)A=(A<>p)*h)%f,A&d&&(e^=u<<(u<r>32?(0,a.rotlBH)(e,t,r):(0,a.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,a.rotlBL)(e,t,r):(0,a.rotlSL)(e,t,r);function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){const t=(n+8)%10,a=(n+2)%10,i=r[a],o=r[a+1],s=b(i,o,1)^r[t],c=y(i,o,1)^r[t+1];for(let r=0;r<50;r+=10)e[n+r]^=s,e[n+r+1]^=c}let t=e[2],a=e[3];for(let r=0;r<24;r++){const n=s[r],i=b(t,a,n),c=y(t,a,n),l=o[r];t=e[l],a=e[l+1],e[l]=i,e[l+1]=c}for(let n=0;n<50;n+=10){for(let t=0;t<10;t++)r[t]=e[n+t];for(let t=0;t<10;t++)e[n+t]^=~r[(t+2)%10]&r[(t+4)%10]}e[0]^=g[n],e[1]^=m[n]}r.fill(0)}t.keccakP=v;class E extends i.Hash{constructor(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=a,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);const{blockLen:t,state:r}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;n=r&&this.keccak();const i=Math.min(r-this.posOut,a-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:a,enableXOF:i}=this;return e||(e=new E(t,r,n,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}t.Keccak=E;const S=(e,t,r)=>(0,i.wrapConstructor)((()=>new E(t,e,r)));t.sha3_224=S(6,144,28),t.sha3_256=S(6,136,32),t.sha3_384=S(6,104,48),t.sha3_512=S(6,72,64),t.keccak_224=S(1,144,28),t.keccak_256=S(1,136,32),t.keccak_384=S(1,104,48),t.keccak_512=S(1,72,64);const w=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)((function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new E(t,e,void 0===n.dkLen?r:n.dkLen,!0)}));t.shake128=w(31,168,16),t.shake256=w(31,136,32)},83777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const n=r(73462),a=r(25661),i=r(17838),[o,s]=(()=>a.default.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((e=>BigInt(e)))))(),c=new Uint32Array(80),l=new Uint32Array(80);class u extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:a,Cl:i,Dh:o,Dl:s,Eh:c,El:l,Fh:u,Fl:d,Gh:p,Gl:f,Hh:h,Hl:g}=this;return[e,t,r,n,a,i,o,s,c,l,u,d,p,f,h,g]}set(e,t,r,n,a,i,o,s,c,l,u,d,p,f,h,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|p,this.Gl=0|f,this.Hh=0|h,this.Hl=0|g}process(e,t){for(let a=0;a<16;a++,t+=4)c[a]=e.getUint32(t),l[a]=e.getUint32(t+=4);for(let o=16;o<80;o++){const e=0|c[o-15],t=0|l[o-15],r=a.default.rotrSH(e,t,1)^a.default.rotrSH(e,t,8)^a.default.shrSH(e,t,7),n=a.default.rotrSL(e,t,1)^a.default.rotrSL(e,t,8)^a.default.shrSL(e,t,7),i=0|c[o-2],s=0|l[o-2],u=a.default.rotrSH(i,s,19)^a.default.rotrBH(i,s,61)^a.default.shrSH(i,s,6),d=a.default.rotrSL(i,s,19)^a.default.rotrBL(i,s,61)^a.default.shrSL(i,s,6),p=a.default.add4L(n,d,l[o-7],l[o-16]),f=a.default.add4H(p,r,u,c[o-7],c[o-16]);c[o]=0|f,l[o]=0|p}let{Ah:r,Al:n,Bh:i,Bl:u,Ch:d,Cl:p,Dh:f,Dl:h,Eh:g,El:m,Fh:b,Fl:y,Gh:v,Gl:E,Hh:S,Hl:w}=this;for(let x=0;x<80;x++){const e=a.default.rotrSH(g,m,14)^a.default.rotrSH(g,m,18)^a.default.rotrBH(g,m,41),t=a.default.rotrSL(g,m,14)^a.default.rotrSL(g,m,18)^a.default.rotrBL(g,m,41),A=g&b^~g&v,T=m&y^~m&E,k=a.default.add5L(w,t,T,s[x],l[x]),D=a.default.add5H(k,S,e,A,o[x],c[x]),_=0|k,I=a.default.rotrSH(r,n,28)^a.default.rotrBH(r,n,34)^a.default.rotrBH(r,n,39),R=a.default.rotrSL(r,n,28)^a.default.rotrBL(r,n,34)^a.default.rotrBL(r,n,39),P=r&i^r&d^i&d,C=n&u^n&p^u&p;S=0|v,w=0|E,v=0|b,E=0|y,b=0|g,y=0|m,({h:g,l:m}=a.default.add(0|f,0|h,0|D,0|_)),f=0|d,h=0|p,d=0|i,p=0|u,i=0|r,u=0|n;const O=a.default.add3L(_,R,C);r=a.default.add3H(O,D,I,P),n=0|O}({h:r,l:n}=a.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:u}=a.default.add(0|this.Bh,0|this.Bl,0|i,0|u)),({h:d,l:p}=a.default.add(0|this.Ch,0|this.Cl,0|d,0|p)),({h:f,l:h}=a.default.add(0|this.Dh,0|this.Dl,0|f,0|h)),({h:g,l:m}=a.default.add(0|this.Eh,0|this.El,0|g,0|m)),({h:b,l:y}=a.default.add(0|this.Fh,0|this.Fl,0|b,0|y)),({h:v,l:E}=a.default.add(0|this.Gh,0|this.Gl,0|v,0|E)),({h:S,l:w}=a.default.add(0|this.Hh,0|this.Hl,0|S,0|w)),this.set(r,n,i,u,d,p,f,h,g,m,b,y,v,E,S,w)}roundClean(){c.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=u;class d extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class p extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class f extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,i.wrapConstructor)((()=>new u)),t.sha512_224=(0,i.wrapConstructor)((()=>new d)),t.sha512_256=(0,i.wrapConstructor)((()=>new p)),t.sha384=(0,i.wrapConstructor)((()=>new f))},17838:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const n=r(98842),a=e=>e instanceof Uint8Array;t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));t.bytesToHex=function(e){if(!a(e))throw new Error("Uint8Array expected");let t="";for(let r=0;r{},t.asyncLoop=async function(e,r,n){let a=Date.now();for(let i=0;i=0&&ee+t.length),0));let i=0;return t.forEach((e=>{if(!a(e))throw new Error("Uint8Array expected");n.set(e,i),i+=e.length})),n};t.Hash=class{clone(){return this._cloneInto()}};const c={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==c.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(s(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(s(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(s(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(n.crypto&&"function"===typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},45124:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function n(e){if("boolean"!==typeof e)throw new Error(`boolean expected, not ${e}`)}function a(e){return e instanceof Uint8Array||null!=e&&"object"===typeof e&&"Uint8Array"===e.constructor.name}function i(e){if(!a(e))throw new Error("Uint8Array expected");for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&!r.includes(e.length))throw new Error(`Uint8Array expected of length ${r}, not of length=${e.length}`)}function o(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function s(e){let 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 c(e,t){i(e);const r=t.outputLen;if(e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashMD=t.Maj=t.Chi=void 0;const n=r(45124),a=r(92330);t.Chi=(e,t,r)=>e&t^~e&r;t.Maj=(e,t,r)=>e&t^e&r^t&r;class i extends a.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,a.createView)(this.buffer)}update(e){(0,n.exists)(this);const{view:t,buffer:r,blockLen:i}=this,o=(e=(0,a.toBytes)(e)).length;for(let n=0;ni-s&&(this.process(r,0),s=0);for(let n=s;n>a&i),s=Number(r&i),c=n?4:0,l=n?0:4;e.setUint32(t+c,o,n),e.setUint32(t+l,s,n)}(r,i-8,BigInt(8*this.length),o),this.process(r,0);const c=(0,a.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=void 0,t.fromBig=a,t.split=i,t.add=v;const r=BigInt(2**32-1),n=BigInt(32);function a(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);t.toBig=o;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const l=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=l;const u=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=u;const d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;const p=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=p;const f=(e,t)=>t;t.rotr32H=f;const h=(e,t)=>e;t.rotr32L=h;const g=(e,t,r)=>e<>>32-r;t.rotlSH=g;const m=(e,t,r)=>t<>>32-r;t.rotlSL=m;const b=(e,t,r)=>t<>>64-r;t.rotlBH=b;const y=(e,t,r)=>e<>>64-r;function v(e,t,r,n){const a=(t>>>0)+(n>>>0);return{h:e+r+(a/2**32|0)|0,l:0|a}}t.rotlBL=y;const E=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=E;const S=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;t.add3H=S;const w=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=w;const x=(e,t,r,n,a)=>t+r+n+a+(e/2**32|0)|0;t.add4H=x;const A=(e,t,r,n,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(a>>>0);t.add5L=A;const T=(e,t,r,n,a,i)=>t+r+n+a+i+(e/2**32|0)|0;t.add5H=T;const k={fromBig:a,split:i,toBig:o,shrSH:s,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:d,rotrBL:p,rotr32H:f,rotr32L:h,rotlSH:g,rotlSL:m,rotlBH:b,rotlBL:y,add:v,add3L:E,add3H:S,add4L:w,add4H:x,add5H:T,add5L:A};t.default=k},69302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},54156:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const n=r(45124),a=r(92330);class i extends a.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(e);const r=(0,a.toBytes)(t);if(this.iHash=e.create(),"function"!==typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(r.length>i?e.create().update(r).digest():r);for(let n=0;nnew i(e,t).update(r).digest(),t.hmac.create=(e,t)=>new i(e,t)},21295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const n=r(35391),a=r(92330),i=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),o=new Uint8Array(new Array(16).fill(0).map(((e,t)=>t)));let s=[o],c=[o.map((e=>(9*e+5)%16))];for(let b=0;b<4;b++)for(let e of[s,c])e.push(e[b].map((e=>i[e])));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),u=s.map(((e,t)=>e.map((e=>l[t][e])))),d=c.map(((e,t)=>e.map((e=>l[t][e])))),p=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),f=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]);function h(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}const g=new Uint32Array(16);class m extends n.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:r,h3:n,h4:a}=this;return[e,t,r,n,a]}set(e,t,r,n,a){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|a}process(e,t){for(let a=0;a<16;a++,t+=4)g[a]=e.getUint32(t,!0);let r=0|this.h0,n=r,i=0|this.h1,o=i,l=0|this.h2,m=l,b=0|this.h3,y=b,v=0|this.h4,E=v;for(let S=0;S<5;S++){const e=4-S,t=p[S],w=f[S],x=s[S],A=c[S],T=u[S],k=d[S];for(let n=0;n<16;n++){const e=(0,a.rotl)(r+h(S,i,l,b)+g[x[n]]+t,T[n])+v|0;r=v,v=b,b=0|(0,a.rotl)(l,10),l=i,i=e}for(let r=0;r<16;r++){const t=(0,a.rotl)(n+h(e,o,m,y)+g[A[r]]+w,k[r])+E|0;n=E,E=y,y=0|(0,a.rotl)(m,10),m=o,o=t}}this.set(this.h1+l+y|0,this.h2+b+E|0,this.h3+v+n|0,this.h4+r+o|0,this.h0+i+m|0)}roundClean(){g.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=m,t.ripemd160=(0,a.wrapConstructor)((()=>new m))},29824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=t.SHA256=void 0;const n=r(35391),a=r(92330),i=new Uint32Array([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]),o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint32Array(64);class c extends n.HashMD{constructor(){super(64,32,8,!1),this.A=0|o[0],this.B=0|o[1],this.C=0|o[2],this.D=0|o[3],this.E=0|o[4],this.F=0|o[5],this.G=0|o[6],this.H=0|o[7]}get(){const{A:e,B:t,C:r,D:n,E:a,F:i,G:o,H:s}=this;return[e,t,r,n,a,i,o,s]}set(e,t,r,n,a,i,o,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|a,this.F=0|i,this.G=0|o,this.H=0|s}process(e,t){for(let n=0;n<16;n++,t+=4)s[n]=e.getUint32(t,!1);for(let n=16;n<64;n++){const e=s[n-15],t=s[n-2],r=(0,a.rotr)(e,7)^(0,a.rotr)(e,18)^e>>>3,i=(0,a.rotr)(t,17)^(0,a.rotr)(t,19)^t>>>10;s[n]=i+s[n-7]+r+s[n-16]|0}let{A:r,B:o,C:c,D:l,E:u,F:d,G:p,H:f}=this;for(let h=0;h<64;h++){const e=f+((0,a.rotr)(u,6)^(0,a.rotr)(u,11)^(0,a.rotr)(u,25))+(0,n.Chi)(u,d,p)+i[h]+s[h]|0,t=((0,a.rotr)(r,2)^(0,a.rotr)(r,13)^(0,a.rotr)(r,22))+(0,n.Maj)(r,o,c)|0;f=p,p=d,d=u,u=l+e|0,l=c,c=o,o=r,r=e+t|0}r=r+this.A|0,o=o+this.B|0,c=c+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,p=p+this.G|0,f=f+this.H|0,this.set(r,o,c,l,u,d,p,f)}roundClean(){s.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}t.SHA256=c;class l extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,a.wrapConstructor)((()=>new c)),t.sha224=(0,a.wrapConstructor)((()=>new l))},36392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=v;const n=r(45124),a=r(70681),i=r(92330),o=[],s=[],c=[],l=BigInt(0),u=BigInt(1),d=BigInt(2),p=BigInt(7),f=BigInt(256),h=BigInt(113);for(let x=0,A=u,T=1,k=0;x<24;x++){[T,k]=[k,(2*T+3*k)%5],o.push(2*(5*k+T)),s.push((x+1)*(x+2)/2%64);let e=l;for(let t=0;t<7;t++)A=(A<>p)*h)%f,A&d&&(e^=u<<(u<r>32?(0,a.rotlBH)(e,t,r):(0,a.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,a.rotlBL)(e,t,r):(0,a.rotlSL)(e,t,r);function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){const t=(n+8)%10,a=(n+2)%10,i=r[a],o=r[a+1],s=b(i,o,1)^r[t],c=y(i,o,1)^r[t+1];for(let r=0;r<50;r+=10)e[n+r]^=s,e[n+r+1]^=c}let t=e[2],a=e[3];for(let r=0;r<24;r++){const n=s[r],i=b(t,a,n),c=y(t,a,n),l=o[r];t=e[l],a=e[l+1],e[l]=i,e[l+1]=c}for(let n=0;n<50;n+=10){for(let t=0;t<10;t++)r[t]=e[n+t];for(let t=0;t<10;t++)e[n+t]^=~r[(t+2)%10]&r[(t+4)%10]}e[0]^=g[n],e[1]^=m[n]}r.fill(0)}class E extends i.Hash{constructor(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=a,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){i.isLE||(0,i.byteSwap32)(this.state32),v(this.state32,this.rounds),i.isLE||(0,i.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);const{blockLen:t,state:r}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;n=r&&this.keccak();const i=Math.min(r-this.posOut,a-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:a,enableXOF:i}=this;return e||(e=new E(t,r,n,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}t.Keccak=E;const S=(e,t,r)=>(0,i.wrapConstructor)((()=>new E(t,e,r)));t.sha3_224=S(6,144,28),t.sha3_256=S(6,136,32),t.sha3_384=S(6,104,48),t.sha3_512=S(6,72,64),t.keccak_224=S(1,144,28),t.keccak_256=S(1,136,32),t.keccak_384=S(1,104,48),t.keccak_512=S(1,72,64);const w=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)((function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new E(t,e,void 0===n.dkLen?r:n.dkLen,!0)}));t.shake128=w(31,168,16),t.shake256=w(31,136,32)},92330:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=t.nextTick=t.byteSwapIfBE=t.byteSwap=t.isLE=t.rotl=t.rotr=t.createView=t.u32=t.u8=void 0,t.isBytes=function(e){return e instanceof Uint8Array||null!=e&&"object"===typeof e&&"Uint8Array"===e.constructor.name},t.byteSwap32=function(e){for(let r=0;r=0&&ee().update(l(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(l(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(l(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(n.crypto&&"function"===typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"===typeof n.crypto.randomBytes)return n.crypto.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")};const n=r(69302),a=r(45124);t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);t.rotr=(e,t)=>e<<32-t|e>>>t;t.rotl=(e,t)=>e<>>32-t>>>0,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];t.byteSwap=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255,t.byteSwapIfBE=t.isLE?e=>e:e=>(0,t.byteSwap)(e);const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));const o={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function s(e){return e>=o._0&&e<=o._9?e-o._0:e>=o._A&&e<=o._F?e-(o._A-10):e>=o._a&&e<=o._f?e-(o._a-10):void 0}function c(e){if("string"!==typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function l(e){return"string"===typeof e&&(e=c(e)),(0,a.bytes)(e),e}t.nextTick=async()=>{};t.Hash=class{clone(){return this._cloneInto()}};const u={}.toString},3972:function(e){"use strict";!function(){function t(e){return parseInt(e)===e}function r(e){if(!t(e.length))return!1;for(var r=0;r255)return!1;return!0}function n(e,n){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return n&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(t(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function a(e){return new Uint8Array(e)}function i(e,t,r,n,a){null==n&&null==a||(e=e.slice?e.slice(n,a):Array.prototype.slice.call(e,n,a)),t.set(e,r)}var o={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},s=function(){var e="0123456789abcdef";return{toBytes:function(e){for(var t=[],r=0;r>4]+e[15&a])}return r.join("")}}}(),c={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],u=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],d=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],f=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],h=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],g=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],m=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],b=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],y=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],v=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],E=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],S=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],w=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],x=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function A(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=i[t],this._Kd[e-r][t%4]=i[t];for(var o,s=0,d=a;d>16&255]<<24^u[o>>8&255]<<16^u[255&o]<<8^u[o>>24&255]^l[s]<<24,s+=1,8!=a)for(t=1;t>8&255]<<8^u[o>>16&255]<<16^u[o>>24&255]<<24;for(t=a/2+1;t>2,f=d%4,this._Ke[p][f]=i[t],this._Kd[e-p][f]=i[t++],d++}for(var p=1;p>24&255]^S[o>>16&255]^w[o>>8&255]^x[255&o]},T.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=A(e),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var o=1;o>24&255]^f[n[(i+1)%4]>>16&255]^h[n[(i+2)%4]>>8&255]^g[255&n[(i+3)%4]]^this._Ke[o][i];n=r.slice()}var s,c=a(16);for(i=0;i<4;i++)s=this._Ke[t][i],c[4*i]=255&(u[n[i]>>24&255]^s>>24),c[4*i+1]=255&(u[n[(i+1)%4]>>16&255]^s>>16),c[4*i+2]=255&(u[n[(i+2)%4]>>8&255]^s>>8),c[4*i+3]=255&(u[255&n[(i+3)%4]]^s);return c},T.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=A(e),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var o=1;o>24&255]^b[n[(i+3)%4]>>16&255]^y[n[(i+2)%4]>>8&255]^v[255&n[(i+1)%4]]^this._Kd[o][i];n=r.slice()}var s,c=a(16);for(i=0;i<4;i++)s=this._Kd[t][i],c[4*i]=255&(d[n[i]>>24&255]^s>>24),c[4*i+1]=255&(d[n[(i+3)%4]>>16&255]^s>>16),c[4*i+2]=255&(d[n[(i+2)%4]>>8&255]^s>>8),c[4*i+3]=255&(d[255&n[(i+1)%4]]^s);return c};var k=function(e){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new T(e)};k.prototype.encrypt=function(e){if((e=n(e)).length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),o=0;o=0;--t)this._counter[t]=e%256,e>>=8},R.prototype.setBytes=function(e){if(16!=(e=n(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},R.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var P=function(e,t){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof R||(t=new R(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new T(e)};P.prototype.encrypt=function(e){for(var t=n(e,!0),r=0;r16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,o=0;o{"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var a=t.charAt(n);if(void 0!==r[a])throw new TypeError(a+" is ambiguous");r[a]=n}function i(e){var t=e>>25;return(33554431&e)<<5^996825010&-(1&t)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")";t=i(t)^n>>5}for(t=i(t),r=0;rt)return"Exceeds length limit";var n=e.toLowerCase(),a=e.toUpperCase();if(e!==n&&e!==a)return"Mixed-case string "+e;var s=(e=n).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var c=e.slice(0,s),l=e.slice(s+1);if(l.length<6)return"Data too short";var u=o(c);if("string"===typeof u)return u;for(var d=[],p=0;p=l.length||d.push(h)}return 1!==u?"Invalid checksum for "+e:{prefix:c,words:d}}function c(e,t,r,n){for(var a=0,i=0,o=(1<=r;)i-=r,s.push(a>>i&o);if(n)i>0&&s.push(a<=t)return"Excess padding";if(a<n)throw new TypeError("Exceeds length limit");var a=o(e=e.toLowerCase());if("string"===typeof a)throw new Error(a);for(var s=e+"1",c=0;c>5!==0)throw new Error("Non 5-bit word");a=i(a)^l,s+=t.charAt(l)}for(c=0;c<6;++c)a=i(a);for(a^=1,c=0;c<6;++c){s+=t.charAt(a>>5*(5-c)&31)}return s},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},91257:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"===typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(39657).Buffer}catch(_){}function s(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 c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,r,a){for(var i=0,o=0,s=Math.min(e.length,r),c=t;c=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o0?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 a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)a=c(e,t,n)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(n=(e.length-t)%2===0?t+1:t;n=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,s=Math.min(i,i-o)+r,c=0,u=r;u1&&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")]=d}catch(_){i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var p=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var a=0,i=0,o=0;o>>24-a&16777215,(a+=2)>=26&&(a-=26,o--),r=0!==i||o!==this.length-1?p[6-c.length]+c+r:c+r}for(0!==i&&(r=i.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 l=f[e],u=h[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(u).toString(e);r=(d=d.idivn(u)).isZero()?g+r:p[l-g.length]+g+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 g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;r.words[0]=s;for(var l=1;l>>26,d=67108863&c,p=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=p;f++){var h=l-f|0;u+=(o=(a=0|e.words[h])*(i=0|t.words[f])+d)/67108864|0,d=67108863&o}r.words[l]=0|d,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}i.prototype.toArrayLike=function(e,t,r){this._strip();var a=this.byteLength(),i=r||Math.max(1,a);n(a<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,a),o},i.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,a=0,i=0;a>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===i?(r>=0&&(e[r--]=o>>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},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 r=0;re.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,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.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 a=0;a0&&(this.words[a]=~this.words[a]&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,a=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.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 r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,f=0|o[1],h=8191&f,g=f>>>13,m=0|o[2],b=8191&m,y=m>>>13,v=0|o[3],E=8191&v,S=v>>>13,w=0|o[4],x=8191&w,A=w>>>13,T=0|o[5],k=8191&T,D=T>>>13,_=0|o[6],I=8191&_,R=_>>>13,P=0|o[7],C=8191&P,O=P>>>13,U=0|o[8],N=8191&U,B=U>>>13,L=0|o[9],M=8191&L,F=L>>>13,j=0|s[0],H=8191&j,z=j>>>13,$=0|s[1],G=8191&$,V=$>>>13,W=0|s[2],q=8191&W,K=W>>>13,Z=0|s[3],X=8191&Z,Y=Z>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],de=8191&ue,pe=ue>>>13,fe=0|s[9],he=8191&fe,ge=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(l+(n=Math.imul(d,H))|0)+((8191&(a=(a=Math.imul(d,z))+Math.imul(p,H)|0))<<13)|0;l=((i=Math.imul(p,z))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(h,H),a=(a=Math.imul(h,z))+Math.imul(g,H)|0,i=Math.imul(g,z);var be=(l+(n=n+Math.imul(d,G)|0)|0)+((8191&(a=(a=a+Math.imul(d,V)|0)+Math.imul(p,G)|0))<<13)|0;l=((i=i+Math.imul(p,V)|0)+(a>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,H),a=(a=Math.imul(b,z))+Math.imul(y,H)|0,i=Math.imul(y,z),n=n+Math.imul(h,G)|0,a=(a=a+Math.imul(h,V)|0)+Math.imul(g,G)|0,i=i+Math.imul(g,V)|0;var ye=(l+(n=n+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,K)|0)+Math.imul(p,q)|0))<<13)|0;l=((i=i+Math.imul(p,K)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(E,H),a=(a=Math.imul(E,z))+Math.imul(S,H)|0,i=Math.imul(S,z),n=n+Math.imul(b,G)|0,a=(a=a+Math.imul(b,V)|0)+Math.imul(y,G)|0,i=i+Math.imul(y,V)|0,n=n+Math.imul(h,q)|0,a=(a=a+Math.imul(h,K)|0)+Math.imul(g,q)|0,i=i+Math.imul(g,K)|0;var ve=(l+(n=n+Math.imul(d,X)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(p,X)|0))<<13)|0;l=((i=i+Math.imul(p,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(x,H),a=(a=Math.imul(x,z))+Math.imul(A,H)|0,i=Math.imul(A,z),n=n+Math.imul(E,G)|0,a=(a=a+Math.imul(E,V)|0)+Math.imul(S,G)|0,i=i+Math.imul(S,V)|0,n=n+Math.imul(b,q)|0,a=(a=a+Math.imul(b,K)|0)+Math.imul(y,q)|0,i=i+Math.imul(y,K)|0,n=n+Math.imul(h,X)|0,a=(a=a+Math.imul(h,Y)|0)+Math.imul(g,X)|0,i=i+Math.imul(g,Y)|0;var Ee=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(p,Q)|0))<<13)|0;l=((i=i+Math.imul(p,ee)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(k,H),a=(a=Math.imul(k,z))+Math.imul(D,H)|0,i=Math.imul(D,z),n=n+Math.imul(x,G)|0,a=(a=a+Math.imul(x,V)|0)+Math.imul(A,G)|0,i=i+Math.imul(A,V)|0,n=n+Math.imul(E,q)|0,a=(a=a+Math.imul(E,K)|0)+Math.imul(S,q)|0,i=i+Math.imul(S,K)|0,n=n+Math.imul(b,X)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(h,Q)|0,a=(a=a+Math.imul(h,ee)|0)+Math.imul(g,Q)|0,i=i+Math.imul(g,ee)|0;var Se=(l+(n=n+Math.imul(d,re)|0)|0)+((8191&(a=(a=a+Math.imul(d,ne)|0)+Math.imul(p,re)|0))<<13)|0;l=((i=i+Math.imul(p,ne)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(I,H),a=(a=Math.imul(I,z))+Math.imul(R,H)|0,i=Math.imul(R,z),n=n+Math.imul(k,G)|0,a=(a=a+Math.imul(k,V)|0)+Math.imul(D,G)|0,i=i+Math.imul(D,V)|0,n=n+Math.imul(x,q)|0,a=(a=a+Math.imul(x,K)|0)+Math.imul(A,q)|0,i=i+Math.imul(A,K)|0,n=n+Math.imul(E,X)|0,a=(a=a+Math.imul(E,Y)|0)+Math.imul(S,X)|0,i=i+Math.imul(S,Y)|0,n=n+Math.imul(b,Q)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(h,re)|0,a=(a=a+Math.imul(h,ne)|0)+Math.imul(g,re)|0,i=i+Math.imul(g,ne)|0;var we=(l+(n=n+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(p,ie)|0))<<13)|0;l=((i=i+Math.imul(p,oe)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,H),a=(a=Math.imul(C,z))+Math.imul(O,H)|0,i=Math.imul(O,z),n=n+Math.imul(I,G)|0,a=(a=a+Math.imul(I,V)|0)+Math.imul(R,G)|0,i=i+Math.imul(R,V)|0,n=n+Math.imul(k,q)|0,a=(a=a+Math.imul(k,K)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,K)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(A,X)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(E,Q)|0,a=(a=a+Math.imul(E,ee)|0)+Math.imul(S,Q)|0,i=i+Math.imul(S,ee)|0,n=n+Math.imul(b,re)|0,a=(a=a+Math.imul(b,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(h,ie)|0,a=(a=a+Math.imul(h,oe)|0)+Math.imul(g,ie)|0,i=i+Math.imul(g,oe)|0;var xe=(l+(n=n+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(p,ce)|0))<<13)|0;l=((i=i+Math.imul(p,le)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(N,H),a=(a=Math.imul(N,z))+Math.imul(B,H)|0,i=Math.imul(B,z),n=n+Math.imul(C,G)|0,a=(a=a+Math.imul(C,V)|0)+Math.imul(O,G)|0,i=i+Math.imul(O,V)|0,n=n+Math.imul(I,q)|0,a=(a=a+Math.imul(I,K)|0)+Math.imul(R,q)|0,i=i+Math.imul(R,K)|0,n=n+Math.imul(k,X)|0,a=(a=a+Math.imul(k,Y)|0)+Math.imul(D,X)|0,i=i+Math.imul(D,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,ee)|0,n=n+Math.imul(E,re)|0,a=(a=a+Math.imul(E,ne)|0)+Math.imul(S,re)|0,i=i+Math.imul(S,ne)|0,n=n+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(h,ce)|0,a=(a=a+Math.imul(h,le)|0)+Math.imul(g,ce)|0,i=i+Math.imul(g,le)|0;var Ae=(l+(n=n+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,pe)|0)+Math.imul(p,de)|0))<<13)|0;l=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(M,H),a=(a=Math.imul(M,z))+Math.imul(F,H)|0,i=Math.imul(F,z),n=n+Math.imul(N,G)|0,a=(a=a+Math.imul(N,V)|0)+Math.imul(B,G)|0,i=i+Math.imul(B,V)|0,n=n+Math.imul(C,q)|0,a=(a=a+Math.imul(C,K)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,K)|0,n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(k,Q)|0,a=(a=a+Math.imul(k,ee)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(A,re)|0,i=i+Math.imul(A,ne)|0,n=n+Math.imul(E,ie)|0,a=(a=a+Math.imul(E,oe)|0)+Math.imul(S,ie)|0,i=i+Math.imul(S,oe)|0,n=n+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(y,ce)|0,i=i+Math.imul(y,le)|0,n=n+Math.imul(h,de)|0,a=(a=a+Math.imul(h,pe)|0)+Math.imul(g,de)|0,i=i+Math.imul(g,pe)|0;var Te=(l+(n=n+Math.imul(d,he)|0)|0)+((8191&(a=(a=a+Math.imul(d,ge)|0)+Math.imul(p,he)|0))<<13)|0;l=((i=i+Math.imul(p,ge)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(M,G),a=(a=Math.imul(M,V))+Math.imul(F,G)|0,i=Math.imul(F,V),n=n+Math.imul(N,q)|0,a=(a=a+Math.imul(N,K)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,K)|0,n=n+Math.imul(C,X)|0,a=(a=a+Math.imul(C,Y)|0)+Math.imul(O,X)|0,i=i+Math.imul(O,Y)|0,n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(k,re)|0,a=(a=a+Math.imul(k,ne)|0)+Math.imul(D,re)|0,i=i+Math.imul(D,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(A,ie)|0,i=i+Math.imul(A,oe)|0,n=n+Math.imul(E,ce)|0,a=(a=a+Math.imul(E,le)|0)+Math.imul(S,ce)|0,i=i+Math.imul(S,le)|0,n=n+Math.imul(b,de)|0,a=(a=a+Math.imul(b,pe)|0)+Math.imul(y,de)|0,i=i+Math.imul(y,pe)|0;var ke=(l+(n=n+Math.imul(h,he)|0)|0)+((8191&(a=(a=a+Math.imul(h,ge)|0)+Math.imul(g,he)|0))<<13)|0;l=((i=i+Math.imul(g,ge)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,K))+Math.imul(F,q)|0,i=Math.imul(F,K),n=n+Math.imul(N,X)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(B,X)|0,i=i+Math.imul(B,Y)|0,n=n+Math.imul(C,Q)|0,a=(a=a+Math.imul(C,ee)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,ee)|0,n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(k,ie)|0,a=(a=a+Math.imul(k,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,n=n+Math.imul(x,ce)|0,a=(a=a+Math.imul(x,le)|0)+Math.imul(A,ce)|0,i=i+Math.imul(A,le)|0,n=n+Math.imul(E,de)|0,a=(a=a+Math.imul(E,pe)|0)+Math.imul(S,de)|0,i=i+Math.imul(S,pe)|0;var De=(l+(n=n+Math.imul(b,he)|0)|0)+((8191&(a=(a=a+Math.imul(b,ge)|0)+Math.imul(y,he)|0))<<13)|0;l=((i=i+Math.imul(y,ge)|0)+(a>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(M,X),a=(a=Math.imul(M,Y))+Math.imul(F,X)|0,i=Math.imul(F,Y),n=n+Math.imul(N,Q)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,ee)|0,n=n+Math.imul(C,re)|0,a=(a=a+Math.imul(C,ne)|0)+Math.imul(O,re)|0,i=i+Math.imul(O,ne)|0,n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(k,ce)|0,a=(a=a+Math.imul(k,le)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,le)|0,n=n+Math.imul(x,de)|0,a=(a=a+Math.imul(x,pe)|0)+Math.imul(A,de)|0,i=i+Math.imul(A,pe)|0;var _e=(l+(n=n+Math.imul(E,he)|0)|0)+((8191&(a=(a=a+Math.imul(E,ge)|0)+Math.imul(S,he)|0))<<13)|0;l=((i=i+Math.imul(S,ge)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(M,Q),a=(a=Math.imul(M,ee))+Math.imul(F,Q)|0,i=Math.imul(F,ee),n=n+Math.imul(N,re)|0,a=(a=a+Math.imul(N,ne)|0)+Math.imul(B,re)|0,i=i+Math.imul(B,ne)|0,n=n+Math.imul(C,ie)|0,a=(a=a+Math.imul(C,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,n=n+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(R,ce)|0,i=i+Math.imul(R,le)|0,n=n+Math.imul(k,de)|0,a=(a=a+Math.imul(k,pe)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,pe)|0;var Ie=(l+(n=n+Math.imul(x,he)|0)|0)+((8191&(a=(a=a+Math.imul(x,ge)|0)+Math.imul(A,he)|0))<<13)|0;l=((i=i+Math.imul(A,ge)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(M,re),a=(a=Math.imul(M,ne))+Math.imul(F,re)|0,i=Math.imul(F,ne),n=n+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,n=n+Math.imul(C,ce)|0,a=(a=a+Math.imul(C,le)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,le)|0,n=n+Math.imul(I,de)|0,a=(a=a+Math.imul(I,pe)|0)+Math.imul(R,de)|0,i=i+Math.imul(R,pe)|0;var Re=(l+(n=n+Math.imul(k,he)|0)|0)+((8191&(a=(a=a+Math.imul(k,ge)|0)+Math.imul(D,he)|0))<<13)|0;l=((i=i+Math.imul(D,ge)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(M,ie),a=(a=Math.imul(M,oe))+Math.imul(F,ie)|0,i=Math.imul(F,oe),n=n+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,le)|0,n=n+Math.imul(C,de)|0,a=(a=a+Math.imul(C,pe)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,pe)|0;var Pe=(l+(n=n+Math.imul(I,he)|0)|0)+((8191&(a=(a=a+Math.imul(I,ge)|0)+Math.imul(R,he)|0))<<13)|0;l=((i=i+Math.imul(R,ge)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(M,ce),a=(a=Math.imul(M,le))+Math.imul(F,ce)|0,i=Math.imul(F,le),n=n+Math.imul(N,de)|0,a=(a=a+Math.imul(N,pe)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,pe)|0;var Ce=(l+(n=n+Math.imul(C,he)|0)|0)+((8191&(a=(a=a+Math.imul(C,ge)|0)+Math.imul(O,he)|0))<<13)|0;l=((i=i+Math.imul(O,ge)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(M,de),a=(a=Math.imul(M,pe))+Math.imul(F,de)|0,i=Math.imul(F,pe);var Oe=(l+(n=n+Math.imul(N,he)|0)|0)+((8191&(a=(a=a+Math.imul(N,ge)|0)+Math.imul(B,he)|0))<<13)|0;l=((i=i+Math.imul(B,ge)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Ue=(l+(n=Math.imul(M,he))|0)+((8191&(a=(a=Math.imul(M,ge))+Math.imul(F,he)|0))<<13)|0;return l=((i=Math.imul(F,ge))+(a>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,c[0]=me,c[1]=be,c[2]=ye,c[3]=ve,c[4]=Ee,c[5]=Se,c[6]=we,c[7]=xe,c[8]=Ae,c[9]=Te,c[10]=ke,c[11]=De,c[12]=_e,c[13]=Ie,c[14]=Re,c[15]=Pe,c[16]=Ce,c[17]=Oe,c[18]=Ue,0!==l&&(c[19]=l,r.length++),r};function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=s,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r._strip()}function y(e,t,r){return b(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(m=g),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?g(this,e,t):r<1024?b(this,e,t):y(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=i.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,r+=i/67108864|0,r+=o>>>26,this.words[a]=67108863&o}return 0!==r&&(this.words[a]=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()),r=0;r>>a&1}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n=0);var t,r=e%26,a=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=a);l--){var d=0|this.words[l];this.words[l]=u<<26-i|d>>>i,u=d&s}return c&&0!==u&&(c.words[c.length++]=u),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,a=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 a=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)-(c/67108864|0),this.words[a+r]=67108863&i}for(;a>26,this.words[a+r]=67108863&i;if(0===s)return this._strip();for(n(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,o=0|a.words[a.length-1];0!==(r=26-this._countBits(o))&&(a=a.ushln(r),n.iushln(r),o=0|a.words[a.length-1]);var s,c=n.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var p=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(p=Math.min(p/o|0,67108863),n._ishlnsubmul(a,p,d);0!==n.negative;)p--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=p)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},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&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):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 a,o,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 r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?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,a=0,i=this.length-1;i>=0;i--)a=(r*a+(0|this.words[i]))%e;return t?-a:a},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,a=this.length-1;a>=0;a--){var i=(0|this.words[a])+67108864*r;this.words[a]=i/e|0,r=i%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 a=new i(1),o=new i(0),s=new i(0),c=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var p=0,f=1;0===(t.words[0]&f)&&p<26;++p,f<<=1);if(p>0)for(t.iushrn(p);p-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var h=0,g=1;0===(r.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(r.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s),o.isub(c)):(r.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:r.iushln(l)}},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 a,o=new i(1),s=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0===(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,p=1;0===(r.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},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,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,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 a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(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 k(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 E={k256:null,p224:null,p192:null,p25519:null};function S(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(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(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 D(e){k.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)}S.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},S.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},S.prototype.split=function(e,t){e.iushrn(this.n,0,t)},S.prototype.imulK=function(e){return e.imul(this.k)},a(w,S),w.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&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,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(E[e])return E[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new x;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new T}return E[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.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")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.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 a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);n(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,a),p=this.pow(e,a.addn(1).iushrn(1)),f=this.pow(e,a),h=o;0!==f.cmp(s);){for(var g=f,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var l=t.words[n],u=c-1;u>=0;u--){var d=l>>u&1;a!==r[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,r[o]),s=0,o=0)):s=0}c=26}return a},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new D(e)},a(D,k),D.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},D.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},D.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},D.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},D.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},11920:e=>{"use strict";const t=/[\p{Lu}]/u,r=/[\p{Ll}]/u,n=/^[\p{Lu}](?![\p{Lu}])/gu,a=/([\p{Alpha}\p{N}_]|$)/u,i=/[_.\- ]+/,o=new RegExp("^"+i.source),s=new RegExp(i.source+a.source,"gu"),c=new RegExp("\\d+"+a.source,"gu"),l=(e,a)=>{if("string"!==typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(a={pascalCase:!1,preserveConsecutiveUppercase:!1,...a},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const i=!1===a.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(a.locale),l=!1===a.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(a.locale);if(1===e.length)return a.pascalCase?l(e):i(e);return e!==i(e)&&(e=((e,n,a)=>{let i=!1,o=!1,s=!1;for(let c=0;c(n.lastIndex=0,e.replace(n,(e=>t(e)))))(e,i):i(e),a.pascalCase&&(e=l(e.charAt(0))+e.slice(1)),((e,t)=>(s.lastIndex=0,c.lastIndex=0,e.replace(s,((e,r)=>t(r))).replace(c,(e=>t(e)))))(e,l)};e.exports=l,e.exports.default=l},40526:(e,t)=>{"use strict";t.q=function(e){var t,n=[],i=String(e||a),o=i.indexOf(r),s=0,c=!1;for(;!c;)-1===o&&(o=i.length,c=!0),!(t=i.slice(s,o).trim())&&c||n.push(t),s=o+1,o=i.indexOf(r,s);return n};var r=",",n=" ",a=""},44024:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseContract:()=>Un,BigNumber:()=>K,Contract:()=>Nn,ContractFactory:()=>Bn,FixedNumber:()=>qn,Signer:()=>ur,VoidSigner:()=>dr,Wallet:()=>Ai,Wordlist:()=>Ta,constants:()=>a,errors:()=>m,ethers:()=>c,getDefaultProvider:()=>wc,logger:()=>Qc,providers:()=>i,utils:()=>s,version:()=>Jc,wordlists:()=>Ia});var n={};r.r(n),r.d(n,{decode:()=>De,encode:()=>Ae});var a={};r.r(a),r.d(a,{AddressZero:()=>Di,EtherSymbol:()=>Ii,HashZero:()=>_i,MaxInt256:()=>mt,MaxUint256:()=>ht,MinInt256:()=>gt,NegativeOne:()=>lt,One:()=>dt,Two:()=>pt,WeiPerEther:()=>ft,Zero:()=>ut});var i={};r.r(i),r.d(i,{AlchemyProvider:()=>_s,AlchemyWebSocketProvider:()=>Ds,AnkrProvider:()=>Cs,BaseProvider:()=>rs,CloudflareProvider:()=>Ns,EtherscanProvider:()=>$s,FallbackProvider:()=>ic,Formatter:()=>_o,InfuraProvider:()=>uc,InfuraWebSocketProvider:()=>lc,IpcProvider:()=>oc,JsonRpcBatchProvider:()=>dc,JsonRpcProvider:()=>gs,JsonRpcSigner:()=>ps,NodesmithProvider:()=>fc,PocketProvider:()=>mc,Provider:()=>ir,Resolver:()=>Qo,StaticJsonRpcProvider:()=>xs,UrlJsonRpcProvider:()=>As,Web3Provider:()=>Ec,WebSocketProvider:()=>Es,getDefaultProvider:()=>wc,getNetwork:()=>Li,isCommunityResourcable:()=>Io,isCommunityResource:()=>Ro,showThrottleMessage:()=>Co});var o={};r.r(o),r.d(o,{decode:()=>Mi,encode:()=>Fi});var s={};r.r(s),r.d(s,{AbiCoder:()=>Wt,ConstructorFragment:()=>Nt,ErrorFragment:()=>Mt,EventFragment:()=>Pt,FormatTypes:()=>kt,Fragment:()=>Rt,FunctionFragment:()=>Bt,HDNode:()=>ja,Indexed:()=>Jt,Interface:()=>tr,LogDescription:()=>Zt,Logger:()=>y,ParamType:()=>_t,RLP:()=>n,SigningKey:()=>Qr,SupportedAlgorithm:()=>ba,TransactionDescription:()=>Xt,TransactionTypes:()=>nn,UnicodeNormalizationForm:()=>je,Utf8ErrorFuncs:()=>$e,Utf8ErrorReason:()=>He,_TypedDataEncoder:()=>ha,_fetchData:()=>So,_toEscapedUtf8String:()=>qe,accessListify:()=>fn,arrayify:()=>T,base58:()=>ma,base64:()=>o,checkProperties:()=>ae,checkResultErrors:()=>fe,commify:()=>qc,computeAddress:()=>ln,computeHmac:()=>wa,computePublicKey:()=>tn,concat:()=>k,deepCopy:()=>le,defaultAbiCoder:()=>qt,defaultPath:()=>Fa,defineReadOnly:()=>te,dnsEncode:()=>ho,entropyToMnemonic:()=>$a,fetchJson:()=>wo,formatBytes32String:()=>$c,formatEther:()=>Xc,formatUnits:()=>Kc,getAccountPath:()=>Va,getAddress:()=>Ue,getContractAddress:()=>Le,getCreate2Address:()=>Me,getIcapAddress:()=>Be,getJsonWalletAddress:()=>vi,getStatic:()=>re,hashMessage:()=>Yn,hexConcat:()=>U,hexDataLength:()=>C,hexDataSlice:()=>O,hexStripZeros:()=>B,hexValue:()=>N,hexZeroPad:()=>L,hexlify:()=>P,id:()=>Ye,isAddress:()=>Ne,isBytes:()=>A,isBytesLike:()=>w,isHexString:()=>I,isValidMnemonic:()=>Ga,isValidName:()=>po,joinSignature:()=>F,keccak256:()=>ve,mnemonicToEntropy:()=>za,mnemonicToSeed:()=>Ha,namehash:()=>fo,nameprep:()=>zc,parseBytes32String:()=>Gc,parseEther:()=>Yc,parseTransaction:()=>vn,parseUnits:()=>Zc,poll:()=>xo,randomBytes:()=>Za,recoverAddress:()=>un,recoverPublicKey:()=>en,resolveProperties:()=>ne,ripemd160:()=>va,serializeTransaction:()=>bn,sha256:()=>Ea,sha512:()=>Sa,shallowCopy:()=>ie,shuffled:()=>Gs,solidityKeccak256:()=>Rc,solidityPack:()=>Ic,soliditySha256:()=>Pc,splitSignature:()=>M,stripZeros:()=>D,toUtf8Bytes:()=>Ve,toUtf8CodePoints:()=>Xe,toUtf8String:()=>Ze,verifyMessage:()=>Ti,verifyTypedData:()=>ki,zeroPad:()=>_});var c={};r.r(c),r.d(c,{BaseContract:()=>Un,BigNumber:()=>K,Contract:()=>Nn,ContractFactory:()=>Bn,FixedNumber:()=>qn,Signer:()=>ur,VoidSigner:()=>dr,Wallet:()=>Ai,Wordlist:()=>Ta,constants:()=>a,errors:()=>m,getDefaultProvider:()=>wc,logger:()=>Qc,providers:()=>i,utils:()=>s,version:()=>Jc,wordlists:()=>Ia});let l=!1,u=!1;const d={debug:1,default:2,info:2,warning:3,error:4,off:5};let p=d.default,f=null;const h=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){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 g,m;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(g||(g={})),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"}(m||(m={}));const b="0123456789abcdef";class y{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==d[r]&&this.throwArgumentError("invalid log level name","logLevel",e),p>d[r]||console.log.apply(console,t)}debug(){for(var e=arguments.length,t=new Array(e),r=0;r{const t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e>4],r+=b[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(o){n.push(e+"="+JSON.stringify(r[e].toString()))}})),n.push(`code=${t}`),n.push(`version=${this.version}`);const a=e;let i="";switch(t){case m.NUMERIC_FAULT:{i="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":i+="-"+t;break;case"negative-power":case"negative-width":i+="-unsupported";break;case"unbound-bitwise-result":i+="-unbound-result"}break}case m.CALL_EXCEPTION:case m.INSUFFICIENT_FUNDS:case m.MISSING_NEW:case m.NONCE_EXPIRED:case m.REPLACEMENT_UNDERPRICED:case m.TRANSACTION_REPLACED:case m.UNPREDICTABLE_GAS_LIMIT:i=t}i&&(e+=" [ See: https://links.ethers.org/v5-errors-"+i+" ]"),n.length&&(e+=" ("+n.join(", ")+")");const o=new Error(e);return o.reason=a,o.code=t,Object.keys(r).forEach((function(e){o[e]=r[e]})),o}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,y.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),h&&this.throwError("platform missing String.prototype.normalize",y.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:h})}checkSafeUint53(e,t){"number"===typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",et&&this.throwError("too many arguments"+r,y.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",y.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",y.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",y.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return f||(f=new y("logger/5.7.0")),f}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),l){if(!e)return;this.globalLogger().throwError("error censorship permanent",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}u=!!e,l=!!t}static setLogLevel(e){const t=d[e.toLowerCase()];null!=t?p=t:y.globalLogger().warn("invalid log level - "+e)}static from(e){return new y(e)}}y.errors=m,y.levels=g;const v=new y("bytes/5.7.0");function E(e){return!!e.toHexString}function S(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return S(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function w(e){return I(e)&&!(e.length%2)||A(e)}function x(e){return"number"===typeof e&&e==e&&e%1===0}function A(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"===typeof e)return!1;if(!x(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function T(e,t){if(t||(t={}),"number"===typeof e){v.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),S(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),E(e)&&(e=e.toHexString()),I(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":v.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let e=0;eT(e))),r=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(r);return t.reduce(((e,t)=>(n.set(t,e),e+t.length)),0),S(n)}function D(e){let t=T(e);if(0===t.length)return t;let r=0;for(;rt&&v.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),S(r)}function I(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const R="0123456789abcdef";function P(e,t){if(t||(t={}),"number"===typeof e){v.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=R[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),E(e))return e.toHexString();if(I(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":v.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(A(e)){let t="0x";for(let r=0;r>4]+R[15&n]}return t}return v.throwArgumentError("invalid hexlify value","value",e)}function C(e){if("string"!==typeof e)e=P(e);else if(!I(e)||e.length%2)return null;return(e.length-2)/2}function O(e,t,r){return"string"!==typeof e?e=P(e):(!I(e)||e.length%2)&&v.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function U(e){let t="0x";return e.forEach((e=>{t+=P(e).substring(2)})),t}function N(e){const t=B(P(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function B(e){"string"!==typeof e&&(e=P(e)),I(e)||v.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&v.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function M(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(w(e)){let r=T(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=P(r.slice(0,32)),t.s=P(r.slice(32,64))):65===r.length?(t.r=P(r.slice(0,32)),t.s=P(r.slice(32,64)),t.v=r[64]):v.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:v.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=P(r.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 r=_(T(t._vs),32);t._vs=P(r);const n=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=n:t.recoveryParam!==n&&v.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;const a=P(r);null==t.s?t.s=a:t.s!==a&&v.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?v.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 r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&v.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&I(t.r)?t.r=L(t.r,32):v.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&I(t.s)?t.s=L(t.s,32):v.throwArgumentError("signature missing or invalid s","signature",e);const r=T(t.s);r[0]>=128&&v.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const n=P(r);t._vs&&(I(t._vs)||v.throwArgumentError("signature invalid _vs","signature",e),t._vs=L(t._vs,32)),null==t._vs?t._vs=n:t._vs!==n&&v.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function F(e){return P(k([(e=M(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}var j=r(91257),H=r.n(j);const z="bignumber/5.7.0";var $=H().BN;const G=new y(z),V={},W=9007199254740991;let q=!1;class K{constructor(e,t){e!==V&&G.throwError("cannot call constructor directly; use BigNumber.from",y.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return X(Y(this).fromTwos(e))}toTwos(e){return X(Y(this).toTwos(e))}abs(){return"-"===this._hex[0]?K.from(this._hex.substring(1)):this}add(e){return X(Y(this).add(Y(e)))}sub(e){return X(Y(this).sub(Y(e)))}div(e){return K.from(e).isZero()&&J("division-by-zero","div"),X(Y(this).div(Y(e)))}mul(e){return X(Y(this).mul(Y(e)))}mod(e){const t=Y(e);return t.isNeg()&&J("division-by-zero","mod"),X(Y(this).umod(t))}pow(e){const t=Y(e);return t.isNeg()&&J("negative-power","pow"),X(Y(this).pow(t))}and(e){const t=Y(e);return(this.isNegative()||t.isNeg())&&J("unbound-bitwise-result","and"),X(Y(this).and(t))}or(e){const t=Y(e);return(this.isNegative()||t.isNeg())&&J("unbound-bitwise-result","or"),X(Y(this).or(t))}xor(e){const t=Y(e);return(this.isNegative()||t.isNeg())&&J("unbound-bitwise-result","xor"),X(Y(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&J("negative-width","mask"),X(Y(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&J("negative-width","shl"),X(Y(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&J("negative-width","shr"),X(Y(this).shrn(e))}eq(e){return Y(this).eq(Y(e))}lt(e){return Y(this).lt(Y(e))}lte(e){return Y(this).lte(Y(e))}gt(e){return Y(this).gt(Y(e))}gte(e){return Y(this).gte(Y(e))}isNegative(){return"-"===this._hex[0]}isZero(){return Y(this).isZero()}toNumber(){try{return Y(this).toNumber()}catch(e){J("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return G.throwError("this platform does not support BigInt",y.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?q||(q=!0,G.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?G.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",y.errors.UNEXPECTED_ARGUMENT,{}):G.throwError("BigNumber.toString does not accept parameters",y.errors.UNEXPECTED_ARGUMENT,{})),Y(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof K)return e;if("string"===typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new K(V,Z(e)):e.match(/^-?[0-9]+$/)?new K(V,Z(new $(e))):G.throwArgumentError("invalid BigNumber string","value",e);if("number"===typeof e)return e%1&&J("underflow","BigNumber.from",e),(e>=W||e<=-W)&&J("overflow","BigNumber.from",e),K.from(String(e));const t=e;if("bigint"===typeof t)return K.from(t.toString());if(A(t))return K.from(P(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"===typeof e)return K.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"===typeof e&&(I(e)||"-"===e[0]&&I(e.substring(1))))return K.from(e)}return G.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function Z(e){if("string"!==typeof e)return Z(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&G.throwArgumentError("invalid hex","value",e),"0x00"===(e=Z(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 X(e){return K.from(Z(e))}function Y(e){const t=K.from(e).toHexString();return"-"===t[0]?new $("-"+t.substring(3),16):new $(t.substring(2),16)}function J(e,t,r){const n={fault:e,operation:t};return null!=r&&(n.value=r),G.throwError(e,y.errors.NUMERIC_FAULT,n)}var Q=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const ee=new y("properties/5.7.0");function te(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function re(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!==typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function ne(e){return Q(this,void 0,void 0,(function*(){const t=Object.keys(e).map((t=>{const r=e[t];return Promise.resolve(r).then((e=>({key:t,value:e})))}));return(yield Promise.all(t)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function ae(e,t){e&&"object"===typeof e||ee.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((r=>{t[r]||ee.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)}))}function ie(e){const t={};for(const r in e)t[r]=e[r];return t}const oe={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function se(e){if(void 0===e||null===e||oe[typeof e])return!0;if(Array.isArray(e)||"object"===typeof e){if(!Object.isFrozen(e))return!1;const r=Object.keys(e);for(let n=0;nle(e))));if("object"===typeof e){const t={};for(const r in e){const n=e[r];void 0!==n&&te(t,r,le(n))}return t}return ee.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function le(e){return ce(e)}class ue{constructor(e){for(const t in e)this[t]=le(e[t])}}const de="abi/5.7.0",pe=new y(de);function fe(e){const t=[],r=function(e,n){if(Array.isArray(n))for(let i in n){const o=e.slice();o.push(i);try{r(o,n[i])}catch(a){t.push({path:o,error:a})}}};return r([],e),t}class he{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){pe.throwArgumentError(e,this.localName,t)}}class ge{constructor(e){te(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return U(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(k(e._data))}writeBytes(e){let t=T(e);const r=t.length%this.wordSize;return r&&(t=k([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=T(K.from(e));return t.length>this.wordSize&&pe.throwError("value out-of-bounds",y.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=k([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 me{constructor(e,t,r,n){te(this,"_data",T(e)),te(this,"wordSize",t||32),te(this,"_coerceFunc",r),te(this,"allowLoose",n),this._offset=0}get data(){return P(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):me.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:pe.throwError("data out-of-bounds",y.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new me(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return K.from(this.readBytes(this.wordSize))}}var be=r(75491),ye=r.n(be);function ve(e){return"0x"+ye().keccak_256(T(e))}const Ee=new y("rlp/5.7.0");function Se(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function we(e,t,r){let n=0;for(let a=0;at+1+n&&Ee.throwError("child data too short",y.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function ke(e,t){if(0===e.length&&Ee.throwError("data too short",y.errors.BUFFER_OVERRUN,{}),e[t]>=248){const r=e[t]-247;t+1+r>e.length&&Ee.throwError("data short segment too short",y.errors.BUFFER_OVERRUN,{});const n=we(e,t+1,r);return t+1+r+n>e.length&&Ee.throwError("data long segment too short",y.errors.BUFFER_OVERRUN,{}),Te(e,t,t+1+r,r+n)}if(e[t]>=192){const r=e[t]-192;return t+1+r>e.length&&Ee.throwError("data array too short",y.errors.BUFFER_OVERRUN,{}),Te(e,t,t+1,r)}if(e[t]>=184){const r=e[t]-183;t+1+r>e.length&&Ee.throwError("data array too short",y.errors.BUFFER_OVERRUN,{});const n=we(e,t+1,r);t+1+r+n>e.length&&Ee.throwError("data array too short",y.errors.BUFFER_OVERRUN,{});return{consumed:1+r+n,result:P(e.slice(t+1+r,t+1+r+n))}}if(e[t]>=128){const r=e[t]-128;t+1+r>e.length&&Ee.throwError("data too short",y.errors.BUFFER_OVERRUN,{});return{consumed:1+r,result:P(e.slice(t+1,t+1+r))}}return{consumed:1,result:P(e[t])}}function De(e){const t=T(e),r=ke(t,0);return r.consumed!==t.length&&Ee.throwArgumentError("invalid rlp data","data",e),r.result}const _e=new y("address/5.7.0");function Ie(e){I(e,20)||_e.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let a=0;a<40;a++)r[a]=t[a].charCodeAt(0);const n=T(ve(r));for(let a=0;a<40;a+=2)n[a>>1]>>4>=8&&(t[a]=t[a].toUpperCase()),(15&n[a>>1])>=8&&(t[a+1]=t[a+1].toUpperCase());return"0x"+t.join("")}const Re={};for(let tl=0;tl<10;tl++)Re[String(tl)]=String(tl);for(let tl=0;tl<26;tl++)Re[String.fromCharCode(65+tl)]=String(10+tl);const Pe=Math.floor((Ce=9007199254740991,Math.log10?Math.log10(Ce):Math.log(Ce)/Math.LN10));var Ce;function Oe(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>Re[e])).join("");for(;t.length>=Pe;){let e=t.substring(0,Pe);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function Ue(e){let t=null;if("string"!==typeof e&&_e.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=Ie(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&_e.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)!==Oe(e)&&_e.throwArgumentError("bad icap checksum","address",e),r=e.substring(4),t=new $(r,36).toString(16);t.length<40;)t="0"+t;t=Ie("0x"+t)}else _e.throwArgumentError("invalid address","address",e);var r;return t}function Ne(e){try{return Ue(e),!0}catch(t){}return!1}function Be(e){let t=(r=Ue(e).substring(2),new $(r,16).toString(36)).toUpperCase();for(var r;t.length<30;)t="0"+t;return"XE"+Oe("XE00"+t)+t}function Le(e){let t=null;try{t=Ue(e.from)}catch(r){_e.throwArgumentError("missing from address","transaction",e)}return Ue(O(ve(Ae([t,D(T(K.from(e.nonce).toHexString()))])),12))}function Me(e,t,r){return 32!==C(t)&&_e.throwArgumentError("salt must be 32 bytes","salt",t),32!==C(r)&&_e.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),Ue(O(ve(k(["0xff",Ue(e),t,r])),12))}const Fe=new y("strings/5.7.0");var je,He;function ze(e,t,r,n,a){if(e===He.BAD_PREFIX||e===He.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n>6===2;n++)e++;return e}return e===He.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(je||(je={})),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"}(He||(He={}));const $e=Object.freeze({error:function(e,t,r,n,a){return Fe.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:ze,replace:function(e,t,r,n,a){return e===He.OVERLONG?(n.push(a),0):(n.push(65533),ze(e,t,r))}});function Ge(e,t){null==t&&(t=$e.error),e=T(e);const r=[];let n=0;for(;n>7===0){r.push(a);continue}let i=null,o=null;if(192===(224&a))i=1,o=127;else if(224===(240&a))i=2,o=2047;else{if(240!==(248&a)){n+=t(128===(192&a)?He.UNEXPECTED_CONTINUE:He.BAD_PREFIX,n-1,e,r);continue}i=3,o=65535}if(n-1+i>=e.length){n+=t(He.OVERRUN,n-1,e,r);continue}let s=a&(1<<8-i-1)-1;for(let c=0;c1114111?n+=t(He.OUT_OF_RANGE,n-1-i,e,r,s):s>=55296&&s<=57343?n+=t(He.UTF16_SURROGATE,n-1-i,e,r,s):s<=o?n+=t(He.OVERLONG,n-1-i,e,r,s):r.push(s))}return r}function Ve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je.current;t!=je.current&&(Fe.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n>6|192),r.push(63&t|128);else if(55296==(64512&t)){n++;const a=e.charCodeAt(n);if(n>=e.length||56320!==(64512&a))throw new Error("invalid utf-8 string");const i=65536+((1023&t)<<10)+(1023&a);r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(63&i|128)}else r.push(t>>12|224),r.push(t>>6&63|128),r.push(63&t|128)}return T(r)}function We(e){const t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function qe(e,t){return'"'+Ge(e,t).map((e=>{if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?We(e):We(55296+((e-=65536)>>10&1023))+We(56320+(1023&e))})).join("")+'"'}function Ke(e){return e.map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}function Ze(e,t){return Ke(Ge(e,t))}function Xe(e){return Ge(Ve(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:je.current))}function Ye(e){return ve(Ve(e))}class Je extends he{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=Ue(t)}catch(r){this._throwError(r.message,t)}return e.writeValue(t)}decode(e){return Ue(L(e.readValue().toHexString(),20))}}class Qe extends he{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 et=new y(de);function tt(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"===typeof r){let e={};n=t.map((t=>{const n=t.localName;return n||et.throwError("cannot encode object for signature with missing names",y.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&et.throwError("cannot encode object for signature with duplicate names",y.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]}))}else et.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&et.throwArgumentError("types/value length mismatch","tuple",r);let a=new ge(e.wordSize),i=new ge(e.wordSize),o=[];t.forEach(((e,t)=>{let r=n[t];if(e.dynamic){let t=i.length;e.encode(i,r);let n=a.writeUpdatableValue();o.push((e=>{n(e+t)}))}else e.encode(a,r)})),o.forEach((e=>{e(a.length)}));let s=e.appendWriter(a);return s+=e.appendWriter(i),s}function rt(e,t){let r=[],n=e.subReader(0);t.forEach((t=>{let a=null;if(t.dynamic){let r=e.readValue(),o=n.subReader(r.toNumber());try{a=t.decode(o)}catch(i){if(i.code===y.errors.BUFFER_OVERRUN)throw i;a=i,a.baseType=t.name,a.name=t.localName,a.type=t.type}}else try{a=t.decode(e)}catch(i){if(i.code===y.errors.BUFFER_OVERRUN)throw i;a=i,a.baseType=t.name,a.name=t.localName,a.type=t.type}void 0!=a&&r.push(a)}));const a=t.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach(((e,t)=>{let n=e.localName;if(!n||1!==a[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const i=r[t];i instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw i}}):r[n]=i}));for(let i=0;i{throw e}})}return Object.freeze(r)}class nt extends he{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let r=0;re._data.length&&et.throwError("insufficient data length",y.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let r=[];for(let n=0;n{e.dynamic&&(r=!0),n.push(e.type)}));super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach(((r,n)=>{let a=r.localName;a&&1===t[a]&&("length"===a&&(a="_length"),null==e[a]&&(e[a]=e[n]))})),Object.freeze(e)}encode(e,t){return tt(e,this.coders,t)}decode(e){return e.coerce(this.name,rt(e,this.coders))}}const Et=new y(de),St={};let wt={calldata:!0,memory:!0,storage:!0},xt={calldata:!0,memory:!0};function At(e,t){if("bytes"===e||"string"===e){if(wt[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&xt[t])return!0;return(wt[t]||"payable"===t)&&Et.throwArgumentError("invalid modifier","name",t),!1}function Tt(e,t){for(let r in t)te(e,r,t[r])}const kt=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),Dt=new RegExp(/^(.*)\[([0-9]*)\]$/);class _t{constructor(e,t){e!==St&&Et.throwError("use fromString",y.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Tt(this,t);let r=this.type.match(Dt);Tt(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:_t.fromObject({type:r[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=kt.sighash),kt[e]||Et.throwArgumentError("invalid format type","format",e),e===kt.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!==kt.sighash&&(t+=this.type),t+="("+this.components.map((t=>t.format(e))).join(e===kt.full?", ":",")+")"):t+=this.type,e!==kt.sighash&&(!0===this.indexed&&(t+=" indexed"),e===kt.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"===typeof e?_t.fromString(e,t):_t.fromObject(e)}static fromObject(e){return _t.isParamType(e)?e:new _t(St,{name:e.name||null,type:Ft(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(_t.fromObject):null})}static fromString(e,t){return r=function(e,t){let r=e;function n(t){Et.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function a(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let i={type:"",name:"",state:{allowType:!0}},o=i;for(let s=0;s_t.fromString(e,t)))}class Rt{constructor(e,t){e!==St&&Et.throwError("use a static from method",y.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Tt(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return Rt.isFragment(e)?e:"string"===typeof e?Rt.fromString(e):Rt.fromObject(e)}static fromObject(e){if(Rt.isFragment(e))return e;switch(e.type){case"function":return Bt.fromObject(e);case"event":return Pt.fromObject(e);case"constructor":return Nt.fromObject(e);case"error":return Mt.fromObject(e);case"fallback":case"receive":return null}return Et.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]?Pt.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?Bt.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?Nt.fromString(e.trim()):"error"===e.split(" ")[0]?Mt.fromString(e.substring(5).trim()):Et.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class Pt extends Rt{format(e){if(e||(e=kt.sighash),kt[e]||Et.throwArgumentError("invalid format type","format",e),e===kt.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!==kt.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===kt.full?", ":",")+") ",e!==kt.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"===typeof e?Pt.fromString(e):Pt.fromObject(e)}static fromObject(e){if(Pt.isEventFragment(e))return e;"event"!==e.type&&Et.throwArgumentError("invalid event object","value",e);const t={name:Ht(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(_t.fromObject):[],type:"event"};return new Pt(St,t)}static fromString(e){let t=e.match(zt);t||Et.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach((e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:Et.warn("unknown modifier: "+e)}})),Pt.fromObject({name:t[1].trim(),anonymous:r,inputs:It(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function Ct(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&Et.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||Et.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=K.from(r[1]),r[0]):e}function Ot(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 Ut(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&&Et.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&Et.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||Et.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&&Et.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&&Et.throwArgumentError("unable to determine stateMutability","value",e),t}class Nt extends Rt{format(e){if(e||(e=kt.sighash),kt[e]||Et.throwArgumentError("invalid format type","format",e),e===kt.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===kt.sighash&&Et.throwError("cannot format a constructor for sighash",y.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((t=>t.format(e))).join(e===kt.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"===typeof e?Nt.fromString(e):Nt.fromObject(e)}static fromObject(e){if(Nt.isConstructorFragment(e))return e;"constructor"!==e.type&&Et.throwArgumentError("invalid constructor object","value",e);let t=Ut(e);t.constant&&Et.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(_t.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?K.from(e.gas):null};return new Nt(St,r)}static fromString(e){let t={type:"constructor"},r=(e=Ct(e,t)).match(zt);return r&&"constructor"===r[1].trim()||Et.throwArgumentError("invalid constructor string","value",e),t.inputs=It(r[2].trim(),!1),Ot(r[3].trim(),t),Nt.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class Bt extends Nt{format(e){if(e||(e=kt.sighash),kt[e]||Et.throwArgumentError("invalid format type","format",e),e===kt.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!==kt.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===kt.full?", ":",")+") ",e!==kt.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?Bt.fromString(e):Bt.fromObject(e)}static fromObject(e){if(Bt.isFunctionFragment(e))return e;"function"!==e.type&&Et.throwArgumentError("invalid function object","value",e);let t=Ut(e);const r={type:e.type,name:Ht(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(_t.fromObject):[],outputs:e.outputs?e.outputs.map(_t.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?K.from(e.gas):null};return new Bt(St,r)}static fromString(e){let t={type:"function"},r=(e=Ct(e,t)).split(" returns ");r.length>2&&Et.throwArgumentError("invalid function string","value",e);let n=r[0].match(zt);if(n||Et.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&Ht(t.name),t.inputs=It(n[2],!1),Ot(n[3].trim(),t),r.length>1){let n=r[1].match(zt);""==n[1].trim()&&""==n[3].trim()||Et.throwArgumentError("unexpected tokens","value",e),t.outputs=It(n[2],!1)}else t.outputs=[];return Bt.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function Lt(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||Et.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class Mt extends Rt{format(e){if(e||(e=kt.sighash),kt[e]||Et.throwArgumentError("invalid format type","format",e),e===kt.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==kt.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===kt.full?", ":",")+") ",t.trim()}static from(e){return"string"===typeof e?Mt.fromString(e):Mt.fromObject(e)}static fromObject(e){if(Mt.isErrorFragment(e))return e;"error"!==e.type&&Et.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:Ht(e.name),inputs:e.inputs?e.inputs.map(_t.fromObject):[]};return Lt(new Mt(St,t))}static fromString(e){let t={type:"error"},r=e.match(zt);return r||Et.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&Ht(t.name),t.inputs=It(r[2],!1),Lt(Mt.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function Ft(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const jt=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Ht(e){return e&&e.match(jt)||Et.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const zt=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const $t=new y(de),Gt=new RegExp(/^bytes([0-9]*)$/),Vt=new RegExp(/^(u?int)([0-9]*)$/);class Wt{constructor(e){te(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new Je(e.name);case"bool":return new at(e.name);case"string":return new yt(e.name);case"bytes":return new ot(e.name);case"array":return new nt(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new vt((e.components||[]).map((e=>this._getCoder(e))),e.name);case"":return new ct(e.name)}let t=e.type.match(Vt);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!==0)&&$t.throwArgumentError("invalid "+t[1]+" bit length","param",e),new bt(r/8,"int"===t[1],e.name)}if(t=e.type.match(Gt),t){let r=parseInt(t[1]);return(0===r||r>32)&&$t.throwArgumentError("invalid bytes length","param",e),new st(r,e.name)}return $t.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new me(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new ge(this._getWordSize())}getDefaultValue(e){const t=e.map((e=>this._getCoder(_t.from(e))));return new vt(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&$t.throwError("types/values length mismatch",y.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const r=e.map((e=>this._getCoder(_t.from(e)))),n=new vt(r,"_"),a=this._getWriter();return n.encode(a,t),a.data}decode(e,t,r){const n=e.map((e=>this._getCoder(_t.from(e))));return new vt(n,"_").decode(this._getReader(T(t),r))}}const qt=new Wt,Kt=new y(de);class Zt extends ue{}class Xt extends ue{}class Yt extends ue{}class Jt extends ue{static isIndexed(e){return!(!e||!e._isIndexed)}}const Qt={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function er(e,t){const r=new Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class tr{constructor(e){let t=[];t="string"===typeof e?JSON.parse(e):e,te(this,"fragments",t.map((e=>Rt.from(e))).filter((e=>null!=e))),te(this,"_abiCoder",re(new.target,"getAbiCoder")()),te(this,"functions",{}),te(this,"errors",{}),te(this,"events",{}),te(this,"structs",{}),this.fragments.forEach((e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void Kt.warn("duplicate definition - constructor"):void te(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();t[r]?Kt.warn("duplicate definition - "+r):t[r]=e})),this.deploy||te(this,"deploy",Nt.from({payable:!1,type:"constructor"})),te(this,"_isInterface",!0)}format(e){e||(e=kt.full),e===kt.sighash&&Kt.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map((t=>t.format(e)));return e===kt.json?JSON.stringify(t.map((e=>JSON.parse(e)))):t}static getAbiCoder(){return qt}static getAddress(e){return Ue(e)}static getSighash(e){return O(Ye(e.format()),0,4)}static getEventTopic(e){return Ye(e.format())}getFunction(e){if(I(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];Kt.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.functions).filter((e=>e.split("(")[0]===t));return 0===r.length?Kt.throwArgumentError("no matching function","name",t):r.length>1&&Kt.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}const t=this.functions[Bt.fromString(e).format()];return t||Kt.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(I(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];Kt.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.events).filter((e=>e.split("(")[0]===t));return 0===r.length?Kt.throwArgumentError("no matching event","name",t):r.length>1&&Kt.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}const t=this.events[Pt.fromString(e).format()];return t||Kt.throwArgumentError("no matching event","signature",e),t}getError(e){if(I(e)){const t=re(this.constructor,"getSighash");for(const r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}Kt.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.errors).filter((e=>e.split("(")[0]===t));return 0===r.length?Kt.throwArgumentError("no matching error","name",t):r.length>1&&Kt.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}const t=this.errors[Bt.fromString(e).format()];return t||Kt.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(r){throw t}}return re(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"===typeof e&&(e=this.getEvent(e)),re(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 r=T(t);return P(r.slice(0,4))!==this.getSighash(e)&&Kt.throwArgumentError(`data signature does not match error ${e.name}.`,"data",P(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"===typeof e&&(e=this.getError(e)),P(k([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"===typeof e&&(e=this.getFunction(e));const r=T(t);return P(r.slice(0,4))!==this.getSighash(e)&&Kt.throwArgumentError(`data signature does not match function ${e.name}.`,"data",P(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"===typeof e&&(e=this.getFunction(e)),P(k([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"===typeof e&&(e=this.getFunction(e));let r=T(t),n=null,a="",i=null,o=null,s=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(c){}break;case 4:{const e=P(r.slice(0,4)),t=Qt[e];if(t)i=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,s=t.signature,t.reason&&(n=i[0]),"Error"===o?a=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(i[0])}`:"Panic"===o&&(a=`; VM Exception while processing transaction: reverted with panic code ${i[0]}`);else try{const t=this.getError(e);i=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,s=t.format()}catch(c){}break}}return Kt.throwError("call revert exception"+a,y.errors.CALL_EXCEPTION,{method:e.format(),data:P(t),errorArgs:i,errorName:o,errorSignature:s,reason:n})}encodeFunctionResult(e,t){return"string"===typeof e&&(e=this.getFunction(e)),P(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"===typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&Kt.throwError("too many arguments for "+e.format(),y.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));const n=(e,t)=>"string"===e.type?Ye(t):"bytes"===e.type?ve(P(t)):("bool"===e.type&&"boolean"===typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=K.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),L(P(t),32));for(t.forEach(((t,a)=>{let i=e.inputs[a];i.indexed?null==t?r.push(null):"array"===i.baseType||"tuple"===i.baseType?Kt.throwArgumentError("filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?r.push(t.map((e=>n(i,e)))):r.push(n(i,t)):null!=t&&Kt.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+i.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"===typeof e&&(e=this.getEvent(e));const r=[],n=[],a=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Kt.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(((e,i)=>{const o=t[i];if(e.indexed)if("string"===e.type)r.push(Ye(o));else if("bytes"===e.type)r.push(ve(o));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([e.type],[o]))}else n.push(e),a.push(o)})),{data:this._abiCoder.encode(n,a),topics:r}}decodeEventLog(e,t,r){if("string"===typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);I(r[0],32)&&r[0].toLowerCase()===t||Kt.throwError("fragment/topic mismatch",y.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let n=[],a=[],i=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(_t.fromObject({type:"bytes32",name:e.name})),i.push(!0)):(n.push(e),i.push(!1)):(a.push(e),i.push(!1))}));let o=null!=r?this._abiCoder.decode(n,k(r)):null,s=this._abiCoder.decode(a,t,!0),c=[],l=0,u=0;e.inputs.forEach(((e,t)=>{if(e.indexed)if(null==o)c[t]=new Jt({_isIndexed:!0,hash:null});else if(i[t])c[t]=new Jt({_isIndexed:!0,hash:o[u++]});else try{c[t]=o[u++]}catch(r){c[t]=r}else try{c[t]=s[l++]}catch(r){c[t]=r}if(e.name&&null==c[e.name]){const r=c[t];r instanceof Error?Object.defineProperty(c,e.name,{enumerable:!0,get:()=>{throw er(`property ${JSON.stringify(e.name)}`,r)}}):c[e.name]=r}}));for(let d=0;d{throw er(`index ${d}`,e)}})}return Object.freeze(c)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new Xt({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:K.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new Zt({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){const t=P(e);let r=this.getError(t.substring(0,10).toLowerCase());return r?new Yt({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!(!e||!e._isInterface)}}var rr=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const nr=new y("abstract-provider/5.7.0");class ar extends ue{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class ir{constructor(){nr.checkAbstract(new.target,ir),te(this,"_isProvider",!0)}getFeeData(){return rr(this,void 0,void 0,(function*(){const{block:e,gasPrice:t}=yield ne({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((e=>null))});let r=null,n=null,a=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,a=K.from("1500000000"),n=e.baseFeePerGas.mul(2).add(a)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:a,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 or=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const sr=new y("abstract-signer/5.7.0"),cr=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],lr=[y.errors.INSUFFICIENT_FUNDS,y.errors.NONCE_EXPIRED,y.errors.REPLACEMENT_UNDERPRICED];class ur{constructor(){sr.checkAbstract(new.target,ur),te(this,"_isSigner",!0)}getBalance(e){return or(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return or(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return or(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield ne(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return or(this,void 0,void 0,(function*(){this._checkProvider("call");const r=yield ne(this.checkTransaction(e));return yield this.provider.call(r,t)}))}sendTransaction(e){return or(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)}))}getChainId(){return or(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return or(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return or(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return or(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const r in e)-1===cr.indexOf(r)&&sr.throwArgumentError("invalid transaction key: "+r,"transaction",e);const t=ie(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()&&sr.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return or(this,void 0,void 0,(function*(){const t=yield ne(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>or(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&sr.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})))),t.to.catch((e=>{})));const r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!r?0!==t.type&&1!==t.type||!r||sr.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):sr.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?(r&&sr.throwError("network does not support EIP-1559",y.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):sr.throwError("failed to get consistent fee data",y.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(lr.indexOf(e.code)>=0)throw e;return sr.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",y.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]&&sr.throwArgumentError("chainId address mismatch","transaction",e),t[0]))),yield ne(t)}))}_checkProvider(e){this.provider||sr.throwError("missing provider",y.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class dr extends ur{constructor(e,t){super(),te(this,"address",e),te(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{sr.throwError(e,y.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,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new dr(this.address,e)}}var pr=r(49602),fr=r.n(pr);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self&&self;function hr(e,t,r){return r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&r.path)}},e(r,r.exports),r.exports}var gr=mr;function mr(e,t){if(!e)throw new Error(t||"Assertion failed")}mr.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var br=hr((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r>8,o=255&a;i?r.push(i,o):r.push(o)}return r},r.zero2=n,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}})),yr=hr((function(e,t){var r=t;r.assert=gr,r.toArray=br.toArray,r.zero2=br.zero2,r.toHex=br.toHex,r.encode=br.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var a=1<(a>>1)-1?(a>>1)-c:c,i.isubn(s)):s=0,n[o]=s,i.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,a=0,i=0;e.cmpn(-a)>0||t.cmpn(-i)>0;){var o,s,c=e.andln(3)+a&3,l=t.andln(3)+i&3;3===c&&(c=-1),3===l&&(l=-1),o=0===(1&c)?0:3!==(n=e.andln(7)+a&7)&&5!==n||2!==l?c:-c,r[0].push(o),s=0===(1&l)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==c?l:-l,r[1].push(s),2*a===o+1&&(a=1-a),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"===typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new(H())(e,"hex","le")}})),vr=yr.getNAF,Er=yr.getJSF,Sr=yr.assert;function wr(e,t){this.type=e,this.p=new(H())(t.p,16),this.red=t.prime?H().red(t.prime):H().mont(this.p),this.zero=new(H())(0).toRed(this.red),this.one=new(H())(1).toRed(this.red),this.two=new(H())(2).toRed(this.red),this.n=t.n&&new(H())(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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var xr=wr;function Ar(e,t){this.curve=e,this.type=t,this.precomputed=null}wr.prototype.point=function(){throw new Error("Not implemented")},wr.prototype.validate=function(){throw new Error("Not implemented")},wr.prototype._fixedNafMul=function(e,t){Sr(e.precomputed);var r=e._getDoubles(),n=vr(t,1,this._bitLength),a=(1<=i;c--)o=(o<<1)+n[c];s.push(o)}for(var l=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=a;d>0;d--){for(i=0;i=0;s--){for(var c=0;s>=0&&0===i[s];s--)c++;if(s>=0&&c++,o=o.dblp(c),s<0)break;var l=i[s];Sr(0!==l),o="affine"===e.type?l>0?o.mixedAdd(a[l-1>>1]):o.mixedAdd(a[-l-1>>1].neg()):l>0?o.add(a[l-1>>1]):o.add(a[-l-1>>1].neg())}return"affine"===e.type?o.toP():o},wr.prototype._wnafMulAdd=function(e,t,r,n,a){var i,o,s,c=this._wnafT1,l=this._wnafT2,u=this._wnafT3,d=0;for(i=0;i=1;i-=2){var f=i-1,h=i;if(1===c[f]&&1===c[h]){var g=[t[f],null,null,t[h]];0===t[f].y.cmp(t[h].y)?(g[1]=t[f].add(t[h]),g[2]=t[f].toJ().mixedAdd(t[h].neg())):0===t[f].y.cmp(t[h].y.redNeg())?(g[1]=t[f].toJ().mixedAdd(t[h]),g[2]=t[f].add(t[h].neg())):(g[1]=t[f].toJ().mixedAdd(t[h]),g[2]=t[f].toJ().mixedAdd(t[h].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],b=Er(r[f],r[h]);for(d=Math.max(b[0].length,d),u[f]=new Array(d),u[h]=new Array(d),o=0;o=0;i--){for(var w=0;i>=0;){var x=!0;for(o=0;o=0&&w++,E=E.dblp(w),i<0)break;for(o=0;o0?s=l[o][A-1>>1]:A<0&&(s=l[o][-A-1>>1].neg()),E="affine"===s.type?E.mixedAdd(s):E.add(s))}}for(i=0;i=Math.ceil((e.bitLength()+1)/t.step)},Ar.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,a=0;a=0&&(i=t,o=r),n.negative&&(n=n.neg(),a=a.neg()),i.negative&&(i=i.neg(),o=o.neg()),[{a:n,b:a},{a:i,b:o}]},Dr.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],a=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),o=a.mul(r.a),s=i.mul(n.a),c=a.mul(r.b),l=i.mul(n.b);return{k1:e.sub(o).sub(s),k2:c.add(l).neg()}},Dr.prototype.pointFromX=function(e,t){(e=new(H())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var a=n.fromRed().isOdd();return(t&&!a||!t&&a)&&(n=n.redNeg()),this.point(e,n)},Dr.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(a).cmpn(0)},Dr.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},Ir.prototype.isInfinity=function(){return this.inf},Ir.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Ir.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,r=this.x.redSqr(),n=e.redInvm(),a=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},Ir.prototype.getX=function(){return this.x.fromRed()},Ir.prototype.getY=function(){return this.y.fromRed()},Ir.prototype.mul=function(e){return e=new(H())(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)},Ir.prototype.mulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a):this.curve._wnafMulAdd(1,n,a,2)},Ir.prototype.jmulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a,!0):this.curve._wnafMulAdd(1,n,a,2,!0)},Ir.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))},Ir.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},Ir.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Tr(Rr,xr.BasePoint),Dr.prototype.jpoint=function(e,t,r){return new Rr(this,e,t,r)},Rr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},Rr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Rr.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),a=e.x.redMul(r),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),s=n.redSub(a),c=i.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),d=n.redMul(l),p=c.redSqr().redIAdd(u).redISub(d).redISub(d),f=c.redMul(d.redISub(p)).redISub(i.redMul(u)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(p,f,h)},Rr.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=r.redSub(n),s=a.redSub(i);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=r.redMul(c),d=s.redSqr().redIAdd(l).redISub(u).redISub(u),p=s.redMul(u.redISub(d)).redISub(a.redMul(l)),f=this.z.redMul(o);return this.curve.jpoint(d,p,f)},Rr.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 r=this;for(t=0;t=0)return!1;if(r.redIAdd(a),0===this.x.cmp(r))return!0}},Rr.prototype.inspect=function(){return this.isInfinity()?"":""},Rr.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Pr=hr((function(e,t){var r=t;r.base=xr,r.short=_r,r.mont=null,r.edwards=null})),Cr=hr((function(e,t){var r,n=t,a=yr.assert;function i(e){"short"===e.type?this.curve=new Pr.short(e):"edwards"===e.type?this.curve=new Pr.edwards(e):this.curve=new Pr.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new i(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=i,o("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:fr().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("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:fr().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("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:fr().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("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:fr().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"]}),o("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:fr().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"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:fr().sha256,gRed:!1,g:["9"]}),o("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:fr().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(s){r=void 0}o("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:fr().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function Or(e){if(!(this instanceof Or))return new Or(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=br.toArray(e.entropy,e.entropyEnc||"hex"),r=br.toArray(e.nonce,e.nonceEnc||"hex"),n=br.toArray(e.pers,e.persEnc||"hex");gr(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var Ur=Or;Or.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},Or.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(n=r,r=t,t=null),r&&(r=br.toArray(r,n||"hex"),this._update(r));for(var a=[];a.length"};var Mr=yr.assert;function Fr(e,t){if(e instanceof Fr)return e;this._importDER(e,t)||(Mr(e.r&&e.s,"Signature without r or s"),this.r=new(H())(e.r,16),this.s=new(H())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var jr=Fr;function Hr(){this.place=0}function zr(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function $r(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}Fr.prototype._importDER=function(e,t){e=yr.toArray(e,t);var r=new Hr;if(48!==e[r.place++])return!1;var n=zr(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=zr(e,r);if(!1===a)return!1;var i=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var o=zr(e,r);if(!1===o)return!1;if(e.length!==o+r.place)return!1;var s=e.slice(r.place,o+r.place);if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new(H())(i),this.s=new(H())(s),this.recoveryParam=null,!0},Fr.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=$r(t),r=$r(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];Gr(n,t.length),(n=n.concat(t)).push(2),Gr(n,r.length);var a=n.concat(r),i=[48];return Gr(i,a.length),i=i.concat(a),yr.encode(i,e)};var Vr=function(){throw new Error("unsupported")},Wr=yr.assert;function qr(e){if(!(this instanceof qr))return new qr(e);"string"===typeof e&&(Wr(Object.prototype.hasOwnProperty.call(Cr,e),"Unknown curve "+e),e=Cr[e]),e instanceof Cr.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 Kr=qr;qr.prototype.keyPair=function(e){return new Lr(this,e)},qr.prototype.keyFromPrivate=function(e,t){return Lr.fromPrivate(this,e,t)},qr.prototype.keyFromPublic=function(e,t){return Lr.fromPublic(this,e,t)},qr.prototype.genKeyPair=function(e){e||(e={});for(var t=new Ur({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Vr(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(H())(2));;){var a=new(H())(t.generate(r));if(!(a.cmp(n)>0))return a.iaddn(1),this.keyFromPrivate(a)}},qr.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},qr.prototype.sign=function(e,t,r,n){"object"===typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new(H())(e,16));for(var a=this.n.byteLength(),i=t.getPrivate().toArray("be",a),o=e.toArray("be",a),s=new Ur({hash:this.hash,entropy:i,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new(H())(1)),l=0;;l++){var u=n.k?n.k(l):new(H())(s.generate(this.n.byteLength()));if(!((u=this._truncateToN(u,!0)).cmpn(1)<=0||u.cmp(c)>=0)){var d=this.g.mul(u);if(!d.isInfinity()){var p=d.getX(),f=p.umod(this.n);if(0!==f.cmpn(0)){var h=u.invm(this.n).mul(f.mul(t.getPrivate()).iadd(e));if(0!==(h=h.umod(this.n)).cmpn(0)){var g=(d.getY().isOdd()?1:0)|(0!==p.cmp(f)?2:0);return n.canonical&&h.cmp(this.nh)>0&&(h=this.n.sub(h),g^=1),new jr({r:f,s:h,recoveryParam:g})}}}}}},qr.prototype.verify=function(e,t,r,n){e=this._truncateToN(new(H())(e,16)),r=this.keyFromPublic(r,n);var a=(t=new jr(t,"hex")).r,i=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var o,s=i.invm(this.n),c=s.mul(e).umod(this.n),l=s.mul(a).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,r.getPublic(),l)).isInfinity()&&o.eqXToP(a):!(o=this.g.mulAdd(c,r.getPublic(),l)).isInfinity()&&0===o.getX().umod(this.n).cmp(a)},qr.prototype.recoverPubKey=function(e,t,r,n){Wr((3&r)===r,"The recovery param is more than two bits"),t=new jr(t,n);var a=this.n,i=new(H())(e),o=t.r,s=t.s,c=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),c):this.curve.pointFromX(o,c);var u=t.r.invm(a),d=a.sub(i).mul(u).umod(a),p=s.mul(u).umod(a);return this.g.mulAdd(d,o,p)},qr.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new jr(t,n)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(r))return a}throw new Error("Unable to find valid recovery factor")};var Zr=hr((function(e,t){var r=t;r.version="6.5.4",r.utils=yr,r.rand=function(){throw new Error("unsupported")},r.curve=Pr,r.curves=Cr,r.ec=Kr,r.eddsa=null})).ec;const Xr=new y("signing-key/5.7.0");let Yr=null;function Jr(){return Yr||(Yr=new Zr("secp256k1")),Yr}class Qr{constructor(e){te(this,"curve","secp256k1"),te(this,"privateKey",P(e)),32!==C(this.privateKey)&&Xr.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=Jr().keyFromPrivate(T(this.privateKey));te(this,"publicKey","0x"+t.getPublic(!1,"hex")),te(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),te(this,"_isSigningKey",!0)}_addPoint(e){const t=Jr().keyFromPublic(T(this.publicKey)),r=Jr().keyFromPublic(T(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){const t=Jr().keyFromPrivate(T(this.privateKey)),r=T(e);32!==r.length&&Xr.throwArgumentError("bad digest length","digest",e);const n=t.sign(r,{canonical:!0});return M({recoveryParam:n.recoveryParam,r:L("0x"+n.r.toString(16),32),s:L("0x"+n.s.toString(16),32)})}computeSharedSecret(e){const t=Jr().keyFromPrivate(T(this.privateKey)),r=Jr().keyFromPublic(T(tn(e)));return L("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function en(e,t){const r=M(t),n={r:T(r.r),s:T(r.s)};return"0x"+Jr().recoverPubKey(T(e),n,r.recoveryParam).encode("hex",!1)}function tn(e,t){const r=T(e);if(32===r.length){const e=new Qr(r);return t?"0x"+Jr().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?P(r):"0x"+Jr().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+Jr().keyFromPublic(r).getPublic(!0,"hex"):P(r):Xr.throwArgumentError("invalid public or private key","key","[REDACTED]")}const rn=new y("transactions/5.7.0");var nn;function an(e){return"0x"===e?null:Ue(e)}function on(e){return"0x"===e?ut:K.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(nn||(nn={}));const sn=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],cn={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function ln(e){return Ue(O(ve(O(tn(e),1)),12))}function un(e,t){return ln(en(T(e),t))}function dn(e,t){const r=D(K.from(e).toHexString());return r.length>32&&rn.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function pn(e,t){return{address:Ue(e),storageKeys:(t||[]).map(((t,r)=>(32!==C(t)&&rn.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase())))}}function fn(e){if(Array.isArray(e))return e.map(((e,t)=>Array.isArray(e)?(e.length>2&&rn.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),pn(e[0],e[1])):pn(e.address,e.storageKeys)));const t=Object.keys(e).map((t=>{const r=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return pn(t,Object.keys(r).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}function hn(e){return fn(e).map((e=>[e.address,e.storageKeys]))}function gn(e,t){if(null!=e.gasPrice){const t=K.from(e.gasPrice),r=K.from(e.maxFeePerGas||0);t.eq(r)||rn.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}const r=[dn(e.chainId||0,"chainId"),dn(e.nonce||0,"nonce"),dn(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),dn(e.maxFeePerGas||0,"maxFeePerGas"),dn(e.gasLimit||0,"gasLimit"),null!=e.to?Ue(e.to):"0x",dn(e.value||0,"value"),e.data||"0x",hn(e.accessList||[])];if(t){const e=M(t);r.push(dn(e.recoveryParam,"recoveryParam")),r.push(D(e.r)),r.push(D(e.s))}return U(["0x02",Ae(r)])}function mn(e,t){const r=[dn(e.chainId||0,"chainId"),dn(e.nonce||0,"nonce"),dn(e.gasPrice||0,"gasPrice"),dn(e.gasLimit||0,"gasLimit"),null!=e.to?Ue(e.to):"0x",dn(e.value||0,"value"),e.data||"0x",hn(e.accessList||[])];if(t){const e=M(t);r.push(dn(e.recoveryParam,"recoveryParam")),r.push(D(e.r)),r.push(D(e.s))}return U(["0x01",Ae(r)])}function bn(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&rn.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){ae(e,cn);const r=[];sn.forEach((function(t){let n=e[t.name]||[];const a={};t.numeric&&(a.hexPad="left"),n=T(P(n,a)),t.length&&n.length!==t.length&&n.length>0&&rn.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=D(n),n.length>t.maxLength&&rn.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n)),r.push(P(n))}));let n=0;if(null!=e.chainId?(n=e.chainId,"number"!==typeof n&&rn.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!w(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push(P(n)),r.push("0x"),r.push("0x")),!t)return Ae(r);const a=M(t);let i=27+a.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),i+=2*n+8,a.v>28&&a.v!==i&&rn.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):a.v!==i&&rn.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(P(i)),r.push(D(T(a.r))),r.push(D(T(a.s))),Ae(r)}(e,t);switch(e.type){case 1:return mn(e,t);case 2:return gn(e,t)}return rn.throwError(`unsupported transaction type: ${e.type}`,y.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function yn(e,t,r){try{const r=on(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(n){rn.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=L(t[1],32),e.s=L(t[2],32);try{const t=ve(r(e));e.from=un(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(n){}}function vn(e){const t=T(e);if(t[0]>127)return function(e){const t=De(e);9!==t.length&&6!==t.length&&rn.throwArgumentError("invalid raw transaction","rawTransaction",e);const r={nonce:on(t[0]).toNumber(),gasPrice:on(t[1]),gasLimit:on(t[2]),to:an(t[3]),value:on(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=K.from(t[6]).toNumber()}catch(n){return r}if(r.r=L(t[7],32),r.s=L(t[8],32),K.from(r.r).isZero()&&K.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let a=r.v-27;const i=t.slice(0,6);0!==r.chainId&&(i.push(P(r.chainId)),i.push("0x"),i.push("0x"),a-=2*r.chainId+8);const o=ve(Ae(i));try{r.from=un(o,{r:P(r.r),s:P(r.s),recoveryParam:a})}catch(n){}r.hash=ve(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){const t=De(e.slice(1));8!==t.length&&11!==t.length&&rn.throwArgumentError("invalid component count for transaction type: 1","payload",P(e));const r={type:1,chainId:on(t[0]).toNumber(),nonce:on(t[1]).toNumber(),gasPrice:on(t[2]),gasLimit:on(t[3]),to:an(t[4]),value:on(t[5]),data:t[6],accessList:fn(t[7])};return 8===t.length||(r.hash=ve(e),yn(r,t.slice(8),mn)),r}(t);case 2:return function(e){const t=De(e.slice(1));9!==t.length&&12!==t.length&&rn.throwArgumentError("invalid component count for transaction type: 2","payload",P(e));const r=on(t[2]),n=on(t[3]),a={type:2,chainId:on(t[0]).toNumber(),nonce:on(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:on(t[4]),to:an(t[5]),value:on(t[6]),data:t[7],accessList:fn(t[8])};return 9===t.length||(a.hash=ve(e),yn(a,t.slice(9),gn)),a}(t)}return rn.throwError(`unsupported transaction type: ${t[0]}`,y.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}var En=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const Sn=new y("contracts/5.7.0"),wn={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function xn(e,t){return En(this,void 0,void 0,(function*(){const r=yield t;"string"!==typeof r&&Sn.throwArgumentError("invalid address or ENS name","name",r);try{return Ue(r)}catch(a){}e||Sn.throwError("a provider or signer is needed to resolve ENS names",y.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield e.resolveName(r);return null==n&&Sn.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n}))}function An(e,t,r){return En(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>An(e,Array.isArray(t)?t[n]:t[r.name],r)))):"address"===r.type?yield xn(e,t):"tuple"===r.type?yield An(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map((t=>An(e,t,r.arrayChildren)))):Promise.reject(Sn.makeError("invalid value for array",y.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t}))}function Tn(e,t,r){return En(this,void 0,void 0,(function*(){let n={};r.length===t.inputs.length+1&&"object"===typeof r[r.length-1]&&(n=ie(r.pop())),Sn.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=ne({override:xn(e.signer,n.from),signer:e.signer.getAddress()}).then((e=>En(this,void 0,void 0,(function*(){return Ue(e.signer)!==e.override&&Sn.throwError("Contract with a Signer cannot override from",y.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})))):n.from=e.signer.getAddress():n.from&&(n.from=xn(e.provider,n.from));const a=yield ne({args:An(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:ne(n)||{}}),i=e.interface.encodeFunctionData(t,a.args),o={data:i,to:a.address},s=a.overrides;if(null!=s.nonce&&(o.nonce=K.from(s.nonce).toNumber()),null!=s.gasLimit&&(o.gasLimit=K.from(s.gasLimit)),null!=s.gasPrice&&(o.gasPrice=K.from(s.gasPrice)),null!=s.maxFeePerGas&&(o.maxFeePerGas=K.from(s.maxFeePerGas)),null!=s.maxPriorityFeePerGas&&(o.maxPriorityFeePerGas=K.from(s.maxPriorityFeePerGas)),null!=s.from&&(o.from=s.from),null!=s.type&&(o.type=s.type),null!=s.accessList&&(o.accessList=fn(s.accessList)),null==o.gasLimit&&null!=t.gas){let e=21e3;const r=T(i);for(let t=0;tnull!=n[e]));return c.length&&Sn.throwError(`cannot override ${c.map((e=>JSON.stringify(e))).join(",")}`,y.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:c}),o}))}function kn(e,t){const r=t.wait.bind(t);t.wait=t=>r(t).then((t=>(t.events=t.logs.map((r=>{let n=le(r),a=null;try{a=e.interface.parseLog(r)}catch(i){}return a&&(n.args=a.args,n.decode=(t,r)=>e.interface.decodeEventLog(a.eventFragment,t,r),n.event=a.name,n.eventSignature=a.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n})),t)))}function Dn(e,t,r){const n=e.signer||e.provider;return function(){for(var a=arguments.length,i=new Array(a),o=0;oArray.isArray(e)?e.join("|"):e)).join(":"):""):"*"}class Rn{constructor(e,t){te(this,"tag",e),te(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((r=>!(!t&&r.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 r=e.slice();return setTimeout((()=>{t.listener.apply(this,r)}),0),!t.once})),t}prepareEvent(e){}getEmit(e){return[e]}}class Pn extends Rn{constructor(){super("error",null)}}class Cn extends Rn{constructor(e,t,r,n){const a={address:e};let i=t.getEventTopic(r);n?(i!==n[0]&&Sn.throwArgumentError("topic mismatch","topics",n),a.topics=n.slice()):a.topics=[i],super(In(a),a),te(this,"address",e),te(this,"interface",t),te(this,"fragment",r)}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=fe(e.args);if(t.length)throw t[0].error;const r=(e.args||[]).slice();return r.push(e),r}}class On extends Rn{constructor(e,t){super("*",{address:e}),te(this,"address",e),te(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,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(t){}}}class Un{constructor(e,t,r){var n=this;te(this,"interface",re(new.target,"getInterface")(t)),null==r?(te(this,"provider",null),te(this,"signer",null)):ur.isSigner(r)?(te(this,"provider",r.provider||null),te(this,"signer",r)):ir.isProvider(r)?(te(this,"provider",r),te(this,"signer",null)):Sn.throwArgumentError("invalid signer or provider","signerOrProvider",r),te(this,"callStatic",{}),te(this,"estimateGas",{}),te(this,"functions",{}),te(this,"populateTransaction",{}),te(this,"filters",{});{const e={};Object.keys(this.interface.events).forEach((t=>{const r=this.interface.events[t];te(this.filters,t,(function(){for(var e=arguments.length,t=new Array(e),a=0;a{const r=e[t];1===r.length?te(this.filters,t,this.filters[r[0]]):Sn.warn(`Duplicate definition of ${t} (${r.join(", ")})`)}))}if(te(this,"_runningEvents",{}),te(this,"_wrappedEmits",{}),null==e&&Sn.throwArgumentError("invalid contract address or ENS name","addressOrName",e),te(this,"address",e),this.provider)te(this,"resolvedAddress",xn(this.provider,e));else try{te(this,"resolvedAddress",Promise.resolve(Ue(e)))}catch(o){Sn.throwError("provider is required to use ENS name as contract address",y.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((e=>{}));const a={},i={};Object.keys(this.interface.functions).forEach((e=>{const t=this.interface.functions[e];if(i[e])Sn.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);else{i[e]=!0;{const r=t.name;a[`%${r}`]||(a[`%${r}`]=[]),a[`%${r}`].push(e)}null==this[e]&&te(this,e,_n(this,t,!0)),null==this.functions[e]&&te(this.functions,e,_n(this,t,!1)),null==this.callStatic[e]&&te(this.callStatic,e,Dn(this,t,!0)),null==this.populateTransaction[e]&&te(this.populateTransaction,e,function(e,t){return function(){for(var r=arguments.length,n=new Array(r),a=0;a{const t=a[e];if(t.length>1)return;e=e.substring(1);const r=t[0];try{null==this[e]&&te(this,e,this[r])}catch(n){}null==this.functions[e]&&te(this.functions,e,this.functions[r]),null==this.callStatic[e]&&te(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&te(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&te(this.estimateGas,e,this.estimateGas[r])}))}static getContractAddress(e){return Le(e)}static getInterface(e){return tr.isInterface(e)?e:new tr(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&&Sn.throwError("contract not deployed",y.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(e){this.signer||Sn.throwError("sending a transactions require a signer",y.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=ie(e||{});return["from","to"].forEach((function(e){null!=t[e]&&Sn.throwError("cannot override "+e,y.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(t)))}connect(e){"string"===typeof e&&(e=new dr(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&te(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return Jt.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 Pn);if("event"===e)return this._normalizeRunningEvent(new Rn("event",null));if("*"===e)return this._normalizeRunningEvent(new On(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new Cn(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 r=this.interface.getEvent(t);return this._normalizeRunningEvent(new Cn(this.address,this.interface,r,e.topics))}catch(t){}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Rn(In(r),r))}return this._normalizeRunningEvent(new On(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,r){const n=le(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||Sn.throwError("events require a provider or a signer with a provider",y.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{const t=e.getEmit(n);this.emit(e.filter,...t)}catch(a){n.decodeError=a.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){const n=this._getRunningEvent(e),a=ie(n.filter);return"string"===typeof t&&I(t,32)?(null!=r&&Sn.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),a.blockHash=t):(a.fromBlock=null!=t?t:0,a.toBlock=null!=r?r:"latest"),this.provider.getLogs(a).then((e=>e.map((e=>this._wrapEvent(n,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){if(!this.provider)return!1;const t=this._getRunningEvent(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a0;return this._checkRunningEvents(t),i}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 r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class Nn extends Un{}class Bn{constructor(e,t,r){let n=null;n="string"===typeof t?t:A(t)?P(t):t&&"string"===typeof t.object?t.object:"!","0x"!==n.substring(0,2)&&(n="0x"+n),(!I(n)||n.length%2)&&Sn.throwArgumentError("invalid bytecode","bytecode",t),r&&!ur.isSigner(r)&&Sn.throwArgumentError("invalid signer","signer",r),te(this,"bytecode",n),te(this,"interface",re(new.target,"getInterface")(e)),te(this,"signer",r||null)}getDeployTransaction(){let e={};for(var t=arguments.length,r=new Array(t),n=0;n{null!=e[t]&&Sn.throwError("cannot override "+t,y.errors.UNSUPPORTED_OPERATION,{operation:t})})),e.value){K.from(e.value).isZero()||this.interface.deploy.payable||Sn.throwError("non-payable constructor cannot override value",y.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:e.value})}return Sn.checkArgumentCount(r.length,this.interface.deploy.inputs.length," in Contract constructor"),e.data=P(k([this.bytecode,this.interface.encodeDeploy(r)])),e}deploy(){for(var e=arguments.length,t=new Array(e),r=0;r=0&&e<=256&&!(e%1)?"1"+zn.substring(0,e):Ln.throwArgumentError("invalid decimal size","decimals",e)}function Gn(e,t){null==t&&(t=0);const r=$n(t),n=(e=K.from(e)).lt(Fn);n&&(e=e.mul(jn));let a=e.mod(r).toString();for(;a.length2&&Ln.throwArgumentError("too many decimal points","value",e);let i=a[0],o=a[1];for(i||(i="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>r.length-1&&Hn("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.lengthnull==e[t]?n:(typeof e[t]!==r&&Ln.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=a("signed","boolean",t),r=a("width","number",r),n=a("decimals","number",n)}return r%8&&Ln.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&Ln.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new Wn(Mn,t,r,n)}}class qn{constructor(e,t,r,n){e!==Mn&&Ln.throwError("cannot use FixedNumber constructor; use FixedNumber.from",y.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&Ln.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=Vn(this._value,this.format.decimals),r=Vn(e._value,e.format.decimals);return qn.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=Vn(this._value,this.format.decimals),r=Vn(e._value,e.format.decimals);return qn.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=Vn(this._value,this.format.decimals),r=Vn(e._value,e.format.decimals);return qn.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=Vn(this._value,this.format.decimals),r=Vn(e._value,e.format.decimals);return qn.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=qn.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(Kn.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=qn.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(Kn.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)&&Ln.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const r=qn.from("1"+zn.substring(0,e),this.format),n=Zn.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}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&&Ln.throwArgumentError("invalid byte width","width",e);return L(K.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return qn.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||function(e){return null!=e&&(K.isBigNumber(e)||"number"===typeof e&&e%1===0||"string"===typeof e&&!!e.match(/^-?[0-9]+$/)||I(e)||"bigint"===typeof e||A(e))}(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),qn.fromString(Gn(e,t),Wn.from(r))}static fromString(e,t){null==t&&(t="fixed");const r=Wn.from(t),n=Vn(e,r.decimals);!r.signed&&n.lt(Fn)&&Hn("unsigned value cannot be negative","overflow","value",e);let a=null;r.signed?a=n.toTwos(r.width).toHexString():(a=n.toHexString(),a=L(a,r.width/8));const i=Gn(n,r.decimals);return new qn(Mn,a,i,r)}static fromBytes(e,t){null==t&&(t="fixed");const r=Wn.from(t);if(T(e).length>r.width/8)throw new Error("overflow");let n=K.from(e);r.signed&&(n=n.fromTwos(r.width));const a=n.toTwos((r.signed?0:1)+r.width).toHexString(),i=Gn(n,r.decimals);return new qn(Mn,a,i,r)}static from(e,t){if("string"===typeof e)return qn.fromString(e,t);if(A(e))return qn.fromBytes(e,t);try{return qn.fromValue(e,0,t)}catch(r){if(r.code!==y.errors.INVALID_ARGUMENT)throw r}return Ln.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const Kn=qn.from(1),Zn=qn.from("0.5"),Xn="\x19Ethereum Signed Message:\n";function Yn(e){return"string"===typeof e&&(e=Ve(e)),ve(k([Ve(Xn),Ve(String(e.length)),e]))}const Jn="hash/5.7.0";var Qn=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const ea=new y(Jn),ta=new Uint8Array(32);ta.fill(0);const ra=K.from(-1),na=K.from(0),aa=K.from(1),ia=K.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const oa=L(aa.toHexString(),32),sa=L(na.toHexString(),32),ca={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},la=["name","version","chainId","verifyingContract","salt"];function ua(e){return function(t){return"string"!==typeof t&&ea.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const da={name:ua("name"),version:ua("version"),chainId:function(e){try{return K.from(e).toString()}catch(t){}return ea.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return Ue(e).toLowerCase()}catch(t){}return ea.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=T(e);if(32!==t.length)throw new Error("bad length");return P(t)}catch(t){}return ea.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function pa(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=""===t[1],n=parseInt(t[2]||"256");(n%8!==0||n>256||t[2]&&t[2]!==String(n))&&ea.throwArgumentError("invalid numeric width","type",e);const a=ia.mask(r?n-1:n),i=r?a.add(aa).mul(ra):na;return function(t){const r=K.from(t);return(r.lt(i)||r.gt(a))&&ea.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),L(r.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&ea.throwArgumentError("invalid bytes width","type",e),function(t){return T(t).length!==r&&ea.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){const t=T(e),r=t.length%32;return r?U([t,ta.slice(r)]):P(t)}(t)}}}switch(e){case"address":return function(e){return L(Ue(e),32)};case"bool":return function(e){return e?oa:sa};case"bytes":return function(e){return ve(e)};case"string":return function(e){return Ye(e)}}return null}function fa(e,t){return`${e}(${t.map((e=>{let{name:t,type:r}=e;return r+" "+t})).join(",")})`}class ha{constructor(e){te(this,"types",Object.freeze(le(e))),te(this,"_encoderCache",{}),te(this,"_types",{});const t={},r={},n={};Object.keys(e).forEach((e=>{t[e]={},r[e]=[],n[e]={}}));for(const i in e){const n={};e[i].forEach((a=>{n[a.name]&&ea.throwArgumentError(`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(i)}`,"types",e),n[a.name]=!0;const o=a.type.match(/^([^\x5b]*)(\x5b|$)/)[1];o===i&&ea.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",e);pa(o)||(r[o]||ea.throwArgumentError(`unknown type ${JSON.stringify(o)}`,"types",e),r[o].push(i),t[i][o]=!0)}))}const a=Object.keys(r).filter((e=>0===r[e].length));0===a.length?ea.throwArgumentError("missing primary type","types",e):a.length>1&&ea.throwArgumentError(`ambiguous primary types or unused types: ${a.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),te(this,"primaryType",a[0]),function a(i,o){o[i]&&ea.throwArgumentError(`circular type reference to ${JSON.stringify(i)}`,"types",e),o[i]=!0,Object.keys(t[i]).forEach((e=>{r[e]&&(a(e,o),Object.keys(o).forEach((t=>{n[t][e]=!0})))})),delete o[i]}(this.primaryType,{});for(const i in n){const t=Object.keys(n[i]);t.sort(),this._types[i]=fa(i,e[i])+t.map((t=>fa(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=pa(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&ea.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let a=t.map(r);return this._types[e]&&(a=a.map(ve)),ve(U(a))}}const r=this.types[e];if(r){const t=Ye(this._types[e]);return e=>{const n=r.map((t=>{let{name:r,type:n}=t;const a=this.getEncoder(n)(e[r]);return this._types[n]?ve(a):a}));return n.unshift(t),U(n)}}return ea.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||ea.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return ve(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(pa(e))return r(e,t);const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const e=n[1],a=parseInt(n[3]);return a>=0&&t.length!==a&&ea.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((t=>this._visit(e,t,r)))}const a=this.types[e];return a?a.reduce(((e,n)=>{let{name:a,type:i}=n;return e[a]=this._visit(i,t[a],r),e}),{}):ea.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new ha(e)}static getPrimaryType(e){return ha.from(e).primaryType}static hashStruct(e,t,r){return ha.from(t).hashStruct(e,r)}static hashDomain(e){const t=[];for(const r in e){const n=ca[r];n||ea.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort(((e,t)=>la.indexOf(e.name)-la.indexOf(t.name))),ha.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return U(["0x1901",ha.hashDomain(e),ha.from(t).hash(r)])}static hash(e,t,r){return ve(ha.encode(e,t,r))}static resolveNames(e,t,r,n){return Qn(this,void 0,void 0,(function*(){e=ie(e);const a={};e.verifyingContract&&!I(e.verifyingContract,20)&&(a[e.verifyingContract]="0x");const i=ha.from(t);i.visit(r,((e,t)=>("address"!==e||I(t,20)||(a[t]="0x"),t)));for(const e in a)a[e]=yield n(e);return e.verifyingContract&&a[e.verifyingContract]&&(e.verifyingContract=a[e.verifyingContract]),r=i.visit(r,((e,t)=>"address"===e&&a[t]?a[t]:t)),{domain:e,value:r}}))}static getPayload(e,t,r){ha.hashDomain(e);const n={},a=[];la.forEach((t=>{const r=e[t];null!=r&&(n[t]=da[t](r),a.push({name:t,type:ca[t]}))}));const i=ha.from(t),o=ie(t);return o.EIP712Domain?ea.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):o.EIP712Domain=a,i.encode(r),{types:o,domain:n,primaryType:i.primaryType,message:i.visit(r,((e,t)=>{if(e.match(/^bytes(\d*)/))return P(T(t));if(e.match(/^u?int/))return K.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!==typeof t&&ea.throwArgumentError("invalid string","value",t),t}return ea.throwArgumentError("unsupported type","type",e)}))}}}class ga{constructor(e){te(this,"alphabet",e),te(this,"base",e.length),te(this,"_alphabetMap",{}),te(this,"_leader",e.charAt(0));for(let t=0;t0;)r.push(e%this.base),e=e/this.base|0}let n="";for(let a=0;0===t[a]&&a=0;--a)n+=this.alphabet[r[a]];return n}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 r=0;r>=8;for(;a>0;)t.push(255&a),a>>=8}for(let r=0;e[r]===this._leader&&r>24&255,c[t.length+1]=d>>16&255,c[t.length+2]=d>>8&255,c[t.length+3]=255&d;let p=T(wa(a,e,c));i||(i=p.length,u=new Uint8Array(i),o=Math.ceil(n/i),l=n-(o-1)*i),u.set(p);for(let t=1;t=256)throw new Error("Depth too large!");return Ba(k([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",P(this.depth),this.parentFingerprint,L(P(this.index),4),this.chainCode,null!=this.privateKey?k(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new ja(Ma,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(e&~Oa));const r=new Uint8Array(37);if(e&Oa){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set(T(this.privateKey),1),t&&(t+="'")}else r.set(T(this.publicKey));for(let u=24;u>=0;u-=8)r[33+(u>>3)]=e>>24-u&255;const n=T(wa(ba.sha512,this.chainCode,r)),a=n.slice(0,32),i=n.slice(32);let o=null,s=null;if(this.privateKey)o=Na(K.from(a).add(this.privateKey).mod(Pa));else{s=new Qr(P(a))._addPoint(this.publicKey)}let c=t;const l=this.mnemonic;return l&&(c=Object.freeze({phrase:l.phrase,path:t,locale:l.locale||"en"})),new ja(Ma,o,s,this.fingerprint,Na(i),e,this.depth+1,c)}derivePath(e){const t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();let r=this;for(let n=0;n=Oa)throw new Error("invalid path index - "+e);r=r._derive(Oa+t)}else{if(!e.match(/^[0-9]+$/))throw new Error("invalid path component - "+e);{const t=parseInt(e);if(t>=Oa)throw new Error("invalid path index - "+e);r=r._derive(t)}}}return r}static _fromSeed(e,t){const r=T(e);if(r.length<16||r.length>64)throw new Error("invalid seed");const n=T(wa(ba.sha512,Ca,r));return new ja(Ma,Na(n.slice(0,32)),null,"0x00000000",Na(n.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=$a(za(e,r=La(r)),r),ja._fromSeed(Ha(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return ja._fromSeed(e,null)}static fromExtendedKey(e){const t=ma.decode(e);82===t.length&&Ba(t.slice(0,78))===e||Ra.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const r=t[4],n=P(t.slice(5,9)),a=parseInt(P(t.slice(9,13)).substring(2),16),i=P(t.slice(13,45)),o=t.slice(45,78);switch(P(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new ja(Ma,null,P(o),n,i,a,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==o[0])break;return new ja(Ma,P(o.slice(1)),null,n,i,a,r,null)}return Ra.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function Ha(e,t){t||(t="");const r=Ve("mnemonic"+t,je.NFKD);return xa(Ve(e,je.NFKD),r,2048,64,"sha512")}function za(e,t){t=La(t),Ra.checkNormalize();const r=t.split(e);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=T(new Uint8Array(Math.ceil(11*r.length/8)));let a=0;for(let s=0;s>3]|=1<<7-a%8),a++}const i=32*r.length/3,o=Ua(r.length/3);if((T(Ea(n.slice(0,i/8)))[0]&o)!==(n[n.length-1]&o))throw new Error("invalid checksum");return P(n.slice(0,i/8))}function $a(e,t){if(t=La(t),(e=T(e)).length%4!==0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let o=0;o8?(r[r.length-1]<<=8,r[r.length-1]|=e[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[o]>>8-n,r.push(e[o]&(1<<8-n)-1),n+=3);const a=e.length/4,i=T(Ea(e))[0]&Ua(a);return r[r.length-1]<<=a,r[r.length-1]|=i>>8-a,t.join(r.map((e=>t.getWord(e))))}function Ga(e,t){try{return za(e,t),!0}catch(r){}return!1}function Va(e){return("number"!==typeof e||e<0||e>=Oa||e%1)&&Ra.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}const Wa=new y("random/5.7.0");const qa=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof r.g)return r.g;throw new Error("unable to locate global object")}();let Ka=qa.crypto||qa.msCrypto;function Za(e){(e<=0||e>1024||e%1||e!=e)&&Wa.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return Ka.getRandomValues(t),T(t)}Ka&&Ka.getRandomValues||(Wa.warn("WARNING: Missing strong random number source"),Ka={getRandomValues:function(e){return Wa.throwError("no secure random source avaialble",y.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});var Xa=r(3972),Ya=r.n(Xa),Ja=r(45322),Qa=r.n(Ja);function ei(e){return"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),T(e)}function ti(e,t){for(e=String(e);e.lengtht)),te(this,"address",ln(this.publicKey)),this.address!==Ue(e.address)&&xi.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){const t=e.mnemonic;return t&&t.phrase}(e)){const t=e.mnemonic;te(this,"_mnemonic",(()=>({phrase:t.phrase,path:t.path||Fa,locale:t.locale||"en"})));const r=this.mnemonic;ln(ja.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path).privateKey)!==this.address&&xi.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else te(this,"_mnemonic",(()=>null))}else{if(Qr.isSigningKey(e))"secp256k1"!==e.curve&&xi.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),te(this,"_signingKey",(()=>e));else{"string"===typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);const t=new Qr(e);te(this,"_signingKey",(()=>t))}te(this,"_mnemonic",(()=>null)),te(this,"address",ln(this.publicKey))}var r;t&&!ir.isProvider(t)&&xi.throwArgumentError("invalid provider","provider",t),te(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new Ai(this,e)}signTransaction(e){return ne(e).then((t=>{null!=t.from&&(Ue(t.from)!==this.address&&xi.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const r=this._signingKey().signDigest(ve(bn(t)));return bn(t,r)}))}signMessage(e){return wi(this,void 0,void 0,(function*(){return F(this._signingKey().signDigest(Yn(e)))}))}_signTypedData(e,t,r){return wi(this,void 0,void 0,(function*(){const n=yield ha.resolveNames(e,t,r,(e=>(null==this.provider&&xi.throwError("cannot resolve ENS names without a provider",y.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e))));return F(this._signingKey().signDigest(ha.hash(n.domain,t,n.value)))}))}encrypt(e,t,r){if("function"!==typeof t||r||(r=t,t={}),r&&"function"!==typeof r)throw new Error("invalid callback");return t||(t={}),function(e,t,r,n){try{if(Ue(e.address)!==ln(e.privateKey))throw new Error("address/privateKey mismatch");if(ci(e)){const t=e.mnemonic;if(ja.fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||Fa).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(m){return Promise.reject(m)}"function"!==typeof r||n||(n=r,r={}),r||(r={});const a=T(e.privateKey),i=ri(t);let o=null,s=null,c=null;if(ci(e)){const t=e.mnemonic;o=T(za(t.phrase,t.locale||"en")),s=t.path||Fa,c=t.locale||"en"}let l=r.client;l||(l="ethers.js");let u=null;u=r.salt?T(r.salt):Za(32);let d=null;if(r.iv){if(d=T(r.iv),16!==d.length)throw new Error("invalid iv")}else d=Za(16);let p=null;if(r.uuid){if(p=T(r.uuid),16!==p.length)throw new Error("invalid uuid")}else p=Za(16);let f=1<<17,h=8,g=1;return r.scrypt&&(r.scrypt.N&&(f=r.scrypt.N),r.scrypt.r&&(h=r.scrypt.r),r.scrypt.p&&(g=r.scrypt.p)),Qa().scrypt(i,u,f,h,g,64,n).then((t=>{const r=(t=T(t)).slice(0,16),n=t.slice(16,32),i=t.slice(32,64),m=new(Ya().Counter)(d),b=T(new(Ya().ModeOfOperation.ctr)(r,m).encrypt(a)),y=ve(k([n,b])),v={address:e.address.substring(2).toLowerCase(),id:ai(p),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:P(d).substring(2)},ciphertext:P(b).substring(2),kdf:"scrypt",kdfparams:{salt:P(u).substring(2),n:f,dklen:32,p:g,r:h},mac:y.substring(2)}};if(o){const e=Za(16),t=new(Ya().Counter)(e),r=T(new(Ya().ModeOfOperation.ctr)(i,t).encrypt(o)),n=new Date,a=n.getUTCFullYear()+"-"+ti(n.getUTCMonth()+1,2)+"-"+ti(n.getUTCDate(),2)+"T"+ti(n.getUTCHours(),2)+"-"+ti(n.getUTCMinutes(),2)+"-"+ti(n.getUTCSeconds(),2)+".0Z";v["x-ethers"]={client:l,gethFilename:"UTC--"+a+"--"+v.address,mnemonicCounter:P(e).substring(2),mnemonicCiphertext:P(r).substring(2),path:s,locale:c,version:"0.1"}}return JSON.stringify(v)}))}(this,e,t,r)}static createRandom(e){let t=Za(16);e||(e={}),e.extraEntropy&&(t=T(O(ve(k([t,e.extraEntropy])),0,16)));const r=$a(t,e.locale);return Ai.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return Ei(e,t,r).then((e=>new Ai(e)))}static fromEncryptedJsonSync(e,t){return new Ai(Si(e,t))}static fromMnemonic(e,t,r){return t||(t=Fa),new Ai(ja.fromMnemonic(e,null,r).derivePath(t))}}function Ti(e,t){return un(Yn(e),t)}function ki(e,t,r,n){return un(ha.hash(e,t,r),n)}const Di="0x0000000000000000000000000000000000000000",_i="0x0000000000000000000000000000000000000000000000000000000000000000",Ii="\u039e",Ri=new y("networks/5.7.1");function Pi(e){const t=function(t,r){null==r&&(r={});const n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(a){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(a){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(a){}if(t.PocketProvider&&"-"!==r.pocket){const i=["goerli","ropsten","rinkeby","sepolia"];try{const a=new t.PocketProvider(e,r.pocket);a.network&&-1===i.indexOf(a.network.name)&&n.push(a)}catch(a){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(a){}if(t.AnkrProvider&&"-"!==r.ankr)try{const a=["ropsten"],i=new t.AnkrProvider(e,r.ankr);i.network&&-1===a.indexOf(i.network.name)&&n.push(i)}catch(a){}if(0===n.length)return null;if(t.FallbackProvider){let a=1;return null!=r.quorum?a=r.quorum:"homestead"===e&&(a=2),new t.FallbackProvider(n,a)}return n[0]};return t.renetwork=function(e){return Pi(e)},t}function Ci(e,t){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return Ci(e,t)},r}const Oi={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:Pi("homestead")},Ui={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:Pi("ropsten")},Ni={chainId:63,name:"classicMordor",_defaultProvider:Ci("https://www.ethercluster.com/mordor","classicMordor")},Bi={unspecified:{chainId:0,name:"unspecified"},homestead:Oi,mainnet:Oi,morden:{chainId:2,name:"morden"},ropsten:Ui,testnet:Ui,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:Pi("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:Pi("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:Pi("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:Pi("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Ci("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Ni,classicTestnet:Ni,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Ci("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:Pi("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:Pi("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function Li(e){if(null==e)return null;if("number"===typeof e){for(const t in Bi){const r=Bi[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"===typeof e){const t=Bi[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=Bi[e.name];if(!t)return"number"!==typeof e.chainId&&Ri.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&Ri.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;var n;return null==r&&t._defaultProvider&&(r=(n=t._defaultProvider)&&"function"===typeof n.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}function Mi(e){e=atob(e);const t=[];for(let r=0;r0&&Array.isArray(e)?a(e,t-1):r.push(e)}))};return a(e,t),r}function Hi(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),a=1,i=[0,1];for(let E=1;E>--c&1}const d=Math.pow(2,31),p=d>>>1,f=p>>1,h=d-1;let g=0;for(let E=0;E<31;E++)g=g<<1|u();let m=[],b=0,y=d;for(;;){let e=Math.floor(((g-b+1)*a-1)/y),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e>>1|u(),o=o<<1^p,s=(s^p)<<1|p|1;b=o,y=1+s-o}let v=n-4;return m.map((t=>{switch(t-v){case 3:return v+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return v+256+(e[s++]<<8|e[s++]);case 1:return v+e[s++];default:return t-1}}))}(e))}function zi(e){return 1&e?~e>>1:e>>1}function $i(e,t){let r=Array(e);for(let n=0,a=-1;nt[e])):r}function Wi(e,t,r){let n=Array(e).fill(void 0).map((()=>[]));for(let a=0;an[t].push(e)));return n}function qi(e,t){let r=1+t(),n=t(),a=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return ji(Wi(a.length,1+e,t).map(((e,t)=>{const i=e[0],o=e.slice(1);return Array(a[t]).fill(void 0).map(((e,t)=>{let a=t*n;return[i+t*r,o.map((e=>e+a))]}))})))}function Ki(e,t){return Wi(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const Zi=Hi(Mi("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/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==")),Xi=new Set(Vi(Zi)),Yi=new Set(Vi(Zi)),Ji=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(qi(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(Ki(r,e))}return function(e){const t={};for(let r=0;re-t));return function r(){let n=[];for(;;){let a=Vi(e,t);if(0==a.length)break;n.push({set:new Set(a),node:r()})}n.sort(((e,t)=>t.set.size-e.set.size));let a=e(),i=a%3;a=a/3|0;let o=!!(1&a);return a>>=1,{branches:n,valid:i,fe0f:o,save:1==a,check:2==a}}()}(Zi),eo=45,to=95;function ro(e){return Xe(e)}function no(e){return e.filter((e=>65039!=e))}function ao(e){for(let r of e.split(".")){let e=ro(r);try{for(let t=e.lastIndexOf(to)-1;t>=0;t--)if(e[t]!==to)throw new Error("underscore only allowed at start");if(e.length>=4&&e.every((e=>e<128))&&e[2]===eo&&e[3]===eo)throw new Error("invalid label extension")}catch(t){throw new Error(`Invalid label "${r}": ${t.message}`)}}return e}function io(e){return ao(function(e,t){let r=ro(e).reverse(),n=[];for(;r.length;){let e=oo(r);if(e){n.push(...t(e));continue}let a=r.pop();if(Xi.has(a)){n.push(a);continue}if(Yi.has(a))continue;let i=Ji[a];if(!i)throw new Error(`Disallowed codepoint: 0x${a.toString(16).toUpperCase()}`);n.push(...i)}return ao((a=String.fromCodePoint(...n),a.normalize("NFC")));var a}(e,no))}function oo(e,t){var r;let n,a,i=Qi,o=[],s=e.length;for(t&&(t.length=0);s;){let c=e[--s];if(i=null===(r=i.branches.find((e=>e.set.has(c))))||void 0===r?void 0:r.node,!i)break;if(i.save)a=c;else if(i.check&&c===a)break;o.push(c),i.fe0f&&(o.push(65039),s>0&&65039==e[s-1]&&s--),i.valid&&(n=o.slice(),2==i.valid&&n.splice(1,1),t&&t.push(...e.slice(s).reverse()),e.length=s)}return n}const so=new y(Jn),co=new Uint8Array(32);function lo(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function uo(e){const t=Ve(io(e)),r=[];if(0===e.length)return r;let n=0;for(let a=0;a=t.length)throw new Error("invalid ENS name; empty component");return r.push(lo(t.slice(n))),r}function po(e){try{return 0!==uo(e).length}catch(t){}return!1}function fo(e){"string"!==typeof e&&so.throwArgumentError("invalid ENS name; not a string","name",e);let t=co;const r=uo(e);for(;r.length;)t=ve(k([t,ve(r.pop())]));return P(t)}function ho(e){return P(k(uo(e).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"}co.fill(0);var go=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};function mo(e,t){return go(this,void 0,void 0,(function*(){null==t&&(t={});const r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){const e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}const n=yield fetch(e,r),a=yield n.arrayBuffer(),i={};return n.headers.forEach?n.headers.forEach(((e,t)=>{i[t.toLowerCase()]=e})):n.headers.keys().forEach((e=>{i[e.toLowerCase()]=n.headers.get(e)})),{headers:i,statusCode:n.status,statusMessage:n.statusText,body:T(new Uint8Array(a))}}))}var bo=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const yo=new y("web/5.7.1");function vo(e){return new Promise((t=>{setTimeout(t,e)}))}function Eo(e,t){if(null==e)return null;if("string"===typeof e)return e;if(w(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Ze(e)}catch(r){}return P(e)}return e}function So(e,t,r){const n="object"===typeof e&&null!=e.throttleLimit?e.throttleLimit:12;yo.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);const a="object"===typeof e?e.throttleCallback:null,i="object"===typeof e&&"number"===typeof e.throttleSlotInterval?e.throttleSlotInterval:100;yo.assertArgument(i>0&&i%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);const o="object"===typeof e&&!!e.errorPassThrough,s={};let c=null;const l={method:"GET"};let u=!1,d=12e4;if("string"===typeof e)c=e;else if("object"===typeof e){if(null!=e&&null!=e.url||yo.throwArgumentError("missing URL","connection.url",e),c=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&&(u=!0);if(l.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==c.substring(0,6)&&!0!==e.allowInsecureAuthentication&&yo.throwError("basic authentication requires a secure https url",y.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;s.authorization={key:"Authorization",value:"Basic "+Fi(Ve(t))}}null!=e.skipFetchSetup&&(l.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(l.fetchOptions=ie(e.fetchOptions))}const p=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),f=c?c.match(p):null;if(f)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":f[1]||"text/plain"},body:f[2]?Mi(f[3]):(h=f[3],Ve(h.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))))};let t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(v){yo.throwError("processing response error",y.errors.SERVER_ERROR,{body:Eo(f[1],f[2]),error:v,requestBody:null,requestMethod:"GET",url:c})}var h;t&&(l.method="POST",l.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 g={};Object.keys(s).forEach((e=>{const t=s[e];g[t.key]=t.value})),l.headers=g;const m=function(){let e=null;return{promise:new Promise((function(t,r){d&&(e=setTimeout((()=>{null!=e&&(e=null,r(yo.makeError("timeout",y.errors.TIMEOUT,{requestBody:Eo(l.body,g["content-type"]),requestMethod:l.method,timeout:d,url:c})))}),d))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),b=function(){return bo(this,void 0,void 0,(function*(){for(let e=0;e=300)&&(m.cancel(),yo.throwError("bad response",y.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:Eo(s,t.headers?t.headers["content-type"]:null),requestBody:Eo(l.body,g["content-type"]),requestMethod:l.method,url:c})),r)try{const e=yield r(s,t);return m.cancel(),e}catch(v){if(v.throttleRetry&&e"content-type"===e.toLowerCase())).length||(r.headers=ie(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return So(e,n,((e,t)=>{let n=null;if(null!=e)try{n=JSON.parse(Ze(e))}catch(a){yo.throwError("invalid JSON",y.errors.SERVER_ERROR,{body:e,error:a})}return r&&(n=r(n,t)),n}))}function xo(e,t){return t||(t={}),null==(t=ie(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){let a=null,i=!1;const o=()=>!i&&(i=!0,a&&clearTimeout(a),!0);t.timeout&&(a=setTimeout((()=>{o()&&n(new Error("timeout"))}),t.timeout));const s=t.retryLimit;let c=0;!function a(){return e().then((function(e){if(void 0!==e)o()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",a);else if(t.onceBlock)t.onceBlock.once("block",a);else if(!i){if(c++,c>s)return void(o()&&n(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));et.ceiling&&(e=t.ceiling),setTimeout(a,e)}return null}),(function(e){o()&&n(e)}))}()}))}var Ao=r(32993),To=r.n(Ao);const ko="providers/5.7.2",Do=new y(ko);class _o{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),a=this.data.bind(this),i=this.hash.bind(this),o=this.hex.bind(this),s=this.number.bind(this),c=this.type.bind(this);return e.transaction={hash:i,type:c,accessList:_o.allowNull(this.accessList.bind(this),null),blockHash:_o.allowNull(i,null),blockNumber:_o.allowNull(s,null),transactionIndex:_o.allowNull(s,null),confirmations:_o.allowNull(s,null),from:t,gasPrice:_o.allowNull(r),maxPriorityFeePerGas:_o.allowNull(r),maxFeePerGas:_o.allowNull(r),gasLimit:r,to:_o.allowNull(t,null),value:r,nonce:s,data:a,r:_o.allowNull(this.uint256),s:_o.allowNull(this.uint256),v:_o.allowNull(s),creates:_o.allowNull(t,null),raw:_o.allowNull(a)},e.transactionRequest={from:_o.allowNull(t),nonce:_o.allowNull(s),gasLimit:_o.allowNull(r),gasPrice:_o.allowNull(r),maxPriorityFeePerGas:_o.allowNull(r),maxFeePerGas:_o.allowNull(r),to:_o.allowNull(t),value:_o.allowNull(r),data:_o.allowNull((e=>this.data(e,!0))),type:_o.allowNull(s),accessList:_o.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:i,address:t,topics:_o.arrayOf(i),data:a,logIndex:s,blockHash:i},e.receipt={to:_o.allowNull(this.address,null),from:_o.allowNull(this.address,null),contractAddress:_o.allowNull(t,null),transactionIndex:s,root:_o.allowNull(o),gasUsed:r,logsBloom:_o.allowNull(a),blockHash:i,transactionHash:i,logs:_o.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:_o.allowNull(s,null),cumulativeGasUsed:r,effectiveGasPrice:_o.allowNull(r),status:_o.allowNull(s),type:c},e.block={hash:_o.allowNull(i),parentHash:i,number:s,timestamp:s,nonce:_o.allowNull(o),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:_o.allowNull(t),extraData:a,transactions:_o.allowNull(_o.arrayOf(i)),baseFeePerGas:_o.allowNull(r)},e.blockWithTransactions=ie(e.block),e.blockWithTransactions.transactions=_o.allowNull(_o.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:_o.allowNull(n,void 0),toBlock:_o.allowNull(n,void 0),blockHash:_o.allowNull(i,void 0),address:_o.allowNull(t,void 0),topics:_o.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:_o.allowNull(s),blockHash:_o.allowNull(i),transactionIndex:s,removed:_o.allowNull(this.boolean.bind(this)),address:t,data:_o.allowFalsish(a,"0x"),topics:_o.arrayOf(i),transactionHash:i,logIndex:s},e}accessList(e){return fn(e||[])}number(e){return"0x"===e?0:K.from(e).toNumber()}type(e){return"0x"===e||null==e?0:K.from(e).toNumber()}bigNumber(e){return K.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),I(e))?e.toLowerCase():Do.throwArgumentError("invalid hash","value",e)}data(e,t){const r=this.hex(e,t);if(r.length%2!==0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return Ue(e)}callAddress(e){if(!I(e,32))return null;const t=Ue(O(e,12));return t===Di?null:t}contractAddress(e){return Le(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||I(e))return N(e);throw new Error("invalid blockTag")}hash(e,t){const r=this.hex(e,t);return 32!==C(r)?Do.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;const t=K.from(e);try{return t.toNumber()}catch(r){}return null}uint256(e){if(!I(e))throw new Error("invalid uint256");return L(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const r=null!=e._difficulty?e._difficulty:e.difficulty,n=_o.check(t,e);return n._difficulty=null==r?null:K.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return _o.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&K.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=_o.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;I(r)&&(r=K.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),I(r)&&(r=K.from(r).toNumber()),"number"!==typeof r&&null!=t.v&&(r=(t.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!==typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return vn(e)}receiptLog(e){return _o.check(this.formats.receiptLog,e)}receipt(e){const t=_o.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=K.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&Do.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):Do.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&Do.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 _o.check(this.formats.filter,e)}filterLog(e){return _o.check(this.formats.filterLog,e)}static check(e,t){const r={};for(const a in e)try{const n=e[a](t[a]);void 0!==n&&(r[a]=n)}catch(n){throw n.checkKey=a,n.checkValue=t[a],n}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const r=[];return t.forEach((function(t){r.push(e(t))})),r}}}function Io(e){return e&&"function"===typeof e.isCommunityResource}function Ro(e){return Io(e)&&e.isCommunityResource()}let Po=!1;function Co(){Po||(Po=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var Oo=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const Uo=new y(ko);function No(e){return null==e?"null":(32!==C(e)&&Uo.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function Bo(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[No(e)]=!0}));const r=Object.keys(t);return r.sort(),r.join("|")}return No(e)})).join("&")}function Lo(e){if("string"===typeof e){if(32===C(e=e.toLowerCase()))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+Bo(e);if(ar.isForkEvent(e))throw Uo.warn("not implemented"),new Error("not implemented");if(e&&"object"===typeof e)return"filter:"+(e.address||"*")+":"+Bo(e.topics||[])}throw new Error("invalid event - "+e)}function Mo(){return(new Date).getTime()}function Fo(e){return new Promise((t=>{setTimeout(t,e)}))}const jo=["block","network","pending","poll"];class Ho{constructor(e,t,r){te(this,"tag",e),te(this,"listener",t),te(this,"once",r),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],r=""===(n=e[2])?[]:n.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 n;const a={};return r.length>0&&(a.topics=r),t&&"*"!==t&&(a.address=t),a}pollable(){return this.tag.indexOf(":")>=0||jo.indexOf(this.tag)>=0}}const zo={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 $o(e){return L(K.from(e).toHexString(),32)}function Go(e){return ma.encode(k([e,O(Ea(Ea(e)),0,4)]))}const Vo=new RegExp("^(ipfs)://(.*)$","i"),Wo=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Vo,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function qo(e,t){try{return Ze(Ko(e,t))}catch(r){}return null}function Ko(e,t){if("0x"===e)return null;const r=K.from(O(e,t,t+32)).toNumber(),n=K.from(O(e,r,r+32)).toNumber();return O(e,r+32,r+32+n)}function Zo(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):Uo.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function Xo(e){const t=T(e);if(t.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(t,32-t.length),r}function Yo(e){if(e.length%32===0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function Jo(e){const t=[];let r=0;for(let n=0;nK.from(e).eq(1))).catch((e=>{if(e.code===y.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e}))),this._supportsEip2544}_fetch(e,t){return Oo(this,void 0,void 0,(function*(){const r={to:this.address,ccipReadEnabled:!0,data:U([e,fo(this.name),t||"0x"])};let n=!1;(yield this.supportsWildcard())&&(n=!0,r.data=U(["0x9061b923",Jo([ho(this.name),r.data])]));try{let e=yield this.provider.call(r);return T(e).length%32===4&&Uo.throwError("resolver threw error",y.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=Ko(e,0)),e}catch(a){if(a.code===y.errors.CALL_EXCEPTION)return null;throw a}}))}_fetchBytes(e,t){return Oo(this,void 0,void 0,(function*(){const r=yield this._fetch(e,t);return null!=r?Ko(r,0):null}))}_getAddress(e,t){const r=zo[String(e)];if(null==r&&Uo.throwError(`unsupported coin type: ${e}`,y.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);const n=T(t);if(null!=r.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 Go(k([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.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 Go(k([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){const e=n[1];let t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){const e=To().toWords(n.slice(2));return e.unshift(t),To().encode(r.prefix,e)}}return null}getAddress(e){return Oo(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||e===_i?null:this.provider.formatter.callAddress(e)}catch(n){if(n.code===y.errors.CALL_EXCEPTION)return null;throw n}const t=yield this._fetchBytes("0xf1cb7e06",$o(e));if(null==t||"0x"===t)return null;const r=this._getAddress(e,t);return null==r&&Uo.throwError("invalid or unsupported coin data",y.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r}))}getAvatar(){return Oo(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 r=0;re[t]))}return Uo.throwError("invalid or unsupported content hash data",y.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return Oo(this,void 0,void 0,(function*(){let t=Ve(e);t=k([$o(64),$o(t.length),t]),t.length%32!==0&&(t=k([t,L("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",P(t));return null==r||"0x"===r?null:Ze(r)}))}}let es=null,ts=1;class rs extends ir{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),te(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=re(new.target,"getNetwork")(e);t?(te(this,"_network",t),this.emit("network",t,null)):Uo.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Oo(this,void 0,void 0,(function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch(e){}null==t&&(t=yield this.detectNetwork()),t||Uo.throwError("no network detected",y.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:te(this,"_network",t),this.emit("network",t,null))}return this._network}))}get ready(){return xo((()=>this._ready().then((e=>e),(e=>{if(e.code!==y.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==es&&(es=new _o),es}static getNetwork(e){return Li(null==e?"homestead":e)}ccipReadFetch(e,t,r){return Oo(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===r.length)return null;const n=e.to.toLowerCase(),a=t.toLowerCase(),i=[];for(let e=0;e=0?null:JSON.stringify({data:a,sender:n}),c=yield wo({url:o,errorPassThrough:!0},s,((e,t)=>(e.status=t.statusCode,e)));if(c.data)return c.data;const l=c.message||"unknown error";if(c.status>=400&&c.status<500)return Uo.throwError(`response not found during CCIP fetch: ${l}`,y.errors.SERVER_ERROR,{url:t,errorMessage:l});i.push(l)}return Uo.throwError(`error encountered during CCIP fetch: ${i.map((e=>JSON.stringify(e))).join(", ")}`,y.errors.SERVER_ERROR,{urls:r,errorMessages:i})}))}_getInternalBlockNumber(e){return Oo(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const r=yield t;if(Mo()-r.respTime<=e)return r.blockNumber;break}catch(n){if(this._internalBlockNumber===t)break}}const t=Mo(),r=ne({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((e=>{let{blockNumber:n,networkError:a}=e;if(a)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),a;const i=Mo();return n=K.from(n).toNumber(),n{this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return Oo(this,void 0,void 0,(function*(){const e=ts++,t=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(n){return void this.emit("error",n)}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)Uo.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",Uo.makeError("network block skew detected",y.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((e=>{switch(e.type){case"tx":{const r=e.hash;let n=this.getTransactionReceipt(r).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(n);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);const n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;const a=n.toBlock-this._maxFilterBlockRange;a>n.fromBlock&&(n.fromBlock=a),n.fromBlock<0&&(n.fromBlock=0);const i=this.getLogs(n).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(n,t)}))})).catch((t=>{this.emit("error",t),e._inflight=!1}));t.push(i)}}})),this._lastBlockNumber=r,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 Oo(this,void 0,void 0,(function*(){return Uo.throwError("provider does not support network detection",y.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return Oo(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 Fo(0),this._network;const r=Uo.makeError("underlying network changed",y.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}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=Mo();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,r){return Oo(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)}))}_waitForTransaction(e,t,r,n){return Oo(this,void 0,void 0,(function*(){const a=yield this.getTransactionReceipt(e);return(a?a.confirmations:0)>=t?a:new Promise(((a,i)=>{const o=[];let s=!1;const c=function(){return!!s||(s=!0,o.forEach((e=>{e()})),!1)},l=e=>{e.confirmations{this.removeListener(e,l)})),n){let r=n.startBlock,a=null;const l=o=>Oo(this,void 0,void 0,(function*(){s||(yield Fo(1e3),this.getTransactionCount(n.from).then((u=>Oo(this,void 0,void 0,(function*(){if(!s){if(u<=n.nonce)r=o;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==a&&(a=r-3,a{s||this.once("block",l)})))}));if(s)return;this.once("block",l),o.push((()=>{this.removeListener("block",l)}))}if("number"===typeof r&&r>0){const e=setTimeout((()=>{c()||i(Uo.makeError("timeout exceeded",y.errors.TIMEOUT,{timeout:r}))}),r);e.unref&&e.unref(),o.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return Oo(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return Oo(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return K.from(e)}catch(t){return Uo.throwError("bad result from backend",y.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}}))}getBalance(e,t){return Oo(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield ne({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return K.from(n)}catch(a){return Uo.throwError("bad result from backend",y.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:a})}}))}getTransactionCount(e,t){return Oo(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield ne({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return K.from(n).toNumber()}catch(a){return Uo.throwError("bad result from backend",y.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:a})}}))}getCode(e,t){return Oo(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield ne({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return P(n)}catch(a){return Uo.throwError("bad result from backend",y.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:a})}}))}getStorageAt(e,t,r){return Oo(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield ne({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((e=>N(e)))}),a=yield this.perform("getStorageAt",n);try{return P(a)}catch(i){return Uo.throwError("bad result from backend",y.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:a,error:i})}}))}_wrapTransaction(e,t,r){if(null!=t&&32!==C(t))throw new Error("invalid response - sendTransaction");const n=e;return null!=t&&e.hash!==t&&Uo.throwError("Transaction hash mismatch from Provider.sendTransaction.",y.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),n.wait=(t,n)=>Oo(this,void 0,void 0,(function*(){let a;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(a={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const i=yield this._waitForTransaction(e.hash,t,n,a);return null==i&&0===t?null:(this._emitted["t:"+e.hash]=i.blockNumber,0===i.status&&Uo.throwError("transaction failed",y.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:i}),i)})),n}sendTransaction(e){return Oo(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>P(e))),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(a){throw a.transaction=r,a.transactionHash=r.hash,a}}))}_getTransactionRequest(e){return Oo(this,void 0,void 0,(function*(){const t=yield e,r={};return["from","to"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?K.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?P(e):null)))})),this.formatter.transactionRequest(yield ne(r))}))}_getFilter(e){return Oo(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((r=>{null!=e[r]&&(t[r]=e[r])})),["fromBlock","toBlock"].forEach((r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))})),this.formatter.filter(yield ne(t))}))}_call(e,t,r){return Oo(this,void 0,void 0,(function*(){r>=10&&Uo.throwError("CCIP read exceeded maximum redirections",y.errors.SERVER_ERROR,{redirects:r,transaction:e});const n=e.to,a=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===a.substring(0,10)&&C(a)%32===4)try{const i=O(a,4),o=O(i,0,32);K.from(o).eq(n)||Uo.throwError("CCIP Read sender did not match",y.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a});const s=[],c=K.from(O(i,32,64)).toNumber(),l=K.from(O(i,c,c+32)).toNumber(),u=O(i,c+32);for(let t=0;tOo(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let n=0;nthis._wrapTransaction(e))),r}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return Oo(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return xo((()=>Oo(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(e){return Oo(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return xo((()=>Oo(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}))),{oncePoll:this})}))}getLogs(e){return Oo(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield ne({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach((e=>{null==e.removed&&(e.removed=!1)})),_o.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return Oo(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return Oo(this,void 0,void 0,(function*(){if("number"===typeof(e=yield e)&&e<0){e%1&&Uo.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 Oo(this,void 0,void 0,(function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const r=yield this._getResolver(t,"getResolver");if(null!=r){const n=new Qo(this,r,e);return t===e||(yield n.supportsWildcard())?n:null}t=t.split(".").slice(1).join(".")}}))}_getResolver(e,t){return Oo(this,void 0,void 0,(function*(){null==t&&(t="ENS");const r=yield this.getNetwork();r.ensAddress||Uo.throwError("network does not support ENS",y.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{const t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+fo(e).substring(2)});return this.formatter.callAddress(t)}catch(n){}return null}))}resolveName(e){return Oo(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(r){if(I(e))throw r}"string"!==typeof e&&Uo.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return Oo(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;const n=qo(yield this.call({to:r,data:"0x691f3431"+fo(t).substring(2)}),0);return(yield this.resolveName(n))!=e?null:n}))}getAvatar(e){return Oo(this,void 0,void 0,(function*(){let t=null;if(I(e)){const r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",a=yield this._getResolver(r,"getAvatar");if(!a)return null;t=new Qo(this,a,r);try{const e=yield t.getAvatar();if(e)return e.url}catch(n){if(n.code!==y.errors.CALL_EXCEPTION)throw n}try{const e=qo(yield this.call({to:a,data:"0x691f3431"+fo(r).substring(2)}),0);t=yield this.getResolver(e)}catch(n){if(n.code!==y.errors.CALL_EXCEPTION)throw n;return null}}else if(t=yield this.getResolver(e),!t)return null;const r=yield t.getAvatar();return null==r?null:r.url}))}perform(e,t){return Uo.throwError(e+" not implemented",y.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,r){const n=new Ho(Lo(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;ne.tag!==o||(setTimeout((()=>{e.listener.apply(this,r)}),0),a=!0,!e.once||(i.push(e),!1)))),i.forEach((e=>{this._stopEvent(e)})),a}listenerCount(e){if(!e)return this._events.length;let t=Lo(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=Lo(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const r=[];let n=!1,a=Lo(e);return this._events=this._events.filter((e=>e.tag!==a||e.listener!=t||(!!n||(n=!0,r.push(e),!1)))),r.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const r=Lo(e);this._events=this._events.filter((e=>e.tag!==r||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}var ns=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const as=new y(ko),is=["call","estimateGas"];function os(e,t){if(null==e)return null;if("string"===typeof e.message&&e.message.match("reverted")){const r=I(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"===typeof e){for(const r in e){const n=os(e[r],t);if(n)return n}return null}if("string"===typeof e)try{return os(JSON.parse(e),t)}catch(r){}return null}function ss(e,t,r){const n=r.transaction||r.signedTransaction;if("call"===e){const e=os(t,!0);if(e)return e.data;as.throwError("missing revert data in call exception; Transaction reverted without a reason string",y.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=os(t.body,!1);null==r&&(r=os(t,!1)),r&&as.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",y.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let a=t.message;throw t.code===y.errors.SERVER_ERROR&&t.error&&"string"===typeof t.error.message?a=t.error.message:"string"===typeof t.body?a=t.body:"string"===typeof t.responseText&&(a=t.responseText),a=(a||"").toLowerCase(),a.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&as.throwError("insufficient funds for intrinsic transaction cost",y.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),a.match(/nonce (is )?too low/i)&&as.throwError("nonce has already been used",y.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),a.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&as.throwError("replacement fee too low",y.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),a.match(/only replay-protected/i)&&as.throwError("legacy pre-eip-155 transactions not supported",y.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),is.indexOf(e)>=0&&a.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&as.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",y.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function cs(e){return new Promise((function(t){setTimeout(t,e)}))}function ls(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 us(e){return e?e.toLowerCase():e}const ds={};class ps extends ur{constructor(e,t,r){if(super(),e!==ds)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");te(this,"provider",t),null==r&&(r=0),"string"===typeof r?(te(this,"_address",this.provider.formatter.address(r)),te(this,"_index",null)):"number"===typeof r?(te(this,"_index",r),te(this,"_address",null)):as.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return as.throwError("cannot alter JSON-RPC Signer connection",y.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new fs(ds,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&&as.throwError("unknown account #"+this._index,y.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=ie(e);const t=this.getAddress().then((e=>(e&&(e=e.toLowerCase()),e)));if(null==e.gasLimit){const r=ie(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>ns(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&as.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))))),ne({tx:ne(e),sender:t}).then((t=>{let{tx:r,sender:n}=t;null!=r.from?r.from.toLowerCase()!==n&&as.throwArgumentError("from address mismatch","transaction",e):r.from=n;const a=this.provider.constructor.hexlifyTransaction(r,{from:!0});return this.provider.send("eth_sendTransaction",[a]).then((e=>e),(e=>("string"===typeof e.message&&e.message.match(/user denied/i)&&as.throwError("user rejected transaction",y.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:r}),ss("sendTransaction",e,a))))}))}signTransaction(e){return as.throwError("signing transactions is unsupported",y.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return ns(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield xo((()=>ns(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}))),{oncePoll:this.provider})}catch(n){throw n.transactionHash=r,n}}))}signMessage(e){return ns(this,void 0,void 0,(function*(){const t="string"===typeof e?Ve(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[P(t),r.toLowerCase()])}catch(n){throw"string"===typeof n.message&&n.message.match(/user denied/i)&&as.throwError("user rejected signing",y.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),n}}))}_legacySignMessage(e){return ns(this,void 0,void 0,(function*(){const t="string"===typeof e?Ve(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),P(t)])}catch(n){throw"string"===typeof n.message&&n.message.match(/user denied/i)&&as.throwError("user rejected signing",y.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),n}}))}_signTypedData(e,t,r){return ns(this,void 0,void 0,(function*(){const n=yield ha.resolveNames(e,t,r,(e=>this.provider.resolveName(e))),a=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[a.toLowerCase(),JSON.stringify(ha.getPayload(n.domain,t,n.value))])}catch(i){throw"string"===typeof i.message&&i.message.match(/user denied/i)&&as.throwError("user rejected signing",y.errors.ACTION_REJECTED,{action:"_signTypedData",from:a,messageData:{domain:n.domain,types:t,value:n.value}}),i}}))}unlock(e){return ns(this,void 0,void 0,(function*(){const t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])}))}}class fs extends ps{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 hs={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class gs extends rs{constructor(e,t){let r=t;null==r&&(r=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(r),e||(e=re(this.constructor,"defaultUrl")()),te(this,"connection","string"===typeof e?Object.freeze({url:e}):Object.freeze(ie(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 ns(this,void 0,void 0,(function*(){yield cs(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(t){}}if(null!=e){const r=re(this.constructor,"getNetwork");try{return r(K.from(e).toNumber())}catch(t){return as.throwError("could not detect network",y.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return as.throwError("could not detect network",y.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new ps(ds,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 r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:le(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];const a=wo(this.connection,JSON.stringify(r),ls).then((e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e}));return n&&(this._cache[e]=a,setTimeout((()=>{this._cache[e]=null}),0)),a}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[us(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[us(t.address),t.blockTag]];case"getCode":return["eth_getCode",[us(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[us(t.address),L(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",[re(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[re(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=us(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return ns(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&K.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=ie(t)).transaction=ie(e),delete t.transaction.type)}}const r=this.prepareRequest(e,t);null==r&&as.throwError(e+" not implemented",y.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(n){return ss(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(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return cs(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((e=>{}))}(),r})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const r=ie(hs);if(t)for(const a in t)t[a]&&(r[a]=!0);ae(e,r);const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const r=N(K.from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r})),["from","to","data"].forEach((function(t){null!=e[t]&&(n[t]=P(e[t]))})),e.accessList&&(n.accessList=fn(e.accessList)),n}}let ms=null;try{if(ms=WebSocket,null==ms)throw new Error("inject please")}catch(el){const e=new y(ko);ms=function(){e.throwError("WebSockets not supported in this environment",y.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var bs=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const ys=new y(ko);let vs=1;class Es extends gs{constructor(e,t){"any"===t&&ys.throwError("WebSocketProvider does not support 'any' network yet",y.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super("string"===typeof e?e:"_websocket",t),this._pollingInterval=-1,this._wsReady=!1,te(this,"_websocket","string"===typeof e?new ms(this.connection.url):e),te(this,"_requests",{}),te(this,"_subs",{}),te(this,"_subIds",{}),te(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach((e=>{this.websocket.send(this._requests[e].payload)}))},this.websocket.onmessage=e=>{const t=e.data,r=JSON.parse(t);if(null!=r.id){const e=String(r.id),n=this._requests[e];if(delete this._requests[e],void 0!==r.result)n.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(n.payload),response:r.result,provider:this});else{let e=null;r.error?(e=new Error(r.error.message||"unknown error"),te(e,"code",r.error.code||null),te(e,"response",t)):e=new Error("unknown error"),n.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(n.payload),provider:this})}}else if("eth_subscription"===r.method){const e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else console.warn("this should not happen")};const r=setInterval((()=>{this.emit("poll")}),1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){ys.throwError("cannot reset events block on WebSocketProvider",y.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){ys.throwError("cannot set polling interval on WebSocketProvider",y.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return bs(this,void 0,void 0,(function*(){return null}))}set polling(e){e&&ys.throwError("cannot set polling on WebSocketProvider",y.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){const r=vs++;return new Promise(((n,a)=>{const i=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(i),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?a(e):n(t)},payload:i},this._wsReady&&this.websocket.send(i)}))}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return bs(this,void 0,void 0,(function*(){let n=this._subIds[e];null==n&&(n=Promise.all(t).then((e=>this.send("eth_subscribe",e))),this._subIds[e]=n);const a=yield n;this._subs[a]={tag:e,processFunc:r}}))}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],(e=>{const t=K.from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(e=>{this.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))}));break;case"tx":{const t=e=>{const t=e.hash;this.getTransactionReceipt(t).then((e=>{e&&this.emit(t,e)}))};t(e),this._subscribe("tx",["newHeads"],(e=>{this._events.filter((e=>"tx"===e.type)).forEach(t)}));break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter((e=>"tx"===e.type)).length)return;t="tx"}else if(this.listenerCount(e.event))return;const r=this._subIds[t];r&&(delete this._subIds[t],r.then((e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))})))}destroy(){return bs(this,void 0,void 0,(function*(){this.websocket.readyState===ms.CONNECTING&&(yield new Promise((e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}}))),this.websocket.close(1e3)}))}}var Ss=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const ws=new y(ko);class xs extends gs{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return Ss(this,void 0,void 0,(function*(){let t=this.network;return null==t&&(t=yield e.detectNetwork.call(this),t||ws.throwError("no network detected",y.errors.UNKNOWN_ERROR,{}),null==this._network&&(te(this,"_network",t),this.emit("network",t,null))),t}))}}class As extends xs{constructor(e,t){ws.checkAbstract(new.target,As),e=re(new.target,"getNetwork")(e),t=re(new.target,"getApiKey")(t);super(re(new.target,"getUrl")(e,t),e),"string"===typeof t?te(this,"apiKey",t):null!=t&&Object.keys(t).forEach((e=>{te(this,e,t[e])}))}_startPending(){ws.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return ws.throwError("API provider does not support signing",y.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return ws.throwError("not implemented; sub-classes must override getUrl",y.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const Ts=new y(ko),ks="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class Ds extends Es{constructor(e,t){const r=new _s(e,t);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),te(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===ks}}class _s extends As{static getWebSocketProvider(e,t){return new Ds(e,t)}static getApiKey(e){return null==e?ks:(e&&"string"!==typeof e&&Ts.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:Ts.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===ks&&Co(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===ks}}const Is=new y(ko),Rs="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function Ps(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return Is.throwArgumentError("unsupported network","name",e)}class Cs extends As{isCommunityResource(){return this.apiKey===Rs}static getApiKey(e){return null==e?Rs:e}static getUrl(e,t){null==t&&(t=Rs);const r={allowGzip:!0,url:"https://"+Ps(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===Rs&&Co(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}var Os=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const Us=new y(ko);class Ns extends As{static getApiKey(e){return null!=e&&Us.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;if("homestead"===e.name)r="https://cloudflare-eth.com/";else Us.throwArgumentError("unsupported network","network",arguments[0]);return r}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return Os(this,void 0,void 0,(function*(){if("getBlockNumber"===e){return(yield r.perform.call(this,"getBlock",{blockTag:"latest"})).number}return r.perform.call(this,e,t)}))}}var Bs=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const Ls=new y(ko);function Ms(e){const t={};for(let r in e){if(null==e[r])continue;let n=e[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?N(P(n)):"accessList"===r?"["+fn(n).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]":P(n),t[r]=n)}return t}function Fs(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!==typeof e.message||!e.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function js(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){const t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function Hs(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function zs(e,t,r){if("call"===e&&t.code===y.errors.SERVER_ERROR){const e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let r=e.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),I(r))return r;Ls.throwError("missing revert data in call exception",y.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let n=t.message;throw t.code===y.errors.SERVER_ERROR&&(t.error&&"string"===typeof t.error.message?n=t.error.message:"string"===typeof t.body?n=t.body:"string"===typeof t.responseText&&(n=t.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&Ls.throwError("insufficient funds for intrinsic transaction cost",y.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Ls.throwError("nonce has already been used",y.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),n.match(/another transaction with same nonce/)&&Ls.throwError("replacement fee too low",y.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&Ls.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",y.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class $s extends rs{constructor(e,t){super(e),te(this,"baseUrl",this.getBaseUrl()),te(this,"apiKey",t||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return Ls.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){const r=Object.keys(t).reduce(((e,r)=>{const n=t[r];return null!=n&&(e+=`&${r}=${n}`),e}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return Bs(this,void 0,void 0,(function*(){const n=r?this.getPostUrl():this.getUrl(e,t),a=r?this.getPostData(e,t):null,i="proxy"===e?js:Fs;this.emit("debug",{action:"request",request:n,provider:this});const o={url:n,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&Co(),Promise.resolve(!0))};let s=null;a&&(o.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},s=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"));const c=yield wo(o,s,i||js);return this.emit("debug",{action:"response",request:n,response:le(c),provider:this}),c}))}detectNetwork(){return Bs(this,void 0,void 0,(function*(){return this.network}))}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return Bs(this,void 0,void 0,(function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((e=>zs("sendTransaction",e,t.signedTransaction)));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=Ms(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(el){return zs("call",el,t.transaction)}}case"estimateGas":{const e=Ms(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(el){return zs("estimateGas",el,t.transaction)}}case"getLogs":{const e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=Hs(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=Hs(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&Ls.throwError("unsupported topic count",y.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){const r=t.filter.topics[0];"string"===typeof r&&66===r.length||Ls.throwError("unsupported topic format",y.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}const r=yield this.fetch("logs",e);let n={};for(let t=0;t{["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);const t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t}))}))}isCommunityResource(){return null==this.apiKey}}function Gs(e){for(let t=(e=e.slice()).length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}var Vs=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};const Ws=new y(ko);function qs(){return(new Date).getTime()}function Ks(e){let t=null;for(let r=0;rt?null:(n+a)/2}function Xs(e){if(null===e)return"null";if("number"===typeof e||"boolean"===typeof e)return JSON.stringify(e);if("string"===typeof e)return e;if(K.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((e=>Xs(e))));if("object"===typeof e){const t=Object.keys(e);return t.sort(),"{"+t.map((t=>{let r=e[t];return r="function"===typeof r?"[function]":Xs(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}let Ys=1;function Js(e){let t=null,r=null,n=new Promise((n=>{t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:e=>(n=n.then(e),n)}}const Qs=[y.errors.CALL_EXCEPTION,y.errors.INSUFFICIENT_FUNDS,y.errors.NONCE_EXPIRED,y.errors.REPLACEMENT_UNDERPRICED,y.errors.UNPREDICTABLE_GAS_LIMIT],ec=["address","args","errorArgs","errorSignature","method","transaction"];function tc(e,t){const r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function rc(e,t,r){let n=Xs;switch(t){case"getBlockNumber":return function(t){const r=t.map((e=>e.result));let n=Zs(t.map((e=>e.result)),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){const t=e.map((e=>e.result));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return Zs(e.map((e=>e.result)))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=ie(e)).confirmations=-1,Xs(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=ie(e)).transactions=e.transactions.map((e=>((e=ie(e)).confirmations=-1,e))),Xs(e))}:function(e){return null==e?null:Xs(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){const n={};r.forEach((t=>{const r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));const a=Object.keys(n);for(let e=0;e=t)return r.result}}}(n,e.quorum)}function nc(e,t){return Vs(this,void 0,void 0,(function*(){const r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:xo((()=>new Promise(((n,a)=>{setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))),{oncePoll:r})}))}function ac(e,t,r,n){return Vs(this,void 0,void 0,(function*(){let a=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return a[r]();case"getEtherPrice":if(a.getEtherPrice)return a.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&I(n.blockTag)&&(a=yield nc(e,t)),a[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&I(n.blockTag)&&(a=yield nc(e,t)),a.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&I(n.blockTag)&&(a=yield nc(e,t)),a[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&I(n.blockTag)&&(a=yield nc(e,t)),"call"===r&&n.blockTag?a[r](n.transaction,n.blockTag):a[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return a[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&I(r.fromBlock)||r.toBlock&&I(r.toBlock))&&(a=yield nc(e,t)),a.getLogs(r)}}return Ws.throwError("unknown method error",y.errors.UNKNOWN_ERROR,{method:r,params:n})}))}class ic extends rs{constructor(e,t){0===e.length&&Ws.throwArgumentError("missing providers","providers",e);const r=e.map(((e,t)=>{if(ir.isProvider(e)){const t=Ro(e)?2e3:750,r=1;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:r})}const r=ie(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=Ro(e)?2e3:750),null==r.weight&&(r.weight=1);const n=r.weight;return(n%1||n>512||n<1)&&Ws.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,n),Object.freeze(r)})),n=r.reduce(((e,t)=>e+t.weight),0);null==t?t=n/2:t>n&&Ws.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let a=Ks(r.map((e=>e.provider.network)));null==a&&(a=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then(e,t)}),0)}))),super(a),te(this,"providerConfigs",Object.freeze(r)),te(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return Vs(this,void 0,void 0,(function*(){return Ks(yield Promise.all(this.providerConfigs.map((e=>e.provider.getNetwork()))))}))}perform(e,t){return Vs(this,void 0,void 0,(function*(){if("sendTransaction"===e){const e=yield Promise.all(this.providerConfigs.map((e=>e.provider.sendTransaction(t.signedTransaction).then((e=>e.hash),(e=>e)))));for(let t=0;te.priority-t.priority));const a=this._highestBlockNumber;let i=0,o=!0;for(;;){const s=qs();let c=n.filter((e=>e.runner&&s-e.starte+t.weight),0);for(;c{r.staller=null})),r.runner=ac(r,a,e,t).then((n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:tc(r,qs()),request:{method:e,params:le(t)},provider:this})}),(n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:tc(r,qs()),request:{method:e,params:le(t)},provider:this})})),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:tc(r,null),request:{method:e,params:le(t)},provider:this}),c+=r.weight}const l=[];n.forEach((e=>{!e.done&&e.runner&&(l.push(e.runner),e.staller&&l.push(e.staller.getPromise()))})),l.length&&(yield Promise.race(l));const u=n.filter((e=>e.done&&null==e.error));if(u.length>=this.quorum){const e=r(u);if(void 0!==e)return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),e;o||(yield Js(100).getPromise()),o=!1}const d=n.reduce(((e,t)=>{if(!t.done||null==t.error)return e;const r=t.error.code;return Qs.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{});if(Object.keys(d).forEach((e=>{const t=d[e];if(t.weight{e.staller&&e.staller.cancel(),e.cancelled=!0}));const r=t.error,a={};ec.forEach((e=>{null!=r[e]&&(a[e]=r[e])})),Ws.throwError(r.reason||r.message,e,a)})),0===n.filter((e=>!e.done)).length)break}return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),Ws.throwError("failed to meet quorum",y.errors.SERVER_ERROR,{method:e,params:t,results:n.map((e=>tc(e))),provider:this})}))}}const oc=null,sc=new y(ko),cc="84842078b09946638c03157f83405213";class lc extends Es{constructor(e,t){const r=new uc(e,t),n=r.connection;n.password&&sc.throwError("INFURA WebSocket project secrets unsupported",y.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});super(n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),te(this,"apiKey",r.projectId),te(this,"projectId",r.projectId),te(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===cc}}class uc extends As{static getWebSocketProvider(e,t){return new lc(e,t)}static getApiKey(e){const t={apiKey:cc,projectId:cc,projectSecret:null};return null==e||("string"===typeof e?t.projectId=e:null!=e.projectSecret?(sc.assertArgument("string"===typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),sc.assertArgument("string"===typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:sc.throwError("unsupported network",y.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===cc&&Co(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}isCommunityResource(){return this.projectId===cc}}class dc extends gs{send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const n={request:r,resolve:null,reject:null},a=new Promise(((e,t)=>{n.resolve=e,n.reject=t}));return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const t=e.map((e=>e.request));return this.emit("debug",{action:"requestBatch",request:le(t),provider:this}),wo(this.connection,JSON.stringify(t)).then((r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach(((e,t)=>{const n=r[t];if(n.error){const t=new Error(n.error.message);t.code=n.error.code,t.data=n.error.data,e.reject(t)}else e.resolve(n.result)}))}),(r=>{this.emit("debug",{action:"response",error:r,request:t,provider:this}),e.forEach((e=>{e.reject(r)}))}))}),10)),a}}const pc=new y(ko);class fc extends As{static getApiKey(e){return e&&"string"!==typeof e&&pc.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){pc.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:pc.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}const hc=new y(ko),gc="62e1ad51b37b8e00394bda3b";class mc extends As{static getApiKey(e){const t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=gc:"string"===typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:hc.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:hc.throwError("unsupported network",y.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={headers:{},url:`https://${r}/v1/lb/${t.applicationId}`};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n}isCommunityResource(){return this.applicationId===gc}}const bc=new y(ko);let yc=1;function vc(e,t){const r="Web3LegacyFetcher";return function(e,n){const a={method:e,params:n,id:yc++,jsonrpc:"2.0"};return new Promise(((e,n)=>{this.emit("debug",{action:"request",fetcher:r,request:le(a),provider:this}),t(a,((t,i)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:a,provider:this}),n(t);if(this.emit("debug",{action:"response",fetcher:r,request:a,response:i,provider:this}),i.error){const e=new Error(i.error.message);return e.code=i.error.code,e.data=i.error.data,n(e)}e(i.result)}))}))}}class Ec extends gs{constructor(e,t){null==e&&bc.throwArgumentError("missing provider","provider",e);let r=null,n=null,a=null;"function"===typeof e?(r="unknown:",n=e):(r=e.host||e.path||"",!r&&e.isMetaMask&&(r="metamask"),a=e,e.request?(""===r&&(r="eip-1193:"),n=function(e){return function(t,r){null==r&&(r=[]);const n={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:le(n),provider:this}),e.request(n).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:e,provider:this}),e}))}}(e)):e.sendAsync?n=vc(0,e.sendAsync.bind(e)):e.send?n=vc(0,e.send.bind(e)):bc.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),te(this,"jsonRpcFetchFunc",n),te(this,"provider",a)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const Sc=new y(ko);function wc(e,t){if(null==e&&(e="homestead"),"string"===typeof e){const t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new gs(e);case"ws":case"wss":return new Es(e);default:Sc.throwArgumentError("unsupported URL scheme","network",e)}}const r=Li(e);return r&&r._defaultProvider||Sc.throwError("unsupported getDefaultProvider network",y.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:ic,AlchemyProvider:_s,AnkrProvider:Cs,CloudflareProvider:Ns,EtherscanProvider:$s,InfuraProvider:uc,JsonRpcProvider:gs,NodesmithProvider:fc,PocketProvider:mc,Web3Provider:Ec,IpcProvider:oc},t)}const xc=new RegExp("^bytes([0-9]+)$"),Ac=new RegExp("^(u?int)([0-9]*)$"),Tc=new RegExp("^(.*)\\[([0-9]*)\\]$"),kc="0000000000000000000000000000000000000000000000000000000000000000",Dc=new y("solidity/5.7.0");function _c(e,t,r){switch(e){case"address":return r?_(t,32):T(t);case"string":return Ve(t);case"bytes":return T(t);case"bool":return t=t?"0x01":"0x00",r?_(t,32):T(t)}let n=e.match(Ac);if(n){let a=parseInt(n[2]||"256");return(n[2]&&String(a)!==n[2]||a%8!==0||0===a||a>256)&&Dc.throwArgumentError("invalid number type","type",e),r&&(a=256),_(t=K.from(t).toTwos(a),a/8)}if(n=e.match(xc),n){const a=parseInt(n[1]);return(String(a)!==n[1]||0===a||a>32)&&Dc.throwArgumentError("invalid bytes type","type",e),T(t).byteLength!==a&&Dc.throwArgumentError(`invalid value for ${e}`,"value",t),r?T((t+kc).substring(0,66)):t}if(n=e.match(Tc),n&&Array.isArray(t)){const r=n[1];parseInt(n[2]||String(t.length))!=t.length&&Dc.throwArgumentError(`invalid array length for ${e}`,"value",t);const a=[];return t.forEach((function(e){a.push(_c(r,e,!0))})),k(a)}return Dc.throwArgumentError("invalid type","type",e)}function Ic(e,t){e.length!=t.length&&Dc.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);const r=[];return e.forEach((function(e,n){r.push(_c(e,t[n]))})),P(k(r))}function Rc(e,t){return ve(Ic(e,t))}function Pc(e,t){return Ea(Ic(e,t))}function Cc(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,n={};return e.split(",").forEach((e=>{let a=e.split(":");r+=parseInt(a[0],16),n[r]=t(a[1])})),n}function Oc(e){let t=0;return e.split(",").map((e=>{let r=e.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=t+parseInt(r[0],16);return t=parseInt(r[1],16),{l:n,h:t}}))}function Uc(e,t){let r=0;for(let n=0;n=r&&e<=r+a.h&&(e-r)%(a.d||1)===0){if(a.e&&-1!==a.e.indexOf(e-r))continue;return a}}return null}const Nc=Oc("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),Bc="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((e=>parseInt(e,16))),Lc=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],Mc=Cc("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Fc=Cc("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),jc=Cc("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!==0)throw new Error("bad data");let t=[];for(let r=0;r{if(Bc.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];let t=function(e){let t=Uc(e,Lc);if(t)return[e+t.s];let r=Mc[e];if(r)return r;let n=Fc[e];return n?[e+n[0]]:jc[e]||null}(e);return t||[e]})),t=r.reduce(((e,t)=>(t.forEach((t=>{e.push(t)})),e)),[]),t=Xe(Ke(t),je.NFKC),t.forEach((e=>{if(Uc(e,Hc))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),t.forEach((e=>{if(Uc(e,Nc))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));let n=Ke(t);if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen");return n}function $c(e){const t=Ve(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return P(k([t,_i]).slice(0,32))}function Gc(e){const t=T(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return Ze(t.slice(0,r))}const Vc=new y("units/5.7.0"),Wc=["wei","kwei","mwei","gwei","szabo","finney","ether"];function qc(e){const t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&Vc.throwArgumentError("invalid value","value",e);let r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let a="";for(2===t.length&&(a="."+(t[1]||"0"));a.length>2&&"0"===a[a.length-1];)a=a.substring(0,a.length-1);const i=[];for(;r.length;){if(r.length<=3){i.unshift(r);break}{const e=r.length-3;i.unshift(r.substring(e)),r=r.substring(0,e)}}return n+i.join(",")+a}function Kc(e,t){if("string"===typeof t){const e=Wc.indexOf(t);-1!==e&&(t=3*e)}return Gn(e,null!=t?t:18)}function Zc(e,t){if("string"!==typeof e&&Vc.throwArgumentError("value must be a string","value",e),"string"===typeof t){const e=Wc.indexOf(t);-1!==e&&(t=3*e)}return Vn(e,null!=t?t:18)}function Xc(e){return Kc(e,18)}function Yc(e){return Zc(e,18)}const Jc="ethers/5.7.2",Qc=new y(Jc);try{const e=window;null==e._ethers&&(e._ethers=c)}catch(el){}},49602:(e,t,r)=>{var n=t;n.utils=r(41132),n.common=r(89784),n.sha=r(54503),n.ripemd=r(23102),n.hmac=r(66962),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},89784:(e,t,r)=>{"use strict";var n=r(41132),a=r(6965);function i(){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}t.BlockHash=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var a=0;a>>24&255,n[a++]=e>>>16&255,n[a++]=e>>>8&255,n[a++]=255&e}else for(n[a++]=255&e,n[a++]=e>>>8&255,n[a++]=e>>>16&255,n[a++]=e>>>24&255,n[a++]=0,n[a++]=0,n[a++]=0,n[a++]=0,i=8;i{"use strict";var n=r(41132),a=r(6965);function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=i,i.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t{"use strict";var n=r(41132),a=r(89784),i=n.rotl32,o=n.sum32,s=n.sum32_3,c=n.sum32_4,l=a.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function p(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,l),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],a=this.h[2],l=this.h[3],u=this.h[4],y=r,v=n,E=a,S=l,w=u,x=0;x<80;x++){var A=o(i(c(r,d(x,n,a,l),e[h[x]+t],p(x)),m[x]),u);r=u,u=l,l=i(a,10),a=n,n=A,A=o(i(c(y,d(79-x,v,E,S),e[g[x]+t],f(x)),b[x]),w),y=w,w=S,S=i(E,10),E=v,v=A}A=s(this.h[1],a,S),this.h[1]=s(this.h[2],l,w),this.h[2]=s(this.h[3],u,y),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,E),this.h[0]=A},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},54503:(e,t,r)=>{"use strict";t.sha1=r(94155),t.sha224=r(45432),t.sha256=r(60893),t.sha384=r(12457),t.sha512=r(26120)},94155:(e,t,r)=>{"use strict";var n=r(41132),a=r(89784),i=r(32403),o=n.rotl32,s=n.sum32,c=n.sum32_5,l=i.ft_1,u=a.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(p,u),e.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(41132),a=r(60893);function i(){if(!(this instanceof i))return new i;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(i,a),e.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},60893:(e,t,r)=>{"use strict";var n=r(41132),a=r(89784),i=r(32403),o=r(6965),s=n.sum32,c=n.sum32_4,l=n.sum32_5,u=i.ch32,d=i.maj32,p=i.s0_256,f=i.s1_256,h=i.g0_256,g=i.g1_256,m=a.BlockHash,b=[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 y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}n.inherits(y,m),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(41132),a=r(26120);function i(){if(!(this instanceof i))return new i;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(i,a),e.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},26120:(e,t,r)=>{"use strict";var n=r(41132),a=r(89784),i=r(6965),o=n.rotr64_hi,s=n.rotr64_lo,c=n.shr64_hi,l=n.shr64_lo,u=n.sum64,d=n.sum64_hi,p=n.sum64_lo,f=n.sum64_4_hi,h=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,b=a.BlockHash,y=[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 v(){if(!(this instanceof v))return new v;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function E(e,t,r,n,a){var i=e&r^~e&a;return i<0&&(i+=4294967296),i}function S(e,t,r,n,a,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function w(e,t,r,n,a){var i=e&r^e&a^r&a;return i<0&&(i+=4294967296),i}function x(e,t,r,n,a,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function A(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function k(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function D(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function _(e,t){var r=o(e,t,1)^o(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function I(e,t){var r=s(e,t,1)^s(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function R(e,t){var r=o(e,t,19)^o(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,19)^s(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,b),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(41132).rotr32;function a(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?a(t,r,n):1===e||3===e?o(t,r,n):2===e?i(t,r,n):void 0},t.ch32=a,t.maj32=i,t.p32=o,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},41132:(e,t,r)=>{"use strict";var n=r(6965),a=r(38344);function i(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),a=0;a>6|192,r[n++]=63&o|128):i(e,a)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=63&o|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=63&o|128)}else for(a=0;a>>0}return o},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,a=0;n>>24,r[a+1]=i>>>16&255,r[a+2]=i>>>8&255,r[a+3]=255&i):(r[a+3]=i>>>24,r[a+2]=i>>>16&255,r[a+1]=i>>>8&255,r[a]=255&i)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,a){return e+t+r+n+a>>>0},t.sum64=function(e,t,r,n){var a=e[t],i=n+e[t+1]>>>0,o=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,a,i,o,s){var c=0,l=t;return c+=(l=l+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,a,i,o,s){return t+n+i+s>>>0},t.sum64_5_hi=function(e,t,r,n,a,i,o,s,c,l){var u=0,d=t;return u+=(d=d+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,a,i,o,s,c,l){return t+n+i+s+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},49982:e=>{"use strict";e.exports=function(e,r){var n,a,i,o=e||"",s=r||"div",c={},l=0;for(;l{"use strict";var n=r(95977),a=r(4095),i=r(49982),o=r(88222).q,s=r(40526).q;e.exports=function(e,t,r){var a=r?function(e){var t,r=e.length,n=-1,a={};for(;++n{"use strict";var n=r(95851),a=r(56613)(n,"div");a.displayName="html",e.exports=a},54639:(e,t,r)=>{"use strict";e.exports=r(65810)},26723:(e,t,r)=>{"use strict";var n=r(74527),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?o:s[e.$$typeof]||a}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(h){var a=f(r);a&&a!==h&&e(t,a,n)}var o=u(r);d&&(o=o.concat(d(r)));for(var s=c(t),g=c(r),m=0;m{"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},24450:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},81522:(e,t,r)=>{"use strict";var n=r(24450),a=r(6214);e.exports=function(e){return n(e)||a(e)}},6214:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},55742:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},75491:(e,t,r)=>{var n;!function(){"use strict";var a="input is invalid type",i="object"===typeof window,o=i?window:{};o.JS_SHA3_NO_WINDOW&&(i=!1);var s=!i&&"object"===typeof self;!o.JS_SHA3_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node?o=r.g:s&&(o=self);var c=!o.JS_SHA3_NO_COMMON_JS&&e.exports,l=r.amdO,u=!o.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,d="0123456789abcdef".split(""),p=[4,1024,262144,67108864],f=[0,8,16,24],h=[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],m=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],y={128:168,256:136};!o.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!u||!o.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 v=function(e,t,r){return function(n){return new U(e,t,e).update(n)[r]()}},E=function(e,t,r){return function(n,a){return new U(e,t,a).update(n)[r]()}},S=function(e,t,r){return function(t,n,a,i){return k["cshake"+e].update(t,n,a,i)[r]()}},w=function(e,t,r){return function(t,n,a,i){return k["kmac"+e].update(t,n,a,i)[r]()}},x=function(e,t,r,n){for(var a=0;a>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function N(e,t,r){U.call(this,e,t,r)}U.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(a);if(null===e)throw new Error(a);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(a);t=!0}for(var n,i,o=this.blocks,s=this.byteCount,c=e.length,l=this.blockCount,d=0,p=this.s;d>2]|=e[d]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>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=n-s,this.block=o[l],n=0;n>=8);r>0;)a.unshift(r),r=255&(e>>=8),++n;return t?a.push(n):a.unshift(n),this.update(a),a.length},U.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(a);if(null===e)throw new Error(a);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(a);t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},U.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];o%t===0&&(B(r),i=0)}return a&&(e=r[i],s+=d[e>>4&15]+d[15&e],a>1&&(s+=d[e>>12&15]+d[e>>8&15]),a>2&&(s+=d[e>>20&15]+d[e>>16&15])),s},U.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,a=this.extraBytes,i=0,o=0,s=this.outputBits>>3;e=a?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);o>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%r===0&&B(n)}return i&&(e=s<<2,t=n[o],c[e]=255&t,i>1&&(c[e+1]=t>>8&255),i>2&&(c[e+2]=t>>16&255)),c},N.prototype=new U,N.prototype.finalize=function(){return this.encode(this.outputBits,!0),U.prototype.finalize.call(this)};var B=function(e){var t,r,n,a,i,o,s,c,l,u,d,p,f,g,m,b,y,v,E,S,w,x,A,T,k,D,_,I,R,P,C,O,U,N,B,L,M,F,j,H,z,$,G,V,W,q,K,Z,X,Y,J,Q,ee,te,re,ne,ae,ie,oe,se,ce,le,ue;for(n=0;n<48;n+=2)a=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],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|s>>>31),r=(f=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|o>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=a^(c<<1|l>>>31),r=i^(l<<1|c>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=o^(u<<1|d>>>31),r=s^(d<<1|u>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=c^(p<<1|f>>>31),r=l^(f<<1|p>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=u^(a<<1|i>>>31),r=d^(i<<1|a>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,g=e[0],m=e[1],q=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,I=e[20]<<3|e[21]>>>29,R=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,$=e[40]<<18|e[41]>>>14,G=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,b=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,M=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,E=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,O=e[45]<<29|e[44]>>>3,U=e[44]<<29|e[45]>>>3,T=e[6]<<28|e[7]>>>4,k=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ae=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,j=e[27]<<25|e[26]>>>7,S=e[36]<<21|e[37]>>>11,w=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,D=e[18]<<20|e[19]>>>12,_=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,H=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,A=e[49]<<14|e[48]>>>18,e[0]=g^~b&v,e[1]=m^~y&E,e[10]=T^~D&I,e[11]=k^~_&R,e[20]=N^~L&F,e[21]=B^~M&j,e[30]=V^~q&Z,e[31]=W^~K&X,e[40]=te^~ne&ie,e[41]=re^~ae&oe,e[2]=b^~v&S,e[3]=y^~E&w,e[12]=D^~I&P,e[13]=_^~R&C,e[22]=L^~F&H,e[23]=M^~j&z,e[32]=q^~Z&Y,e[33]=K^~X&J,e[42]=ne^~ie&se,e[43]=ae^~oe&ce,e[4]=v^~S&x,e[5]=E^~w&A,e[14]=I^~P&O,e[15]=R^~C&U,e[24]=F^~H&$,e[25]=j^~z&G,e[34]=Z^~Y&Q,e[35]=X^~J&ee,e[44]=ie^~se&le,e[45]=oe^~ce&ue,e[6]=S^~x&g,e[7]=w^~A&m,e[16]=P^~O&T,e[17]=C^~U&k,e[26]=H^~$&N,e[27]=z^~G&B,e[36]=Y^~Q&V,e[37]=J^~ee&W,e[46]=se^~le&te,e[47]=ce^~ue&re,e[8]=x^~g&b,e[9]=A^~m&y,e[18]=O^~T&D,e[19]=U^~k&_,e[28]=$^~N&L,e[29]=G^~B&M,e[38]=Q^~V&q,e[39]=ee^~W&K,e[48]=le^~te&ne,e[49]=ue^~re&ae,e[0]^=h[n],e[1]^=h[n+1]};if(c)e.exports=k;else{for(_=0;_{var n=r(71582)(r(74749),"DataView");e.exports=n},33277:(e,t,r)=>{var n=r(65024),a=r(7750),i=r(35057),o=r(32925),s=r(1365);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(98886),a=r(10800),i=r(61747),o=r(97695),s=r(31287);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(71582)(r(74749),"Map");e.exports=n},98381:(e,t,r)=>{var n=r(92240),a=r(28182),i=r(43681),o=r(94669),s=r(29061);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(71582)(r(74749),"Promise");e.exports=n},55793:(e,t,r)=>{var n=r(71582)(r(74749),"Set");e.exports=n},25115:(e,t,r)=>{var n=r(98381),a=r(58468),i=r(31923);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(71519),a=r(67532),i=r(52490),o=r(1605),s=r(43753),c=r(32577);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=a,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=c,e.exports=l},86481:(e,t,r)=>{var n=r(74749).Symbol;e.exports=n},36084:(e,t,r)=>{var n=r(74749).Uint8Array;e.exports=n},58431:(e,t,r)=>{var n=r(71582)(r(74749),"WeakMap");e.exports=n},27626:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r{var n=r(42304),a=r(7676),i=r(88785),o=r(34552),s=r(6953),c=r(23327),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&a(e),d=!r&&!u&&o(e),p=!r&&!u&&!d&&c(e),f=r||u||d||p,h=f?n(e.length,String):[],g=h.length;for(var m in e)!t&&!l.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||h.push(m);return h}},28260:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r{e.exports=function(e,t){for(var r=-1,n=t.length,a=e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(95944);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},4445:(e,t,r)=>{var n=r(77953),a=r(99529)(n);e.exports=a},89600:(e,t,r)=>{var n=r(21424),a=r(60883);e.exports=function e(t,r,i,o,s){var c=-1,l=t.length;for(i||(i=a),s||(s=[]);++c0&&i(u)?r>1?e(u,r-1,i,o,s):n(s,u):o||(s[s.length]=u)}return s}},86345:(e,t,r)=>{var n=r(11685)();e.exports=n},77953:(e,t,r)=>{var n=r(86345),a=r(66750);e.exports=function(e,t){return e&&n(e,t,a)}},53006:(e,t,r)=>{var n=r(49193),a=r(51637);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r{var n=r(21424),a=r(88785);e.exports=function(e,t,r){var i=t(e);return a(e)?i:n(i,r(e))}},61528:(e,t,r)=>{var n=r(86481),a=r(76067),i=r(92038),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},83133:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},49598:(e,t,r)=>{var n=r(61528),a=r(37706);e.exports=function(e){return a(e)&&"[object Arguments]"==n(e)}},28830:(e,t,r)=>{var n=r(35660),a=r(37706);e.exports=function e(t,r,i,o,s){return t===r||(null==t||null==r||!a(t)&&!a(r)?t!==t&&r!==r:n(t,r,i,o,e,s))}},35660:(e,t,r)=>{var n=r(51985),a=r(63047),i=r(23378),o=r(60049),s=r(59925),c=r(88785),l=r(34552),u=r(23327),d="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,g,m,b){var y=c(e),v=c(t),E=y?p:s(e),S=v?p:s(t),w=(E=E==d?f:E)==f,x=(S=S==d?f:S)==f,A=E==S;if(A&&l(e)){if(!l(t))return!1;y=!0,w=!1}if(A&&!w)return b||(b=new n),y||u(e)?a(e,t,r,g,m,b):i(e,t,E,r,g,m,b);if(!(1&r)){var T=w&&h.call(e,"__wrapped__"),k=x&&h.call(t,"__wrapped__");if(T||k){var D=T?e.value():e,_=k?t.value():t;return b||(b=new n),m(D,_,r,g,b)}}return!!A&&(b||(b=new n),o(e,t,r,g,m,b))}},46039:(e,t,r)=>{var n=r(51985),a=r(28830);e.exports=function(e,t,r,i){var o=r.length,s=o,c=!i;if(null==e)return!s;for(e=Object(e);o--;){var l=r[o];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o{var n=r(41386),a=r(80),i=r(37741),o=r(90593),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(n(e)?p:s).test(o(e))}},57685:(e,t,r)=>{var n=r(61528),a=r(40870),i=r(37706),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[n(e)]}},36237:(e,t,r)=>{var n=r(50159),a=r(87642),i=r(64848),o=r(88785),s=r(36999);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?o(e)?a(e[0],e[1]):n(e):s(e)}},83336:(e,t,r)=>{var n=r(33975),a=r(1938),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},88728:(e,t,r)=>{var n=r(4445),a=r(49614);e.exports=function(e,t){var r=-1,i=a(e)?Array(e.length):[];return n(e,(function(e,n,a){i[++r]=t(e,n,a)})),i}},50159:(e,t,r)=>{var n=r(46039),a=r(57160),i=r(89165);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},87642:(e,t,r)=>{var n=r(28830),a=r(9340),i=r(88839),o=r(99834),s=r(84212),c=r(89165),l=r(51637);e.exports=function(e,t){return o(e)&&s(t)?c(l(e),t):function(r){var o=a(r,e);return void 0===o&&o===t?i(r,e):n(t,o,3)}}},23637:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},23351:(e,t,r)=>{var n=r(53006);e.exports=function(e){return function(t){return n(t,e)}}},3480:e=>{e.exports=function(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(86481),a=r(28260),i=r(88785),o=r(67674),s=n?n.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return a(t,e)+"";if(o(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},70432:(e,t,r)=>{var n=r(17800),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},59797:e=>{e.exports=function(e){return function(t){return e(t)}}},68291:e=>{e.exports=function(e,t){return e.has(t)}},49193:(e,t,r)=>{var n=r(88785),a=r(99834),i=r(6906),o=r(23446);e.exports=function(e,t){return n(e)?e:a(e,t)?[e]:i(o(e))}},44969:(e,t,r)=>{var n=r(74749)["__core-js_shared__"];e.exports=n},99529:(e,t,r)=>{var n=r(49614);e.exports=function(e,t){return function(r,a){if(null==r)return r;if(!n(r))return e(r,a);for(var i=r.length,o=t?i:-1,s=Object(r);(t?o--:++o{e.exports=function(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var c=o[e?s:++a];if(!1===r(i[c],c,i))break}return t}}},63047:(e,t,r)=>{var n=r(25115),a=r(8792),i=r(68291);e.exports=function(e,t,r,o,s,c){var l=1&r,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var p=c.get(e),f=c.get(t);if(p&&f)return p==t&&f==e;var h=-1,g=!0,m=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++h{var n=r(86481),a=r(36084),i=r(95944),o=r(63047),s=r(52365),c=r(68775),l=n?n.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,d,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&n;if(f||(f=c),e.size!=t.size&&!h)return!1;var g=p.get(e);if(g)return g==t;n|=2,p.set(e,t);var m=o(f(e),f(t),n,l,d,p);return p.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},60049:(e,t,r)=>{var n=r(52610),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,s){var c=1&r,l=n(e),u=l.length;if(u!=n(t).length&&!c)return!1;for(var d=u;d--;){var p=l[d];if(!(c?p in t:a.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=c;++d{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},52610:(e,t,r)=>{var n=r(39527),a=r(99080),i=r(66750);e.exports=function(e){return n(e,i,a)}},16187:(e,t,r)=>{var n=r(28698);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},57160:(e,t,r)=>{var n=r(84212),a=r(66750);e.exports=function(e){for(var t=a(e),r=t.length;r--;){var i=t[r],o=e[i];t[r]=[i,o,n(o)]}return t}},71582:(e,t,r)=>{var n=r(1003),a=r(32072);e.exports=function(e,t){var r=a(e,t);return n(r)?r:void 0}},76067:(e,t,r)=>{var n=r(86481),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(c){}var a=o.call(e);return n&&(t?e[s]=r:delete e[s]),a}},99080:(e,t,r)=>{var n=r(27626),a=r(75553),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:a;e.exports=s},59925:(e,t,r)=>{var n=r(69132),a=r(38415),i=r(66708),o=r(55793),s=r(58431),c=r(61528),l=r(90593),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",g=l(n),m=l(a),b=l(i),y=l(o),v=l(s),E=c;(n&&E(new n(new ArrayBuffer(1)))!=h||a&&E(new a)!=u||i&&E(i.resolve())!=d||o&&E(new o)!=p||s&&E(new s)!=f)&&(E=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case g:return h;case m:return u;case b:return d;case y:return p;case v:return f}return t}),e.exports=E},32072:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},91806:(e,t,r)=>{var n=r(49193),a=r(7676),i=r(88785),o=r(6953),s=r(40870),c=r(51637);e.exports=function(e,t,r){for(var l=-1,u=(t=n(t,e)).length,d=!1;++l{var n=r(64674);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},7750:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},35057:(e,t,r)=>{var n=r(64674),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return a.call(t,e)?t[e]:void 0}},32925:(e,t,r)=>{var n=r(64674),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:a.call(t,e)}},1365:(e,t,r)=>{var n=r(64674);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},60883:(e,t,r)=>{var n=r(86481),a=r(7676),i=r(88785),o=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||a(e)||!!(o&&e&&e[o])}},6953:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{var n=r(95944),a=r(49614),i=r(6953),o=r(37741);e.exports=function(e,t,r){if(!o(r))return!1;var s=typeof t;return!!("number"==s?a(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},99834:(e,t,r)=>{var n=r(88785),a=r(67674),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!a(e))||(o.test(e)||!i.test(e)||null!=t&&e in Object(t))}},28698:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},80:(e,t,r)=>{var n=r(44969),a=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!a&&a in e}},33975:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},84212:(e,t,r)=>{var n=r(37741);e.exports=function(e){return e===e&&!n(e)}},98886:e=>{e.exports=function(){this.__data__=[],this.size=0}},10800:(e,t,r)=>{var n=r(60121),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():a.call(t,r,1),--this.size,!0)}},61747:(e,t,r)=>{var n=r(60121);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},97695:(e,t,r)=>{var n=r(60121);e.exports=function(e){return n(this.__data__,e)>-1}},31287:(e,t,r)=>{var n=r(60121);e.exports=function(e,t){var r=this.__data__,a=n(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}},92240:(e,t,r)=>{var n=r(33277),a=r(71519),i=r(38415);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||a),string:new n}}},28182:(e,t,r)=>{var n=r(16187);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},43681:(e,t,r)=>{var n=r(16187);e.exports=function(e){return n(this,e).get(e)}},94669:(e,t,r)=>{var n=r(16187);e.exports=function(e){return n(this,e).has(e)}},29061:(e,t,r)=>{var n=r(16187);e.exports=function(e,t){var r=n(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}},52365:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},89165:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},78688:(e,t,r)=>{var n=r(87144);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},64674:(e,t,r)=>{var n=r(71582)(Object,"create");e.exports=n},1938:(e,t,r)=>{var n=r(32239)(Object.keys,Object);e.exports=n},88809:(e,t,r)=>{e=r.nmd(e);var n=r(5224),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},92038:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},32239:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},74749:(e,t,r)=>{var n=r(5224),a="object"==typeof self&&self&&self.Object===Object&&self,i=n||a||Function("return this")();e.exports=i},58468:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},31923:e=>{e.exports=function(e){return this.__data__.has(e)}},68775:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},67532:(e,t,r)=>{var n=r(71519);e.exports=function(){this.__data__=new n,this.size=0}},52490:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1605:e=>{e.exports=function(e){return this.__data__.get(e)}},43753:e=>{e.exports=function(e){return this.__data__.has(e)}},32577:(e,t,r)=>{var n=r(71519),a=r(38415),i=r(98381);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},6906:(e,t,r)=>{var n=r(78688),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,r,n,a){t.push(n?a.replace(i,"$1"):r||e)})),t}));e.exports=o},51637:(e,t,r)=>{var n=r(67674);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},90593:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(r){}try{return e+""}catch(r){}}return""}},17800:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},78994:(e,t,r)=>{var n=r(3480),a=r(78448),i=r(42561),o=Math.ceil,s=Math.max;e.exports=function(e,t,r){t=(r?a(e,t,r):void 0===t)?1:s(i(t),0);var c=null==e?0:e.length;if(!c||t<1)return[];for(var l=0,u=0,d=Array(o(c/t));l{e.exports=function(e,t){return e===t||e!==e&&t!==t}},45179:(e,t,r)=>{var n=r(89600),a=r(21058);e.exports=function(e,t){return n(a(e,t),1)}},9340:(e,t,r)=>{var n=r(53006);e.exports=function(e,t,r){var a=null==e?void 0:n(e,t);return void 0===a?r:a}},88839:(e,t,r)=>{var n=r(83133),a=r(91806);e.exports=function(e,t){return null!=e&&a(e,t,n)}},64848:e=>{e.exports=function(e){return e}},7676:(e,t,r)=>{var n=r(49598),a=r(37706),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},88785:e=>{var t=Array.isArray;e.exports=t},49614:(e,t,r)=>{var n=r(41386),a=r(40870);e.exports=function(e){return null!=e&&a(e.length)&&!n(e)}},34552:(e,t,r)=>{e=r.nmd(e);var n=r(74749),a=r(6207),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||a;e.exports=c},41386:(e,t,r)=>{var n=r(61528),a=r(37741);e.exports=function(e){if(!a(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},40870:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},37741:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37706:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},67674:(e,t,r)=>{var n=r(61528),a=r(37706);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==n(e)}},23327:(e,t,r)=>{var n=r(57685),a=r(59797),i=r(88809),o=i&&i.isTypedArray,s=o?a(o):n;e.exports=s},66750:(e,t,r)=>{var n=r(52631),a=r(83336),i=r(49614);e.exports=function(e){return i(e)?n(e):a(e)}},4607:function(e,t,r){var n;e=r.nmd(e),function(){var a,i="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",c=16,l=32,u=64,d=128,p=256,f=1/0,h=9007199254740991,g=NaN,m=4294967295,b=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",l],["partialRight",u],["rearg",p]],y="[object Arguments]",v="[object Array]",E="[object Boolean]",S="[object Date]",w="[object Error]",x="[object Function]",A="[object GeneratorFunction]",T="[object Map]",k="[object Number]",D="[object Object]",_="[object Promise]",I="[object RegExp]",R="[object Set]",P="[object String]",C="[object Symbol]",O="[object WeakMap]",U="[object ArrayBuffer]",N="[object DataView]",B="[object Float32Array]",L="[object Float64Array]",M="[object Int8Array]",F="[object Int16Array]",j="[object Int32Array]",H="[object Uint8Array]",z="[object Uint8ClampedArray]",$="[object Uint16Array]",G="[object Uint32Array]",V=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,X=RegExp(K.source),Y=RegExp(Z.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(ae.source),oe=/^\s+/,se=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,Ee=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",Te="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",De="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['\u2019]",Ce="["+Ae+"]",Oe="["+Re+"]",Ue="["+Te+"]",Ne="\\d+",Be="["+ke+"]",Le="["+De+"]",Me="[^"+Ae+Re+Ne+ke+De+_e+"]",Fe="\\ud83c[\\udffb-\\udfff]",je="[^"+Ae+"]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+_e+"]",Ge="\\u200d",Ve="(?:"+Le+"|"+Me+")",We="(?:"+$e+"|"+Me+")",qe="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ke="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+Ue+"|"+Fe+")"+"?",Xe="["+Ie+"]?",Ye=Xe+Ze+("(?:"+Ge+"(?:"+[je,He,ze].join("|")+")"+Xe+Ze+")*"),Je="(?:"+[Be,He,ze].join("|")+")"+Ye,Qe="(?:"+[je+Ue+"?",Ue,He,ze,Ce].join("|")+")",et=RegExp(Pe,"g"),tt=RegExp(Ue,"g"),rt=RegExp(Fe+"(?="+Fe+")|"+Qe+Ye,"g"),nt=RegExp([$e+"?"+Le+"+"+qe+"(?="+[Oe,$e,"$"].join("|")+")",We+"+"+Ke+"(?="+[Oe,$e+Ve,"$"].join("|")+")",$e+"?"+Ve+"+"+qe,$e+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,Je].join("|"),"g"),at=RegExp("["+Ge+Ae+Te+Ie+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,ct={};ct[B]=ct[L]=ct[M]=ct[F]=ct[j]=ct[H]=ct[z]=ct[$]=ct[G]=!0,ct[y]=ct[v]=ct[U]=ct[E]=ct[N]=ct[S]=ct[w]=ct[x]=ct[T]=ct[k]=ct[D]=ct[I]=ct[R]=ct[P]=ct[O]=!1;var lt={};lt[y]=lt[v]=lt[U]=lt[N]=lt[E]=lt[S]=lt[B]=lt[L]=lt[M]=lt[F]=lt[j]=lt[T]=lt[k]=lt[D]=lt[I]=lt[R]=lt[P]=lt[C]=lt[H]=lt[z]=lt[$]=lt[G]=!0,lt[w]=lt[x]=lt[O]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ft="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ht="object"==typeof self&&self&&self.Object===Object&&self,gt=ft||ht||Function("return this")(),mt=t&&!t.nodeType&&t,bt=mt&&e&&!e.nodeType&&e,yt=bt&&bt.exports===mt,vt=yt&&ft.process,Et=function(){try{var e=bt&&bt.require&&bt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(t){}}(),St=Et&&Et.isArrayBuffer,wt=Et&&Et.isDate,xt=Et&&Et.isMap,At=Et&&Et.isRegExp,Tt=Et&&Et.isSet,kt=Et&&Et.isTypedArray;function Dt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function _t(e,t,r,n){for(var a=-1,i=null==e?0:e.length;++a-1}function Ut(e,t,r){for(var n=-1,a=null==e?0:e.length;++n-1;);return r}function nr(e,t){for(var r=e.length;r--&&$t(t,e[r],0)>-1;);return r}var ar=Kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),ir=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function or(e){return"\\"+ut[e]}function sr(e){return at.test(e)}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function lr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,n=e.length,a=0,i=[];++r",""":'"',"'":"'"});var br=function e(t){var r=(t=null==t?gt:br.defaults(gt.Object(),t,br.pick(gt,ot))).Array,n=t.Date,se=t.Error,Ae=t.Function,Te=t.Math,ke=t.Object,De=t.RegExp,_e=t.String,Ie=t.TypeError,Re=r.prototype,Pe=Ae.prototype,Ce=ke.prototype,Oe=t["__core-js_shared__"],Ue=Pe.toString,Ne=Ce.hasOwnProperty,Be=0,Le=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Me=Ce.toString,Fe=Ue.call(ke),je=gt._,He=De("^"+Ue.call(Ne).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=yt?t.Buffer:a,$e=t.Symbol,Ge=t.Uint8Array,Ve=ze?ze.allocUnsafe:a,We=lr(ke.getPrototypeOf,ke),qe=ke.create,Ke=Ce.propertyIsEnumerable,Ze=Re.splice,Xe=$e?$e.isConcatSpreadable:a,Ye=$e?$e.iterator:a,Je=$e?$e.toStringTag:a,Qe=function(){try{var e=di(ke,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,at=n&&n.now!==gt.Date.now&&n.now,ut=t.setTimeout!==gt.setTimeout&&t.setTimeout,ft=Te.ceil,ht=Te.floor,mt=ke.getOwnPropertySymbols,bt=ze?ze.isBuffer:a,vt=t.isFinite,Et=Re.join,jt=lr(ke.keys,ke),Kt=Te.max,yr=Te.min,vr=n.now,Er=t.parseInt,Sr=Te.random,wr=Re.reverse,xr=di(t,"DataView"),Ar=di(t,"Map"),Tr=di(t,"Promise"),kr=di(t,"Set"),Dr=di(t,"WeakMap"),_r=di(ke,"create"),Ir=Dr&&new Dr,Rr={},Pr=Li(xr),Cr=Li(Ar),Or=Li(Tr),Ur=Li(kr),Nr=Li(Dr),Br=$e?$e.prototype:a,Lr=Br?Br.valueOf:a,Mr=Br?Br.toString:a;function Fr(e){if(ts(e)&&!Go(e)&&!(e instanceof $r)){if(e instanceof zr)return e;if(Ne.call(e,"__wrapped__"))return Mi(e)}return new zr(e)}var jr=function(){function e(){}return function(t){if(!es(t))return{};if(qe)return qe(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Hr(){}function zr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function $r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Gr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function cn(e,t,r,n,i,o){var s,c=1&t,l=2&t,u=4&t;if(r&&(s=i?r(e,n,i,o):r(e)),s!==a)return s;if(!es(e))return e;var d=Go(e);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!c)return Ia(e,s)}else{var p=hi(e),f=p==x||p==A;if(Ko(e))return xa(e,c);if(p==D||p==y||f&&!i){if(s=l||f?{}:mi(e),!c)return l?function(e,t){return Ra(e,fi(e),t)}(e,function(e,t){return e&&Ra(t,Cs(t),e)}(s,e)):function(e,t){return Ra(e,pi(e),t)}(e,nn(s,e))}else{if(!lt[p])return i?e:{};s=function(e,t,r){var n=e.constructor;switch(t){case U:return Aa(e);case E:case S:return new n(+e);case N:return function(e,t){var r=t?Aa(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case B:case L:case M:case F:case j:case H:case z:case $:case G:return Ta(e,r);case T:return new n;case k:case P:return new n(e);case I:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new n;case C:return a=e,Lr?ke(Lr.call(a)):{}}var a}(e,p,c)}}o||(o=new Kr);var h=o.get(e);if(h)return h;o.set(e,s),os(e)?e.forEach((function(n){s.add(cn(n,t,r,n,e,o))})):rs(e)&&e.forEach((function(n,a){s.set(a,cn(n,t,r,a,e,o))}));var g=d?a:(u?l?ai:ni:l?Cs:Ps)(e);return It(g||e,(function(n,a){g&&(n=e[a=n]),en(s,a,cn(n,t,r,a,e,o))})),s}function ln(e,t,r){var n=r.length;if(null==e)return!n;for(e=ke(e);n--;){var i=r[n],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new Ie(i);return Ri((function(){e.apply(a,r)}),t)}function dn(e,t,r,n){var a=-1,i=Ot,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;r&&(t=Nt(t,Qt(r))),n?(i=Ut,o=!1):t.length>=200&&(i=tr,o=!1,t=new qr(t));e:for(;++a-1},Vr.prototype.set=function(e,t){var r=this.__data__,n=tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Gr,map:new(Ar||Vr),string:new Gr}},Wr.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},Wr.prototype.get=function(e){return li(this,e).get(e)},Wr.prototype.has=function(e){return li(this,e).has(e)},Wr.prototype.set=function(e,t){var r=li(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},qr.prototype.add=qr.prototype.push=function(e){return this.__data__.set(e,o),this},qr.prototype.has=function(e){return this.__data__.has(e)},Kr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Kr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Kr.prototype.get=function(e){return this.__data__.get(e)},Kr.prototype.has=function(e){return this.__data__.has(e)},Kr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Vr){var n=r.__data__;if(!Ar||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(e,t),this.size=r.size,this};var pn=Oa(En),fn=Oa(Sn,!0);function hn(e,t){var r=!0;return pn(e,(function(e,n,a){return r=!!t(e,n,a)})),r}function gn(e,t,r){for(var n=-1,i=e.length;++n0&&r(s)?t>1?bn(s,t-1,r,n,a):Bt(a,s):n||(a[a.length]=s)}return a}var yn=Ua(),vn=Ua(!0);function En(e,t){return e&&yn(e,t,Ps)}function Sn(e,t){return e&&vn(e,t,Ps)}function wn(e,t){return Ct(t,(function(t){return Yo(e[t])}))}function xn(e,t){for(var r=0,n=(t=va(t,e)).length;null!=e&&rt}function Dn(e,t){return null!=e&&Ne.call(e,t)}function _n(e,t){return null!=e&&t in ke(e)}function In(e,t,n){for(var i=n?Ut:Ot,o=e[0].length,s=e.length,c=s,l=r(s),u=1/0,d=[];c--;){var p=e[c];c&&t&&(p=Nt(p,Qt(t))),u=yr(p.length,u),l[c]=!n&&(t||o>=120&&p.length>=120)?new qr(c&&p):a}p=e[0];var f=-1,h=l[0];e:for(;++f=s?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function Vn(e,t,r){for(var n=-1,a=t.length,i={};++n-1;)s!==e&&Ze.call(s,c,1),Ze.call(e,c,1);return e}function qn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var a=t[r];if(r==n||a!==i){var i=a;yi(a)?Ze.call(e,a,1):da(e,a)}}return e}function Kn(e,t){return e+ht(Sr()*(t-e+1))}function Zn(e,t){var r="";if(!e||t<1||t>h)return r;do{t%2&&(r+=e),(t=ht(t/2))&&(e+=e)}while(t);return r}function Xn(e,t){return Pi(ki(e,t,nc),e+"")}function Yn(e){return Xr(js(e))}function Jn(e,t){var r=js(e);return Ui(r,sn(t,0,r.length))}function Qn(e,t,r,n){if(!es(e))return e;for(var i=-1,o=(t=va(t,e)).length,s=o-1,c=e;null!=c&&++ii?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=r(i);++a>>1,o=e[i];null!==o&&!cs(o)&&(r?o<=t:o=200){var l=t?null:Za(e);if(l)return dr(l);o=!1,a=tr,c=new qr}else c=t?[]:s;e:for(;++n=n?e:na(e,t,r)}var wa=rt||function(e){return gt.clearTimeout(e)};function xa(e,t){if(t)return e.slice();var r=e.length,n=Ve?Ve(r):new e.constructor(r);return e.copy(n),n}function Aa(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Ta(e,t){var r=t?Aa(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ka(e,t){if(e!==t){var r=e!==a,n=null===e,i=e===e,o=cs(e),s=t!==a,c=null===t,l=t===t,u=cs(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||n&&s&&l||!r&&l||!i)return 1;if(!n&&!o&&!u&&e1?r[i-1]:a,s=i>2?r[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&vi(r[0],r[1],s)&&(o=i<3?a:o,i=1),t=ke(t);++n-1?i[o?t[s]:s]:a}}function Fa(e){return ri((function(t){var r=t.length,n=r,o=zr.prototype.thru;for(e&&t.reverse();n--;){var s=t[n];if("function"!=typeof s)throw new Ie(i);if(o&&!c&&"wrapper"==oi(s))var c=new zr([],!0)}for(n=c?n:r;++n1&&E.reverse(),f&&uc))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=2&r?new qr:a;for(o.set(e,t),o.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return It(b,(function(r){var n="_."+r[0];t&r[1]&&!Ot(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ue):[]}(n),r)))}function Oi(e){var t=0,r=0;return function(){var n=vr(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ui(e,t){var r=-1,n=e.length,i=n-1;for(t=t===a?n:t;++r1?e[t-1]:a;return r="function"==typeof r?(e.pop(),r):a,ao(e,r)}));function po(e){var t=Fr(e);return t.__chain__=!0,t}function fo(e,t){return t(e)}var ho=ri((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return on(t,e)};return!(t>1||this.__actions__.length)&&n instanceof $r&&yi(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:fo,args:[i],thisArg:a}),new zr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));var go=Pa((function(e,t,r){Ne.call(e,r)?++e[r]:an(e,r,1)}));var mo=Ma(zi),bo=Ma($i);function yo(e,t){return(Go(e)?It:pn)(e,ci(t,3))}function vo(e,t){return(Go(e)?Rt:fn)(e,ci(t,3))}var Eo=Pa((function(e,t,r){Ne.call(e,r)?e[r].push(t):an(e,r,[t])}));var So=Xn((function(e,t,n){var a=-1,i="function"==typeof t,o=Wo(e)?r(e.length):[];return pn(e,(function(e){o[++a]=i?Dt(t,e,n):Rn(e,t,n)})),o})),wo=Pa((function(e,t,r){an(e,r,t)}));function xo(e,t){return(Go(e)?Nt:Fn)(e,ci(t,3))}var Ao=Pa((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var To=Xn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&vi(e,t[0],t[1])?t=[]:r>2&&vi(t[0],t[1],t[2])&&(t=[t[0]]),Gn(e,bn(t,1),[])})),ko=at||function(){return gt.Date.now()};function Do(e,t,r){return t=r?a:t,t=e&&null==t?e.length:t,Ya(e,d,a,a,a,a,t)}function _o(e,t){var r;if("function"!=typeof t)throw new Ie(i);return e=hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var Io=Xn((function(e,t,r){var n=1;if(r.length){var a=ur(r,si(Io));n|=l}return Ya(e,n,t,r,a)})),Ro=Xn((function(e,t,r){var n=3;if(r.length){var a=ur(r,si(Ro));n|=l}return Ya(t,n,e,r,a)}));function Po(e,t,r){var n,o,s,c,l,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ie(i);function g(t){var r=n,i=o;return n=o=a,d=t,c=e.apply(i,r)}function m(e){var r=e-u;return u===a||r>=t||r<0||f&&e-d>=s}function b(){var e=ko();if(m(e))return y(e);l=Ri(b,function(e){var r=t-(e-u);return f?yr(r,s-(e-d)):r}(e))}function y(e){return l=a,h&&n?g(e):(n=o=a,c)}function v(){var e=ko(),r=m(e);if(n=arguments,o=this,u=e,r){if(l===a)return function(e){return d=e,l=Ri(b,t),p?g(e):c}(u);if(f)return wa(l),l=Ri(b,t),g(u)}return l===a&&(l=Ri(b,t)),c}return t=ms(t)||0,es(r)&&(p=!!r.leading,s=(f="maxWait"in r)?Kt(ms(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h),v.cancel=function(){l!==a&&wa(l),d=0,n=u=o=l=a},v.flush=function(){return l===a?c:y(ko())},v}var Co=Xn((function(e,t){return un(e,1,t)})),Oo=Xn((function(e,t,r){return un(e,ms(t)||0,r)}));function Uo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(i);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(Uo.Cache||Wr),r}function No(e){if("function"!=typeof e)throw new Ie(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Uo.Cache=Wr;var Bo=Ea((function(e,t){var r=(t=1==t.length&&Go(t[0])?Nt(t[0],Qt(ci())):Nt(bn(t,1),Qt(ci()))).length;return Xn((function(n){for(var a=-1,i=yr(n.length,r);++a=t})),$o=Pn(function(){return arguments}())?Pn:function(e){return ts(e)&&Ne.call(e,"callee")&&!Ke.call(e,"callee")},Go=r.isArray,Vo=St?Qt(St):function(e){return ts(e)&&Tn(e)==U};function Wo(e){return null!=e&&Qo(e.length)&&!Yo(e)}function qo(e){return ts(e)&&Wo(e)}var Ko=bt||mc,Zo=wt?Qt(wt):function(e){return ts(e)&&Tn(e)==S};function Xo(e){if(!ts(e))return!1;var t=Tn(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Yo(e){if(!es(e))return!1;var t=Tn(e);return t==x||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Jo(e){return"number"==typeof e&&e==hs(e)}function Qo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var rs=xt?Qt(xt):function(e){return ts(e)&&hi(e)==T};function ns(e){return"number"==typeof e||ts(e)&&Tn(e)==k}function as(e){if(!ts(e)||Tn(e)!=D)return!1;var t=We(e);if(null===t)return!0;var r=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ue.call(r)==Fe}var is=At?Qt(At):function(e){return ts(e)&&Tn(e)==I};var os=Tt?Qt(Tt):function(e){return ts(e)&&hi(e)==R};function ss(e){return"string"==typeof e||!Go(e)&&ts(e)&&Tn(e)==P}function cs(e){return"symbol"==typeof e||ts(e)&&Tn(e)==C}var ls=kt?Qt(kt):function(e){return ts(e)&&Qo(e.length)&&!!ct[Tn(e)]};var us=Wa(Mn),ds=Wa((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Wo(e))return ss(e)?hr(e):Ia(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=hi(e);return(t==T?cr:t==R?dr:js)(e)}function fs(e){return e?(e=ms(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hs(e){var t=fs(e),r=t%1;return t===t?r?t-r:t:0}function gs(e){return e?sn(hs(e),0,m):0}function ms(e){if("number"==typeof e)return e;if(cs(e))return g;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var r=be.test(e);return r||ve.test(e)?pt(e.slice(2),r?2:8):me.test(e)?g:+e}function bs(e){return Ra(e,Cs(e))}function ys(e){return null==e?"":la(e)}var vs=Ca((function(e,t){if(xi(t)||Wo(t))Ra(t,Ps(t),e);else for(var r in t)Ne.call(t,r)&&en(e,r,t[r])})),Es=Ca((function(e,t){Ra(t,Cs(t),e)})),Ss=Ca((function(e,t,r,n){Ra(t,Cs(t),e,n)})),ws=Ca((function(e,t,r,n){Ra(t,Ps(t),e,n)})),xs=ri(on);var As=Xn((function(e,t){e=ke(e);var r=-1,n=t.length,i=n>2?t[2]:a;for(i&&vi(t[0],t[1],i)&&(n=1);++r1),t})),Ra(e,ai(e),r),n&&(r=cn(r,7,ei));for(var a=t.length;a--;)da(r,t[a]);return r}));var Bs=ri((function(e,t){return null==e?{}:function(e,t){return Vn(e,t,(function(t,r){return Ds(e,r)}))}(e,t)}));function Ls(e,t){if(null==e)return{};var r=Nt(ai(e),(function(e){return[e]}));return t=ci(t),Vn(e,r,(function(e,r){return t(e,r[0])}))}var Ms=Xa(Ps),Fs=Xa(Cs);function js(e){return null==e?[]:er(e,Ps(e))}var Hs=Ba((function(e,t,r){return t=t.toLowerCase(),e+(r?zs(t):t)}));function zs(e){return Xs(ys(e).toLowerCase())}function $s(e){return(e=ys(e))&&e.replace(Se,ar).replace(tt,"")}var Gs=Ba((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Vs=Ba((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ws=Na("toLowerCase");var qs=Ba((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Ks=Ba((function(e,t,r){return e+(r?" ":"")+Xs(t)}));var Zs=Ba((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Xs=Na("toUpperCase");function Ys(e,t,r){return e=ys(e),(t=r?a:t)===a?function(e){return it.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Js=Xn((function(e,t){try{return Dt(e,a,t)}catch(r){return Xo(r)?r:new se(r)}})),Qs=ri((function(e,t){return It(t,(function(t){t=Bi(t),an(e,t,Io(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Fa(),rc=Fa(!0);function nc(e){return e}function ac(e){return Nn("function"==typeof e?e:cn(e,1))}var ic=Xn((function(e,t){return function(r){return Rn(r,e,t)}})),oc=Xn((function(e,t){return function(r){return Rn(e,r,t)}}));function sc(e,t,r){var n=Ps(t),a=wn(t,n);null!=r||es(t)&&(a.length||!n.length)||(r=t,t=e,e=this,a=wn(t,Ps(t)));var i=!(es(r)&&"chain"in r)||!!r.chain,o=Yo(e);return It(a,(function(r){var n=t[r];e[r]=n,o&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Ia(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Bt([this.value()],arguments))})})),e}function cc(){}var lc=$a(Nt),uc=$a(Pt),dc=$a(Ft);function pc(e){return Ei(e)?qt(Bi(e)):function(e){return function(t){return xn(t,e)}}(e)}var fc=Va(),hc=Va(!0);function gc(){return[]}function mc(){return!1}var bc=za((function(e,t){return e+t}),0),yc=Ka("ceil"),vc=za((function(e,t){return e/t}),1),Ec=Ka("floor");var Sc=za((function(e,t){return e*t}),1),wc=Ka("round"),xc=za((function(e,t){return e-t}),0);return Fr.after=function(e,t){if("function"!=typeof t)throw new Ie(i);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Fr.ary=Do,Fr.assign=vs,Fr.assignIn=Es,Fr.assignInWith=Ss,Fr.assignWith=ws,Fr.at=xs,Fr.before=_o,Fr.bind=Io,Fr.bindAll=Qs,Fr.bindKey=Ro,Fr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Go(e)?e:[e]},Fr.chain=po,Fr.chunk=function(e,t,n){t=(n?vi(e,t,n):t===a)?1:Kt(hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,c=r(ft(i/t));oi?0:i+r),(n=n===a||n>i?i:hs(n))<0&&(n+=i),n=r>n?0:gs(n);r>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=la(t))&&sr(e)?Sa(hr(e),0,r):e.split(t,r):[]},Fr.spread=function(e,t){if("function"!=typeof e)throw new Ie(i);return t=null==t?0:Kt(hs(t),0),Xn((function(r){var n=r[t],a=Sa(r,0,t);return n&&Bt(a,n),Dt(e,this,a)}))},Fr.tail=function(e){var t=null==e?0:e.length;return t?na(e,1,t):[]},Fr.take=function(e,t,r){return e&&e.length?na(e,0,(t=r||t===a?1:hs(t))<0?0:t):[]},Fr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?na(e,(t=n-(t=r||t===a?1:hs(t)))<0?0:t,n):[]},Fr.takeRightWhile=function(e,t){return e&&e.length?fa(e,ci(t,3),!1,!0):[]},Fr.takeWhile=function(e,t){return e&&e.length?fa(e,ci(t,3)):[]},Fr.tap=function(e,t){return t(e),e},Fr.throttle=function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new Ie(i);return es(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Po(e,t,{leading:n,maxWait:t,trailing:a})},Fr.thru=fo,Fr.toArray=ps,Fr.toPairs=Ms,Fr.toPairsIn=Fs,Fr.toPath=function(e){return Go(e)?Nt(e,Bi):cs(e)?[e]:Ia(Ni(ys(e)))},Fr.toPlainObject=bs,Fr.transform=function(e,t,r){var n=Go(e),a=n||Ko(e)||ls(e);if(t=ci(t,4),null==r){var i=e&&e.constructor;r=a?n?new i:[]:es(e)&&Yo(i)?jr(We(e)):{}}return(a?It:En)(e,(function(e,n,a){return t(r,e,n,a)})),r},Fr.unary=function(e){return Do(e,1)},Fr.union=eo,Fr.unionBy=to,Fr.unionWith=ro,Fr.uniq=function(e){return e&&e.length?ua(e):[]},Fr.uniqBy=function(e,t){return e&&e.length?ua(e,ci(t,2)):[]},Fr.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?ua(e,a,t):[]},Fr.unset=function(e,t){return null==e||da(e,t)},Fr.unzip=no,Fr.unzipWith=ao,Fr.update=function(e,t,r){return null==e?e:pa(e,t,ya(r))},Fr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:a,null==e?e:pa(e,t,ya(r),n)},Fr.values=js,Fr.valuesIn=function(e){return null==e?[]:er(e,Cs(e))},Fr.without=io,Fr.words=Ys,Fr.wrap=function(e,t){return Lo(ya(t),e)},Fr.xor=oo,Fr.xorBy=so,Fr.xorWith=co,Fr.zip=lo,Fr.zipObject=function(e,t){return ma(e||[],t||[],en)},Fr.zipObjectDeep=function(e,t){return ma(e||[],t||[],Qn)},Fr.zipWith=uo,Fr.entries=Ms,Fr.entriesIn=Fs,Fr.extend=Es,Fr.extendWith=Ss,sc(Fr,Fr),Fr.add=bc,Fr.attempt=Js,Fr.camelCase=Hs,Fr.capitalize=zs,Fr.ceil=yc,Fr.clamp=function(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=(r=ms(r))===r?r:0),t!==a&&(t=(t=ms(t))===t?t:0),sn(ms(e),t,r)},Fr.clone=function(e){return cn(e,4)},Fr.cloneDeep=function(e){return cn(e,5)},Fr.cloneDeepWith=function(e,t){return cn(e,5,t="function"==typeof t?t:a)},Fr.cloneWith=function(e,t){return cn(e,4,t="function"==typeof t?t:a)},Fr.conformsTo=function(e,t){return null==t||ln(e,t,Ps(t))},Fr.deburr=$s,Fr.defaultTo=function(e,t){return null==e||e!==e?t:e},Fr.divide=vc,Fr.endsWith=function(e,t,r){e=ys(e),t=la(t);var n=e.length,i=r=r===a?n:sn(hs(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},Fr.eq=jo,Fr.escape=function(e){return(e=ys(e))&&Y.test(e)?e.replace(Z,ir):e},Fr.escapeRegExp=function(e){return(e=ys(e))&&ie.test(e)?e.replace(ae,"\\$&"):e},Fr.every=function(e,t,r){var n=Go(e)?Pt:hn;return r&&vi(e,t,r)&&(t=a),n(e,ci(t,3))},Fr.find=mo,Fr.findIndex=zi,Fr.findKey=function(e,t){return Ht(e,ci(t,3),En)},Fr.findLast=bo,Fr.findLastIndex=$i,Fr.findLastKey=function(e,t){return Ht(e,ci(t,3),Sn)},Fr.floor=Ec,Fr.forEach=yo,Fr.forEachRight=vo,Fr.forIn=function(e,t){return null==e?e:yn(e,ci(t,3),Cs)},Fr.forInRight=function(e,t){return null==e?e:vn(e,ci(t,3),Cs)},Fr.forOwn=function(e,t){return e&&En(e,ci(t,3))},Fr.forOwnRight=function(e,t){return e&&Sn(e,ci(t,3))},Fr.get=ks,Fr.gt=Ho,Fr.gte=zo,Fr.has=function(e,t){return null!=e&&gi(e,t,Dn)},Fr.hasIn=Ds,Fr.head=Vi,Fr.identity=nc,Fr.includes=function(e,t,r,n){e=Wo(e)?e:js(e),r=r&&!n?hs(r):0;var a=e.length;return r<0&&(r=Kt(a+r,0)),ss(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&$t(e,t,r)>-1},Fr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:hs(r);return a<0&&(a=Kt(n+a,0)),$t(e,t,a)},Fr.inRange=function(e,t,r){return t=fs(t),r===a?(r=t,t=0):r=fs(r),function(e,t,r){return e>=yr(t,r)&&e=-9007199254740991&&e<=h},Fr.isSet=os,Fr.isString=ss,Fr.isSymbol=cs,Fr.isTypedArray=ls,Fr.isUndefined=function(e){return e===a},Fr.isWeakMap=function(e){return ts(e)&&hi(e)==O},Fr.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Tn(e)},Fr.join=function(e,t){return null==e?"":Et.call(e,t)},Fr.kebabCase=Gs,Fr.last=Zi,Fr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==a&&(i=(i=hs(r))<0?Kt(n+i,0):yr(i,n-1)),t===t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):zt(e,Vt,i,!0)},Fr.lowerCase=Vs,Fr.lowerFirst=Ws,Fr.lt=us,Fr.lte=ds,Fr.max=function(e){return e&&e.length?gn(e,nc,kn):a},Fr.maxBy=function(e,t){return e&&e.length?gn(e,ci(t,2),kn):a},Fr.mean=function(e){return Wt(e,nc)},Fr.meanBy=function(e,t){return Wt(e,ci(t,2))},Fr.min=function(e){return e&&e.length?gn(e,nc,Mn):a},Fr.minBy=function(e,t){return e&&e.length?gn(e,ci(t,2),Mn):a},Fr.stubArray=gc,Fr.stubFalse=mc,Fr.stubObject=function(){return{}},Fr.stubString=function(){return""},Fr.stubTrue=function(){return!0},Fr.multiply=Sc,Fr.nth=function(e,t){return e&&e.length?$n(e,hs(t)):a},Fr.noConflict=function(){return gt._===this&&(gt._=je),this},Fr.noop=cc,Fr.now=ko,Fr.pad=function(e,t,r){e=ys(e);var n=(t=hs(t))?fr(e):0;if(!t||n>=t)return e;var a=(t-n)/2;return Ga(ht(a),r)+e+Ga(ft(a),r)},Fr.padEnd=function(e,t,r){e=ys(e);var n=(t=hs(t))?fr(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Sr();return yr(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Kn(e,t)},Fr.reduce=function(e,t,r){var n=Go(e)?Lt:Zt,a=arguments.length<3;return n(e,ci(t,4),r,a,pn)},Fr.reduceRight=function(e,t,r){var n=Go(e)?Mt:Zt,a=arguments.length<3;return n(e,ci(t,4),r,a,fn)},Fr.repeat=function(e,t,r){return t=(r?vi(e,t,r):t===a)?1:hs(t),Zn(ys(e),t)},Fr.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fr.result=function(e,t,r){var n=-1,i=(t=va(t,e)).length;for(i||(i=1,e=a);++nh)return[];var r=m,n=yr(e,m);t=ci(t),e-=m;for(var a=Yt(n,t);++r=o)return e;var c=r-fr(n);if(c<1)return n;var l=s?Sa(s,0,c).join(""):e.slice(0,c);if(i===a)return l+n;if(s&&(c+=l.length-c),is(i)){if(e.slice(c).search(i)){var u,d=l;for(i.global||(i=De(i.source,ys(ge.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;l=l.slice(0,p===a?c:p)}}else if(e.indexOf(la(i),c)!=c){var f=l.lastIndexOf(i);f>-1&&(l=l.slice(0,f))}return l+n},Fr.unescape=function(e){return(e=ys(e))&&X.test(e)?e.replace(K,mr):e},Fr.uniqueId=function(e){var t=++Be;return ys(e)+t},Fr.upperCase=Zs,Fr.upperFirst=Xs,Fr.each=yo,Fr.eachRight=vo,Fr.first=Vi,sc(Fr,function(){var e={};return En(Fr,(function(t,r){Ne.call(Fr.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),Fr.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fr[e].placeholder=Fr})),It(["drop","take"],(function(e,t){$r.prototype[e]=function(r){r=r===a?1:Kt(hs(r),0);var n=this.__filtered__&&!t?new $r(this):this.clone();return n.__filtered__?n.__takeCount__=yr(r,n.__takeCount__):n.__views__.push({size:yr(r,m),type:e+(n.__dir__<0?"Right":"")}),n},$r.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;$r.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),It(["head","last"],(function(e,t){var r="take"+(t?"Right":"");$r.prototype[e]=function(){return this[r](1).value()[0]}})),It(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");$r.prototype[e]=function(){return this.__filtered__?new $r(this):this[r](1)}})),$r.prototype.compact=function(){return this.filter(nc)},$r.prototype.find=function(e){return this.filter(e).head()},$r.prototype.findLast=function(e){return this.reverse().find(e)},$r.prototype.invokeMap=Xn((function(e,t){return"function"==typeof e?new $r(this):this.map((function(r){return Rn(r,e,t)}))})),$r.prototype.reject=function(e){return this.filter(No(ci(e)))},$r.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new $r(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},$r.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$r.prototype.toArray=function(){return this.take(m)},En($r.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=Fr[n?"take"+("last"==t?"Right":""):t],o=n||/^find/.test(t);i&&(Fr.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,c=t instanceof $r,l=s[0],u=c||Go(t),d=function(e){var t=i.apply(Fr,Bt([e],s));return n&&p?t[0]:t};u&&r&&"function"==typeof l&&1!=l.length&&(c=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=o&&!p,g=c&&!f;if(!o&&u){t=g?t:new $r(this);var m=e.apply(t,s);return m.__actions__.push({func:fo,args:[d],thisArg:a}),new zr(m,p)}return h&&g?e.apply(this,s):(m=this.thru(d),h?n?m.value()[0]:m.value():m)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Re[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Fr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var a=this.value();return t.apply(Go(a)?a:[],e)}return this[r]((function(r){return t.apply(Go(r)?r:[],e)}))}})),En($r.prototype,(function(e,t){var r=Fr[t];if(r){var n=r.name+"";Ne.call(Rr,n)||(Rr[n]=[]),Rr[n].push({name:t,func:r})}})),Rr[ja(a,2).name]=[{name:"wrapper",func:a}],$r.prototype.clone=function(){var e=new $r(this.__wrapped__);return e.__actions__=Ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ia(this.__views__),e},$r.prototype.reverse=function(){if(this.__filtered__){var e=new $r(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$r.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Go(e),n=t<0,a=r?e.length:0,i=function(e,t,r){var n=-1,a=r.length;for(;++n=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Fr.prototype.plant=function(e){for(var t,r=this;r instanceof Hr;){var n=Mi(r);n.__index__=0,n.__values__=a,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},Fr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $r){var t=e;return this.__actions__.length&&(t=new $r(this)),(t=t.reverse()).__actions__.push({func:fo,args:[Qi],thisArg:a}),new zr(t,this.__chain__)}return this.thru(Qi)},Fr.prototype.toJSON=Fr.prototype.valueOf=Fr.prototype.value=function(){return ha(this.__wrapped__,this.__actions__)},Fr.prototype.first=Fr.prototype.head,Ye&&(Fr.prototype[Ye]=function(){return this}),Fr}();gt._=br,(n=function(){return br}.call(t,r,t,e))===a||(e.exports=n)}.call(this)},21058:(e,t,r)=>{var n=r(28260),a=r(36237),i=r(88728),o=r(88785);e.exports=function(e,t){return(o(e)?n:i)(e,a(t,3))}},87144:(e,t,r)=>{var n=r(98381);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(a.Cache||n),r}a.Cache=n,e.exports=a},36999:(e,t,r)=>{var n=r(23637),a=r(23351),i=r(99834),o=r(51637);e.exports=function(e){return i(e)?n(o(e)):a(e)}},75553:e=>{e.exports=function(){return[]}},6207:e=>{e.exports=function(){return!1}},51432:(e,t,r)=>{var n=r(93950),a=1/0;e.exports=function(e){return e?(e=n(e))===a||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},42561:(e,t,r)=>{var n=r(51432);e.exports=function(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}},93950:(e,t,r)=>{var n=r(70432),a=r(37741),i=r(67674),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):o.test(e)?NaN:+e}},23446:(e,t,r)=>{var n=r(6404);e.exports=function(e){return null==e?"":n(e)}},6965:e=>{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},91123:e=>{"use strict";var t;e.exports=function(e){var r,n="&"+e+";";if((t=t||document.createElement("i")).innerHTML=n,59===(r=t.textContent).charCodeAt(r.length-1)&&"semi"!==e)return!1;return r!==n&&r}},53035:(e,t,r)=>{"use strict";var n=r(95620),a=r(62012),i=r(6214),o=r(55742),s=r(81522),c=r(91123);e.exports=function(e,t){var r,i,o={};t||(t={});for(i in p)r=t[i],o[i]=null===r||void 0===r?p[i]:r;(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start);return function(e,t){var r,i,o,p,j,H,z,$,G,V,W,q,K,Z,X,Y,J,Q,ee,te=t.additional,re=t.nonTerminated,ne=t.text,ae=t.reference,ie=t.warning,oe=t.textContext,se=t.referenceContext,ce=t.warningContext,le=t.position,ue=t.indent||[],de=e.length,pe=0,fe=-1,he=le.column||1,ge=le.line||1,me="",be=[];"string"===typeof te&&(te=te.charCodeAt(0));Y=ye(),$=ie?ve:d,pe--,de++;for(;++pe65535&&(V+=u((H-=65536)>>>10|55296),H=56320|1023&H),H=V+u(H))):Z!==T&&$(O,Q)),H?(Ee(),Y=ye(),pe=ee-1,he+=ee-K+1,be.push(H),(J=ye()).offset++,ae&&ae.call(se,H,{start:Y,end:J},e.slice(K-1,ee)),Y=J):(p=e.slice(K-1,ee),me+=p,he+=p.length,pe=ee-1)}else 10===j&&(ge++,fe++,he=0),j===j?(me+=u(j),he++):Ee();return be.join("");function ye(){return{line:ge,column:he,offset:pe+(le.offset||0)}}function ve(e,t){var r=ye();r.column+=t,r.offset+=t,ie.call(ce,L[e],r,e)}function Ee(){me&&(be.push(me),ne&&ne.call(oe,me,{start:Y,end:ye()}),me="")}}(e,o)};var l={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f=9,h=10,g=12,m=32,b=38,y=59,v=60,E=61,S=35,w=88,x=120,A=65533,T="named",k="hexadecimal",D="decimal",_={};_[k]=16,_[D]=10;var I={};I[T]=s,I[D]=i,I[k]=o;var R=1,P=2,C=3,O=4,U=5,N=6,B=7,L={};function M(e){return e>=55296&&e<=57343||e>1114111}function F(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}L[R]="Named character references must be terminated by a semicolon",L[P]="Numeric character references must be terminated by a semicolon",L[C]="Named character references cannot be empty",L[O]="Numeric character references cannot be empty",L[U]="Named character references must be known",L[N]="Numeric character references cannot be disallowed",L[B]="Numeric character references cannot be outside the permissible Unicode range"},67655:(e,t,r)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,n={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);x+=w.value.length,w=w.next){var A=w.value;if(t.length>e.length)return;if(!(A instanceof i)){var T,k=1;if(y){if(!(T=o(S,x,e,b))||T.index>=e.length)break;var D=T.index,_=T.index+T[0].length,I=x;for(I+=w.value.length;D>=I;)I+=(w=w.next).value.length;if(x=I-=w.value.length,w.value instanceof i)continue;for(var R=w;R!==t.tail&&(I<_||"string"===typeof R.value);R=R.next)k++,I+=R.value.length;k--,A=e.slice(x,I),T.index-=x}else if(!(T=o(S,0,A,b)))continue;D=T.index;var P=T[0],C=A.slice(0,D),O=A.slice(D+P.length),U=x+A.length;d&&U>d.reach&&(d.reach=U);var N=w.prev;if(C&&(N=l(t,N,C),x+=C.length),u(t,N,k),w=l(t,N,new i(p,m?a.tokenize(P,m):P,v,P)),O&&l(t,w,O),k>1){var B={cause:p+","+h,reach:U};s(e,t,r,w.prev,x,B),d&&B.reach>d.reach&&(d.reach=B.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,r){var n=t.next,a={value:r,prev:t,next:n};return t.next=a,n.prev=a,e.length++,a}function u(e,t,r){for(var n=t.next,a=0;a"+i.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var r=JSON.parse(t.data),n=r.language,i=r.code,o=r.immediateClose;e.postMessage(a.highlight(i,a.languages[n],n)),o&&e.close()}),!1),a):a;var d=a.util.currentScript();function p(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return a}("undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),"undefined"!==typeof r.g&&(r.g.Prism=n)},95977:(e,t,r)=>{"use strict";var n=r(4095),a=r(52573),i=r(42085),o="data";e.exports=function(e,t){var r=n(t),p=t,f=i;if(r in e.normal)return e.property[e.normal[r]];r.length>4&&r.slice(0,4)===o&&s.test(t)&&("-"===t.charAt(4)?p=function(e){var t=e.slice(5).replace(c,d);return o+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(c.test(t))return e;t=t.replace(l,u),"-"!==t.charAt(0)&&(t="-"+t);return o+t}(t),f=a);return new f(p,t)};var s=/^data[-\w.:]+$/i,c=/-[a-z]/g,l=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},95851:(e,t,r)=>{"use strict";var n=r(83413),a=r(37216),i=r(62769),o=r(53026),s=r(69439),c=r(58495);e.exports=n([i,a,o,s,c])},69439:(e,t,r)=>{"use strict";var n=r(42128),a=r(79449),i=n.booleanish,o=n.number,s=n.spaceSeparated;e.exports=a({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:i,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:s,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:o,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:s,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:i,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}})},58495:(e,t,r)=>{"use strict";var n=r(42128),a=r(79449),i=r(16380),o=n.boolean,s=n.overloadedBoolean,c=n.booleanish,l=n.number,u=n.spaceSeparated,d=n.commaSeparated;e.exports=a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:u,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:u,cols:l,colSpan:null,content:null,contentEditable:c,controls:o,controlsList:u,coords:l|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:s,draggable:c,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:u,height:l,hidden:o,high:l,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:u,itemRef:u,itemScope:o,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:l,manifest:null,max:null,maxLength:l,media:null,method:null,min:null,minLength:l,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:l,pattern:null,ping:u,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:u,required:o,reversed:o,rows:l,rowSpan:l,sandbox:u,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:l,sizes:null,slot:null,span:l,spellCheck:c,src:null,srcDoc:null,srcLang:null,srcSet:d,start:l,step:null,style:null,tabIndex:l,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:c,width:l,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:l,borderColor:null,bottomMargin:l,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:l,leftMargin:l,link:null,longDesc:null,lowSrc:null,marginHeight:l,marginWidth:l,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:l,rules:null,scheme:null,scrolling:c,standby:null,summary:null,text:null,topMargin:l,valueType:null,version:null,vAlign:null,vLink:null,vSpace:l,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:l,security:null,unselectable:null}})},16380:(e,t,r)=>{"use strict";var n=r(37661);e.exports=function(e,t){return n(e,t.toLowerCase())}},37661:e=>{"use strict";e.exports=function(e,t){return t in e?e[t]:t}},79449:(e,t,r)=>{"use strict";var n=r(4095),a=r(66190),i=r(52573);e.exports=function(e){var t,r,o=e.space,s=e.mustUseProperty||[],c=e.attributes||{},l=e.properties,u=e.transform,d={},p={};for(t in l)r=new i(t,u(c,t),l[t],o),-1!==s.indexOf(t)&&(r.mustUseProperty=!0),d[t]=r,p[n(t)]=t,p[n(r.attribute)]=t;return new a(d,p,o)}},52573:(e,t,r)=>{"use strict";var n=r(42085),a=r(42128);e.exports=s,s.prototype=new n,s.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=i.length;function s(e,t,r,s){var l,u=-1;for(c(this,"space",s),n.call(this,e,t);++u{"use strict";e.exports=r;var t=r.prototype;function r(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},83413:(e,t,r)=>{"use strict";var n=r(57993),a=r(66190);e.exports=function(e){var t,r,i=e.length,o=[],s=[],c=-1;for(;++c{"use strict";e.exports=r;var t=r.prototype;function r(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}t.space=null,t.normal={},t.property={}},42128:(e,t)=>{"use strict";var r=0;function n(){return Math.pow(2,++r)}t.boolean=n(),t.booleanish=n(),t.overloadedBoolean=n(),t.number=n(),t.spaceSeparated=n(),t.commaSeparated=n(),t.commaOrSpaceSeparated=n()},37216:(e,t,r)=>{"use strict";var n=r(79449);e.exports=n({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},62769:(e,t,r)=>{"use strict";var n=r(79449);e.exports=n({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},53026:(e,t,r)=>{"use strict";var n=r(79449),a=r(16380);e.exports=n({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:a,properties:{xmlns:null,xmlnsXLink:null}})},4095:e=>{"use strict";e.exports=function(e){return e.toLowerCase()}},56785:(e,t,r)=>{"use strict";var n=r(83150),a=r(11600);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r